:root {
  --ink: #16140f;
  --paper: #fcfcfb;
  --muted: #6b6a63;
  --accent: #2a78d6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.masthead {
  padding: 24px 24px 0;
}

.brand {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.2px;
}

main {
  flex: 1;
  padding: 40px 24px;
}

.hero {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: 12px;
}

.hero .deck {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero .status {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
}

/* ── Homepage story card ─────────────────────────────────────────────── */
.featured {
  max-width: 640px;
  margin: 0 auto;
}

.story-card {
  display: block;
  border: 1px solid #e4e0d8;
  border-radius: 6px;
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s;
}

.story-card:hover {
  border-color: var(--accent);
}

.story-card-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
}

.story-card h2 {
  font-size: 1.6rem;
  margin: 8px 0 6px;
}

.story-card p {
  color: var(--muted);
  font-size: 1rem;
}

/* ── Story / article page ────────────────────────────────────────────── */
.story {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.05rem;
}

.story h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 14px;
}

.story h2 {
  font-size: 1.5rem;
  margin: 40px 0 14px;
  padding-top: 20px;
  border-top: 1px solid #e4e0d8;
}

.story h3 {
  font-size: 1.15rem;
  margin: 24px 0 8px;
}

.story p { margin-bottom: 14px; }

.story p.finding {
  font-size: 1.1rem;
  background: #f5f3ee;
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 16px;
}

.story figure {
  margin: 20px 0;
}

.story figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #e4e0d8;
  border-radius: 4px;
}

.story hr {
  border: none;
  border-top: 1px solid #e4e0d8;
  margin: 32px 0;
}

.story .cite {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  background: #f0ede6;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: normal;
}

.story .pubnote {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e4e0d8;
}

@media (max-width: 480px) {
  .story { font-size: 1rem; }
}

/* ── Data pages ───────────────────────────────────────────────────────── */
.datapage .back {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.datapage .back a { color: var(--accent); }

.story .bullet {
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.story .bullet::before {
  content: '\2013';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.story blockquote {
  border-left: 3px solid #d8d4ca;
  padding: 4px 16px;
  margin: 12px 0;
  color: var(--muted);
  font-style: italic;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid #e4e0d8;
  border-radius: 4px;
}

.story table {
  border-collapse: collapse;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
}

.story th, .story td {
  padding: 6px 10px;
  border-bottom: 1px solid #efece4;
  text-align: left;
  white-space: nowrap;
}

.story th {
  background: #f5f3ee;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.story tbody tr:hover { background: #faf9f6; }

footer {
  text-align: center;
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
}
