/* ===================================================================
   White Lake Striders — Sevra Design Studio Showcase Build
   --------------------------------------------------------------------
   Brand: heritage Americana athletic / Naval-Academy track-team register.

   Palette
     Paper       #FAFAF7   bg
     Deep navy   #0A1429   ink + dark-section bg
     Cardinal    #A50F23   primary brand accent (rules, eyebrows, CTAs)

   Type
     Bebas Neue        wordmark, hero, section titles
     Roboto Slab       eyebrow, accent type, race-list, italic moments
     Inter             body, lede, form

   Self-contained — does NOT load Sevra's style-v2.css. Each showcase
   entry styles independently so the entries read as different brands.
   The showcase topbar at the very top is the only Sevra-chrome moment.
   =================================================================== */


/* -------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------- */

:root {
  /* Color */
  --paper:        #FAFAF7;
  --paper-warm:   #F2EFE5;
  --ink:          #0A1429;
  --ink-soft:     #1A2540;
  --rule:         rgba(10, 20, 41, 0.18);
  --rule-faint:   rgba(10, 20, 41, 0.10);
  --cardinal:     #A50F23;
  --cardinal-deep:#7A0E1A;
  --cardinal-bright:#C8102E;

  /* On-dark */
  --on-dark-ink:   #FAFAF7;
  --on-dark-soft:  rgba(250, 250, 247, 0.72);
  --on-dark-rule:  rgba(250, 250, 247, 0.18);

  /* Type */
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --slab:    'Roboto Slab', Georgia, serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale (fluid) */
  --step-0:   clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  --step-1:   clamp(1.05rem, 1rem + 0.3vw, 1.15rem);
  --step-2:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-3:   clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  --step-4:   clamp(2.4rem, 1.6rem + 3vw, 4rem);
  --step-5:   clamp(4rem, 2.5rem + 6vw, 8rem);

  /* Layout */
  --container:    72rem;
  --container-narrow: 44rem;
  --gutter:       clamp(1.25rem, 3vw, 2.5rem);
  --section-y:    clamp(4rem, 8vw, 7rem);

  /* Chrome heights — sticky elements above the hero.
     Per Build Convention #29, the hero subtracts these in calc() so it
     fits exactly into the visible viewport on first load. Locked via
     `height` (not `min-height`) on the chrome elements themselves so
     the math stays exact — a min-height floor allows the actual chrome
     to render slightly taller than declared, which lets the hero
     overflow by the slack. Heights are identical on desktop and mobile;
     only horizontal content collapses below 720px. */
  --showcase-topbar-h: 46px;
  --site-header-h:     70px;

  /* Motion */
  --ease:    cubic-bezier(0.2, 0.6, 0.2, 1);
}


/* -------------------------------------------------------------------
   Reset + base
   ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--sans);
  font-size: var(--step-1);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover { color: var(--cardinal); }

button { font: inherit; cursor: pointer; }


/* -------------------------------------------------------------------
   Container
   ------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}


/* -------------------------------------------------------------------
   Sevra showcase topbar — the chrome above every showcase entry
   Sticky at top: 0 so it stays visible during scroll on every viewport.
   ------------------------------------------------------------------- */

.showcase-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--showcase-topbar-h);
  /* Per-build override of Convention #34. Band uses WLS deep navy
     (same as footer) rather than Sevra's standard walnut. Italic d
     and back-link adopt cardinal so the band reads as part of the
     WLS palette family, not in conflict with it. Doc amendment to
     Convention #34 is required at session end. */
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(250, 250, 247, 0.08);
}

.showcase-topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.65rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.showcase-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper);
  /* Prevent the wordmark text inside the span from wrapping to a
     second line on narrow viewports. The flex container's `nowrap`
     keeps the flex items on one row but doesn't constrain text
     within an item — this rule does. */
  white-space: nowrap;
}

.showcase-topbar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
  border: 0.5px solid rgba(250, 250, 247, 0.4);
  border-radius: 4px;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.showcase-topbar__logo em {
  font-style: italic;
  color: var(--cardinal-bright);
  margin-left: -1px;
}

.showcase-topbar__wordmark em {
  font-style: italic;
  color: var(--cardinal-bright);
  margin: 0 0.05em;
}

.showcase-topbar__sep { color: rgba(250, 250, 247, 0.3); }
.showcase-topbar__role { color: rgba(250, 250, 247, 0.7); }
.showcase-topbar__client { font-weight: 500; }

.showcase-topbar__link {
  margin-left: auto;
  color: var(--cardinal-bright);
  font-weight: 500;
}
.showcase-topbar__link:hover { color: var(--paper); }


