:root {
  --navy: #062b5f;
  --blue: #145aa0;
  --red: #ef2f4f;
  --ink: #10243f;
  --muted: #64748b;
  --mist: #eef6fb;
  --line: #d8e5ef;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-hero {
  min-height: 92vh;
  padding: 24px clamp(18px, 4vw, 56px) 72px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(90deg, rgba(6, 43, 95, 0.88), rgba(6, 43, 95, 0.54) 42%, rgba(6, 43, 95, 0.08)),
    url("public/race-eagle.jpg") center / cover;
  color: var(--white);
}

.site-nav {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 76px;
  height: 76px;
  display: block;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.hero-content {
  width: min(1180px, 100%);
  margin: auto auto 0;
  padding-top: 120px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-hero .kicker {
  color: #ff6b83;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.8rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.intro {
  max-width: 610px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
}

.hero-action {
  display: inline-grid;
  gap: 10px;
}

.hero-action span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 800;
}

.primary-button {
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  box-shadow: 0 18px 38px rgba(239, 47, 79, 0.28);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #d92140;
  border-color: #d92140;
}

.race-facts {
  width: min(1180px, calc(100% - 36px));
  margin: -42px auto 0;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 70px rgba(16, 36, 63, 0.16);
}

.agenda-heading {
  padding: 26px;
  border-right: 1px solid var(--line);
  background: var(--mist);
}

.agenda-heading span,
.details span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agenda-heading strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
}

.agenda-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.agenda-list li {
  min-height: 98px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.agenda-list li:last-child {
  border-bottom: 0;
}

.agenda-list time {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agenda-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

.agenda-list span {
  color: var(--muted);
}

.agenda-link {
  display: block;
  width: fit-content;
  margin-top: 6px;
  color: var(--blue);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.race-intro {
  width: min(1180px, calc(100% - 36px));
  margin: 96px auto 54px;
  display: grid;
  gap: 28px;
}

.intro-heading {
  max-width: 920px;
}

.race-intro h2,
.final-call h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.intro-copy p {
  margin-bottom: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
  color: var(--muted);
  font-size: 1.12rem;
}

.docking-note {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 54px;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: 8px;
  background: #f8fbfd;
}

.docking-note h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.docking-note p:last-child {
  max-width: 850px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.photo-grid {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 84px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.photo-grid figure {
  margin: 0;
  min-height: 380px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mist);
}

.photo-grid .wide-photo {
  grid-column: 1 / -1;
  min-height: 540px;
}

.photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.wide-photo img {
  object-position: 56% center;
}

.details {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 96px;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.details-heading h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.details-list {
  display: grid;
  gap: 14px;
}

.details article {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.details article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.details h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.details p {
  margin-bottom: 0;
  color: var(--muted);
}

.final-call {
  padding: clamp(48px, 8vw, 86px) clamp(18px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: var(--navy);
  color: var(--white);
}

.final-call h2 {
  color: var(--white);
}

.primary-button.light {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

.primary-button.light:hover,
.primary-button.light:focus-visible {
  border-color: var(--mist);
  background: var(--mist);
}

@media (max-width: 860px) {
  .site-hero {
    min-height: 760px;
    background:
      linear-gradient(180deg, rgba(6, 43, 95, 0.9), rgba(6, 43, 95, 0.5) 58%, rgba(6, 43, 95, 0.18)),
      url("public/race-eagle.jpg") center / cover;
  }

  .site-nav {
    align-items: flex-start;
  }

  .brand span {
    display: none;
  }

  .race-facts,
  .intro-copy,
  .photo-grid,
  .details,
  .final-call {
    grid-template-columns: 1fr;
  }

  .agenda-heading {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .agenda-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .photo-grid .wide-photo,
  .photo-grid figure {
    min-height: 340px;
  }

  .final-call {
    justify-content: stretch;
  }
}

@media (max-width: 560px) {
  .site-hero {
    min-height: 700px;
    padding-top: 18px;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }

  .primary-button {
    width: 100%;
  }

  .site-nav {
    flex-direction: column;
  }

  .hero-content {
    padding-top: 70px;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .photo-grid .wide-photo,
  .photo-grid figure {
    min-height: 280px;
  }
}
