:root {
  --asphalt: #101114;
  --asphalt-2: #181b20;
  --panel: #1e2228;
  --line: rgba(232, 232, 224, 0.16);
  --cream: #e8e8e0;
  --muted: #b7b6ad;
  --red: #c41c20;
  --gold: #d6aa40;
  --navy: #10244e;
  --grass: #2c4a28;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --header: 4.5rem;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: #111;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus {
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.75rem 6vw;
  background: rgba(16, 17, 20, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  background-color: #141414;
  background-image:
    linear-gradient(45deg, var(--cream) 25%, transparent 25%),
    linear-gradient(-45deg, var(--cream) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--cream) 75%),
    linear-gradient(-45deg, transparent 75%, var(--cream) 75%);
  background-size: 1.125rem 1.125rem;
  background-position: 0 0, 0 0.5625rem, 0.5625rem -0.5625rem, -0.5625rem 0;
  box-shadow: inset 0 0 0 2px var(--red);
}

.brand strong,
.brand em {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  letter-spacing: 0.08em;
  line-height: 0.9;
}

.brand strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.brand em {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
}

.site-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--cream);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: grid;
  align-items: end;
  padding: 8vh 6vw 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(196, 28, 32, 0.28), transparent 42%),
    linear-gradient(180deg, #16181c 0%, #0c0d10 70%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0.7rem;
  background: repeating-linear-gradient(
    90deg,
    var(--cream) 0 1.4rem,
    #111 1.4rem 2.8rem
  );
}

.kicker,
.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.slogan {
  margin: 0.3rem 0 0.9rem;
  max-width: 12em;
  color: var(--cream);
  font-family: "Rock Salt", cursive;
  font-size: clamp(2.5rem, 6.4vw, 4.8rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--red);
  color: white;
}

.button.ghost {
  border-color: var(--line);
  color: var(--cream);
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
}

