:root {
  --ink: #123039;
  --muted: #5e7379;
  --paper: #fbfcfb;
  --panel: #ffffff;
  --line: #d8e3e2;
  --blue: #166c91;
  --blue-dark: #0e4d68;
  --green: #2f8d62;
  --orange: #ef7d32;
  --sun: #f8c75a;
  --shadow: 0 18px 50px rgba(18, 48, 57, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(16px, 3.5vw, 44px);
  background: rgba(251, 252, 251, 0.88);
  border-bottom: 1px solid rgba(216, 227, 226, 0.75);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 0.9rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 3px;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 2px;
}

.site-nav a:hover {
  color: var(--blue);
}

.header-action,
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
}

.header-action {
  padding: 0 15px;
  background: var(--orange);
  color: #fff;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 96px clamp(18px, 5vw, 58px) 72px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 33, 42, 0.84) 0%, rgba(7, 33, 42, 0.56) 42%, rgba(7, 33, 42, 0.12) 100%),
    linear-gradient(0deg, rgba(7, 33, 42, 0.5), rgba(7, 33, 42, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

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

h1 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 6.2vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 580px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.98rem, 1.5vw, 1.16rem);
}

.hero-actions,
.button-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  padding: 0 16px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--orange);
  color: #fff;
}

.button.secondary {
  background: var(--blue);
  color: #fff;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero-strip {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 3.5vw, 44px);
  bottom: 0;
  left: clamp(18px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
}

.hero-strip span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-right: 1px solid var(--line);
  color: var(--blue-dark);
  font-weight: 900;
  text-align: center;
}

.hero-strip span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(48px, 7vw, 82px) clamp(18px, 5vw, 58px);
}

.band {
  background: #eef6f2;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 14px;
}

.section-heading p,
.two-column p,
.contact-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.feature-grid,
.race-grid,
.timeline {
  display: grid;
  gap: 14px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.race-card,
.timeline article,
.run-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(18, 48, 57, 0.08);
}

.feature-card {
  padding: 20px;
}

.feature-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e8f2ef;
  color: var(--green);
  font-weight: 900;
}

.feature-card p,
.race-card p,
.timeline p {
  color: var(--muted);
}

.feature-card a {
  color: var(--blue);
  font-weight: 900;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: clamp(22px, 5vw, 48px);
}

.run-panel {
  padding: 10px;
}

.run-detail {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.run-detail strong {
  color: var(--blue-dark);
}

.run-detail span {
  color: var(--muted);
}

.notice {
  margin: 10px;
  padding: 13px 14px;
  border-radius: var(--radius);
  background: #fff4e9;
  color: #8a4517;
  font-weight: 800;
}

.activity-panel {
  margin-top: 28px;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item,
.lead-callout {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.activity-item {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.activity-item p,
.lead-callout p {
  margin-bottom: 0;
  color: var(--muted);
}

.activity-day {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.lead-callout {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 14px;
  background: #f7fbff;
  border-color: #c8dfea;
}

.race-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.race-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
}

.race-card.mothers {
  border-top: 8px solid var(--orange);
}

.race-card.harvest {
  border-top: 8px solid var(--green);
}

.race-card ul {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.race-card li {
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-weight: 700;
}

.race-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline article {
  padding: 20px;
}

.timeline span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 900;
}

.involved-layout {
  align-items: start;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.link-list strong {
  color: var(--blue-dark);
}

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

.contact-section {
  padding-top: 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 22px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--ink);
  color: #fff;
}

.contact-card .eyebrow {
  color: var(--sun);
}

.contact-card p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 58px);
  background: #092630;
  color: #fff;
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 67px 14px auto 14px;
    display: none;
    justify-self: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .header-action {
    display: none;
  }

  .feature-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .brand small {
    display: none;
  }

  .hero {
    min-height: 82svh;
    padding-top: 88px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
  }

  .hero-content {
    width: 100%;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(7, 33, 42, 0.88) 0%, rgba(7, 33, 42, 0.6) 55%, rgba(7, 33, 42, 0.24) 100%);
  }

  .hero-actions .button,
  .button-row .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-strip {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: 24px;
  }

  .hero-strip span {
    min-height: 52px;
    border-bottom: 1px solid var(--line);
    font-size: 0.8rem;
  }

  .hero-strip span:nth-child(2n) {
    border-right: 0;
  }

  .race-grid {
    grid-template-columns: 1fr;
  }

  .run-detail {
    grid-template-columns: 1fr;
  }

  .activity-item,
  .lead-callout {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}
