:root {
  --ink: #171716;
  --muted: #76736e;
  --paper: #fbfaf7;
  --line: #e6e2da;
  --accent: #bd573d;
  --accent-soft: #f4e5de;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--sans); margin: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.topbar {
  align-items: center; background: rgba(251,250,247,.9); border-bottom: 1px solid var(--line);
  display: flex; height: 58px; justify-content: space-between; padding: 0 max(4vw, 28px);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px);
}
.wordmark { font: 500 11px/1 var(--mono); letter-spacing: .04em; }
.wordmark span { color: var(--accent); font-weight: 500; }
.topnav { display: flex; gap: 25px; font-size: 12px; }
.topnav a { color: #504e4a; transition: color .2s; }
.topnav a:hover, .topnav a.active { color: var(--accent); }
.menu-toggle { background: none; border: 0; display: none; padding: 7px; }
.menu-toggle span { background: var(--ink); display: block; height: 1px; margin: 4px; width: 19px; }

.hero { margin: 0 auto; max-width: 980px; padding: clamp(68px, 11vw, 145px) 28px 82px; text-align: center; }
.eyebrow, .kicker, .section-label, .metric-label { color: var(--accent); font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 7.1vw, 81px); letter-spacing: -.065em; line-height: .97; margin: 20px auto 25px; max-width: 920px; }
h1 em, h2 em { color: var(--accent); font-family: var(--serif); font-style: normal; font-weight: 600; letter-spacing: -.075em; }
.authors { font-size: 14px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 9px; }
sup { font-size: .67em; vertical-align: super; }
.affiliations, .note { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.note { font-size: 10px; }
.actions { display: flex; gap: 10px; justify-content: center; margin-top: 29px; }
.button { border: 1px solid var(--line); border-radius: 99px; font-size: 12px; padding: 10px 16px; transition: all .2s; }
.button:hover { border-color: var(--accent); color: var(--accent); }
.button-primary { background: var(--accent); border-color: var(--accent); color: white; }
.button-primary:hover { background: #a94732; color: white; }
.hero-rule { background: var(--line); height: 1px; margin: 55px auto 21px; max-width: 710px; }
.hero-question { color: #625e59; font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); line-height: 1.25; margin: 0 auto; max-width: 620px; }

.side-nav { left: max(18px, calc((100vw - 1360px) / 2)); position: fixed; top: 47%; z-index: 5; }
.side-nav a { color: #aaa7a1; display: block; font: 10px/1 var(--mono); margin: 13px 0; transition: color .2s; }
.side-nav a:hover, .side-nav a.active { color: var(--accent); }
.side-nav span { margin-left: 5px; }

.section { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 3.65fr); margin: 0 auto; max-width: 1100px; padding: 82px 28px; }
.section-label { padding-top: 9px; }
.section-label span { color: var(--muted); margin-right: 9px; }
.section-content { max-width: 820px; }
h2 { font-size: clamp(34px, 4.5vw, 58px); letter-spacing: -.065em; line-height: 1.02; margin-bottom: 25px; }
.lead { color: #474440; font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); line-height: 1.36; max-width: 730px; }
figure { margin: 0; }
img { display: block; height: auto; max-width: 100%; }
figcaption { color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 10px; }
.feature-figure { margin: 46px 0 52px; }
.feature-figure img { border: 1px solid var(--line); border-radius: 5px; }
.abstract { border-left: 2px solid var(--accent); max-width: 720px; padding-left: 20px; }
.abstract p:last-child { color: #4f4c47; font-size: 15px; line-height: 1.65; margin-bottom: 0; }
.abstract .kicker { margin-bottom: 11px; }

.findings { background: #f4f1eb; max-width: none; padding-left: max(28px, calc((100vw - 1100px) / 2)); padding-right: max(28px, calc((100vw - 1100px) / 2)); }
.finding-grid { border-top: 1px solid #d9d4cc; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.finding { border-right: 1px solid #d9d4cc; padding: 20px 23px 0 0; }
.finding + .finding { padding-left: 23px; }
.finding:last-child { border: 0; }
.finding-number { color: var(--accent); font: 11px var(--mono); }
.finding h3, .process h3 { font-size: 19px; letter-spacing: -.04em; margin-bottom: 9px; }
.finding p:last-child { color: #615d57; font-size: 13px; line-height: 1.55; }
.paired-figures { display: grid; gap: 17px; grid-template-columns: 1.45fr 1fr 1fr; margin-top: 54px; }
.paired-figures img { border: 1px solid #dfdad2; width: 100%; }

.method { padding-bottom: 105px; }
.process { counter-reset: steps; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 42px 0 51px; }
.process article { border-top: 2px solid var(--ink); padding-top: 15px; }
.process span { color: var(--accent); font: 13px var(--mono); }
.process h3 { margin: 28px 0 8px; }
.process p { color: #625f59; font-size: 13px; line-height: 1.5; margin: 0; }
.wide-figure { margin-top: 20px; }
.wide-figure img { border: 1px solid var(--line); width: 100%; }

.results { background: var(--ink); color: #f9f6f1; max-width: none; padding-left: max(28px, calc((100vw - 1100px) / 2)); padding-right: max(28px, calc((100vw - 1100px) / 2)); }
.results .section-label { color: #e58a6e; }
.results .section-label span, .results figcaption { color: #aaa7a1; }
.results h2 em { color: #ec8567; }
.result-highlight { border-bottom: 1px solid #4b4a47; border-top: 1px solid #4b4a47; margin: 47px 0 36px; padding: 21px 0 22px; }
.metric-label { color: #e58a6e; margin-bottom: 11px; }
.metric { align-items: baseline; display: flex; gap: clamp(12px, 2.5vw, 27px); letter-spacing: -.065em; }
.metric span { color: #999691; font-size: clamp(35px, 5vw, 56px); text-decoration: line-through; }
.metric b { color: #7a7772; font-size: clamp(25px, 3vw, 36px); font-weight: 400; }
.metric strong { color: #f49a7e; font-size: clamp(45px, 6.5vw, 72px); }
.metric-gain { color: #d6d1ca; font-size: 13px; margin: 5px 0 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; font-size: 13px; min-width: 700px; width: 100%; }
caption { color: #d0ccc5; font: 11px var(--mono); margin-bottom: 9px; text-align: left; }
th { color: #aaa7a1; font-size: 11px; font-weight: 500; text-align: right; }
td, th { border-bottom: 1px solid #3d3c3a; padding: 12px 8px; }
td { text-align: right; }
td:first-child, th:first-child { padding-left: 0; text-align: left; }
td:nth-child(3), td:nth-child(4) { color: #f49a7e; font-weight: 600; }
.result-columns { display: grid; gap: 50px; grid-template-columns: 1fr 1fr; margin: 43px 0; }
.result-columns p { color: #c5c1ba; font-size: 13px; line-height: 1.6; margin: 0; }
.result-columns strong { color: white; }
.results .wide-figure img { background: #fff; border: 0; }
.results .compact { max-width: 680px; }

.citation { padding-bottom: 110px; }
.citation-content { max-width: 720px; }
.bibtex { background: #efede8; margin-top: 35px; position: relative; }
pre { color: #44413c; font: 11px/1.65 var(--mono); margin: 0; overflow-x: auto; padding: 25px; white-space: pre; }
.copy-button { background: var(--accent); border: 0; color: white; cursor: pointer; font-size: 11px; padding: 8px 11px; position: absolute; right: 10px; top: 10px; }
.copy-button:hover { background: #a94732; }
.paper-link { border-bottom: 1px solid var(--accent); color: var(--accent); display: inline-block; font-size: 13px; margin-top: 27px; padding-bottom: 2px; }
footer { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; font: 10px var(--mono); justify-content: space-between; padding: 26px max(4vw, 28px); }
footer p { margin: 0; }
footer a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .side-nav { display: none; }
  .section { grid-template-columns: 135px minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .topbar { height: 52px; padding: 0 20px; }
  .menu-toggle { display: block; }
  .topnav { background: var(--paper); border-bottom: 1px solid var(--line); display: none; left: 0; padding: 19px 20px; position: absolute; right: 0; top: 52px; }
  .topnav.open { display: grid; gap: 16px; }
  .hero { padding: 74px 20px 62px; }
  h1 { font-size: clamp(38px, 11vw, 58px); }
  .authors { font-size: 12px; line-height: 1.6; }
  .affiliations { line-height: 1.5; }
  .hero-rule { margin-top: 43px; }
  .section { display: block; padding: 60px 20px; }
  .section-label { margin-bottom: 30px; }
  .finding-grid, .paired-figures, .process, .result-columns { grid-template-columns: 1fr; }
  .finding { border-bottom: 1px solid #d9d4cc; border-right: 0; padding: 17px 0; }
  .finding + .finding { padding-left: 0; }
  .paired-figures { gap: 28px; margin-top: 38px; }
  .process { gap: 27px; }
  .results { padding-left: 20px; padding-right: 20px; }
  .citation { padding-bottom: 70px; }
  footer { padding: 21px 20px; }
}
