@font-face {
  font-family: Oswald;
  src: url('/fonts/oswald-v57-bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffaf3;
  --ink: #171915;
  --muted: #595b52;
  --line: #d7d6ca;
  --accent: #d9240c;
  --tape: repeating-linear-gradient(-38deg, var(--accent) 0 26px, var(--paper) 26px 52px);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; border-top: 10px solid var(--accent); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
p { line-height: 1.6; }
figure { min-width: 0; }
.shell { max-width: 1280px; margin: auto; padding: 0 40px; }
.skip { position: absolute; left: 20px; top: -100px; background: var(--paper); padding: 16px; z-index: 10; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 2px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: Oswald, Impact, sans-serif; font-weight: 700; font-size: 30px; line-height: 1; }
.brand img { width: 62px; height: 62px; border-radius: 50%; }
.brand small { display: block; font-size: 10px; letter-spacing: .025em; margin-top: 7px; }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; min-height: 44px; }
.topbar nav, .organizer { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.topbar nav a:hover { color: var(--accent); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; line-height: 1.6; }
.section-heading > .eyebrow, .hero-copy > .eyebrow { color: var(--accent); }

.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 48px 0 38px; }
.hero-copy { min-width: 0; }
.hero h1 { font-family: Oswald, Impact, sans-serif; font-weight: 700; font-size: clamp(130px, 17vw, 224px); letter-spacing: -.055em; line-height: 1.05; margin: 7px 0 0; color: var(--accent); }
.hero-name { font-family: Oswald, Impact, sans-serif; font-size: clamp(25px, 3vw, 37px); line-height: 1.2; letter-spacing: -.025em; }
.hero-lead { font-size: 28px; font-weight: 750; line-height: 1.2; letter-spacing: -.04em; margin-top: 24px; }
.hero-text { max-width: 45ch; margin: 16px 0 24px; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 48px; padding: 15px 20px; background: var(--accent); color: #fff; border: 2px solid var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.button:hover { background: #ad1c09; border-color: #ad1c09; text-decoration: none; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 700; border-bottom: 1px solid currentColor; }
.photo-frame { position: relative; padding-bottom: 14px; background: var(--tape); }
.race-photo { aspect-ratio: 4/5; object-fit: cover; object-position: 54% center; }
.hero-badge { position: absolute; width: clamp(110px, 14vw, 180px); height: auto; right: 16px; bottom: 32px; border: 5px solid var(--paper); border-radius: 50%; transform: rotate(8deg); }
.hero-photo figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 10px; line-height: 1.6; margin-top: 12px; color: var(--muted); }

.next-race { display: grid; grid-template-columns: 1fr 1.35fr 1.5fr; gap: 20px; align-items: center; padding: 22px 24px; background: var(--accent); color: #fff; }
.next-race strong { font-family: Oswald, Impact, sans-serif; font-size: 29px; line-height: 1.25; }
.next-race a { font-size: 13px; font-weight: 650; line-height: 1.6; justify-self: end; }
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 630px; margin-bottom: 28px; }
.section-heading h2, .join h2 { font-family: Oswald, Impact, sans-serif; font-size: clamp(38px, 5vw, 60px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; margin: 12px 0 18px; }
.section-heading > p:last-child { color: var(--muted); font-size: 16px; }
.race-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.race-row { display: grid; grid-template-columns: 190px 1fr 180px; gap: 24px; align-items: center; padding: 25px 0; border-bottom: 1px solid var(--line); }
.race-date { font-size: 14px; font-weight: 700; line-height: 1.5; }
.race-date span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.race-info h3 { font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.race-info h3 a:hover { color: var(--accent); }
.race-info p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.race-info .race-disciplines { font-size: 11px; }
.race-link { color: var(--accent); font-size: 12px; line-height: 1.5; font-weight: 700; min-height: 44px; display: flex; align-items: center; justify-content: end; }
.race-link span[aria-hidden] { margin-left: 6px; }
.empty { padding: 28px 0 0; border-top: 2px solid var(--ink); }
.empty h3 { font-size: 23px; }
.empty p { margin-top: 10px; color: var(--muted); }
.empty a { margin-top: 12px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.about .section-heading { margin: 0; }
.large-text { font-size: 28px; line-height: 1.3; font-weight: 750; letter-spacing: -.03em; margin-bottom: 22px; }
.about-copy > p:not(.large-text) { color: var(--muted); font-size: 16px; }
.about-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.photo-pair img { aspect-ratio: 3/2; object-fit: cover; }
.photo-pair figcaption { font-size: 11px; line-height: 1.7; margin-top: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.photo-pair figcaption a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 650; }
.archive-list { margin-top: 36px; }
.history-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.button-outline { color: var(--accent); background: transparent; }
.button-outline:hover { background: var(--accent); color: #fff; }
.join { position: relative; margin-top: 64px; padding: 48px 42px; background: var(--ink); color: var(--paper); border: 0; }
.join::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: var(--tape); }
.join .eyebrow { color: #ff8e77; }
.join h2 { margin-bottom: 28px; }
.button-white { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button-white:hover { background: #fff; border-color: #fff; }
footer { padding: 35px 0; display: flex; align-items: start; justify-content: space-between; gap: 24px; }
footer .brand img { width: 52px; height: 52px; }
footer p, footer > a:last-child { font-size: 12px; line-height: 1.6; }
footer > a:last-child { display: flex; min-height: 44px; align-items: center; }
footer p a { text-decoration: underline; }
.notice { margin-top: 24px; padding: 16px; border: 2px solid var(--accent); font-size: 14px; }

@media (max-width: 950px) {
  .shell { padding: 0 24px; }
  .hero { gap: 28px; }
  .race-photo { aspect-ratio: 3/5; }
  .hero-name { font-size: 25px; }
  .race-row { grid-template-columns: 145px 1fr; gap: 16px; }
  .race-link { grid-column: 2; justify-content: start; }
  .next-race { grid-template-columns: 1fr 1.4fr; }
  .next-race a { grid-column: 2; justify-self: start; }
  .about { gap: 28px; }
  .topbar nav { gap: 18px; }
  footer { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .shell { padding: 0 20px; }
  .topbar { gap: 8px; flex-wrap: wrap; padding: 10px 0; }
  .brand { font-size: 28px; gap: 10px; }
  .brand img { width: 52px; height: 52px; }
  .brand small { font-size: 9px; }
  .topbar nav { order: 3; flex-basis: 100%; gap: 22px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 4px; }
  .topbar nav, .organizer { font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 28px; }
  .hero h1 { font-size: clamp(140px, 43vw, 240px); margin-top: 4px; }
  .hero-name { font-size: clamp(25px, 6.8vw, 36px); }
  .hero-lead { font-size: 28px; margin-top: 20px; }
  .hero-text { max-width: none; }
  .race-photo { aspect-ratio: 4/3; }
  .hero-badge { width: 112px; bottom: 25px; right: 12px; border-width: 4px; }
  .hero-photo figcaption { font-size: 11px; }
  .next-race { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px; }
  .next-race a { grid-column: auto; justify-self: start; }
  .section { padding: 40px 0; }
  .section-heading h2, .join h2 { font-size: 39px; }
  .race-row { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .race-link { grid-column: auto; justify-content: start; }
  .race-date { font-size: 13px; display: flex; gap: 12px; align-items: center; }
  .race-date span { margin: 0; }
  .race-info h3 { font-size: 21px; }
  .race-info p { font-size: 14px; }
  .about { grid-template-columns: 1fr; gap: 14px; }
  .photo-pair { grid-template-columns: 1fr; gap: 28px; }
  .photo-pair figcaption { font-size: 12px; }
  .join { margin-top: 40px; padding: 36px 22px 28px; }
  .join h2 { font-size: 37px; }
  .history-links { gap: 14px; }
  footer { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .hero-actions { gap: 12px 20px; }
  .hero-actions .text-link { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
