/* ============================================================
   THE FINAL LEG TRACK & FIELD
   Design system: built around the language of a timing sheet
   and a blue Mondo track — lanes, splits, results, marks.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500;600;700;800;900&family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Color tokens */
  --ink: #10151d;          /* near-black navy — primary dark bg */
  --ink-2: #182233;        /* slightly lifted dark surface */
  --track: #1c4d8f;        /* mondo-blue accent, primary brand color */
  --track-deep: #123762;   /* darker blue for hovers/depth */
  --lane: #f0f2ee;         /* cool paper / light section bg */
  --lane-line: #d7dbd3;    /* hairline rule on light bg */
  --gold: #c9a03e;         /* medal accent — used sparingly */
  --clay: #a8462a;         /* warm secondary accent — used sparingly */
  --ink-text: #1b2129;     /* body text on light */
  --muted: #5b6472;        /* secondary text on light */
  --muted-dark: #9aa5b5;   /* secondary text on dark */
  --white: #ffffff;

  /* Type */
  --display: 'Big Shoulders Display', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--lane);
  color: var(--ink-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Eyebrow / lane-label ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--track);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold); }

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0 0 1em; }
p.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
p.lede:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 2px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn.solid { background: var(--track); border-color: var(--track); color: var(--white); }
.btn.solid:hover { background: var(--track-deep); border-color: var(--track-deep); }
.btn.on-dark { border-color: var(--white); color: var(--white); }
.btn.on-dark:hover { background: var(--white); color: var(--ink); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   NAV — styled like a start-list board
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 4px;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-dark);
  text-decoration: none;
  padding: 10px 14px;
  transition: color 0.15s ease;
}
.nav-links a .lane-num {
  color: var(--gold);
  font-weight: 600;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 8px 28px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 20%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,21,29,0.15) 0%, rgba(16,21,29,0.55) 55%, rgba(16,21,29,0.96) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 88px 0;
  width: 100%;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero .lede { color: var(--muted-dark); font-size: 1.2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-copy { padding: 0 8px; }
.hero-latest .eyebrow { margin-bottom: 14px; }
@media (max-width: 600px) {
  .hero-copy { padding: 0 4px; }
}

/* Scoreboard ticker stat strip */
.stat-strip {
  background: var(--track);
  color: var(--white);
}
.stat-strip.dark { background: var(--ink); }
.stat-strip.compact .stat { padding: 16px 20px; }
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 26px 20px;
  border-left: 1px solid rgba(255,255,255,0.18);
  text-align: center;
}
.stat:first-child { border-left: none; }
.stat .mark {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  display: block;
  color: var(--gold);
}
.stat .label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
  display: block;
}
@media (max-width: 700px) {
  .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-bottom: 1px solid rgba(255,255,255,0.18); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
section.close-top { padding-top: 28px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.dark { background: var(--ink); color: var(--white); }
.dark h2, .dark h3 { color: var(--white); }
.dark p.lede { color: var(--muted-dark); }
.dark hr { border-color: rgba(255,255,255,0.12); }

hr.rule { border: none; border-top: 1px solid var(--lane-line); margin: 0; }

/* ============================================================
   CARDS — event / video / outlet
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--lane-line);
}
.card-photo {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
}
.card-body { padding: 20px 22px 24px; }
.card-body .eyebrow { margin-bottom: 10px; }
.card-body h3 { text-transform: none; margin-bottom: 8px; letter-spacing: -0.01em; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* Video card play badge */
.video-card { position: relative; text-decoration: none; display: block; color: inherit; }
.video-card .card-photo { position: relative; }
.play-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.play-badge span {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(16,21,29,0.55);
  border: 1.5px solid rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}
.video-card:hover .play-badge span { background: var(--track); transform: scale(1.06); }
.play-badge svg { width: 16px; height: 16px; fill: var(--white); margin-left: 3px; }

/* ============================================================
   RESULTS SHEET — the signature element for Coverage page
   Styled like an actual meet heat sheet / results card.
   ============================================================ */
.results-sheet { border-top: 2px solid var(--ink); }
.results-head {
  display: grid;
  grid-template-columns: 90px 2fr 1fr;
  gap: 16px;
  padding: 12px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--lane-line);
}
.results-row {
  display: grid;
  grid-template-columns: 90px 2fr 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--lane-line);
  align-items: center;
}
.results-row:hover { background: rgba(28,77,143,0.04); }
.results-row .year {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--track);
}
.results-row .event-name {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.02rem;
  letter-spacing: -0.005em;
}
.results-row .cred {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-text);
  text-align: right;
}
.results-row .cred.olympic { color: var(--clay); font-weight: 600; }

@media (max-width: 760px) {
  .results-head { display: none; }
  .results-row {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
  .results-row .cred { text-align: left; }
}

/* ============================================================
   COVERAGE ACCORDION — grouped by year, each meet is a row
   ============================================================ */
.year-accordion {
  border-bottom: 1px solid var(--lane-line);
}
.year-accordion:first-child { border-top: 2px solid var(--ink); }
.year-accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 26px 0;
}
.year-accordion summary::-webkit-details-marker { display: none; }
.year-accordion summary::marker { content: ''; }
.year-accordion summary .year-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink-text);
  line-height: 1;
}
.year-accordion summary .year-meta {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  flex: 1;
}
.year-accordion summary .chevron {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--track);
  transition: transform 0.2s ease;
  line-height: 1;
}
.year-accordion[open] summary .chevron { transform: rotate(45deg); }
.year-body { padding: 0 0 24px; }

.meet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--lane-line);
  flex-wrap: wrap;
}
.meet-row .meet-info { flex: 1; min-width: 220px; }
.meet-row .meet-name {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: -0.005em;
  display: block;
}
.meet-row .meet-cred {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.meet-row .meet-cred.olympic { color: var(--clay); font-weight: 600; }
.meet-links { display: flex; gap: 10px; flex-wrap: wrap; }
.meet-link {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 9px 14px;
  border: 1.5px solid var(--track);
  color: var(--track);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.meet-link:hover { background: var(--track); color: var(--white); }
.meet-link.disabled {
  border-color: var(--lane-line);
  color: var(--muted);
  cursor: default;
  pointer-events: none;
  opacity: 0.7;
}

/* ============================================================
   VIDEO EMBED (recent-uploads iframe)
   ============================================================ */
.video-embed { width: 100%; }
.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
  display: block;
}

/* ============================================================
   OUTLET LOGO STRIP
   ============================================================ */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding: 36px 0;
}
.logo-strip img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.72;
  transition: opacity 0.18s ease, filter 0.18s ease;
}
.logo-strip img:hover { filter: none; opacity: 1; }

/* ============================================================
   GALLERY (masonry-ish simple grid)
   ============================================================ */
.gallery {
  columns: 3 280px;
  column-gap: 18px;
}
.gallery figure {
  margin: 0 0 18px;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
}
.gallery img { width: 100%; display: block; }
.gallery figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 2px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  padding: 56px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  list-style: none;
  padding: 0; margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-links a { text-decoration: none; color: var(--muted-dark); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   FORM (contact page)
   ============================================================ */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--lane-line);
  background: var(--white);
  font-family: var(--body);
  font-size: 0.98rem;
  color: var(--ink-text);
  border-radius: 2px;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--track); }
.form-field textarea { resize: vertical; min-height: 140px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-0 { margin-top: 0; }
.center-note {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.9rem;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.about-hero { grid-template-columns: 1fr 220px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.headshot-frame {
  border: 6px solid var(--white);
  outline: 1px solid var(--lane-line);
  box-shadow: 0 18px 40px rgba(16,21,29,0.14);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
