/* ==========================================================================
   Usher Resilience — design system
   Fluid, responsive, self-contained. Fonts are served from /_woff.
   ========================================================================== */

/* ---------- Fonts (self-hosted, same files the previous build shipped) ---- */
@font-face {
  font-family: 'Bitter';
  src: url('../_woff/v2/Bitter_wght__3/Bitter_wght__3-english.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: 'Bitter';
  src: url('../_woff/v2/Bitter_wght__3/Bitter_wght__3-rest-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../_woff/v2/Inter_1/Inter_1-english.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: 'Inter';
  src: url('../_woff/v2/Inter_1/Inter_1-rest-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --forest:      #1e3d2e;
  --forest-deep: #162f23;
  --forest-soft: #2c5741;
  --ink:         #16241c;
  --body:        #40544a;
  --muted:       #6b7d72;

  --cream:       #fbf8f2;
  --sand:        #f2ebdd;
  --sand-deep:   #e7dcc7;
  --line:        #e2d9c8;

  --clay:        #c2643c;
  --clay-deep:   #a4502e;
  --amber:       #e0b483;

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 1px 2px rgba(22, 36, 28, .06), 0 2px 8px rgba(22, 36, 28, .05);
  --shadow:    0 2px 6px rgba(22, 36, 28, .06), 0 12px 32px rgba(22, 36, 28, .08);
  --shadow-lg: 0 4px 12px rgba(22, 36, 28, .07), 0 28px 60px rgba(22, 36, 28, .13);

  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --maxw: 1180px;
  --maxw-narrow: 720px;

  --nav-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: 'Bitter', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
a { color: var(--clay-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }
ul, ol { margin: 0 0 1.15em; padding-left: 1.35em; }
li { margin-bottom: .4em; }
:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--sand { background: var(--sand); }
.section--cream { background: var(--cream); }
.section--forest { background: var(--forest); color: #cfe0d5; }
.section--forest h2, .section--forest h3 { color: #fff; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 .9rem;
}
.section-head { max-width: 60ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--body); }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: .975rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--clay-deep); color: #fff; box-shadow: var(--shadow); }
.btn--forest { background: var(--forest); color: #fff; box-shadow: var(--shadow-sm); }
.btn--forest:hover { background: var(--forest-soft); color: #fff; box-shadow: var(--shadow); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn--on-dark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.btn--on-dark:hover { background: #fff; color: var(--forest); }
.btn--sm { padding: .6rem 1.15rem; font-size: .9rem; }

/* ---------- Skip link ---------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--forest); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(251, 248, 242, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.is-stuck {
  background: rgba(251, 248, 242, .93);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(22, 36, 28, .06);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.5rem);
}
.nav__brand { margin-right: auto; }
.nav__right {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.5vw, 1rem);
  flex: none;
}

/* ---- pinned live race countdown ---- */
.nav__cd {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .1rem;
  padding: .35rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
  text-decoration: none;
  line-height: 1.15;
  white-space: nowrap;
  transition: border-color .2s ease, background-color .2s ease, transform .25s var(--ease);
}
.nav__cd:hover {
  border-color: var(--clay);
  background: #fff;
  transform: translateY(-1px);
}
.nav__cd-time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  font-size: .88rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -.01em;
}
.nav__cd-label {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__brand {
  font-family: 'Bitter', serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.nav__brand:hover { color: var(--forest); }
.nav__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--clay); flex: none;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.6vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  padding: .4rem 0;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--ink); font-weight: 600; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -8px;
  align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
  border-radius: 10px;
}
.nav__toggle span {
  position: relative;
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: background-color .2s ease;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 22px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease), top .2s ease;
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after  { top: 7px; }
.nav__toggle[aria-expanded='true'] span { background: transparent; }
.nav__toggle[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded='true'] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__cd { padding: .3rem .6rem; }
  .nav__cd-time { font-size: .8rem; }
  .nav__cd-label { font-size: .54rem; letter-spacing: .09em; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: rgba(251, 248, 242, .98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    /* animate open/close */
    transform-origin: top;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .3s var(--ease), visibility .25s;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__links li { border-bottom: 1px solid var(--line); }
  .nav__links li:last-child { border-bottom: 0; padding-top: .9rem; }
  .nav__link { display: block; padding: .95rem .25rem; font-size: 1.02rem; }
  .nav__link::after { display: none; }
  .nav__links .btn { width: 100%; }
}

/* Very narrow phones: drop the wordmark so brand + countdown + menu all fit. */
@media (max-width: 400px) {
  .nav__brand-text { display: none; }
  .nav__cd-label { display: none; }
}

/* ==========================================================================
   Hero — split layout (text + framed portrait), not a full-bleed wash
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(1100px 620px at 88% 6%, rgba(224, 180, 131, .30), transparent 62%),
    radial-gradient(900px 560px at 4% 96%, rgba(44, 87, 65, .13), transparent 60%),
    linear-gradient(170deg, var(--cream) 0%, var(--sand) 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.14fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 clamp(1.75rem, 3.4vw, 2.75rem);
}
.hero__title .l {
  display: block;
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn .85s var(--ease) forwards;
}
.hero__title .l:nth-child(1) { animation-delay: .05s; }
.hero__title .l:nth-child(2) { animation-delay: .17s; }
.hero__title .l:nth-child(3) { animation-delay: .29s; }
.hero__title .accent { color: var(--clay); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero__lede {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem);
  color: var(--body);
  opacity: 0;
  animation: heroIn .85s var(--ease) .42s forwards;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.9rem;
  opacity: 0;
  animation: heroIn .85s var(--ease) .54s forwards;
}
.hero__media {
  position: relative;
  opacity: 0;
  animation: heroIn 1s var(--ease) .3s forwards;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 32%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero__media { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
  .hero__media img { aspect-ratio: 1 / 1; object-position: 50% 30%; }
  .hero__lede { max-width: none; }
}

/* ---------- Stat strip --------------------------------------------------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.stat {
  background: var(--cream);
  padding: clamp(1.4rem, 3vw, 2.1rem) clamp(.75rem, 2vw, 1.5rem);
  text-align: center;
}
.stat__n {
  font-family: 'Bitter', serif;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.35rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.05;
  display: block;
}
.stat__l {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .45rem;
  display: block;
}
@media (max-width: 640px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Why / prose + media split
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--media-right .split__media { order: 2; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.split__media figcaption {
  margin-top: .75rem;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--media-right .split__media { order: 0; }
  .split__media { max-width: 480px; margin-inline: auto; width: 100%; }
  .split__media img { aspect-ratio: 5 / 4; }
}

.pull {
  margin: 2rem 0 0;
  padding: 1.35rem 0 1.35rem 1.5rem;
  border-left: 3px solid var(--clay);
  font-family: 'Bitter', serif;
  font-size: clamp(1.1rem, 1rem + .55vw, 1.35rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

/* ==========================================================================
   Timeline — The Road to 100
   ========================================================================== */
.timeline {
  position: relative;
  margin-top: clamp(1rem, 3vw, 2rem);
  padding-left: 0;
  list-style: none;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--amber), var(--line));
  border-radius: 2px;
}
.tl {
  position: relative;
  padding-left: 3.25rem;
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
}
.tl:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute;
  left: 6px;
  top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--amber);
  display: grid;
  place-items: center;
}
.tl__dot::after {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  transition: transform .3s var(--ease);
}
.tl.is-done .tl__dot { border-color: var(--forest); }
.tl.is-done .tl__dot::after { background: var(--forest); }
.tl.is-next .tl__dot {
  border-color: #e0a944;
  box-shadow: 0 0 0 4px rgba(224, 169, 68, .18);
}
.tl.is-next .tl__dot::after { background: #e0a944; }
.tl.is-race .tl__dot { border-color: var(--clay); box-shadow: 0 0 0 5px rgba(194, 100, 60, .14); }
.tl.is-race .tl__dot::after { background: var(--clay); }

.tl__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tl__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tl__inner { padding: clamp(1.15rem, 2.5vw, 1.6rem); }
.tl__media { overflow: hidden; background: var(--sand); }
.tl__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  /* Bias the crop upward — most of these are portrait shots with the subject
     in the top half. */
  object-position: 50% 35%;
  transition: transform .6s var(--ease);
}
.tl__card:hover .tl__media img { transform: scale(1.04); }
.tl.is-race .tl__card {
  border-color: rgba(194, 100, 60, .4);
  background: linear-gradient(150deg, #fff, rgba(224, 180, 131, .14));
}
.tl__date {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 .3rem;
}
.tl__title { font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); margin: 0 0 .45rem; }
.tl__body { margin: 0; font-size: .975rem; color: var(--body); }
.tl__tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .9rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.tl__tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
/* Complete — green */
.tl__tag--done {
  background: #e4efe6;
  border-color: #c2dbc9;
  color: #1f5334;
}
/* Up next — amber */
.tl__tag--next {
  background: #fdf0d9;
  border-color: #f0d3a2;
  color: #8a5a12;
}
/* Race day — clay */
.tl__tag--race {
  background: var(--clay);
  border-color: var(--clay-deep);
  color: #fff;
}

/* Desktop: alternating two-column timeline */
@media (min-width: 861px) {
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .tl {
    width: 50%;
    padding-left: 0;
    padding-right: 3.25rem;
  }
  .tl:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 3.25rem;
  }
  .tl__dot { left: auto; right: -10px; }
  .tl:nth-child(even) .tl__dot { right: auto; left: -10px; }
  .tl:nth-child(odd) .tl__card { text-align: right; }
  .tl:nth-child(odd) .tl__date { text-align: right; }
}

