/* Race for Robert 5K - shared styles */
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Barlow:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap");

:root {
  --ink: #0d1b2e;
  --ink-2: #14294a;
  --paper: #f6f1e7;
  --paper-2: #ece4d3;
  --hot: #ff5a1f;
  --lime: #c8f135;
  --muted: #5b667a;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(13, 27, 46, 0.18);
  --font-display: "Anton", "Impact", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hot); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 27, 46, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--hot);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand {
  font-family: var(--font-display);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; text-decoration: none; font-size: 1.25rem;
}
.brand span { color: var(--lime); }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav a.link {
  color: #dfe6f2; text-decoration: none; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 10px; border-radius: 8px;
}
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--ink); background: var(--lime); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 55%, #7a2f2a 88%, var(--hot) 100%);
  padding: 84px 0 0;
}
.hero::before { /* track lane lines */
  content: ""; position: absolute; inset: 0; opacity: 0.07;
  background: repeating-linear-gradient(115deg, #fff 0 2px, transparent 2px 64px);
}
.hero .wrap { position: relative; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--lime); color: var(--ink); padding: 6px 14px; border-radius: 999px;
  transform: rotate(-2deg);
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.8rem, 9vw, 6.4rem); line-height: 0.98; margin: 22px 0 8px;
  letter-spacing: 0.01em;
}
.hero h1 em { font-style: normal; color: var(--hot); display: block; }
.hero .sub { max-width: 640px; margin: 0 auto 34px; font-size: 1.15rem; color: #d5deee; }

.bibs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 820px; margin: 0 auto 30px; }
.bib {
  background: var(--paper); color: var(--ink); border-radius: 12px; padding: 16px 14px 14px;
  position: relative; box-shadow: var(--shadow); text-align: left;
}
.bib::before, .bib::after { /* safety-pin holes */
  content: ""; position: absolute; top: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); opacity: 0.25;
}
.bib::before { left: 10px; } .bib::after { right: 10px; }
.bib .label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 8px; }
.bib .value { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; text-transform: uppercase; }
.bib .value.tbd { color: var(--hot); }
.bib .note { font-size: 0.85rem; line-height: 1.35; color: var(--muted); margin-top: 4px; }

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.btn {
  display: inline-block; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem;
  padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--hot); color: #fff; }
.btn.primary:hover { background: #ff7a45; color: #fff; }
.btn.ghost { border-color: #fff; color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--ink-2); color: #fff; }

.skyline { display: block; width: 100%; height: auto; margin-top: 30px; position: relative; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--paper-2); }
section.dark { background: var(--ink); color: #fff; }
.kicker { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hot); font-weight: 700; }
h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; margin: 6px 0 18px;
}
.lead { font-size: 1.15rem; max-width: 720px; }
.section-head { margin-bottom: 36px; }

/* Versus */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.fighter {
  background: var(--ink-2); border-radius: var(--radius); padding: 28px; border-top: 6px solid var(--lime);
  box-shadow: var(--shadow);
}
.fighter.b { border-top-color: var(--hot); }
.fighter .name { font-family: var(--font-display); font-size: 2.6rem; text-transform: uppercase; line-height: 1; }
.fighter .title { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin: 6px 0 14px; }
.fighter.b .title { color: var(--hot); }
.fighter p { margin: 0; color: #d5deee; font-size: 1rem; }
.vs {
  align-self: center; font-family: var(--font-display); font-size: 2.4rem; color: var(--ink);
  background: var(--lime); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  transform: rotate(-8deg); box-shadow: 0 0 0 6px rgba(200, 241, 53, 0.25);
}
.stakes {
  margin-top: 30px; border: 3px dashed var(--hot); border-radius: var(--radius); padding: 26px 28px;
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: rgba(255, 90, 31, 0.08);
}
.stakes .icon { font-size: 3rem; line-height: 1; }
.stakes h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; margin: 0 0 4px; color: var(--hot); }
.stakes p { margin: 0; color: #e4eaf5; }

/* Timeline */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 4px; background: var(--ink); opacity: 0.15; border-radius: 4px; }
.timeline li { position: relative; padding: 0 0 30px 56px; }
.timeline li::before {
  content: ""; position: absolute; left: 6px; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); border: 5px solid var(--hot);
}
.timeline li.now::before { background: var(--lime); border-color: var(--ink); }
.timeline h3 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; }
.timeline p { margin: 0; }
.tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  border-top: 6px solid var(--ink);
}
.card.opt-b { border-top-color: var(--hot); }
.card h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; margin: 6px 0 8px; }
.card p { margin: 0; }
.pill { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.pill.hot { background: var(--hot); color: #fff; }

.callout {
  margin-top: 30px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px 30px;
  position: relative;
}
.callout::before { content: "\201C"; font-family: var(--font-display); position: absolute; top: -8px; left: 18px; font-size: 5rem; color: var(--lime); line-height: 1; }
.callout p { margin: 0; padding-left: 36px; font-size: 1.1rem; }

.course-list { columns: 2; column-gap: 40px; padding-left: 20px; }
.course-list li { margin-bottom: 8px; break-inside: avoid; }
.maps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 20px 0 30px; }
.maps figure { margin: 0; }
.maps img { border-radius: 12px; box-shadow: var(--shadow); width: 100%; }
.maps figcaption { font-family: var(--font-mono); font-size: 0.78rem; margin-top: 8px; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.checklist li { background: var(--ink-2); border-radius: var(--radius); padding: 24px; }
.checklist h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.4rem; margin: 0 0 6px; color: var(--lime); }
.checklist p { margin: 0; color: #d5deee; font-size: 1rem; }

footer { background: #08111e; color: #9fb0c9; padding: 40px 0; font-size: 0.95rem; text-align: center; }
footer a { color: var(--lime); }
.fine { font-family: var(--font-mono); font-size: 0.78rem; margin-top: 8px; }

/* Archive / simple pages */
.page-hero { background: var(--ink); color: #fff; padding: 72px 0 56px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: 0.07; background: repeating-linear-gradient(115deg, #fff 0 2px, transparent 2px 64px); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1; margin: 16px 0 10px; }
.archive-banner { background: var(--lime); color: var(--ink); text-align: center; padding: 10px 16px; font-weight: 600; font-size: 0.95rem; }
.archive-banner a { color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 18px; font-family: var(--font-mono); font-size: 0.9rem; }
.facts b { color: var(--lime); }
.route-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.route-steps li { counter-increment: s; padding: 10px 0 10px 54px; position: relative; border-bottom: 1px dashed rgba(13, 27, 46, 0.2); }
.route-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 9px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--lime); font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; display: grid; place-items: center;
}
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.year-card { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 6px solid var(--hot); transition: transform 0.15s ease; }
.year-card:hover { transform: translateY(-4px); color: inherit; }
.year-card .yr { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; }
.year-card h3 { margin: 6px 0; font-size: 1.1rem; }
.year-card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  body { font-size: 17px; }
  section { padding: 60px 0; }
  .bibs { grid-template-columns: 1fr; max-width: 420px; }
  .versus { grid-template-columns: 1fr; }
  .vs { margin: -6px auto; }
  .cards, .maps, .checklist { grid-template-columns: 1fr; }
  .course-list { columns: 1; }
  .stakes { grid-template-columns: 1fr; text-align: center; }
  .nav .wrap { flex-direction: column; gap: 4px; }
  .nav ul { justify-content: center; }
  .hero { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .year-card { transition: none; }
}