.stats div {
  padding: 1.3rem 1rem 1.2rem 6vw;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wrap {
  width: min(1120px, calc(100% - 12vw));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section h2,
.page-hero h1,
.feature h2,
.seat h3,
.race h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.95;
}

.page-hero {
  padding: 4.5rem 0 1rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6.5rem);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.feature {
  background:
    linear-gradient(160deg, rgba(196, 28, 32, 0.95), rgba(120, 16, 20, 0.92)),
    var(--red);
  color: white;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.feature h2 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(3rem, 6vw, 4.8rem);
}

.feature p {
  margin-top: 0;
}

.gold-rule {
  width: 4rem;
  height: 4px;
  background: var(--gold);
  border: 0;
  margin: 0.8rem 0;
}

.grid-3,
.grid-2,
.race-list,
.seat-grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2,
.seat-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.seat,
.race,
.timeline {
  background: var(--asphalt-2);
  border: 1px solid var(--line);
  padding: 1.25rem 1.3rem 1.4rem;
}

.card h3,
.seat h3,
.race h3 {
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
}

.card p,
.seat p,
.race p,
.timeline p {
  margin: 0;
  color: var(--muted);
}

.card strong,
.meta {
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.track-map {
  background: #1c3320;
  border: 1px solid var(--line);
  padding: 0;
}

.track-stack {
  position: relative;
  background: #1c3320;
}

.track-stack img,
.track-stack svg {
  display: block;
  width: 100%;
  height: auto;
}

.track-stack .sections {
  position: absolute;
  inset: 0;
}

.section-hit {
  fill: rgba(214, 170, 64, 0.34);
  stroke: rgba(232, 232, 224, 0.55);
  stroke-width: 1;
  cursor: pointer;
}

.section-hit:hover,
.section-hit.is-on {
  fill: rgba(196, 28, 32, 0.78);
}

.section-readout {
  margin: 0.8rem 0 0;
  min-height: 1.4em;
  color: var(--cream);
}

.track-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.track-map text {
  fill: var(--cream);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.chart {
  margin: 0 0 1.5rem;
  background: #243c22;
  border: 1px solid var(--line);
  padding: 1rem 1rem 0.6rem;
}

.chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart text {
  fill: var(--cream);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.chart figcaption {
  margin: 0.6rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.seat-count {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.specs {
  width: 100%;
  border-collapse: collapse;
}

.specs th,
.specs td {
  text-align: left;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.specs th {
  width: 34%;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.race-list {
  gap: 0;
  border: 1px solid var(--line);
}

.race {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.race:last-child {
  border-bottom: 0;
}

.race time {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.race h3 {
  font-size: 2rem;
  margin: 0;
}

.flag {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--muted);
}

.race.featured {
  background: #241416;
}

.timeline ol {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 0;
}

.pylon {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: #07080a;
  border: 1px solid var(--line);
  text-align: center;
}

.pylon div {
  padding: 0.8rem 0.2rem 0.7rem;
  border-right: 1px solid #2a2d33;
}

.pylon div:last-child {
  border-right: 0;
}

.pylon span {
  display: block;
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

.pylon strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.sponsors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.sponsors span {
  display: grid;
  place-items: center;
  min-height: 4.5rem;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  padding: 2.5rem 6vw 2rem;
  border-top: 1px solid var(--line);
  background: #0c0d10;
}

.site-footer strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-content: start;
  justify-content: end;
}

.site-footer a {
  color: var(--cream);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.fine {
  grid-column: 1 / -1;
  font-size: 0.85rem;
}

.missing {
  min-height: 70vh;
  display: grid;
  align-content: center;
}

@media (max-width: 900px) {
  .stats,
  .grid-3,
  .sponsors,
  .pylon {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats div {
    padding-left: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .split,
  .grid-2,
  .seat-grid,
  .site-footer,
  .race {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: start;
  }

  .pylon {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #101114;
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 6vw 1rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .slogan {
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .live-top,
  .rules-layout,
  .cue-list li {
    grid-template-columns: 1fr;
  }
}

.live-shell {
  padding-top: 1.5rem;
}

.live-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.live-top h1,
.rules-layout h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 0.9;
  text-transform: uppercase;
}

.flag-lights {
  display: flex;
  gap: 0.45rem;
}

.lamp {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #2a2d32;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.lamp.green.is-on {
  background: #2ea043;
  box-shadow: 0 0 12px #2ea043;
}

.lamp.yellow.is-on {
  background: #f5c518;
  box-shadow: 0 0 12px #f5c518;
}

.lamp.yellow.is-flash {
  animation: flag-blink 0.7s steps(1) infinite;
}

.lamp.red.is-on {
  background: #c41c20;
  box-shadow: 0 0 12px #c41c20;
}

@keyframes flag-blink {
  50% { opacity: 0.25; }
}

.live-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  grid-column: 1 / -1;
  margin: 0;
}

.live-stats div {
  min-width: 5rem;
}

.live-stats dt {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.live-status,
.live-weather,
.cue-clock {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.live-map {
  background: #1c3320;
  border: 1px solid var(--line);
}

.live-map svg {
  display: block;
  width: 100%;
  height: 72vh;
}

.tower-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.tower {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.tower caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.tower th,
.tower td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.tower th {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tower .num {
  font-family: var(--font-display);
  font-weight: 800;
}

.tower tr.is-pace {
  background: rgba(214, 170, 64, 0.12);
}

.tower tr.is-retired {
  opacity: 0.45;
}

.tv-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #8eb6d4;
  border: 1px solid var(--line);
}

.tv-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.tv-name {
  position: absolute;
  right: 0.8rem;
  bottom: 0.6rem;
  margin: 0;
  padding: 0.15rem 0.45rem;
  background: rgba(8, 12, 18, 0.72);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.rule-list {
  display: grid;
  gap: 0.25rem;
}

.rule-list button {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  padding: 0.55rem 0;
  cursor: pointer;
}

.rule-list button.is-on,
.rule-list button:hover {
  color: var(--cream);
}

.rule-body {
  white-space: pre-wrap;
}

.cue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
}

.cue-list li {
  display: grid;
  grid-template-columns: 8rem 1.4fr 1.6fr auto;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.cue-list li:last-child {
  border-bottom: 0;
}

.cue-list li.is-off {
  opacity: 0.45;
}

.cue-list strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .live-top,
  .rules-layout,
  .cue-list li {
    grid-template-columns: 1fr;
  }

  .live-map svg {
    height: 58vh;
  }
}
