/* =====================================================================
   IrishhillsMX — two-ink race poster
   Paper ground, ink black, and two spot inks: mud orange and forest green.
   ===================================================================== */

/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --paper: #ece3cf;
  --paper-deep: #e1d5ba;
  --ink: #1b1915;
  --ink-soft: #4a4337;
  --orange: #e0612a;       /* spot ink fill (ink text on it: 4.9:1) */
  --orange-text: #a8400e;  /* orange for text on paper (4.8:1) */
  --orange-lit: #f0773a;   /* orange for text on ink/green */
  --green: #233f2a;
  --green-deep: #1a3020;
  --on-green-soft: #c6d0b8;
  --on-ink-soft: #c9bfa9;

  --display: "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 78rem;
  --masthead: 4rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --rule: 2px solid currentColor;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--masthead) + 0.75rem);
  scrollbar-color: var(--ink-soft) var(--paper-deep);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
::selection { background: var(--orange); color: var(--ink); }
.ride.is-next :focus-visible { outline-color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange-text); outline-offset: 3px; border-radius: 2px; }
.section-ink :focus-visible, .section-green :focus-visible, .date-run :focus-visible { outline-color: var(--orange-lit); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem;
  font: 700 1rem var(--label); text-transform: uppercase; letter-spacing: 0.06em;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.small { font-size: 0.9rem; color: var(--ink-soft); }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- placeholders (visible on purpose so owners spot them) ---------- */
.ph {
  text-decoration: underline dashed;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.ph-end { white-space: nowrap; }
.ph-tag {
  display: inline-block;
  margin-left: 0.15em;
  padding: 0.1em 0.45em 0.05em;
  border: 1.5px dashed currentColor;
  border-radius: 2px;
  font: 700 0.72rem/1.4 var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.2em;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

/* ---------- type ---------- */
.section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 14ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem 0.75rem;
  border: 2px solid transparent;
  border-radius: 2px;
  font: 700 1.1rem/1 var(--label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn .icon { transition: transform 0.25s var(--ease-out); }
.btn:active { transform: translateY(1px); }
/* Hover fill wipes across left to right, like a squeegee pull. --fill is the ink it pulls. */
.btn-primary, .btn-outline {
  --fill: var(--ink); --on-fill: var(--paper);
  background-image: linear-gradient(var(--fill), var(--fill));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  transition: background-size 0.16s var(--ease-out), color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn-primary:hover, .btn-outline:hover {
  background-size: 100% 100%;
  color: var(--on-fill); border-color: var(--fill);
  transition: background-size 0.32s var(--ease-out), color 0.2s var(--ease-out) 0.08s, border-color 0.32s var(--ease-out);
}
.section-green .btn-primary, .section-ink .btn-primary,
.section-green .btn-outline, .section-ink .btn-outline { --fill: var(--paper); --on-fill: var(--ink); }
.btn-primary { background-color: var(--orange); color: var(--ink); border-color: var(--orange); }
.btn-primary:hover .icon { transform: translateY(2px); }
.btn-quiet { color: var(--ink); padding-inline: 0.5rem; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.btn-quiet:hover { color: var(--orange-text); }
.btn-outline { background-color: transparent; border-color: currentColor; color: var(--ink); padding-inline: 1.1rem; }
.section-green .btn-outline { color: var(--paper); }
.section-green .btn-outline:hover { color: var(--on-fill); }

/* ---------- masthead ---------- */
.dev-banner {
  margin: 0;
  padding: 0.55rem var(--gutter);
  background: var(--ink);
  color: var(--paper);
  font: 500 0.95rem/1.35 var(--text);
  text-align: center;
}
.dev-banner-tag {
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--orange-lit);
  font: 700 0.95rem/1 var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--masthead);
  max-width: none;
  padding-inline: var(--gutter);
}
.wordmark {
  font: 900 1.75rem/1 var(--display);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--orange-text); }
.nav-list { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-list a {
  font: 700 1rem/1 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  padding: 0.5rem 0;
  background: linear-gradient(var(--orange-text), var(--orange-text)) left bottom / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
.nav-list a:hover { background-size: 100% 2px; }
.menu-toggle { display: none; }

@media (max-width: 47.99em) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem;
    min-height: 2.75rem; padding: 0.5rem 0.9rem;
    background: var(--ink); color: var(--paper);
    border: 0; border-radius: 2px;
    font: 700 1rem/1 var(--label); letter-spacing: 0.07em; text-transform: uppercase;
    cursor: pointer;
  }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative;
    transition: transform 0.25s var(--ease-out), background-color 0.2s;
  }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -6px; }
  .menu-toggle-bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .nav-list {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .js .nav-list.is-open { display: flex; }
  .js .nav-list a { display: block; padding: 0.95rem 0; font-size: 1.35rem; border-bottom: 1px solid rgb(27 25 21 / 0.2); background: none; }
  .js .nav-list li:last-child a { border-bottom: 0; }
  html:not(.js) .masthead-inner { height: auto; flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
}

/* ---------- photos printed in one spot ink ---------- */
.print {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-color, var(--orange));
}
.print img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.25) brightness(1.04);
  mix-blend-mode: screen;
}
.print::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--paper);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.print--orange { --ink-color: var(--orange); }
.print--green { --ink-color: var(--green-deep); }
.print--green::after { background: #e4dcc6; }

/* hero: second ink layer (black key plate) over the orange */
.print .print-key {
  position: absolute; inset: 0;
  filter: grayscale(1) contrast(2.6) brightness(1.18);
  mix-blend-mode: multiply;
  z-index: 1;
  transform: translate(3px, -2px);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-bottom: 2px solid var(--ink);
}
.hero-print { aspect-ratio: 3 / 2; order: -1; }
.hero-copy {
  padding: clamp(1.75rem, 5vw, 3.5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.poster-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4.25rem, 2.2rem + 7.5vw, 6rem);
  line-height: 0.82;
  letter-spacing: -0.015em;
}
.poster-title span { display: block; }
.poster-title-mx { color: var(--orange-text); }
.hero-lede { max-width: 40ch; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.45; font-weight: 500; }

.next-ride {
  border-top: 3px solid var(--ink);
  padding-top: 1rem;
  display: grid;
  gap: 0.15rem;
}
.next-ride-label {
  font: 700 0.95rem/1.2 var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.next-ride-date {
  font: 900 clamp(2.75rem, 2rem + 3vw, 4rem)/0.95 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.next-ride-date--tba { font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); }
.next-ride-meta { font-weight: 600; color: var(--ink-soft); }
.next-ride-prices { display: flex; gap: 2rem; margin-top: 0.6rem; }
.next-ride-prices div { display: flex; align-items: baseline; gap: 0.5rem; }
.next-ride-prices dt { font: 700 0.95rem/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.next-ride-prices dd { font: 900 1.75rem/1 var(--display); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }

.date-run {
  background: var(--ink);
  color: var(--paper);
  padding: 1.1rem var(--gutter) 1.25rem;
  display: grid;
  gap: 0.5rem;
}
.date-run[hidden] { display: none; }
.date-run-title {
  font: 700 0.95rem/1.2 var(--label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink-soft);
}
.date-run-list { display: flex; justify-content: space-between; gap: 0.5rem; }
.run-date a {
  position: relative;
  display: grid; justify-items: center;
  padding: 0.35rem 0.6rem;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.run-date a:hover { color: var(--orange-lit); }
.run-month { font: 700 0.95rem/1 var(--label); letter-spacing: 0.1em; text-transform: uppercase; }
.run-day { font: 900 clamp(2.5rem, 1.6rem + 3.8vw, 4.25rem)/0.95 var(--display); }
.run-date.is-past { color: var(--on-ink-soft); opacity: 0.6; }
.run-date.is-past .run-day { text-decoration: line-through; text-decoration-thickness: 3px; }
.run-date.is-next { color: var(--orange-lit); }
.run-circle {
  position: absolute; inset: -0.6rem -0.9rem -0.5rem;
  width: calc(100% + 1.8rem); height: calc(100% + 1.1rem);
  overflow: visible;
  pointer-events: none;
}
.run-circle path {
  fill: none; stroke: var(--orange-lit); stroke-width: 3.5; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}

@media (min-width: 64em) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: min(calc(100svh - var(--masthead)), 62rem);
  }
  .hero-copy { grid-column: 1; grid-row: 1; justify-content: center; gap: 1.25rem; padding-block: clamp(1.5rem, 3.5vh, 3rem); padding-right: clamp(2rem, 4vw, 4rem); }
  .hero-print { grid-column: 2; grid-row: 1; aspect-ratio: auto; order: 0; min-height: 30rem; }
  .date-run {
    grid-column: 1 / -1; grid-row: 2;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    padding-block: 1rem 1.15rem;
  }
  .date-run-title { font-size: 1.1rem; }
  .date-run-list { justify-content: space-around; }
}

/* ---------- full-field ink sections ---------- */
.section-green { background: var(--green); color: var(--paper); }
.section-green .small { color: var(--on-green-soft); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .small { color: var(--on-ink-soft); }

/* ---------- about ---------- */
.about { padding-block: clamp(4rem, 9vw, 7.5rem); }
.about-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.about-copy { display: grid; gap: 1.1rem; align-content: start; }
.about-copy .section-title { margin-bottom: 0.75rem; }
.about-copy p { max-width: 60ch; color: var(--on-green-soft); }
.about-copy .about-lead { color: var(--paper); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.45; font-weight: 500; }
.about-print { aspect-ratio: 4 / 3; }
.expect-title {
  font: 700 1rem/1.2 var(--label); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-green-soft);
  margin-bottom: 1.25rem;
}
.expect-list { display: grid; gap: 1.75rem 2rem; }
.expect-list div { border-top: 2px solid var(--paper); padding-top: 0.9rem; }
.expect-list dt { font: 900 1.75rem/1 var(--display); text-transform: uppercase; margin-bottom: 0.5rem; }
.expect-list dd { color: var(--on-green-soft); max-width: 36ch; }

@media (min-width: 48em) {
  .expect-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .about-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: clamp(3rem, 6vw, 6rem); }
  .about-print { align-self: start; margin-top: 0.5rem; }
  .expect { grid-column: 1 / -1; }
  .expect-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- ride dates ---------- */
.rides { padding-block: clamp(4rem, 9vw, 7.5rem); }
.rides-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
}
.rides-head .section-title { max-width: none; }
.rides-hours { font: 600 1.05rem/1.4 var(--text); color: var(--ink-soft); max-width: 32ch; }
.sample-banner {
  margin-bottom: 1.75rem;
  padding: 0.9rem 1.1rem;
  border: 2px dashed var(--ink-soft);
  border-radius: 2px;
  background: var(--paper-deep);
  max-width: 62ch;
}
.sample-banner[hidden] { display: none; }

.ride-list { border-bottom: 2px solid var(--ink); }
.ride {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 1rem; row-gap: 0.6rem;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 2px solid var(--ink);
  position: relative;
}
.ride-num { font: 700 1.75rem/1 var(--display); color: var(--ink-soft); align-self: start; padding-top: 0.35rem; }
.ride-when { display: grid; }
.ride-weekday { font: 700 0.95rem/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.ride-date {
  font: 900 clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem)/0.92 var(--display);
  text-transform: uppercase;
  white-space: nowrap;
}
.ride-meta:empty { display: none; }
.ride-meta, .ride-cal { grid-column: 2; }
.ride-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.ride-status {
  display: inline-block;
  padding: 0.3rem 0.6rem 0.25rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
  font: 700 0.85rem/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase;
}
.ride-note { font-weight: 600; }
.ride-cal {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem;
  font: 700 1rem/1 var(--label); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
a.ride-cal:hover { color: var(--orange-text); }
.ride.is-next .ride-cal:hover { color: var(--paper); }
.ride-cal--done { text-decoration: none; color: var(--ink-soft); }

/* the circled date: next ride printed in the orange ink */
.ride.is-next {
  isolation: isolate;
  border-top-color: var(--ink);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.ride.is-next::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--orange);
}
.ride.is-next .ride-num, .ride.is-next .ride-weekday { color: var(--ink); }
.ride.is-next .ride-status { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ride.is-past { color: var(--ink-soft); }
.ride.is-past .ride-date { text-decoration: line-through; text-decoration-thickness: 0.08em; opacity: 0.75; }
.ride.is-past .ride-status { border-style: dashed; }

@media (min-width: 48em) {
  /* tablet: date, then meta under it; calendar link on the right */
  .ride {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    column-gap: 1.5rem;
    padding: 1.35rem 0;
  }
  .ride-num { font-size: 2.25rem; padding-top: 0; align-self: center; grid-row: 1 / span 2; }
  .ride-cal { grid-column: 3; grid-row: 1 / span 2; justify-self: end; }
  .ride.is-next { margin-inline: -1.25rem; padding-inline: 1.25rem; }
}
@media (min-width: 64em) {
  /* desktop: one line per ride */
  .ride { grid-template-columns: 4rem minmax(0, 1fr) 11rem 12rem; }
  .ride-num { grid-row: auto; }
  .ride-meta { grid-column: 3; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .ride-cal { grid-column: 4; grid-row: 1; }
}
@media (min-width: 48em) and (max-width: 80em) {
  .ride.is-next { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}

.rides-empty { padding: 1.5rem 0; font-weight: 600; }
.past-seasons { margin-top: 2rem; }
.past-seasons summary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 2.75rem;
  cursor: pointer;
  font: 700 1rem/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase;
  list-style: none;
}
.past-seasons summary::-webkit-details-marker { display: none; }
.past-seasons summary::before {
  content: ""; width: 0.6rem; height: 0.6rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform 0.2s var(--ease-out);
}
.past-seasons[open] summary::before { transform: rotate(45deg); }
.past-seasons summary:hover { color: var(--orange-text); }
.past-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.5rem 2rem; padding: 0.75rem 0 0; color: var(--ink-soft); }
.past-list time { text-decoration: line-through; }

/* ---------- prices ---------- */
.prices { padding-block: clamp(4rem, 9vw, 7rem); }
.prices .section-title { margin-bottom: clamp(2rem, 4vw, 3rem); }
.price-sheet { display: grid; border-top: 2px solid var(--paper); }
.price { padding: 1.5rem 0 1.75rem; display: grid; gap: 0.35rem; align-content: start; }
.price + .price { border-top: 2px solid rgb(236 227 207 / 0.35); }
.price-label { font: 700 1.15rem/1.2 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-lit); }
.price-amount { font: 900 clamp(3.75rem, 2.6rem + 5vw, 5.5rem)/0.9 var(--display); text-transform: uppercase; }
.fee-list { display: grid; gap: 1.4rem; margin-top: 0.9rem; }
.fee { display: grid; gap: 0.6rem; }
.fee .price-amount { line-height: 1; }
.fee-label { font: 700 1rem/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); }
.fee-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.8rem; }
.fee-per { color: var(--on-ink-soft); font-weight: 500; }
.price-notes { margin-top: 1.5rem; display: grid; gap: 0.5rem; color: var(--on-ink-soft); max-width: 62ch; }
.price-notes li { padding-left: 1.25rem; position: relative; }
.price-notes li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.55rem; height: 2px; background: var(--orange-lit); }