/* ==========================================================================
   Blog cards
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { overflow: hidden; background: var(--sand); }
.card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
}
.card__date {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 .5rem;
}
.card__title { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); margin: 0 0 .6rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--clay-deep); }
.card__excerpt { font-size: .96rem; margin: 0 0 1.15rem; }
.card__more {
  margin-top: auto;
  align-self: flex-start;
  font-size: .92rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.card__more span { transition: transform .3s var(--ease); }
.card__more:hover { color: var(--clay-deep); }
.card__more:hover span { transform: translateX(4px); }

/* ==========================================================================
   Training — Tableau dashboard + Strava feed
   ========================================================================== */
.training {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
.training__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  box-shadow: var(--shadow-sm);
}
.training__label {
  margin: 0 0 .9rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.training__viz { min-width: 0; overflow: hidden; }
/* Reserve the viz height up front so the page doesn't shift while Tableau
   loads (427px / 327px matches the embed's own sizing breakpoints). */
.training__viz .tableauPlaceholder { width: 100%; min-height: 427px; }
@media (max-width: 560px) {
  .training__viz .tableauPlaceholder { min-height: 327px; }
}
.training__viz .tableauPlaceholder img { max-width: 100%; height: auto; }
.training__strava { display: flex; flex-direction: column; }
.training__strava-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.1rem;
  padding-block: .5rem;
}
.training__strava-body p { margin: 0; font-size: .98rem; }
.training__strava-mark { color: var(--clay); }
@media (max-width: 900px) {
  .training { grid-template-columns: 1fr; }
  .training__strava { justify-self: center; width: 100%; max-width: 400px; }
}

