:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #1f1c18;
  --muted: #6b645a;
  --accent: #2f5a43;
  --rule: #e6dfd3;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --surface: #201d1a;
    --text: #ece6dc;
    --muted: #a39a8c;
    --accent: #8fc2a3;
    --rule: #34302b;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px;
  background: var(--bg);
  z-index: 1;
}

.wordmark {
  font: 600 1.25rem var(--serif);
  color: var(--text);
}

nav { display: flex; gap: 20px; font-size: 0.95rem; }
nav a { color: var(--muted); }
nav a:hover { color: var(--text); text-decoration: none; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px; }

section { padding: 56px 0; border-top: 1px solid var(--rule); }
section.hero { border-top: 0; padding: 72px 0 64px; }

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 7vw, 4rem); margin: 8px 0 20px; }
h2 { font-size: 1.75rem; margin: 0 0 20px; }
h3 { font-size: 1.15rem; margin: 0 0 4px; }

.lede { font-size: 1.2rem; color: var(--muted); max-width: 36ch; margin: 0; }

.timeline { display: grid; gap: 24px; }
.timeline article { display: grid; grid-template-columns: 72px 1fr; gap: 16px; }
.timeline p { margin: 0; color: var(--muted); }
.year { font: 600 1.1rem var(--serif); color: var(--accent); }

.note { margin-top: 32px; font-size: 0.9rem; color: var(--muted); }

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.cards li {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px;
}
.cards p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.links { display: flex; gap: 20px; }

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--rule);
}

@media (max-width: 520px) {
  nav { gap: 14px; font-size: 0.875rem; }
  .timeline article { grid-template-columns: 56px 1fr; }
}

.dek { margin: -8px 0 24px; color: var(--muted); font-size: 1.05rem; }
.more { margin: 32px 0 0; font-weight: 500; }

.article section > p { max-width: 65ch; }

.table-scroll { overflow-x: auto; margin: 24px 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
th { font-weight: 500; color: var(--muted); }
td:first-child { white-space: nowrap; }

ul.plain { padding-left: 20px; }
ul.plain li { margin-bottom: 12px; }

@media (max-width: 620px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  nav { flex-wrap: wrap; gap: 6px 16px; }
}