@media (min-width: 48em) {
  .price-sheet { grid-template-columns: 1fr 1fr; }
  .price { padding: 2rem 2rem 2.25rem 0; }
  .price + .price { border-top: 0; border-left: 2px solid rgb(236 227 207 / 0.35); padding-left: clamp(2rem, 5vw, 4rem); }
}

/* ---------- crew: a race-program entry list, not a card grid ---------- */
.crew { padding-block: clamp(4rem, 9vw, 7rem); }
.crew-head { display: grid; gap: 1rem 3rem; margin-bottom: clamp(2rem, 4vw, 3rem); align-items: end; }
.crew-lede { color: var(--on-green-soft); max-width: 40ch; font-size: 1.1rem; }
.crew-list { display: grid; border-bottom: 2px solid rgb(236 227 207 / 0.35); }
.crew-member {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 2px solid var(--paper);
}
.crew-photo { width: 5.5rem; aspect-ratio: 1; }
.crew-photo img { width: 100%; height: 100%; object-fit: cover; }
.crew-photo--empty {
  display: grid; place-items: center;
  border: 1.5px dashed var(--on-green-soft); border-radius: 2px;
  font: 700 0.8rem/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-green-soft);
}
.crew-initials { font: 900 2rem/1 var(--display); color: var(--paper); letter-spacing: 0; }
.crew-name { font: 900 clamp(1.9rem, 1.4rem + 2vw, 2.6rem)/0.95 var(--display); text-transform: uppercase; }
.crew-name .ph-tag { font-size: 0.72rem; vertical-align: 0.6em; }
.crew-role { font: 700 1rem/1.2 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-lit); margin-top: 0.35rem; }
.crew-note { color: var(--on-green-soft); margin-top: 0.35rem; max-width: 52ch; }
@media (min-width: 48em) {
  .crew-list { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); }
}
@media (min-width: 64em) {
  .crew-head { grid-template-columns: auto 1fr; }
  .crew-lede { justify-self: end; text-align: right; }
}