/* ==========================================================================
   Donate
   ========================================================================== */
.donate {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .donate { grid-template-columns: 1fr; } }

.donate__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow);
}
.progress {
  height: 12px;
  border-radius: 999px;
  background: var(--sand-deep);
  overflow: hidden;
  margin: 1.15rem 0 .75rem;
}
.progress__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest-soft), var(--clay));
  width: 0;
  transition: width 1.6s var(--ease);
}
.donate__figures {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.donate__raised {
  font-family: 'Bitter', serif;
  font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.4rem);
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
}
.donate__goal { font-size: .95rem; color: var(--muted); }
.donate__note { font-size: .88rem; color: var(--muted); margin-top: 1.15rem; }

/* ==========================================================================
   About cards / share
   ========================================================================== */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 3vw, 1.85rem);
}
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 1.85rem);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.fact:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fact__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--sand);
  color: var(--forest);
  margin-bottom: 1rem;
}
.fact h3 { margin-bottom: .5rem; }
.fact p { font-size: .96rem; margin: 0; }

.share__row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.75rem;
}
.share__quote {
  margin-top: 1.75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  font-style: italic;
  font-size: .98rem;
}

/* ==========================================================================
   Subscribe
   ========================================================================== */
.subscribe__form { margin-top: 1.6rem; text-align: left; }
.subscribe__fields {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: .9rem;
}
@media (max-width: 560px) { .subscribe__fields { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: .2rem;
}
.subscribe__form input {
  width: 100%;
  min-width: 0;
  padding: .85rem 1.15rem;
  font: inherit;
  font-size: .975rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.subscribe__form input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(194, 100, 60, .14);
}
.subscribe__form input:disabled { background: #f6f2ea; cursor: not-allowed; }
.subscribe__form > .btn { margin-top: 1.1rem; width: 100%; }
@media (min-width: 561px) { .subscribe__form > .btn { width: auto; min-width: 220px; } }
.subscribe__form .btn:disabled { opacity: .55; cursor: not-allowed; }

.subscribe__status { margin: .9rem 0 0; font-size: .92rem; font-weight: 600; }
.subscribe__status.is-ok { color: #1f5334; }
.subscribe__status.is-err { color: var(--clay-deep); }
.subscribe__warn {
  margin: 1rem 0 0;
  padding: .7rem .95rem;
  border-radius: var(--radius-sm);
  background: #fdf0d9;
  border: 1px solid #f0d3a2;
  color: #8a5a12;
  font-size: .86rem;
}
.subscribe__warn code {
  font-size: .95em;
  background: rgba(0,0,0,.06);
  padding: .1em .35em;
  border-radius: 4px;
}
.subscribe__note { font-size: .86rem; color: var(--muted); margin-top: .9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--forest-deep);
  color: #bcd0c2;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer a { color: #e3d3bd; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand {
  font-family: 'Bitter', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .65rem;
}
.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8fae9b;
  margin: 0 0 .9rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5rem; }
.footer__bottom {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .875rem;
  color: #8fae9b;
}

/* ==========================================================================
   Blog list + article pages
   ========================================================================== */
.page-head {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(224, 180, 131, .26), transparent 60%),
    linear-gradient(170deg, var(--cream), var(--sand));
}
.page-head h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.4rem); margin-bottom: .5rem; }