/* -------------------------------------------------------------------
   Site header — the running club's own nav.
   Stacks below the showcase topbar via top offset. Both chrome
   elements have their heights locked via --showcase-topbar-h and
   --site-header-h in :root; the hero subtracts both in calc() per
   Build Convention #29. Update the variables in :root if either
   chrome's natural height changes.
   ------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: var(--showcase-topbar-h);
  z-index: 50;
  height: var(--site-header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--rule-faint);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  font-family: var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-header__monogram {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  background: var(--cardinal);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 400;
  border-radius: 2px;
  letter-spacing: 0.04em;
  align-self: center;
}

.site-header__wordmark {
  font-size: 1.2rem;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: center;
  font-family: var(--slab);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.site-nav a {
  color: var(--ink-soft);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-nav a:hover {
  color: var(--cardinal);
  border-bottom-color: var(--cardinal);
}

.site-nav__cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 2px;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: none !important;
}
.site-nav__cta:hover {
  background: var(--cardinal);
  color: var(--paper) !important;
}

/* -------------------------------------------------------------------
   Hamburger toggle + mobile-nav drawer
   Hidden on desktop; shown < 720px. When toggled open, the toggle
   bars animate to an X and the drawer slides into view below the
   site-header.
   ------------------------------------------------------------------- */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  margin: -0.5rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  background: var(--paper);
  border-top: 1px solid var(--rule-faint);
  padding: 0.5rem var(--gutter) 1rem;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  display: block;
  padding: 0.95rem 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-faint);
}
.mobile-nav a:last-child {
  border-bottom: none;
  color: var(--cardinal);
}
.mobile-nav a:hover {
  color: var(--cardinal);
}

@media (max-width: 720px) {
  .site-header__wordmark { display: none; }
  .nav-toggle { display: block; }
  .site-nav { display: none; }
  .mobile-nav:not([hidden]) { display: block; }

  /* Showcase topbar: drop "Showcase build" + its leading separator
     so the breadcrumb stays single-line on phones. Brand + client
     + Showcase link is the essential context. */
  .showcase-topbar__role,
  .showcase-topbar__sep--role {
    display: none;
  }

  .showcase-topbar__inner {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .showcase-topbar__client {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
}

/* Very narrow viewports — drop the Sevra wordmark too. The Sd chip
   alone is enough to identify Sevra; client name + Showcase link
   carry the rest of the breadcrumb. Pattern parallels Convention #34
   mobile collapse: progressive shedding as width tightens. */
@media (max-width: 480px) {
  .showcase-topbar__wordmark {
    display: none;
  }
}


/* -------------------------------------------------------------------
   Hero — full-bleed photo, navy duotone overlay, type centered
   ------------------------------------------------------------------- */

.hero {
  position: relative;
  /* Convention #29 — fit the hero exactly into the visible viewport
     below the stacked chrome (showcase topbar + site-header). vh first
     as the fallback, dvh second for browsers that handle mobile chrome
     show/hide dynamically. Chrome heights are LOCKED via `height` on
     the topbar and site-header rules so this math is exact. */
  min-height: calc(100vh  - var(--showcase-topbar-h) - var(--site-header-h));
  min-height: calc(100dvh - var(--showcase-topbar-h) - var(--site-header-h));
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark-ink);
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Ken Burns drift lives on the CONTAINER, not on each slide.
     A continuous infinite-alternate animation drifts the entire
     slide stack between scale(1) and scale(1.04) over 40 seconds
     (one direction). Cross-fades happen beneath this drift, so the
     viewer sees uninterrupted slow motion — slides change but the
     scale state of whatever is showing carries continuously, no
     snap, no reset. Disabled under prefers-reduced-motion. */
  animation: hero-ken-burns 40s ease-in-out infinite alternate;
}

/* Hero slideshow — four cross-fading slides. All four <img> elements
   stack absolute-positioned over each other; .is-active gets opacity 1.
   JS rotates the class through the slides on a 6-second interval.
   Reduced-motion and touch (hover: none) both skip the rotation in
   JS, so the first slide stays put. The Ken Burns animation on the
   parent container is also disabled under prefers-reduced-motion.
   ------------------------------------------------------------------- */
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
  /* Duotone-ish: desaturate then tint via overlay */
  filter: grayscale(0.7) contrast(1.05) brightness(0.6);
}

.hero__slide.is-active {
  opacity: 1;
}

