:root {
  --ink: #111111;
  --muted: #626262;
  --paper: #f7f3ea;
  --paper-2: #fffaf0;
  --white: #ffffff;
  --charcoal: #151515;
  --line: rgba(17,17,17,.14);
  --accent: #d98732;
  --accent-dark: #a95d1e;
  --green: #2d4a32;
  --radius: 26px;
  --shadow: 0 18px 60px rgba(0,0,0,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247,243,234,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-link { display: inline-flex; align-items: center; gap: 12px; }
.logo-link img { width: 130px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(17,17,17,.72);
}
.nav-links a:hover { background: rgba(0,0,0,.07); color: var(--ink); }
.nav-links .nav-cta { background: var(--ink); color: var(--white); }
.nav-links .nav-cta:hover { background: var(--accent-dark); color: var(--white); }

.hero {
  min-height: 78vh;
  display: grid;
  place-items: end start;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #111;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.38) 46%, rgba(0,0,0,.08)), var(--hero-image);
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.01);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(0deg, rgba(247,243,234,1), rgba(247,243,234,0));
  z-index: -1;
}
.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 118px;
  color: #fff;
}
.hero-logo { width: min(260px, 70vw); margin-bottom: 38px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1, .page-hero h1 {
  max-width: 900px;
  margin: 22px 0 18px;
  font-size: clamp(48px, 8vw, 112px);
  line-height: .88;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.hero p, .page-hero p {
  max-width: 690px;
  margin: 0;
  font-size: clamp(18px, 2.1vw, 25px);
  color: rgba(255,255,255,.84);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--accent); color: #151515; }
.button.primary:hover { background: #eda24e; }
.button.dark { background: var(--ink); color: #fff; }
.button.dark:hover { background: var(--accent-dark); }
.button.ghost { border-color: rgba(255,255,255,.34); color: #fff; background: rgba(255,255,255,.08); }
.button.ghost:hover { background: rgba(255,255,255,.16); }
.button.light { background: #fff; color: var(--ink); }

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}
.section.tight { padding: 54px 0; }
.section-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.section-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: .96;
  letter-spacing: -.055em;
}
.section-lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.event-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.event-row {
  display: grid;
  grid-template-columns: 1.25fr .75fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.event-row h3 { margin: 0; font-size: clamp(24px, 3vw, 40px); letter-spacing: -.04em; line-height: 1; }
.event-row p { margin: 9px 0 0; color: var(--muted); max-width: 640px; }
.event-meta { font-weight: 900; color: rgba(17,17,17,.68); }

.feature-band {
  width: 100%;
  min-height: 560px;
  display: grid;
  align-items: end;
  background-image: linear-gradient(0deg, rgba(0,0,0,.74), rgba(0,0,0,.2)), var(--band-image);
  background-size: cover;
  background-position: center;
  color: #fff;
  margin: 28px 0 0;
}
.feature-band-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0;
}
.feature-band h2 { margin: 0; max-width: 850px; font-size: clamp(42px, 7vw, 92px); line-height: .9; letter-spacing: -.065em; }
.feature-band p { max-width: 650px; margin: 18px 0 0; color: rgba(255,255,255,.82); font-size: 20px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.info-card {
  background: rgba(255,255,255,.52);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.info-card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.025em; }
.info-card p { margin: 0; color: var(--muted); }

.page-hero {
  position: relative;
  isolation: isolate;
  min-height: 500px;
  display: grid;
  align-items: end;
  color: #fff;
  background: #111;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.2)), var(--hero-image);
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.page-hero-content { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 80px 0; }

.race-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.race-card {
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(0,0,0,.09);
  border: 1px solid rgba(0,0,0,.08);
}
.race-card-img {
  height: 320px;
  background-image: linear-gradient(0deg, rgba(0,0,0,.2), rgba(0,0,0,0)), var(--card-image);
  background-size: cover;
  background-position: center;
}
.race-card-body { padding: 28px; }
.race-card h2 { margin: 0; font-size: 34px; letter-spacing: -.045em; line-height: 1; }
.race-card p { color: var(--muted); }

.race-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}
.copy-block {
  background: rgba(255,255,255,.54);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 18px;
}
.copy-block h2 { margin: 0 0 12px; font-size: 32px; letter-spacing: -.04em; }
.copy-block p, .copy-block li { color: var(--muted); font-size: 17px; }
.copy-block ul { margin-bottom: 0; }
.sidebar-card {
  position: sticky;
  top: 98px;
  background: var(--ink);
  color: #fff;
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.sidebar-card h3 { margin: 0; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.sidebar-card p { color: rgba(255,255,255,.72); }
.sidebar-meta { display: grid; gap: 12px; margin: 24px 0; }
.sidebar-meta div { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.sidebar-meta strong { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.48); }
.sidebar-meta span { font-weight: 850; }

.footer {
  margin-top: 40px;
  background: var(--ink);
  color: #fff;
}
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}
.footer img { width: 154px; }
.footer p { color: rgba(255,255,255,.62); max-width: 520px; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 800; color: rgba(255,255,255,.72); }
.footer-links a:hover { color: #fff; }

@media (max-width: 860px) {
  .nav-wrap { min-height: auto; padding: 16px 0; align-items: flex-start; flex-direction: column; }
  .nav-links { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .hero { min-height: 720px; }
  .hero-content { padding: 70px 0 110px; }
  .event-row { grid-template-columns: 1fr; gap: 14px; }
  .grid-3, .race-card-grid, .race-detail-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: relative; top: auto; }
  .feature-band { min-height: 520px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