/* ---------- merch ---------- */
.merch { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.merch-grid { display: grid; gap: 1.5rem 3rem; align-items: start; }
.merch-body { display: grid; gap: 1rem; justify-items: start; color: var(--on-ink-soft); max-width: 46ch; }
.merch-soon {
  font: 900 clamp(3.5rem, 2.4rem + 5vw, 5.5rem)/0.88 var(--display);
  text-transform: uppercase;
  color: var(--orange-lit);
  border-top: 2px solid var(--paper);
  padding-top: 1rem;
  width: 100%;
}
@media (min-width: 64em) {
  .merch-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- track info ---------- */
.info { padding-block: clamp(4rem, 9vw, 7.5rem); }
.info-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.info-aside { display: grid; gap: 2rem; align-content: start; }
.info-print { aspect-ratio: 4 / 3; }
.info-print img { object-position: 50% 40%; }
.info-body { display: grid; gap: clamp(2.5rem, 4vw, 3.25rem); }
.info-block { border-top: 2px solid var(--ink); padding-top: 1rem; display: grid; gap: 0.9rem; }
.info-block h3 { font: 900 clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem)/1 var(--display); text-transform: uppercase; }
.info-block p, .info-block li { max-width: 62ch; }

.rules { counter-reset: rule; display: grid; gap: 0.85rem; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.5rem; }
.rules li::before {
  content: counter(rule);
  font: 900 1.6rem/1 var(--display);
  color: var(--orange-text);
  padding-top: 0.05rem;
}
.bring { display: grid; gap: 0.6rem; }
.bring li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.5rem; }
.bring li::before {
  content: "";
  width: 1.05rem; height: 1.05rem; margin-top: 0.3rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: linear-gradient(var(--orange), var(--orange)) center / 0.45rem 0.45rem no-repeat;
}