@keyframes hero-ken-burns {
  from { transform: scale(1);    }
  to   { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo {
    animation: none;
  }
  .hero__slide {
    transition: none;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, rgba(10, 20, 41, 0.45) 0%, rgba(10, 20, 41, 0.85) 100%),
    linear-gradient(180deg, rgba(10, 20, 41, 0.4) 0%, rgba(10, 20, 41, 0.7) 100%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 50rem;
}

.hero__eyebrow {
  font-family: var(--slab);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cardinal-bright);
  margin: 0 0 1.5rem;
}

.hero__title {
  font-family: var(--display);
  font-size: var(--step-5);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--paper);
}

.hero__rule {
  width: 60px;
  height: 2px;
  background: var(--cardinal);
  margin: 1.75rem auto;
}

.hero__tagline {
  font-family: var(--slab);
  font-style: italic;
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.4rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--on-dark-ink);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* -------------------------------------------------------------------
   CTAs
   ------------------------------------------------------------------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.15s var(--ease);
  text-decoration: none;
}

.cta--primary {
  background: var(--cardinal);
  color: var(--paper);
}
.cta--primary:hover {
  background: var(--cardinal-deep);
  color: var(--paper);
  transform: translateY(-1px);
}

.cta--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(250, 250, 247, 0.4);
}
.cta--ghost:hover {
  background: rgba(250, 250, 247, 0.1);
  color: var(--paper);
  border-color: var(--paper);
}

.cta--full { width: 100%; justify-content: center; padding: 1.05rem 1.6rem; }


/* -------------------------------------------------------------------
   Section base + meta-row pattern
   ------------------------------------------------------------------- */

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section--paper { background: var(--paper); }
.section--paper-warm { background: var(--paper-warm); }
.section--dark { background: var(--ink); color: var(--on-dark-ink); }


/* -------------------------------------------------------------------
   Scenic band — interstitial environmental photo between About and
   Schedule. The outer .scenic-band is a fixed-height clipping window;
   the inner .scenic-band__image carries the photo and is taller than
   the window so it can translateY without revealing edges as the user
   scrolls. JS applies the translate at ~60% scroll velocity.
   Reduced-motion and touch (hover: none) both fall back to a static
   centered crop — the inner layer's extra height plus center position
   means the static state also reads as composed.
   ------------------------------------------------------------------- */

.scenic-band {
  width: 100%;
  height: clamp(22rem, 60vh, 36rem);
  position: relative;
  overflow: hidden;
  background: var(--paper-warm); /* Fallback color if image fails to load */
}

.scenic-band__image {
  position: absolute;
  /* Inset -20% top/bottom so the inner layer is 140% of the band
     height. JS translates within ±100px on scroll; static fallback
     centers cleanly. Headroom needs to exceed MAX_TRANSLATE_PX in
     setupScenicParallax — bump both together if either changes. */
  top: -20%;
  left: 0;
  right: 0;
  bottom: -20%;
  background-image: url('assets/wls-parallax-01.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}


.meta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
  font-family: var(--slab);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.meta-row__num {
  color: var(--cardinal);
  font-weight: 600;
}

.meta-row__line {
  flex: 0 0 56px;
  height: 1px;
  background: var(--cardinal);
}

.meta-row__label {
  color: var(--ink-soft);
}

.meta-row--on-dark .meta-row__num { color: var(--cardinal-bright); }
.meta-row--on-dark .meta-row__line { background: var(--cardinal-bright); }
.meta-row--on-dark .meta-row__label { color: var(--on-dark-soft); }

.section-title {
  font-family: var(--display);
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 1.25rem;
  color: var(--ink);
  max-width: 32ch;
}

.section-title--on-dark { color: var(--paper); }

.section-lede {
  font-family: var(--sans);
  font-size: var(--step-2);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 3rem;
}

.section-lede--on-dark { color: var(--on-dark-soft); }

.lede {
  font-family: var(--sans);
  font-size: var(--step-2);
  line-height: 1.5;
  margin: 0 0 2rem;
  color: var(--ink);
}

.lede em.accent {
  color: var(--cardinal);
  font-style: italic;
  font-family: var(--slab);
}


/* -------------------------------------------------------------------
   Pullquote — between How it works (03) and Members (04)
   Tonal shift on paper-warm bg rather than another navy block, so
   the page rhythm reads paper / paper / pullquote / paper / dark
   instead of stacking three dark moments. Cardinal seam at top
   echoes the .meta-row treatment elsewhere.
   ------------------------------------------------------------------- */

.pullquote {
  position: relative;
  background: var(--paper-warm);
  padding: clamp(4rem, 7vw, 6rem) var(--gutter);
  text-align: center;
  overflow: hidden;
}

.pullquote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 2px;
  background: var(--cardinal);
}

.pullquote__text {
  font-family: var(--slab);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 30ch;
  margin: 0 auto;
}

.pullquote__text em {
  color: var(--cardinal);
  font-style: italic;
}

/* Pullquote participates in the scroll-reveal pattern */
.pullquote {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.pullquote.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .pullquote {
    opacity: 1;
    transform: none;
  }
}


/* -------------------------------------------------------------------
   01 — About
   ------------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 880px) {
  .about__grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
  }
}

.about__head .section-title { margin-bottom: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  padding-top: 2rem;
  margin: 2rem 0 0;
  border-top: 1px solid var(--rule);
}

.stats__item dt {
  font-family: var(--slab);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.stats__item dd {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--ink);
}


/* -------------------------------------------------------------------
   02 — Schedule
   2x2 grid on desktop, 1-col on mobile. Featured (Saturday) gets
   a navy bg + paper text — the visual anchor of the schedule.
   ------------------------------------------------------------------- */

.schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.schedule-card {
  position: relative;
  padding: 2rem 1.75rem 2.25rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--cardinal);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.schedule-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(10, 20, 41, 0.25);
}