.article__head {
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 3.5rem));
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(170deg, var(--cream), var(--sand));
}
.article__title {
  font-size: clamp(1.95rem, 1.4rem + 2.9vw, 3.15rem);
  margin: .35rem 0 .75rem;
}
.article__meta { font-size: .9rem; color: var(--muted); }
.article__hero {
  width: 100%;
  max-height: min(62vh, 560px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
/* Tall photos are shown in full, centred, instead of cropped to a letterbox. */
.article__hero--portrait {
  width: auto;
  max-width: 100%;
  max-height: min(78vh, 760px);
  object-fit: contain;
  margin-inline: auto;
}

/* ---- share row on articles ---- */
.article__share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: clamp(2rem, 5vw, 2.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.article__share-label {
  margin: 0 .35rem 0 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose { font-size: clamp(1.03rem, 1rem + .28vw, 1.14rem); line-height: 1.75; }
.prose h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.95rem);
  margin: 2.25em 0 .6em;
}
.prose h3 {
  font-size: clamp(1.18rem, 1.05rem + .6vw, 1.45rem);
  margin: 1.9em 0 .55em;
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
}
.back-link span { transition: transform .3s var(--ease); }
.back-link:hover span { transform: translateX(-4px); }

.article__cta {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.article__cta h3 { margin-bottom: .6rem; }
.article__cta .btn { margin-top: 1.1rem; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Only hide content once JS has confirmed it is running (the inline snippet in
   <head> adds .js). Without JS the page renders fully visible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__title .l, .hero__lede, .hero__cta, .hero__media { opacity: 1; animation: none; }
  .progress__bar { transition: none; }
}

/* ---------- Print -------------------------------------------------------- */
@media print {
  .nav, .hero__cta, .article__cta, .share__row { display: none; }
  body { background: #fff; }
}
