/* Hallmark · shape: Race track (two live lanes to a finish line, then a tale of the tape) · genre: playful · theme: custom · job: attend · idea: "the race is the picture: each lane fills with the GTA VI sunset only as far as it has really got" · vibe: "Leonida night, sunset ramp, fight-card bluster"
 * paper: oklch(16.4% 0.029 286) · accent: oklch(73.5% 0.171 354) · display: Antonio 700 · body: Hanken Grotesk · hero: the question in condensed caps over two full-width lanes that uncover the sunset up to each live score, the figure riding each tip · nav: edge-aligned, wordmark and live sync time · footer: colophon block · imagery: none, the data is the picture · signature: the sunset lanes · brand: GTA VI (spec 2026-11-23) · copy: verbatim
 * axes: dark/display-condensed/chromatic-pink · posture: full-palette, four sunset roles (pink for action and the lane start, coral, peach, sun yellow at the finish), one drenched band · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V5 · weakest: E, the riding figures lean on container units; without them they sit at the lane start and still read */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --nav-height: 72px;
  --lane-bar: 20px;
  --ramp-sunset: linear-gradient(90deg, var(--color-accent) 0%, var(--color-coral) 40%, var(--color-peach) 70%, var(--color-sun) 100%);
}

h1, h2 { text-transform: uppercase; line-height: 1; letter-spacing: var(--tracking-display); }
a:hover { text-decoration-color: var(--color-accent); }

.skip { position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-modal); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); transform: translateY(-300%); }
.skip:focus-visible { transform: none; }

/* nav */
.nav { border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--nav-height); }
.nav__mark { font: 700 var(--text-xl)/1 var(--font-display); letter-spacing: var(--tracking-display); text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav__sync { font-size: var(--text-sm); color: var(--color-muted); }
.nav__sync time { color: var(--color-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid transparent; border-radius: var(--radius-pill); font: 600 var(--text-md)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-coral); }
.btn--quiet { border-color: var(--color-muted); color: var(--color-ink); background: transparent; }
.btn--quiet:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* hero */
.hero { padding-block: var(--space-2xl) var(--section-gap-s); }
.hero__top { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); gap: var(--gap-columns); align-items: end; }
.hero h1 { max-width: 22ch; font-size: var(--text-display); }
.hero__side { display: grid; gap: var(--space-lg); padding-bottom: var(--space-xs); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* the race */
.track { position: relative; display: grid; gap: var(--space-xl); margin-top: var(--space-2xl); padding-block: var(--space-xl) var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.lane { container-type: inline-size; }
.lane__figure { width: max-content; padding-bottom: var(--space-sm); font: 700 var(--text-figure)/0.9 var(--font-display); letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; transform: translateX(clamp(0px, calc(var(--p, 0) * 1cqi - 50%), calc(100cqi - 100%))); transition: transform var(--dur-long) var(--ease-out); }
.lane__unit { padding-left: var(--space-2xs); font-size: 0.45em; color: var(--color-muted); }
.lane__bar { position: relative; height: var(--lane-bar); overflow: hidden; border-radius: var(--radius-pill); background: var(--ramp-sunset); }
.lane__cover { position: absolute; inset: 0; background: var(--color-paper-3); transform: scaleX(calc(1 - var(--p, 0) / 100)); transform-origin: right center; transition: transform var(--dur-long) var(--ease-out); }
.lane__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-sm); padding-top: var(--space-sm); color: var(--color-muted); }
.lane__meta strong { color: var(--color-ink); font-weight: 600; }
.chip { padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-size: var(--text-sm); font-weight: 600; }
.finish { position: absolute; inset-block: 0; right: 0; padding-top: var(--space-xs); padding-right: var(--space-sm); border-right: 2px dashed var(--color-sun); color: var(--color-sun); font-size: var(--text-sm); font-weight: 600; pointer-events: none; }
.track__gap { padding-top: var(--space-xl); font: 700 var(--text-display-s)/1 var(--font-display); letter-spacing: var(--tracking-display); text-transform: uppercase; color: var(--color-sun); }

/* tale of the tape */
.tape { padding-block: var(--space-3xl) var(--section-gap-s); }
.tape h2 { max-width: none; padding-bottom: var(--space-2xl); font-size: var(--text-section); text-align: center; }
.tape__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tape__table tr > :first-child { text-align: right; }
.tape__table tr > :nth-child(2) { width: 22%; text-align: center; }
.tape__table tr > :last-child { text-align: left; }
.tape__table thead th { padding-bottom: var(--space-lg); font: 700 var(--text-xl)/1 var(--font-display); text-transform: uppercase; }
.tape__table thead th:first-child { color: var(--color-accent); }
.tape__table thead th:last-child { color: var(--color-sun); }
.tape__table tbody td, .tape__table tbody th { padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); vertical-align: baseline; }
.tape__table tbody tr:last-child > * { border-bottom: var(--rule-hair) solid var(--color-rule); }
.tape__table tbody th { font-weight: 500; color: var(--color-muted); }
.tape__table b { font: 700 var(--text-display-s)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.tape__table td span { color: var(--color-muted); }
.tape__table tbody td:first-child b { color: var(--color-accent); }
.tape__table tbody td:last-child b { color: var(--color-sun); }

/* the settings band */
.rig { padding-block: var(--section-gap-s); background: var(--ramp-sunset); color: var(--color-accent-ink); }
.rig__statement { max-width: 20ch; font: 700 var(--text-display)/1 var(--font-display); letter-spacing: var(--tracking-display); text-transform: uppercase; overflow-wrap: break-word; min-width: 0; }
.rig__note { padding-top: var(--space-lg); font-size: var(--text-lead); font-weight: 600; }
.rig a { color: var(--color-accent-ink); }

/* footer */
.foot { padding-block: var(--space-3xl); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: baseline; }
.foot__mark { font: 700 var(--text-2xl)/1 var(--font-display); letter-spacing: var(--tracking-display); text-transform: uppercase; }
.foot__legal { max-width: 70ch; color: var(--color-muted); }

@media (max-width: 60rem) {
  .hero__top, .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__side { padding-top: var(--space-md); }
  .tape__table tr > :nth-child(2) { width: 28%; }
}
@media (max-width: 40rem) {
  .nav__sync { display: none; }
  .tape__table b { display: block; }
  .tape__table td span { font-size: var(--text-sm); }
  .tape__table tbody th { font-size: var(--text-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: background-color var(--dur-short) linear; }
  .lane__figure, .lane__cover { transition: none; }
}
