:root {
  --ink: #252a27;
  --muted: #69716d;
  --line: #dfe5e1;
  --canvas: #ffffff;
  --paper: #ffffff;
  --soft: #f6f8f6;
  --accent: #2b887e;
  --accent-deep: #0c5d56;
  --accent-pale: #eaf5f1;
  --warm-pale: #fbf1ed;
  --max: 1200px;
  --narrow: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Aptos", "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.65; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
a:focus-visible, button:focus-visible, .table-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.skip-link { position: absolute; top: 8px; left: 8px; z-index: 30; padding: 9px 13px; color: #fff; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.header-inner, .content-width, .hero-inner { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; }
.narrow-width { width: min(calc(100% - 64px), var(--narrow)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { flex: 0 0 auto; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.24rem; font-weight: 700; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 27px; color: var(--muted); font-size: .9rem; font-weight: 650; }
.site-nav a { padding: 8px 0; text-decoration: none; transition: color 180ms ease; }
.site-nav a:hover, .site-nav a.is-active { color: var(--accent-deep); }

.hero { padding: 70px 0 42px; background: var(--canvas); }
.hero-inner { max-width: 930px; text-align: center; }
.eyebrow, .section-kicker { margin: 0 0 15px; color: var(--accent-deep); font-size: .76rem; font-weight: 800; line-height: 1.4; letter-spacing: .035em; text-transform: uppercase; }
.eyebrow-note { color: var(--muted); font-weight: 600; text-transform: none; }
h1 { margin-bottom: 22px; font-size: clamp(3.4rem, 7vw, 5rem); line-height: 1.02; text-wrap: balance; }
h1 .method-mark { display: block; color: var(--accent-deep); }
h1 small { display: block; max-width: 820px; margin: 15px auto 0; color: var(--ink); font: 400 clamp(1.22rem, 2.1vw, 1.85rem)/1.24 Georgia, "Times New Roman", serif; }
.hero-lede { max-width: 760px; margin: 0 auto 10px; color: var(--ink); font-size: 1.2rem; line-height: 1.5; }
.hero-detail { max-width: 720px; margin: 0 auto 26px; color: var(--muted); font-size: .96rem; line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.action { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 10px 17px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-size: .91rem; font-weight: 750; text-decoration: none; transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease; }
.action:active { transform: scale(.98); }
.action-primary { color: #fff; background: var(--ink); }
.action-primary:hover { background: #3d4540; }
.action-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.action-secondary:hover { color: var(--accent-deep); border-color: var(--accent); }
.github-icon { width: 19px; height: 19px; flex: 0 0 auto; }

.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 40px auto 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-metric { min-width: 0; padding: 19px 16px 18px; border-right: 1px solid var(--line); }
.hero-metric:last-child { border-right: 0; }
.hero-metric strong { display: block; color: var(--accent-deep); font: 400 clamp(2rem, 4vw, 3rem)/1 Georgia, "Times New Roman", serif; }
.metric-unit { font-family: "Aptos", "Helvetica Neue", Arial, sans-serif; font-size: .55em; }
.hero-metric > span { display: block; margin-top: 8px; color: var(--ink); font-size: .82rem; font-weight: 750; }
.hero-metric small { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.baseline-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; max-width: 960px; margin: 17px auto 0; color: var(--muted); font-size: .78rem; }
.baseline-label { color: var(--ink); font-weight: 750; }
.baseline-item { display: inline-flex; align-items: baseline; gap: 5px; }
.baseline-item b { color: var(--accent-deep); font-size: .69rem; letter-spacing: .04em; text-transform: uppercase; }
.baseline-item small { color: var(--muted); font-size: .72rem; }
.baseline-latest { padding: 4px 8px; border-left: 3px solid var(--accent); background: var(--accent-pale); }

.visual-band { padding: 54px 0 90px; background: var(--paper); }
.section { padding: 88px 0 96px; background: var(--paper); }
.section-heading { max-width: 790px; margin-bottom: 30px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; }
.section h2, .visual-band h2 { max-width: 850px; margin-bottom: 22px; font-size: clamp(2.05rem, 4vw, 2.65rem); line-height: 1.15; text-wrap: balance; }
.section-heading h2, .section-heading-row h2 { margin-bottom: 0; }
.section-heading > p:last-child:not(.section-kicker) { color: var(--muted); }
.replay-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: transparent; cursor: pointer; font-size: .86rem; font-weight: 750; }
.replay-button:hover { color: var(--accent-deep); border-color: var(--accent); background: #fff; }
.dataset-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 32px 0 14px; padding-bottom: 9px; border-bottom: 1px solid #b8c0ba; }
.dataset-heading h3 { margin: 0; font-size: 1.42rem; }
.dataset-heading span { color: var(--muted); font-size: .74rem; }
.comparison-figure { margin: 0; }
.comparison-figure img { width: 100%; border: 1px solid var(--line); background: #fff; }
figcaption { max-width: 980px; margin: 14px auto 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }

.concept-section { padding-top: 76px; background: var(--soft); border-block: 1px solid var(--line); }
.concept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.concept-block { min-height: 210px; padding: 23px 25px 20px 0; border-right: 1px solid var(--line); }
.concept-block + .concept-block { padding-left: 25px; }
.concept-block:last-child { padding-right: 0; border-right: 0; }
.concept-index { display: block; margin-bottom: 18px; color: var(--accent-deep); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.concept-block h3 { margin-bottom: 9px; font-size: 1.3rem; }
.concept-block p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.62; }

.overview-section { padding-top: 82px; }
.lead { color: #3b433e; font-size: 1.15rem; line-height: 1.75; }
.narrow-width p:not(.section-kicker) { margin-bottom: 19px; }
.narrow-width p:last-child { margin-bottom: 0; }

.figure-section { padding-top: 30px; }
.figure-two-section { padding-top: 10px; }
.paper-figure { margin: 0; }
.paper-figure img { width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--line); background: #fff; }
.figure-one img { max-width: 1020px; }
.figure-two img { max-width: 1120px; }

.table-section { background: var(--soft); border-block: 1px solid var(--line); }
.results-layout { display: grid; grid-template-columns: minmax(190px, .28fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.results-intro .section-heading { max-width: none; margin-bottom: 18px; }
.results-intro h2 { font-size: 1.95rem; }
.table-aside { margin: 0; padding-left: 13px; border-left: 2px solid var(--accent); color: var(--muted); font-size: .84rem; line-height: 1.62; }
.table-aside strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.table-scroll { min-width: 0; overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; scrollbar-color: #a8b1aa #e9ede9; scrollbar-width: thin; }
.results-table { width: 100%; min-width: 920px; border-collapse: separate; border-spacing: 0; color: var(--ink); font-size: .72rem; font-variant-numeric: tabular-nums; line-height: 1.35; }
.results-table th, .results-table td { padding: 10px 8px; border-right: 1px solid #edf0ed; border-bottom: 1px solid var(--line); text-align: right; }
.results-table th:last-child, .results-table td:last-child { border-right: 0; }
.results-table thead th { color: #4d5751; background: #f8faf8; font-size: .68rem; text-align: center; vertical-align: bottom; }
.results-table thead small { display: block; margin-top: 4px; color: #8a938e; font-size: .58rem; font-weight: 600; }
.results-table thead th:first-child, .results-table tbody th, .results-table tfoot th { position: sticky; left: 0; z-index: 1; text-align: left; background: #fff; }
.results-table tbody th { font-weight: 750; }
.results-table .latest-col { background: var(--warm-pale); }
.results-table .ours-col { color: var(--accent-deep); background: var(--accent-pale); font-weight: 800; }
.results-table tfoot th, .results-table tfoot td { border-bottom: 0; border-top: 1px solid #aeb9b2; font-weight: 800; }
.table-note { margin: 15px 0 0; color: var(--muted); font-size: .8rem; }

.resources-section { background: #fff; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.resource-card { display: grid; grid-template-columns:auto 1fr auto; grid-template-rows:auto auto; gap: 2px 14px; min-height: 126px; align-content: center; padding: 22px 24px; border: 0; border-right: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; text-align: left; text-decoration: none; }
.resource-card:last-child { border-right: 0; }
.resource-card:hover { background: var(--soft); }
.resource-card > span { grid-row: 1/3; align-self: center; color: var(--accent-deep); font: 400 1.5rem Georgia, serif; }
.resource-card strong { align-self: end; font-size: .94rem; }
.resource-card small { color: var(--muted); font-size: .72rem; }
.resource-card b { grid-column: 3; grid-row: 1/3; align-self: center; color: var(--accent-deep); font-size: 1.05rem; }
.checkpoint-status { margin-top: 22px; padding: 17px 19px; border: 1px solid var(--line); background: var(--soft); }
.checkpoint-status > div { display: flex; justify-content: space-between; gap: 20px; color: var(--accent-deep); font-size: .78rem; font-weight: 750; }
.checkpoint-status progress { width: 100%; height: 7px; margin-top: 12px; accent-color: var(--accent); }
.checkpoint-status p { margin: 8px 0 0; color: var(--muted); font-size: .72rem; }

.footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: .76rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer a { color: var(--accent-deep); font-weight: 750; text-decoration: none; }

@media (max-width: 900px) {
  .site-nav { gap: 17px; font-size: .82rem; }
  .results-layout { grid-template-columns: 1fr; gap: 24px; }
  .results-intro { max-width: 620px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  .header-inner, .content-width, .hero-inner, .narrow-width { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { min-height: 64px; }
  .site-nav a:nth-child(2), .site-nav a:nth-child(4), .site-nav a:nth-child(5) { display: none; }
  .site-nav { gap: 18px; }
  .hero { padding-top: 52px; }
  h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  h1 small { margin-top: 11px; font-size: 1.1rem; }
  .hero-lede { font-size: 1.04rem; }
  .hero-detail { margin-bottom: 21px; font-size: .88rem; }
  .metric-strip { margin-top: 31px; }
  .hero-metric { padding: 15px 7px; }
  .hero-metric strong { font-size: 1.9rem; }
  .hero-metric > span { font-size: .7rem; }
  .hero-metric small { font-size: .62rem; }
  .baseline-strip { justify-content: flex-start; gap: 8px 12px; font-size: .72rem; }
  .visual-band, .section { padding-block: 68px; }
  .section-heading-row { align-items: start; }
  .section h2, .visual-band h2 { font-size: 2rem; }
  .dataset-heading span { display: none; }
  .concept-grid { grid-template-columns: 1fr; }
  .concept-block, .concept-block + .concept-block { min-height: 0; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .concept-block:last-child { border-bottom: 0; }
  .concept-index { margin-bottom: 9px; }
  .figure-section, .figure-two-section { padding-top: 30px; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .resource-card:last-child { border-bottom: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 440px) {
  .wordmark { font-size: 1.05rem; }
  .site-nav { font-size: .77rem; }
  .metric-strip { grid-template-columns: 1fr; }
  .hero-metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-metric:last-child { border-bottom: 0; }
  .baseline-item { display: flex; flex-wrap: wrap; }
  .replay-button { min-height: 38px; padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
