:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #536174;
  --navy: #102f52;
  --blue: #1e5e91;
  --cyan: #18a7b5;
  --orange: #c56820;
  --paper: #f7f8fa;
  --white: #ffffff;
  --rule: #cbd3dc;
  --grid: #dce2e8;
  --plot: #08111e;
  --max: 1220px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid #f3a847; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: var(--navy); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.topbar { min-height: 72px; padding: 0 max(20px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--white); border-bottom: 1px solid var(--rule); }
.identity { min-height: 52px; display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; line-height: 1.05; }
.identity svg { width: 38px; height: 38px; fill: none; stroke: var(--orange); stroke-width: 1.5; }
.identity span { display: grid; }
.identity b { letter-spacing: .025em; }
.identity small { margin-top: 4px; color: var(--muted); font-size: .7rem; letter-spacing: .045em; }
nav { display: flex; gap: 4px; }
nav a { min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; color: var(--muted); font-size: .88rem; text-decoration: none; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--navy); border-color: var(--cyan); }

main, footer { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
article { background: var(--white); border-inline: 1px solid var(--rule); box-shadow: 0 18px 55px rgba(28, 45, 66, .08); }
.paper-header { padding: clamp(48px, 7vw, 92px) clamp(24px, 6vw, 76px) 56px; border-top: 5px solid var(--navy); }
.report-kicker { margin-bottom: 34px; color: var(--orange); font: 700 .76rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.paper-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr); gap: clamp(36px, 7vw, 90px); }
h1, h2, h3 { color: var(--navy); }
h1 { max-width: 820px; margin: 0; font: 700 clamp(2.3rem, 5.2vw, 4.75rem)/1.02 var(--serif); letter-spacing: -.035em; }
.authors { margin: 26px 0 0; font-weight: 700; }
.affiliation { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.pdf-link { margin-top: 24px; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid var(--navy); color: var(--navy); font-size: .82rem; font-weight: 700; text-decoration: none; }
.pdf-link:hover { background: var(--navy); color: white; }
.metadata { margin: 0; border-top: 2px solid var(--navy); }
.metadata div { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.metadata dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .055em; }
.metadata dd { margin: 0; font-size: .86rem; font-weight: 650; }
.abstract { max-width: 910px; margin-top: 58px; padding-top: 24px; border-top: 1px solid var(--rule); }
.abstract h2 { margin: 0; font: 700 1rem var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.abstract p { margin: 12px 0 0; color: #28374a; }
.concept-hero { margin: 50px 0 0; }
.concept-hero img { width: 100%; border: 1px solid var(--rule); }
.concept-hero figcaption { margin-top: 10px; color: var(--muted); font-size: .8rem; }
.results-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); color: white; }
.results-strip div { min-height: 122px; padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255,255,255,.18); }
.results-strip strong { font: 700 1.65rem var(--mono); color: #7ee4ec; }
.results-strip span { margin-top: 5px; color: #d9e4ef; font-size: .78rem; line-height: 1.3; }

.paper-section { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 28px; padding: clamp(64px, 8vw, 106px) clamp(24px, 6vw, 76px); border-bottom: 1px solid var(--rule); }
.section-number { padding-top: 4px; color: var(--orange); font: 700 1.05rem var(--mono); }
.section-number::after { content: ""; display: block; width: 30px; height: 2px; margin-top: 12px; background: var(--orange); }
.section-body { min-width: 0; }
.section-body > h2, .acknowledgement h2 { margin: 0; font: 700 clamp(1.9rem, 4vw, 3.2rem)/1.08 var(--serif); letter-spacing: -.025em; }
.lead { max-width: 780px; margin: 18px 0 0; color: var(--muted); font-size: 1.06rem; }
.figure { margin: 42px 0 0; }
.figure > img, .chart-wrap { width: 100%; border: 1px solid var(--rule); background: white; }
.figure figcaption { margin-top: 12px; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.figure figcaption b { color: var(--ink); }
.dark-figure { padding: 18px; background: #f4f7f9; border: 1px solid var(--rule); }
.dark-figure > img { width: min(100%, 820px); margin: 16px auto 0; border: 1px solid #9aa8b7; background: #08111e; }
.dark-figure figcaption { color: var(--muted); }
.dark-figure figcaption b { color: var(--ink); }
.figure-toolbar, .spectrum-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.figure-toolbar button, .spectrum-controls button { min-height: 44px; padding: 0 15px; border: 1px solid var(--rule); background: white; color: var(--navy); font: 650 .83rem var(--sans); cursor: pointer; }
.figure-toolbar button.active, .spectrum-controls button.active { color: white; background: var(--navy); border-color: var(--navy); }
.plot-figure { padding: 18px; border: 1px solid var(--rule); background: white; }
.plot-figure .spectrum-controls { margin-bottom: 16px; }
.plot-figure .spectrum-controls button { color: var(--navy); border-color: var(--rule); background: var(--paper); }
.plot-figure .spectrum-controls button.active { background: var(--navy); color: white; border-color: var(--navy); }
.chart-wrap { overflow: hidden; background: #fbfcfd; }
#spectrum-chart { display: block; width: 100%; height: auto; min-height: 300px; }
.chart-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.line-swatch { width: 34px; height: 3px; background: var(--blue); }
.finding-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 38px; }
.finding-grid article { padding: 23px; background: #f2f6f9; border-top: 3px solid var(--cyan); }
.finding-grid h3 { margin: 0; font: 700 1rem var(--sans); }
.finding-grid p { margin: 9px 0 0; color: var(--muted); font-size: .9rem; }
.table-wrap { margin-top: 38px; overflow-x: auto; border: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; min-width: 760px; font-variant-numeric: tabular-nums; }
caption { padding: 15px; text-align: left; font-weight: 700; background: #e8eef3; }
th, td { padding: 13px 15px; text-align: right; border-bottom: 1px solid var(--rule); }
th:first-child, td:first-child { text-align: left; }
th { background: #f4f7f9; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
td { font-family: var(--mono); font-size: .86rem; }
.compact-figure { max-width: 860px; }
.wide-figure { max-width: 1040px; }
.prose { max-width: 870px; }
.prose h3 { margin: 36px 0 8px; font: 700 1.18rem var(--sans); }
.prose p { margin: 0 0 18px; color: #344357; }
.method-list { padding-left: 22px; }
.method-list li { margin: 0 0 14px; padding-left: 8px; color: #344357; }
.equation { margin: 34px 0; padding: 28px; display: grid; gap: 8px; background: #edf4f7; border-left: 4px solid var(--cyan); }
.equation span { font: 600 clamp(1rem, 2.1vw, 1.35rem) var(--serif); }
.equation small { color: var(--muted); }
.science-note { margin: 32px 0 0; padding: 22px 24px; background: #fff8ee; border-left: 4px solid var(--orange); color: #344357; }
.references ol { padding-left: 22px; }
.references li { margin-bottom: 14px; padding-left: 7px; }
.acknowledgement { padding: 58px clamp(24px, 6vw, 76px); background: #edf2f6; border-bottom: 1px solid var(--rule); }
.acknowledgement h2 { font-size: 1.85rem; }
.acknowledgement p { max-width: 840px; margin: 14px 0 0; color: #344357; }
footer { min-height: 130px; padding: 35px 0; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .78rem; }

@media (max-width: 850px) {
  nav { display: none; }
  .paper-grid { grid-template-columns: 1fr; }
  .metadata { max-width: 560px; }
  .results-strip { grid-template-columns: repeat(2, 1fr); }
  .paper-section { grid-template-columns: 1fr; gap: 14px; }
  .section-number::after { display: inline-block; margin: 0 0 4px 10px; }
}
@media (max-width: 560px) {
  main, footer { width: 100%; }
  article { border-inline: 0; }
  .topbar { padding-inline: 12px; }
  .identity small { display: none; }
  .paper-header, .paper-section { padding-inline: 18px; }
  h1 { font-size: 2.45rem; }
  .results-strip { grid-template-columns: 1fr 1fr; }
  .results-strip div { min-height: 105px; padding: 18px; }
  .finding-grid { grid-template-columns: 1fr; }
  .dark-figure, .plot-figure { padding: 10px; }
  footer { padding-inline: 18px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
