:root {
  --paper: #f5f1e8;
  --surface: #fffdf8;
  --ink: #171914;
  --muted: #5d6259;
  --rule: #d7d2c7;
  --accent: #145c4f;
  --accent-dark: #0b4037;
  --accent-pale: #dcece6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.62 var(--sans);
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-dark); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
.masthead { border-bottom: 1px solid var(--rule); background: var(--surface); }
.masthead-inner,
main,
.site-footer,
.site-bar,
.report-shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.masthead-inner { padding: clamp(64px, 9vw, 124px) 0 clamp(56px, 7vw, 92px); }
.eyebrow,
.section-label,
.report-context {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}
h1, h2, h3 { text-wrap: balance; }
h1 {
  max-width: 900px;
  margin: 0;
  font: 700 clamp(2.8rem, 7vw, 6.8rem)/.96 var(--serif);
  letter-spacing: -.045em;
}
.dek { max-width: 760px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.4rem); }
.start-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-block;
  padding: 12px 17px;
  border-radius: 3px;
  background: var(--accent);
  color: white;
  font-weight: 720;
  text-decoration: none;
}
.text-link, .card-link { font-weight: 700; }
main { padding: 64px 0 88px; }
.intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 100px); padding-bottom: 62px; border-bottom: 1px solid var(--rule); }
.intro h2, .section > h2 { margin: 0; font: 700 clamp(1.9rem, 4vw, 3.4rem)/1.05 var(--serif); letter-spacing: -.025em; }
.intro > p { max-width: 700px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.section { padding-top: 68px; }
.card-grid { display: grid; gap: 16px; margin-top: 30px; }
.card-grid--visuals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--reports { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface);
}
.card h3 { margin: 0 0 14px; font: 700 1.35rem/1.16 var(--serif); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card p { margin: 0 0 22px; color: var(--muted); font-size: .96rem; }
.card-link { margin-top: auto; }
.collection { margin-top: 44px; }
.collection > h3 { margin: 0; font: 700 1.3rem/1.2 var(--sans); }
.site-footer { padding: 28px 0 48px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .88rem; }
.site-footer p { margin: 0; }
.site-footer .machine-links { margin-top: .55rem; }

.site-bar { display: flex; justify-content: space-between; gap: 22px; padding: 19px 0; border-bottom: 1px solid var(--rule); font-size: .88rem; }
.site-home { color: var(--ink); font-weight: 760; text-decoration: none; }
.source-link { color: var(--muted); }
.report-shell { max-width: 880px; padding: 62px 0 88px; }
.prose { font-family: var(--serif); font-size: 1.08rem; }
.prose > h1 { max-width: none; margin: 0 0 34px; font-size: clamp(2.5rem, 7vw, 5.2rem); }
.prose h2 { margin: 2.4em 0 .7em; font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.1; }
.prose h3 { margin: 2em 0 .65em; font-size: 1.38rem; line-height: 1.18; }
.prose p, .prose li { max-width: 76ch; }
.prose p { margin: 1em 0; }
.prose li + li { margin-top: .38em; }
.prose blockquote { margin: 1.5em 0; padding: .1em 0 .1em 1.25em; border-left: 4px solid var(--accent); color: var(--muted); }
.prose code { padding: .12em .28em; border-radius: 3px; background: #e9e4da; font-size: .88em; }
.prose pre { overflow-x: auto; padding: 18px; border-radius: 5px; background: #252821; color: #f7f3e9; }
.prose pre code { padding: 0; background: transparent; color: inherit; }
.prose table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-family: var(--sans); font-size: .88rem; }
.prose th, .prose td { min-width: 145px; padding: 10px 12px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { background: #eae5db; }
.prose img { max-width: 100%; height: auto; }
.prose hr { margin: 3em 0; border: 0; border-top: 1px solid var(--rule); }

.updates-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 62px 0 88px; }
.updates-shell > h1 { max-width: none; font-size: clamp(2.8rem, 7vw, 5.6rem); }
.updates-intro { max-width: 760px; margin: 28px 0 0; color: var(--muted); font-size: 1.08rem; }
.updates-group { margin-top: 64px; }
.updates-group > h2 { margin: 0; font: 700 clamp(1.8rem, 4vw, 3rem)/1.08 var(--serif); }
.updates-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.update-record { padding: 24px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); }
.update-record h3 { margin: 0 0 18px; font: 700 1.22rem/1.2 var(--serif); }
.update-record h3 a { color: var(--ink); text-decoration: none; }
.update-record h3 a:hover { color: var(--accent); text-decoration: underline; }
.update-record ol { margin: 0; padding: 0; list-style: none; }
.update-record li { display: grid; grid-template-columns: 7rem 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.update-record time { color: var(--accent); font-size: .76rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.update-record strong { display: block; font-size: .86rem; line-height: 1.35; }
.update-record p { grid-column: 2; margin: -7px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }

@media (max-width: 820px) {
  .card-grid--reports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .masthead-inner, main, .site-footer, .site-bar, .report-shell { width: min(100% - 28px, 1120px); }
  .masthead-inner { padding: 54px 0; }
  h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  main { padding-top: 44px; }
  .intro { grid-template-columns: 1fr; gap: 18px; }
  .section { padding-top: 54px; }
  .card-grid--visuals, .card-grid--reports { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .site-bar { align-items: flex-start; }
  .source-link { white-space: nowrap; }
  .report-shell { padding-top: 44px; }
  .prose { font-size: 1rem; }
  .prose > h1 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
  .prose table { font-size: .82rem; }
  .updates-shell { width: min(100% - 28px, 1120px); padding-top: 44px; }
  .updates-grid { grid-template-columns: 1fr; }
  .update-record li { grid-template-columns: 1fr; gap: 5px; }
  .update-record p { grid-column: 1; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
