/* Heat15 placeholder: the tokens of web/DESIGN.md, nothing else. Fonts are self-hosted (fonts/), no request leaves the origin. */

@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/archivo-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/archivo-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 800; src: url(fonts/archivo-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 800; src: url(fonts/archivo-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ground: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #F4F5F7;
  --text: #111827;
  --text-muted: #5B6472;
  --hairline: #E6E8EC;
  --control-border: #8A93A0;
  --brand: #3B2F6B;
  --brand-2: #5B4A96;
  --on-brand: #FFFFFF;
  --accent: #9BE15D;
  --on-accent: #1A2E12;
  --shale: #CDB391;
  --shale-lane: #B9A07E;
  --infield: #DCE7D2;
  --track-line: #111827;
  --helmet-1: #C62828;
  --helmet-2: #1565C0;
  --helmet-3: #FFFFFF;
  --helmet-4: #F9A825;
  --on-helmet-light: #000000;
  --on-helmet-dark: #FFFFFF;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--text);
  font: 400 1rem/1.5 var(--font-body);
}

/* the brand bar: the one dark surface, as the rail is in the game */
.bar { background: var(--brand); color: var(--on-brand); }
.bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mark { font: 800 1.25rem/1 var(--font-display); letter-spacing: -0.01em; color: var(--on-brand); text-decoration: none; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 9999px; background: var(--surface); border: 1px solid var(--control-border); color: var(--text); font: 600 0.75rem/1 var(--font-body); }

main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-content: start; }
.hero { grid-column: span 7; }
.steps { grid-column: span 5; }
.track { grid-column: span 12; }

.panel { margin: 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 16px; border-bottom: 1px solid var(--hairline); }
.panel-head h2 { margin: 0; font: 700 0.9375rem/1.2 var(--font-display); }
.panel-head .caption { font: 500 0.75rem/1.2 var(--font-body); color: var(--text-muted); }
.panel-body { padding: 24px 16px; }

h1 { margin: 0 0 8px; font: 800 clamp(2.5rem, 2rem + 2.4vw, 3rem)/1 var(--font-display); letter-spacing: -0.01em; }
.soon { margin: 0 0 24px; font: 500 1rem/1.2 var(--font-body); color: var(--brand); }
.lead { margin: 0 0 16px; font-size: 1.125rem; line-height: 1.5; max-width: 38em; }
.panel-body p { margin: 0 0 12px; max-width: 38em; }
.panel-body p:last-child { margin-bottom: 0; }
.muted { color: var(--text-muted); }

.rows { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.rows li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.rows li:last-child { border-bottom: 0; }
.rows li::before { counter-increment: step; content: counter(step); grid-row: span 2; font: 800 1.125rem/1.2 var(--font-display); color: var(--brand); font-variant-numeric: tabular-nums; }
.rows b { font: 700 0.9375rem/1.2 var(--font-display); }
.rows span { color: var(--text-muted); }

.track svg { display: block; width: 100%; height: auto; background: var(--surface-2); }
.track figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 12px 16px; border-top: 1px solid var(--hairline); }
.track figcaption p { margin: 0; color: var(--text-muted); }

/* the track drawing: the shale colours and the helmets of the replay, here only as decoration with a text equivalent in the caption */
.infield { fill: var(--infield); }
.edge { fill: none; stroke: var(--track-line); stroke-width: 96; }
.shale { fill: none; stroke: var(--shale); stroke-width: 90; }
.lane-line { fill: none; stroke: var(--shale-lane); stroke-width: 2; stroke-dasharray: 10 10; }
.start-line { stroke: var(--track-line); stroke-width: 3; }
.infield-text { font-family: var(--font-display); font-weight: 800; fill: var(--track-line); text-anchor: middle; }
.disc { stroke: var(--track-line); stroke-width: 2; }
.disc-a { fill: var(--helmet-1); }
.disc-b { fill: var(--helmet-2); }
.disc-c { fill: var(--helmet-3); }
.disc-d { fill: var(--helmet-4); }

/* the four riders stand on their gates; where motion is welcome they ride their own lanes abreast, the lengths of the lanes setting the times */
@media (prefers-reduced-motion: no-preference) {
  @supports (offset-path: path("M0 0")) {
    .rider { transform: none; offset-rotate: 0deg; animation: ride linear infinite; }
    .rider-a { offset-path: path("M 252 297 H 600 A 97 97 0 0 0 600 103 H 200 A 97 97 0 0 0 200 297 H 252 Z"); animation-duration: 15.7s; }
    .rider-b { offset-path: path("M 252 319 H 600 A 119 119 0 0 0 600 81 H 200 A 119 119 0 0 0 200 319 H 252 Z"); animation-duration: 17.2s; }
    .rider-c { offset-path: path("M 252 341 H 600 A 141 141 0 0 0 600 59 H 200 A 141 141 0 0 0 200 341 H 252 Z"); animation-duration: 18.7s; }
    .rider-d { offset-path: path("M 252 363 H 600 A 163 163 0 0 0 600 37 H 200 A 163 163 0 0 0 200 363 H 252 Z"); animation-duration: 20.3s; }
  }
}
@keyframes ride { from { offset-distance: 0%; } to { offset-distance: 100%; } }

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-2); }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.bar a:focus-visible { outline-color: var(--on-brand); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font: 700 1rem/1 var(--font-display); text-decoration: none; }
.button:hover { color: var(--on-accent); background: #8FD650; }
.button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

footer { max-width: 1200px; width: 100%; margin: 0 auto; padding: 8px 20px 24px; color: var(--text-muted); font-size: 0.875rem; }
footer p { margin: 0; }

@media (max-width: 1099px) {
  .hero, .steps { grid-column: span 12; }
}
@media (max-width: 719px) {
  main { padding: 16px 12px; gap: 12px; }
  .bar-inner, footer { padding-left: 12px; padding-right: 12px; }
  .panel-body { padding: 20px 16px; }
}
