:root {
  color-scheme: light;
  --sky: #55b7ff;
  --sky-deep: #128ee4;
  --sun: #ff9c4a;
  --road: #2b2d31;
  --line: #ffffff;
  --ink: #151412;
  --panel: #fffaf0;
  --paper: #f2e5c7;
  --grass: #8abf52;
  --muted: #605d56;
  --shadow: 0 24px 70px rgba(21, 20, 18, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(85, 183, 255, 0.22), transparent 320px),
    repeating-linear-gradient(115deg, transparent 0 42px, rgba(255, 156, 74, 0.08) 42px 44px),
    #f7eedb;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.topline,
main,
.footer {
  position: relative;
  z-index: 1;
}

.topline {
  width: min(1220px, calc(100% - 32px));
  margin: 18px auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 3px solid var(--ink);
  background: rgba(255, 250, 240, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 8px 8px 0 rgba(21, 20, 18, 0.16);
  position: sticky;
  top: 14px;
  z-index: 5;
}

.brand,
.nav,
.actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 1000;
}

.brand-wheel {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--sky);
  color: var(--ink);
  font-size: 0.78rem;
  box-shadow: inset 0 0 0 5px var(--panel);
}

.nav {
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
}

.nav a {
  padding: 9px 12px;
  border: 2px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper);
}

main {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.race-hero {
  min-height: clamp(590px, 82vh, 790px);
  position: relative;
  overflow: hidden;
  border: 4px solid var(--ink);
  background: var(--sky);
  box-shadow: var(--shadow), 10px 10px 0 rgba(21, 20, 18, 0.16);
}

.race-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent, rgba(21, 20, 18, 0.72)),
    repeating-linear-gradient(90deg, transparent 0 88px, rgba(255, 255, 255, 0.8) 88px 150px, transparent 150px 210px);
  opacity: 0.95;
}

.race-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(247, 238, 219, 0.94), rgba(247, 238, 219, 0.46) 38%, rgba(247, 238, 219, 0.02) 72%),
    linear-gradient(0deg, rgba(21, 20, 18, 0.3), transparent 50%);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 6vw, 70px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sky-deep);
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.8rem, 12vw, 9.6rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead,
.route-card p,
.stats p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button,
.copy-button {
  min-height: 48px;
  border: 3px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 1000;
  box-shadow: 5px 5px 0 rgba(21, 20, 18, 0.18);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  padding: 0 20px;
}

.button.primary {
  background: var(--sun);
}

.button:hover,
.copy-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(21, 20, 18, 0.2);
}

.speed-board {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.ticker-box,
.portrait-card,
.route-card,
.stats article {
  border: 4px solid var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow), 7px 7px 0 rgba(21, 20, 18, 0.14);
}

.ticker-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  background:
    linear-gradient(135deg, var(--sky) 0 40%, transparent 40%),
    var(--panel);
}

.ticker-box span {
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
  color: var(--muted);
}

.ticker-box strong {
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  line-height: 0.95;
  word-break: break-word;
}

.copy-button {
  width: fit-content;
  padding: 0 18px;
}

.portrait-card {
  margin: 0;
  padding: 10px;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 3px solid var(--ink);
}

.portrait-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 2px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portrait-card figcaption strong {
  color: var(--sky-deep);
}

.route-card {
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(180deg, rgba(255, 156, 74, 0.18), transparent 42%),
    var(--panel);
}

.route-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lane-strip {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 4px solid var(--ink);
  background: var(--road);
  color: var(--line);
  overflow: hidden;
  box-shadow: 7px 7px 0 rgba(21, 20, 18, 0.14);
}

.lane-strip span {
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  font-size: clamp(1rem, 2.5vw, 1.55rem);
  font-weight: 1000;
  text-align: center;
  white-space: nowrap;
}

.lane-strip span + span {
  border-left: 3px dashed rgba(255, 255, 255, 0.72);
}

.stats {
  margin: 0 0 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stats article {
  min-height: 215px;
  padding: 24px;
}

.stats span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  font-weight: 1000;
}

.stats h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.footer {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
}

@media (max-width: 920px) {
  .topline,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .race-hero {
    min-height: 650px;
  }

  .race-hero::after {
    background:
      linear-gradient(0deg, rgba(247, 238, 219, 0.96), rgba(247, 238, 219, 0.52) 62%, rgba(247, 238, 219, 0.04)),
      linear-gradient(90deg, rgba(247, 238, 219, 0.34), transparent);
  }

  .speed-board,
  .stats {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    max-width: 430px;
  }

  .lane-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .topline,
  main,
  .footer {
    width: min(100% - 20px, 1220px);
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    padding: 8px 6px;
  }

  .hero-copy {
    padding: 22px;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.4rem);
  }

  .button {
    width: 100%;
  }

  .lane-strip {
    grid-template-columns: 1fr;
  }

  .lane-strip span + span {
    border-left: 0;
    border-top: 3px dashed rgba(255, 255, 255, 0.72);
  }
}
