/* The Standard — a pinned stage on the left, the record on the right, colours set per athlete by the page. */
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/IBMPlexMono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/IBMPlexMono-500.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --bg: #0f1a1c; --bg2: #1a2c30; --accent: #e0962e; --ink: #f0ece4; --soft: #a9b3ad;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; --sans: Onest, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
html, body { overflow-x: clip; }
body { min-height: 100svh; color: var(--ink); font: 300 17px/1.6 var(--sans); background: var(--bg); transition: background .4s; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.eyebrow { margin: 0 0 8px; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.corner { position: fixed; z-index: 9; top: 12px; padding: 4px 8px; background: var(--bg); font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); text-decoration: none; }
.corner.back { left: 12px; }
.corner.back:hover, .corner.back:focus-visible { color: var(--ink); outline: none; }
.corner.athletes { right: 12px; display: flex; gap: 6px; align-items: center; }
.corner.athletes button { padding: 5px 9px; border: 1px solid transparent; border-radius: 999px; background: transparent; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); cursor: pointer; }
.corner.athletes button:hover, .corner.athletes button:focus-visible { color: var(--ink); outline: none; }
.corner.athletes button[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); }
.sheet { position: fixed; z-index: 9; right: 16px; bottom: 16px; padding: 11px 16px; border: 1px solid var(--accent); border-radius: 999px; background: var(--bg); color: var(--ink); font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.sheet:hover, .sheet:focus-visible { background: var(--accent); color: var(--bg); outline: none; }

/* ---------- the layout: stage pinned left, record scrolling right ---------- */
.layout { display: grid; grid-template-columns: minmax(300px, 42%) minmax(0, 1fr); align-items: start; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--bg); border-right: 1px solid rgba(255,255,255,.08); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.legend { position: absolute; left: 16px; bottom: 40px; font: 500 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); pointer-events: none; }
.sections { padding: 0 clamp(20px, 5vw, 80px) 40px clamp(20px, 4vw, 64px); }
.sections section { min-height: 78svh; padding: 18svh 0 10svh; display: grid; align-content: center; gap: 14px; max-width: 640px; border-top: 1px solid rgba(255,255,255,.06); transition: opacity .3s; }
.sections section:not(.active) { opacity: .62; }
.sections section.hero { min-height: 100svh; padding: 64px 0 40px; border-top: 0; max-width: none; grid-template-columns: minmax(0, 1fr); }
.sections h1 { font: 300 clamp(44px, 6vw, 88px)/.95 var(--sans); letter-spacing: -.035em; }
.sections h2 { font: 300 clamp(28px, 3.2vw, 44px)/1.05 var(--sans); letter-spacing: -.025em; }
.hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.5); margin-bottom: 26px; }
.hero .copy { display: grid; gap: 14px; max-width: 720px; }
.headline { display: grid; gap: 4px; }
.headline b, .big b { font: 500 clamp(48px, 7vw, 104px)/1 var(--mono); letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.headline span, .big span { font: 500 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.big { display: grid; gap: 6px; margin: 4px 0 6px; }
.body { max-width: 560px; color: #d8d3ca; text-wrap: pretty; }
dl.facts, dl.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 20px; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
dl.items { grid-template-columns: max-content 1fr; gap: 8px 22px; }
dl dt { font: 500 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
dl dd { font: 400 16px/1.4 var(--sans); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
table td { padding: 10px 12px 10px 0; border-top: 1px solid rgba(255,255,255,.08); vertical-align: baseline; }
table tr:first-child td { border-top: 0; }
table td.value { font: 500 18px/1.2 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
table td.place { color: var(--soft); text-align: right; padding-right: 0; white-space: nowrap; }
table tr.pr td { color: var(--ink); }
table tr.pr td.value { color: var(--accent); }
.coach { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; font-style: normal; max-width: 460px; }
.coach b { font: 500 18px/1.3 var(--sans); }
.coach span { color: var(--soft); font-size: 15px; }
.coach a { margin-top: 6px; font: 500 13px/1.4 var(--mono); color: var(--accent); text-decoration: none; }
.coach a:hover, .coach a:focus-visible { text-decoration: underline; outline: none; }
.colophon { grid-column: 2; padding: 10px clamp(20px, 5vw, 80px) 70px clamp(20px, 4vw, 64px); }
.colophon p { max-width: 760px; font: 400 12px/1.6 var(--mono); color: var(--soft); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .stage { position: sticky; top: 0; z-index: 5; height: 38svh; min-height: 260px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .legend { left: auto; right: 12px; bottom: 8px; text-align: right; }
  .sections { padding: 0 18px 30px; }
  .sections section { min-height: 60svh; padding: 10svh 0 6svh; }
  .sections section.hero { min-height: 0; padding: 22px 0 30px; }
  .colophon { grid-column: 1; padding: 10px 18px 90px; }
  .hero img { margin-bottom: 18px; }
  .corner.athletes { top: auto; bottom: 16px; left: 12px; right: auto; }
  .sheet { padding: 10px 13px; }
  table td:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sections section { transition: none; }
  body { transition: none; }
}
/* ---------- the stat sheet: the same record, printed ---------- */
@media print {
  html, body { background: #fff; color: #111; }
  .corner, .sheet, .stage, .legend, .hero img { display: none !important; }
  .layout { display: block; }
  .sections { padding: 0; }
  .sections section, .sections section.hero { min-height: 0; padding: 14px 0; opacity: 1 !important; border-top: 1px solid #ddd; break-inside: avoid; }
  .sections h1 { font-size: 34px; }
  .sections h2 { font-size: 20px; }
  .headline b, .big b { font-size: 34px; color: #111; }
  .eyebrow, .headline span, .big span, dl dt, table td.place, .coach span, .colophon p { color: #555; }
  .body { color: #222; }
  table td { border-color: #ddd; }
  table td:nth-child(4) { display: table-cell; }
  .coach { border-color: #ccc; }
  .coach a, table tr.pr td.value { color: #111; }
}