@media (min-width: 64em) {
  .info-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(3rem, 6vw, 6rem); }
  .info-aside { position: sticky; top: calc(var(--masthead) + 2rem); align-self: start; }
  .info-print { aspect-ratio: 4 / 5; }
}

/* ---------- contact ---------- */
.contact { padding-block: clamp(4.5rem, 10vw, 8rem); }
.contact-grid { display: grid; gap: 2.5rem; }
.contact-title {
  font: 900 clamp(3.25rem, 2rem + 6vw, 6rem)/0.85 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 10ch;
}
.contact-body { display: grid; gap: 1.5rem; align-content: start; justify-items: start; }
.contact-body > p { font-size: 1.15rem; font-weight: 500; }
.contact-list { width: 100%; border-bottom: 2px solid rgb(236 227 207 / 0.35); }
.contact-list div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.85rem 0; border-top: 2px solid rgb(236 227 207 / 0.35); }
.contact-list div[hidden] { display: none; }
.contact-list dt { font: 700 0.95rem/1.6 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-green-soft); }
.contact-list dd { font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--orange-lit); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; width: 100%; }

@media (min-width: 64em) {
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-soft); padding-block: 2.5rem; font-size: 0.95rem; }
.footer-inner { display: grid; gap: 0.6rem; }
.wordmark--footer { color: var(--paper); font-size: 2rem; margin-bottom: 0.4rem; }
.wordmark--footer span { color: var(--orange-lit); }
.site-footer .small { color: var(--on-ink-soft); }
.dev-credit { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; font-size: 0.85rem; }
.dev-credit-tag {
  padding: 0.2rem 0.45rem 0.15rem;
  border: 1px solid var(--orange-lit);
  border-radius: 2px;
  color: var(--orange-lit);
  font: 700 0.75rem/1 var(--label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =====================================================================
   MOTION — one authored moment (the print), plus quiet reveals.
   Only runs when the visitor hasn't asked for reduced motion.
   ===================================================================== */
.motion .hero-print { clip-path: inset(0 100% 0 0); }
.motion .hero-print .print-key { transform: translate(18px, -12px); opacity: 0; }
/* hidden until the draw starts, so the round line cap never shows as a dot during the delay */
.motion .run-date.is-next .run-circle path { stroke-dashoffset: 1; visibility: hidden; }
.motion .hero-copy > * { opacity: 0; transform: translateY(14px); }

.motion.is-printed .hero-print {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.95s var(--ease-out) 0.1s;
}
.motion.is-printed .hero-print .print-key {
  transform: translate(3px, -2px); opacity: 1;
  transition: transform 1.1s var(--ease-out) 0.75s, opacity 0.4s ease 0.75s;
}
.motion.is-printed .hero-copy > * {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.motion.is-printed .hero-copy > :nth-child(2) { transition-delay: 0.08s; }
.motion.is-printed .hero-copy > :nth-child(3) { transition-delay: 0.16s; }
.motion.is-printed .hero-copy > :nth-child(4) { transition-delay: 0.24s; }
.motion.is-printed .run-date.is-next .run-circle path {
  stroke-dashoffset: 0;
  visibility: visible;
  transition: stroke-dashoffset 0.9s var(--ease-out) 1.3s, visibility 0s linear 1.3s;
}

/* Ride list: rows slide in as a list (stagger capped at 0.24s) */
.motion .ride.will-reveal { opacity: 0; transform: translateX(-18px); }
.motion .ride.will-reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.motion .ride.will-reveal.is-in:nth-child(2) { transition-delay: 0.06s; }
.motion .ride.will-reveal.is-in:nth-child(3) { transition-delay: 0.12s; }
.motion .ride.will-reveal.is-in:nth-child(4) { transition-delay: 0.18s; }
.motion .ride.will-reveal.is-in:nth-child(5) { transition-delay: 0.24s; }

/* Next ride: no slide; the orange ink is pulled across the row, then the tag is stamped */
.motion .ride.is-next.will-reveal { opacity: 1; transform: none; }
.motion .ride.is-next.will-reveal::before { clip-path: inset(0 100% 0 0); }
.motion .ride.is-next.will-reveal .ride-status { opacity: 0; transform: scale(1.35) rotate(-4deg); }
.motion .ride.is-next.will-reveal.is-in::before {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.75s var(--ease-out) 0.1s;
}
.motion .ride.is-next.will-reveal.is-in .ride-status {
  opacity: 1; transform: none;
  transition: opacity 0.12s linear 0.7s, transform 0.3s var(--ease-out) 0.7s;
}

/* Jumping to a ride from the date band: once the scroll lands, that row holds an orange ink, then fades */
.ride-list.is-jumping .ride, .ride-list.is-jumping .ride::before, .ride-list.is-jumping .ride-status { transition: none !important; }
@keyframes ink-flash {
  0%, 35% { background-color: color-mix(in srgb, var(--orange) 45%, transparent); animation-timing-function: var(--ease-out); }
  100%    { background-color: transparent; }
}
.motion .ride.is-landed:not(.is-next) { animation: ink-flash 1.4s linear; }
.motion .ride.is-next.is-landed .ride-date { animation: date-stamp 0.5s var(--ease-out); }
@keyframes date-stamp {
  from { transform: scale(1.06); }
  to   { transform: none; }
}
.ride-date { display: inline-block; transform-origin: left bottom; }

/* Photos below the fold print once as they come into view, echoing the hero.
   The figure itself is never clipped (IntersectionObserver ignores clipped targets).
   Its ink, photo and paper layers are pulled across together by one-shot keyframes
   that leave no clip-path behind, so the settled photo is exactly the static print. */
.motion .print--scroll.will-reveal:not(.is-in) { background: transparent; }
.motion .print--scroll.will-reveal:not(.is-in) img,
.motion .print--scroll.will-reveal:not(.is-in)::after { visibility: hidden; }
.motion .print--scroll.will-reveal.is-in { animation: ink-pull 0.9s var(--ease-out) backwards; }
.motion .print--scroll.will-reveal.is-in img { animation: layer-pull 0.9s var(--ease-out) backwards; }
.motion .print--scroll.will-reveal.is-in::after { animation: layer-pull 0.9s var(--ease-out) backwards; }
@keyframes ink-pull {
  from { background: linear-gradient(var(--ink-color), var(--ink-color)) left / 0% 100% no-repeat; }
  to   { background: linear-gradient(var(--ink-color), var(--ink-color)) left / 100% 100% no-repeat; }
}
@keyframes layer-pull {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .ride:target:not(.is-next) { background-color: color-mix(in srgb, var(--orange) 25%, transparent); }
}
