:root {
  color-scheme: light;
  --paper: #efe7d9;
  --paper-deep: #e6ddcf;
  --ink: #151722;
  --body: #343234;
  --muted: #686057;
  --rule: #d4c9b8;
  --accent: #8f564b;
  --accent-wash: rgb(143 86 75 / 9%);
  --blue: #5c7478;
  --sans: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
::selection { color: var(--ink); background: #d8c1af; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 18px; background: var(--ink); color: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.topbar, .article-head, .article-shell, .site-footer { width: min(1280px, 100% - var(--gutter) * 2); margin-inline: auto; }
.topbar { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; padding-block: 12px; }
.brand img { width: 172px; }
.topbar nav { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.topbar nav a { display: block; padding: 9px 14px; border-radius: 5px; font-size: 14px; font-weight: 500; text-decoration: none; }
.topbar nav a:hover { background: var(--paper-deep); color: var(--ink); }
.topbar nav a.active { background: var(--ink); color: var(--paper); }
.article-head { padding-block: 46px 34px; border-bottom: 1px solid var(--rule); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; font: 12px/1.6 var(--mono); color: var(--muted); }
.breadcrumb a { text-decoration: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1 { max-width: 1160px; font-size: clamp(2.15rem, 4.3vw, 3.65rem); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.article-head .lede { max-width: 900px; margin-top: 22px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--body); }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px 30px; margin-top: 32px; font-size: 14px; line-height: 1.65; }
.article-meta > div { display: flex; gap: 10px; align-items: baseline; }
.meta-label, .toc-title, .card-label, .stage-label { color: var(--muted); font: 12px/1.6 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.article-shell { display: grid; grid-template-columns: 205px minmax(0, 860px); gap: clamp(38px, 5vw, 78px); padding-block: 46px 80px; }
.article-toc { min-width: 0; }
.article-toc nav { position: sticky; top: 32px; }
.toc-title { margin-bottom: 18px; }
.article-toc a { display: flex; align-items: baseline; gap: 10px; border-left: 1px solid var(--rule); padding: 9px 0 9px 15px; font-size: 14px; line-height: 1.5; color: var(--muted); text-decoration: none; }
.article-toc a:hover, .article-toc a:focus-visible { color: var(--ink); border-left-color: var(--accent); }
.toc-number { font: 12px/1.5 var(--mono); color: var(--accent); }
.article { min-width: 0; font-size: 18px; line-height: 1.78; color: var(--body); }
.article section > p { max-width: 760px; margin-bottom: 22px; }
.article p.opening { color: var(--ink); font-size: 20px; line-height: 1.7; }
.article strong { color: var(--ink); font-weight: 600; }
.article p a { text-decoration-color: var(--accent); }
.central-question { max-width: 760px; border-left: 3px solid var(--accent); padding: 8px 0 8px 25px; margin: 30px 0; }
.central-question p { font-size: clamp(21px, 2.2vw, 25px); line-height: 1.5; letter-spacing: -.015em; color: var(--ink); }
.figure { margin-block: 32px 38px; }
.figure-image { display: block; padding: 10px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.figure-image img { width: 100%; }
.figure-image:hover { border-color: var(--accent); }
.case-study-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #151722; border: 1px solid var(--rule); border-radius: 8px; }
figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.figure-label { color: var(--ink); font-weight: 600; margin-right: .35em; }
.paper-card { border: 1px solid #c9bbab; border-radius: 8px; padding: 25px 28px; margin-block: 38px 0; background: var(--paper-deep); }
.paper-card .card-label { margin: 0 0 15px; color: var(--accent); font-size: 12px; font-weight: 500; }
.paper-card .paper-title { margin-bottom: 20px; color: var(--ink); font-size: 20px; line-height: 1.45; font-weight: 500; }
.paper-card dl { margin: 0; display: grid; gap: 11px; }
.paper-card dl > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: baseline; gap: 12px; }
.paper-card dt { font: 12px/1.6 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.paper-card dd { margin: 0; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.paper-card dd.forthcoming { color: var(--muted); }
.paper-card a { text-decoration-color: #b4a595; }
.article-section { padding-top: 46px; margin-top: 46px; border-top: 1px solid var(--rule); }
.article-section h2 { margin-bottom: 26px; max-width: 790px; color: var(--ink); font-size: clamp(1.65rem, 2.65vw, 2.15rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.24; text-wrap: balance; }
.section-number { display: block; margin-bottom: 15px; font: 13px/1.5 var(--mono); letter-spacing: .1em; color: var(--accent); }
.article h3 { margin: 40px 0 19px; color: var(--ink); font-size: clamp(1.25rem, 2.05vw, 1.55rem); font-weight: 500; line-height: 1.35; letter-spacing: -.02em; }
.stage-label { display: block; margin-bottom: 8px; color: var(--accent); }
.finding-number { color: var(--accent); margin-right: .3em; }
.article section > p.sequence { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 11px; max-width: none; padding: 20px 22px; margin: 26px 0; background: rgb(92 116 120 / 8%); border-left: 2px solid var(--blue); font-size: 15px; line-height: 1.7; color: var(--ink); }
.sequence b { font-weight: 400; color: var(--blue); }
.article section > p.sequence-deep { background: var(--accent-wash); border-left-color: var(--accent); }
.sequence-deep b { color: var(--accent); }
.table-figure { margin-block: 30px 42px; }
.table-figure > figcaption { margin: 0 0 14px; }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; border-block: 1px solid var(--ink); background: rgb(255 255 255 / 22%); }
.results-table { width: 100%; min-width: 670px; border-collapse: collapse; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; color: var(--ink); }
.results-table th, .results-table td { padding: 10px 12px; text-align: right; vertical-align: middle; }
.results-table th:first-child { text-align: left; }
.results-table thead th { font-weight: 500; text-align: center; padding-block: 13px; }
.results-table thead tr:last-child { border-bottom: 1px solid var(--rule); }
.results-table thead th[rowspan] { vertical-align: bottom; border-bottom: 1px solid var(--rule); }
.results-table thead small { display: block; padding-top: 3px; font-size: 13px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.results-table tbody th { font-weight: 400; }
.results-table tbody tr:not(.group-row) { border-bottom: 1px solid rgb(212 201 184 / 48%); }
.results-table tbody tr:last-child { border-bottom: 0; }
.results-table .group-row th { padding-block: 10px; font: 12px/1.6 var(--mono); letter-spacing: .015em; background: var(--paper-deep); color: var(--muted); border-top: 1px solid var(--rule); }
.results-table .ours-group th { color: var(--accent); background: var(--accent-wash); }
.results-table .ours-row { background: var(--accent-wash); }
.results-table .ours-row th, .results-table .ours-row td { font-weight: 600; }
.results-table .ours-row td { color: #75463c; }
.results-table.game-table { min-width: 740px; }
.table-note { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.table-note a { white-space: nowrap; }
.references { margin-top: 52px; }
.references h2 { font-size: 25px; }
.references ol { margin: 0; padding-left: 28px; }
.references li { padding-left: 8px; margin-bottom: 23px; scroll-margin-top: 32px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.references li::marker { color: var(--accent); font-family: var(--mono); }
.references p.reference-title { margin-bottom: 4px; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.5; }
.references sup { line-height: 0; }
.site-footer { border-top: 1px solid var(--rule); min-height: 120px; display: flex; flex-wrap: wrap; gap: 20px 30px; align-items: center; padding-block: 30px; color: var(--muted); font-size: 14px; }
.site-footer .brand img { width: 145px; }
.site-footer > a:last-child { margin-left: auto; text-decoration: none; color: var(--ink); }

@media (min-width: 1600px) {
  .article-shell { grid-template-columns: 220px minmax(0, 880px); gap: 82px; }
}
@media (max-width: 980px) {
  .article-shell { display: block; max-width: 820px; }
  .article-toc { margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
  .article-toc nav { position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .toc-title { grid-column: 1 / -1; margin-bottom: 8px; }
  .article-toc a { border: 0; padding: 6px 0; }
  .article-head { padding-top: 34px; }
}
@media (max-width: 620px) {
  .topbar { min-height: auto; flex-wrap: wrap; gap: 8px; padding-block: 18px 14px; }
  .brand img { width: 154px; }
  .topbar nav { width: 100%; gap: 0; justify-content: space-between; }
  .topbar nav a { padding: 8px 9px; }
  .article-head { padding-block: 28px; }
  .breadcrumb { margin-bottom: 22px; font-size: 12px; gap: 10px; }
  h1 { font-size: 2.15rem; letter-spacing: -.035em; line-height: 1.13; text-wrap: pretty; }
  .article-meta { gap: 10px; margin-top: 25px; }
  .article-meta > div { width: 100%; }
  .meta-label { min-width: 67px; }
  .article-shell { padding-block: 28px 44px; }
  .article { font-size: 17px; line-height: 1.78; }
  .article p.opening { font-size: 18px; }
  .central-question { padding-left: 19px; margin-block: 26px; }
  .central-question p { font-size: 21px; }
  .paper-card { padding: 21px 20px; }
  .paper-card dl > div { grid-template-columns: 60px minmax(0, 1fr); gap: 8px; }
  .paper-card dd { font-size: 15px; }
  .article-section { padding-top: 34px; margin-top: 34px; }
  .figure { margin-block: 26px 30px; }
  .figure-image { padding: 5px; border-radius: 5px; }
  .article section > p.sequence { padding: 16px 18px; font-size: 14px; }
  .site-footer { gap: 12px 24px; }
  .site-footer .brand { width: 100%; }
}
@media (max-width: 380px) {
  .topbar nav a { padding-inline: 7px; }
  .article-toc nav { column-gap: 16px; }
  .paper-card dl > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  body { background: #fff; color: #000; }
  .topbar, .article-toc, .site-footer, .skip-link { display: none; }
  .article-head, .article-shell { width: 100%; padding-block: 20px; }
  .article-shell { display: block; }
  h1 { font-size: 28pt; }
  .article { font-size: 11pt; line-height: 1.6; }
  .figure, .paper-card { break-inside: avoid; }
  .table-scroll { overflow: visible; }
  .results-table, .results-table.game-table { min-width: 0; font-size: 9pt; }
  .results-table th, .results-table td { padding: 5px; }
  .article-section { margin-top: 24px; padding-top: 24px; }
}