.schedule-card__day {
  font-family: var(--slab);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cardinal);
  margin: 0 0 0.85rem;
}

.schedule-card__title {
  font-family: var(--display);
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  color: inherit;
}

.schedule-card__when {
  font-family: var(--slab);
  font-size: 0.95rem;
  font-style: italic;
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.schedule-card__body {
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
  color: var(--ink);
}

.schedule-card a {
  color: var(--cardinal);
  border-bottom: 1px solid currentColor;
}
.schedule-card a:hover { color: var(--cardinal-deep); }

/* Featured: Saturday is the heart of the week — make it the visual anchor. */
.schedule-card--featured {
  background: var(--ink);
  color: var(--on-dark-ink);
  border-color: var(--ink);
  border-top-color: var(--cardinal-bright);
}
.schedule-card--featured .schedule-card__day { color: var(--cardinal-bright); }
.schedule-card--featured .schedule-card__when { color: var(--on-dark-soft); }
.schedule-card--featured .schedule-card__body { color: var(--on-dark-ink); }

/* Ghost: Race weekends — same shape, recessed treatment. */
.schedule-card--ghost {
  background: var(--paper-warm);
  border-top-color: var(--cardinal-deep);
}


/* -------------------------------------------------------------------
   03 — How it works
   ------------------------------------------------------------------- */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 720px) {
  .how-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.how-card {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.how-card__head {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--cardinal);
}

.how-card__body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: var(--ink);
}


/* -------------------------------------------------------------------
   04 — Members triptych
   ------------------------------------------------------------------- */

.triptych {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 720px) {
  .triptych {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.triptych__item { margin: 0; }

.triptych__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-warm);
  overflow: hidden;
  margin-bottom: 1rem;
  /* Subtle inset border so missing-image tiles still read as composition */
  box-shadow: inset 0 0 0 0.5px var(--rule);
}

.triptych__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.triptych__item:hover .triptych__photo img {
  transform: scale(1.03);
}

.triptych__item figcaption {
  font-family: var(--slab);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
  padding-left: 1rem;
  border-left: 2px solid var(--cardinal);
}


/* -------------------------------------------------------------------
   05 — Races (dark)
   Editorial race list. Columns on desktop, stacked on mobile.
   ------------------------------------------------------------------- */

.race-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--on-dark-rule);
}

.race {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--on-dark-rule);
  transition: padding-left 0.25s var(--ease);
}

.race:hover {
  padding-left: 0.5rem;
}

@media (min-width: 720px) {
  .race {
    grid-template-columns: 8rem 1fr 14rem;
    align-items: baseline;
    padding: 1.5rem 0;
  }
}

.race__month {
  font-family: var(--slab);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cardinal-bright);
}

.race__name {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.race__place {
  font-family: var(--slab);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--on-dark-soft);
}

@media (min-width: 720px) {
  .race__place { text-align: right; }
}

.races__note {
  margin-top: 2rem;
  font-family: var(--slab);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--on-dark-soft);
  max-width: 50ch;
}


/* -------------------------------------------------------------------
   06 — Join
   ------------------------------------------------------------------- */

.join-form {
  margin-top: 1rem;
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-family: var(--slab);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cardinal);
  box-shadow: 0 0 0 3px rgba(165, 15, 35, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 5rem;
  font-family: var(--sans);
}

/* Honeypot — invisible to humans, named so spam bots fill it */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.join__alt {
  margin-top: 2rem;
  font-family: var(--slab);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  color: var(--ink-soft);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}


/* -------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-ink);
  padding: clamp(3rem, 5vw, 4rem) 0 2rem;
  font-family: var(--sans);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--on-dark-rule);
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
  }
}

.site-footer__wordmark {
  font-family: var(--display);
  font-size: 1.85rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
  color: var(--paper);
}

.site-footer__tagline {
  font-family: var(--slab);
  font-style: italic;
  font-size: 0.95rem;
  margin: 0;
  color: var(--on-dark-soft);
}

.site-footer__heading {
  font-family: var(--slab);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cardinal-bright);
  margin: 0 0 0.85rem;
}

.site-footer__col p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--on-dark-ink);
}

/* Footer contact column links — self-naming destinations
   (email address, "Find us on Strava") per Build Convention #35.
   No underline at rest; hover color shift to cardinal-bright is
   the only affordance needed since the text IS the destination. */
.site-footer__col a {
  color: var(--on-dark-ink);
  border-bottom: none;
}
.site-footer__col a:hover {
  color: var(--cardinal-bright);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* On desktop only: show the small clipboard icon on contact links.
   Per Build Convention #1 + Lessons Learned 2026-04-26:
   visibility-at-click-time check in JS reads whether this icon is
   rendered to decide between native action and clipboard copy. */
.copy-affordance {
  display: none;
  font-size: 0.85em;
  opacity: 0.5;
  transition: opacity 0.2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .copy-affordance { display: inline; }
  .contact-link:hover .copy-affordance { opacity: 1; }
}

.site-footer__base {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--slab);
  font-size: 0.82rem;
  color: var(--on-dark-soft);
}

.site-footer__attribution {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.site-footer__attribution-label {
  font-family: var(--slab);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cardinal-bright);
}

.site-footer__attribution-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  /* No underline per design reference */
  border-bottom: none;
  transition: opacity 0.2s var(--ease);
}

.site-footer__attribution-link:hover {
  color: var(--paper);
  opacity: 0.85;
}

.site-footer__attribution-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  /* Convention #30 — the Sd chip is a brand mark whose COLORS adapt
     to the host site's palette. Sevra's home palette (walnut chip,
     vellum text, coral italic d) belongs only on sevradesign.com.
     On a client site, the chip wears the host's tokens — here, WLS
     paper on the navy footer with a cardinal italic d as the accent. */
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.04em;
  white-space: nowrap;
  line-height: 1;
}

.site-footer__attribution-mark em {
  font-style: italic;
  color: var(--cardinal);
  margin-left: -1px;
}

/* Footer base — stack the copyright and attribution on mobile */
@media (max-width: 720px) {
  .site-footer__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .site-footer__attribution {
    align-items: flex-start;
  }
}


/* -------------------------------------------------------------------
   Copy-to-clipboard toast (Convention #1)
   ------------------------------------------------------------------- */

.copy-status {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.2rem;
  border-radius: 2px;
  font-family: var(--slab);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(10, 20, 41, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 100;
}

.copy-status.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* -------------------------------------------------------------------
   Scroll-reveal — fade + slight rise for sections after the hero
   ------------------------------------------------------------------- */

.section,
.race {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.section.is-visible,
.race.is-visible {
  opacity: 1;
  transform: none;
}


/* -------------------------------------------------------------------
   Accessibility — focus ring
   ------------------------------------------------------------------- */

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


/* -------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------- */

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

  .section, .race {
    opacity: 1;
    transform: none;
  }

  .triptych__item:hover .triptych__photo img {
    transform: none;
  }
}


/* -------------------------------------------------------------------
   Smooth scroll for anchor nav
   --------------------------------------------------------------------
   scroll-padding-top per Build Convention #3: total height of all
   sticky chrome above the content (46px topbar + 70px site-header =
   116px) plus ~28px of breathing room so the anchored section header
   sits clear of the chrome instead of butting against it. 144px = 9rem.
   IDs themselves live on inner .meta-row elements per Convention #3,
   not on outer <section> elements, so the scroll target IS the
   section header — not the section's whitespace-padded top edge.
   ------------------------------------------------------------------- */

html { scroll-behavior: smooth; scroll-padding-top: 9rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* -------------------------------------------------------------------
   Small utilities
   ------------------------------------------------------------------- */

.dot {
  display: inline-block;
  margin: 0 0.5em;
  color: var(--cardinal);
  opacity: 0.7;
}