/*
  Site layer on top of Web Awesome.
  The look: the badger's own colors (ink black and bone white) with one hot
  honey amber for the things you should press. Headings use a heavy condensed
  face that echoes the logo's wordmark.

  Everything below overrides Web Awesome's tokens (--wa-*), so components
  (buttons, badges, callouts, focus rings, dialogs) pick it up automatically.
*/

/* ---------- Palette ---------- */
:root {
  --hb-ink: #13120f;
  --hb-coal: #1f1d19;
  --hb-char: #2c2924;
  --hb-bone: #f1f1ee;       /* chalk white: the badger's stripe, not parchment */
  --hb-bone-deep: #e2e2dd;
  --hb-paper: #fafaf8;
  --hb-stone: #56554f;      /* quiet text on bone */
  --hb-ash: #b0aea6;        /* quiet text on ink */
  --hb-honey: #ffb000;
  --hb-honey-hot: #ffc233;  /* hover */
  --hb-honey-ink: #845500;  /* honey as text on bone (5:1) */

  --container: 76rem;
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
}

/* Web Awesome resets the fonts to the system ones inside every theme scope,
   including .wa-dark (featured plan, menu drawer, ink sections), so set them there too. */
.wa-dark, .wa-invert {
  --wa-font-family-heading: var(--font-display);
  --wa-font-family-body: var(--font-body);
  --wa-font-family-longform: var(--font-body);
}

:root,
.wa-light {
  --wa-font-family-heading: var(--font-display);
  --wa-font-family-body: var(--font-body);
  --wa-font-family-longform: var(--font-body);
  --wa-font-weight-heading: 800;
  --wa-font-weight-action: 700;
  --wa-border-radius-scale: 0.4;

  --wa-color-surface-default: var(--hb-bone);
  --wa-color-surface-raised: var(--hb-paper);
  --wa-color-surface-lowered: var(--hb-bone-deep);
  --wa-color-surface-border: #d0d0c9;
  --wa-color-text-normal: var(--hb-ink);
  --wa-color-text-quiet: var(--hb-stone);
  --wa-color-text-link: var(--hb-ink);
  --wa-color-focus: var(--hb-honey-ink);

  --wa-color-brand-fill-loud: var(--hb-honey);
  --wa-color-brand-on-loud: var(--hb-ink);
  --wa-color-brand-fill-normal: #ffd679;
  --wa-color-brand-on-normal: var(--hb-ink);
  --wa-color-brand-fill-quiet: #fbe7b5;
  --wa-color-brand-on-quiet: var(--hb-honey-ink);
  --wa-color-brand-border-loud: var(--hb-honey);
  --wa-color-brand-border-normal: #e9b440;
  --wa-color-brand-border-quiet: #f1d796;
}

.wa-dark {
  --wa-color-surface-default: var(--hb-ink);
  --wa-color-surface-raised: var(--hb-coal);
  --wa-color-surface-lowered: #0c0b09;
  --wa-color-surface-border: #3a362f;
  --wa-color-text-normal: var(--hb-bone);
  --wa-color-text-quiet: var(--hb-ash);
  --wa-color-text-link: var(--hb-bone);
  --wa-color-focus: var(--hb-honey);

  --wa-color-brand-fill-loud: var(--hb-honey);
  --wa-color-brand-on-loud: var(--hb-ink);
  --wa-color-brand-fill-normal: #4a3505;
  --wa-color-brand-on-normal: var(--hb-honey);
  --wa-color-brand-fill-quiet: #2b2107;
  --wa-color-brand-on-quiet: var(--hb-honey);
  --wa-color-brand-border-loud: var(--hb-honey);
  --wa-color-brand-border-normal: #8a6200;
  --wa-color-brand-border-quiet: #4a3505;

  /* Outlined neutral buttons on dark need a visible edge. */
  --wa-color-neutral-border-loud: #8f877a;
  --wa-color-neutral-on-quiet: var(--hb-bone);
}

/* ---------- Base ---------- */
html { scrollbar-color: var(--hb-char) var(--hb-bone-deep); }

body {
  background: var(--wa-color-surface-default);
  color: var(--wa-color-text-normal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Layout classes set `display`, which would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }

/* Until Web Awesome loads, the menu drawer and dialogs would show their contents
   inline at the top of the page and then vanish, shoving everything around. */
wa-drawer:not(:defined), wa-dialog:not(:defined) { display: none; }

/* Photos are wrapped in <picture> for the AVIF copies; keep layout on the <img>. */
picture { display: contents; }
picture > source { display: none; }

::selection { background: var(--hb-honey); color: var(--hb-ink); }
input, textarea { caret-color: var(--hb-honey-ink); }

h1, h2, h3, h4,
.wa-heading-3xl, .wa-heading-2xl, .wa-heading-xl, .wa-heading-l, .wa-heading-m, .wa-heading-s {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.98;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-color: var(--hb-honey); }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: var(--wa-space-s) var(--wa-space-m);
  background: var(--hb-honey);
  color: var(--hb-ink);
  font-weight: 700;
}

/* Buttons speak in the display face, and press like a plate hitting the floor. */
wa-button::part(base) {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 120ms var(--ease-out), background-color 160ms, border-color 160ms, color 160ms;
}
wa-button:not([disabled]):active::part(base) { transform: translateY(2px); }
wa-button[size="large"]::part(base) { font-size: 1.15rem; }

/* Plain text link with an arrow that nudges forward. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
}
.arrow-link wa-icon { transition: transform 200ms var(--ease-out); }
.arrow-link:hover wa-icon { transform: translateX(4px); }
.arrow-link:hover { color: var(--hb-honey-ink); }
.wa-dark .arrow-link:hover { color: var(--hb-honey); }

/* Honey "tape" behind a word or two in a headline. */
.tape {
  display: inline-block;
  background: var(--hb-honey);
  color: var(--hb-ink);
  padding: 0.02em 0.14em 0;
  margin-inline: -0.04em;
  transform: rotate(-1.5deg);
}

/* ---------- Top strip (desktop only; mobile gets the bottom bar) ---------- */
.trial-strip {
  background: var(--hb-honey);
  color: var(--hb-ink);
  font-size: var(--wa-font-size-s);
  font-weight: 600;
}
.trial-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--wa-space-m);
  min-height: 2.25rem;
}
.trial-strip p { margin: 0; }
.trial-strip a { color: inherit; font-weight: 700; }
@media (max-width: 960px) { .trial-strip { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hb-ink);
  color: var(--hb-bone);
  border-bottom: 1px solid #2a2722;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wa-space-l);
  min-height: 4.25rem;
}

.brand { display: block; }
.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 58vw;
  filter: invert(1);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--wa-space-2xs);
}
.nav-link {
  position: relative;
  padding: var(--wa-space-xs) var(--wa-space-s);
  color: var(--hb-bone);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: var(--wa-space-s);
  right: var(--wa-space-s);
  bottom: 0.15rem;
  height: 3px;
  background: var(--hb-honey);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--hb-honey); }
.nav-cta { margin-left: var(--wa-space-s); }

.nav-toggle { display: none; }
.nav-toggle::part(base) { color: var(--hb-bone); font-size: 1.4rem; }

#nav-drawer::part(dialog) { background: var(--hb-ink); color: var(--hb-bone); }
#nav-drawer::part(title) { font-family: var(--font-display); text-transform: uppercase; font-weight: 800; }
#nav-drawer::part(close-button) { color: var(--hb-bone); }
.drawer-link {
  display: block;
  padding: var(--wa-space-xs) 0;
  text-decoration: none;
  color: var(--hb-bone);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.drawer-link[aria-current="page"] { color: var(--hb-honey); }
.drawer-footer { display: grid; gap: var(--wa-space-s); width: 100%; }

@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Sticky bottom bar (phones) ---------- */
.mobile-cta {
  display: none;
}
@media (max-width: 960px) {
  .mobile-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: flex;
    gap: var(--wa-space-xs);
    padding: var(--wa-space-xs) var(--wa-space-s) calc(var(--wa-space-xs) + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--hb-ink) 94%, transparent);
    color: var(--hb-bone);
    backdrop-filter: blur(8px);
    border-top: 1px solid #2a2722;
  }
  .mobile-cta wa-button:first-child { flex: 1; }
  .mobile-cta { transition: transform 300ms var(--ease-out); }
  .mobile-cta.is-tucked { transform: translateY(110%); }
  body { padding-bottom: 4.5rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section-alt { background: var(--wa-color-surface-lowered); }
.section-ink { background: var(--hb-ink); color: var(--hb-bone); }

.section-head {
  display: grid;
  gap: var(--wa-space-m);
  max-width: 46rem;
}
.section-head h2 { margin: 0; font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
.section-head p { margin: 0; color: var(--wa-color-text-quiet); font-size: var(--wa-font-size-l); }

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--wa-color-text-quiet);
  max-width: 54ch;
  margin: 0;
}

.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  padding-block: clamp(3rem, 8vw, 6rem);
  color: var(--hb-bone);
  background: var(--hb-ink);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.62);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(19 18 15 / 0.82), rgb(19 18 15 / 0.2) 70%),
    linear-gradient(0deg, rgb(19 18 15 / 0.9), transparent 45%);
}
.hero-inner { display: grid; gap: var(--wa-space-xl); }
@media (max-width: 760px) {
  .hero { min-height: 0; padding-top: 14rem; padding-bottom: var(--wa-space-2xl); }
  .hero-inner { gap: var(--wa-space-l); }
}
.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 10.5vw, 6rem);
  line-height: 0.9;
  font-weight: 900;
  color: var(--hb-bone);
}
.hero h1 .line { display: block; }
.hero .lede { color: rgb(243 238 228 / 0.86); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wa-space-m) var(--wa-space-xl);
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wa-space-xs) var(--wa-space-l);
}

/* Live "next class" chip, filled in from the schedule by site.js */
.next-class {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  width: fit-content;
  padding: 0.45em 0.9em 0.45em 0.75em;
  border: 1px solid rgb(243 238 228 / 0.25);
  border-radius: 999px;
  background: rgb(19 18 15 / 0.55);
  backdrop-filter: blur(6px);
  color: var(--hb-bone);
  text-decoration: none;
  font-size: var(--wa-font-size-s);
  font-weight: 600;
}
.next-class strong { font-weight: 700; }
.next-class wa-icon { color: var(--hb-honey); }

/* The one authored entrance: the headline lands, then the tape slaps on. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line {
    animation: land 700ms var(--ease-out) both;
  }
  .hero h1 .line:nth-child(2) { animation-delay: 90ms; }
  .hero h1 .tape {
    animation: tape 420ms var(--ease-out) 520ms both;
    transform-origin: left center;
  }
  @keyframes land {
    from { opacity: 0; transform: translateY(0.35em); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
  }
  @keyframes tape {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
  }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  background: var(--hb-ink);
  color: var(--hb-bone);
  overflow: hidden;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(16rem, 32vw, 26rem);
}
.page-hero-text {
  display: grid;
  align-content: end;
  gap: var(--wa-space-m);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  padding-right: var(--wa-space-xl);
}
.page-hero h1 {
  margin: 0;
  color: var(--hb-bone);
  font-size: clamp(3rem, 7.5vw, 5.75rem);
  line-height: 0.9;
  font-weight: 900;
}
.page-hero .lede { color: var(--hb-ash); }
.page-hero .lede a { color: var(--hb-bone); }
.page-hero-media {
  position: relative;
  margin-right: calc((100vw - min(100vw - 2rem, var(--container))) / -2);
}
.page-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.page-hero:not(:has(.page-hero-media)) .page-hero-grid { grid-template-columns: 1fr; min-height: 0; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: var(--wa-space-s) var(--wa-space-l); align-items: center; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--hb-ash);
  text-decoration: none;
  font-weight: 600;
  width: fit-content;
}
.back-link:hover { color: var(--hb-honey); }

@media (max-width: 760px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media {
    order: -1;
    margin-inline: -1rem;
    aspect-ratio: 16 / 9;
  }
  .page-hero-media img { clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
  .page-hero-text { padding-block: var(--wa-space-xl) var(--wa-space-2xl); padding-right: 0; }
}

/* ---------- Home: programs diptych ---------- */
.programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: var(--wa-space-l);
}
.program {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  gap: var(--wa-space-s);
  min-height: clamp(26rem, 42vw, 34rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--hb-bone);
  text-decoration: none;
  overflow: hidden;
  border-radius: 3px;
  background: var(--hb-ink);
}
.program img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.8);
  transform: scale(1.02);
  transition: filter 600ms var(--ease-out), transform 900ms var(--ease-out);
}
.program::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgb(19 18 15 / 0.92), rgb(19 18 15 / 0.05) 62%);
}
.program:hover img,
.program:focus-visible img { filter: grayscale(0) brightness(0.85); transform: scale(1.06); }
.program-tag {
  width: fit-content;
  padding: 0.2em 0.6em;
  background: var(--hb-honey);
  color: var(--hb-ink);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
.program h3 { margin: 0; font-size: clamp(2.25rem, 4vw, 3.25rem); color: var(--hb-bone); }
.program p { margin: 0; max-width: 36ch; color: rgb(243 238 228 / 0.86); }
.program .arrow-link { margin-top: var(--wa-space-xs); color: var(--hb-honey); }

/* ---------- Two-column feature (photo + text) ---------- */
.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.feature-text { display: grid; gap: var(--wa-space-l); }
.feature-text h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 4rem); }
.feature-text p { margin: 0; max-width: 60ch; }
.feature-media { aspect-ratio: 4 / 5; max-height: 38rem; }

/* ---------- Scaling levels (RX+ / RX / Pico) ---------- */
.levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--wa-color-surface-border);
  border-radius: 3px;
  background: var(--wa-color-surface-raised);
}
.levels > div {
  display: grid;
  align-content: start; /* keep the description right under its label in every column */
  gap: var(--wa-space-2xs);
  padding: var(--wa-space-m);
}
.levels > div + div { border-left: 1px solid var(--wa-color-surface-border); }
.levels strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
}
.levels span { font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); line-height: 1.4; }
@media (max-width: 520px) {
  .levels { grid-template-columns: 1fr; }
  .levels > div + div { border-left: 0; border-top: 1px solid var(--wa-color-surface-border); }
  .levels > div { grid-template-columns: 4.5rem 1fr; align-items: baseline; }
}

/* ---------- Manifesto ---------- */
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.manifesto-intro { display: grid; gap: var(--wa-space-l); position: sticky; top: 7rem; }
.manifesto-intro h2 { margin: 0; font-size: clamp(3rem, 6.5vw, 5.5rem); line-height: 0.88; color: var(--hb-bone); }
.manifesto-intro p { margin: 0; color: var(--hb-ash); max-width: 46ch; }
.manifesto-intro img { aspect-ratio: 4 / 3; }
.since {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--wa-space-2xs) var(--wa-space-m);
  padding-block: var(--wa-space-m);
  border-block: 1px solid #3a362f;
}
.since strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--hb-honey);
}
.since span { color: var(--hb-ash); font-weight: 600; }
.manifesto {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.manifesto li {
  display: grid;
  gap: var(--wa-space-xs);
  padding-block: var(--wa-space-xl);
  border-top: 1px solid #3a362f;
}
.manifesto li:last-child { border-bottom: 1px solid #3a362f; }
.manifesto h3 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: var(--hb-bone);
}
.manifesto p { margin: 0; color: var(--hb-ash); max-width: 52ch; }
.manifesto li:last-child h3 { color: var(--hb-honey); }
@media (max-width: 860px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-intro { position: static; }
}

/* ---------- Whiteboard (WODs) ---------- */
.whiteboard {
  display: grid;
  gap: var(--wa-space-m);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--hb-coal);
  color: var(--hb-bone);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #3a362f, 0 18px 40px -24px rgb(0 0 0 / 0.6);
}
.whiteboard-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--wa-space-s);
  color: var(--hb-ash);
  font-weight: 600;
}
.whiteboard-meta .date { color: var(--hb-honey); }
.whiteboard h2, .whiteboard h3 { margin: 0; color: var(--hb-bone); }
.whiteboard h2 a, .whiteboard h3 a { color: inherit; text-decoration: none; }
.whiteboard h2 a:hover, .whiteboard h3 a:hover { color: var(--hb-honey); }
.whiteboard p { margin: 0; color: var(--hb-ash); }
.wod-chips { display: flex; flex-wrap: wrap; gap: var(--wa-space-xs); }
.wod-chips span {
  padding: 0.2em 0.65em;
  border: 1px solid #4a453c;
  border-radius: 2px;
  font-size: var(--wa-font-size-s);
  font-weight: 600;
  color: var(--hb-bone);
}

.wod-body { display: grid; gap: var(--wa-space-l); }
.wod-part h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--wa-space-s);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.wod-format {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--hb-honey);
}
.wod-body p { white-space: pre-line; }
.wod-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px;
  background: #3a362f;
  border: 1px solid #3a362f;
}
.wod-level { padding: var(--wa-space-m); background: var(--hb-ink); }
.wod-level h3 {
  margin: 0 0 var(--wa-space-xs);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--hb-honey);
}
.wod-level p { margin: 0; color: var(--hb-bone); line-height: 1.6; font-variant-numeric: tabular-nums; }

/* ---------- Closing CTA ---------- */
.closer {
  background: var(--hb-honey);
  color: var(--hb-ink);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.closer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--wa-space-xl);
}
.closer h2 { margin: 0; font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 0.9; max-width: 14ch; }
.closer p { margin: var(--wa-space-m) 0 0; max-width: 48ch; font-weight: 500; }
.closer-actions { display: grid; gap: var(--wa-space-m); justify-items: start; }
.closer .arrow-link:hover { color: var(--hb-ink); text-decoration: underline; }
.btn-ink::part(base) {
  background: var(--hb-ink);
  border-color: var(--hb-ink);
  color: var(--hb-bone);
}
.btn-ink:hover::part(base) { background: var(--hb-char); border-color: var(--hb-char); }

/* ---------- Coaches ---------- */
.coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.coach { display: grid; gap: var(--wa-space-m); }
.coach-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background: var(--hb-ink);
}
.coach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 900ms var(--ease-out);
}
.coach:hover .coach-photo img { transform: scale(1.04); }
.coach h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 2.6rem); }
.coach-role {
  margin: 0;
  font-weight: 600;
  color: var(--hb-honey-ink);
}
.coach-bio { display: grid; gap: var(--wa-space-s); }
.coach-bio p { margin: 0; }

/* ---------- Cards (pricing, kids, events) ---------- */
wa-card { --border-radius: 3px; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--wa-space-l);
}
.plan {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: var(--wa-space-m);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--wa-color-surface-border);
  border-radius: 3px;
  background: var(--wa-color-surface-raised);
}
.plan h3 { margin: 0; font-size: 1.75rem; }
.plan-top { display: flex; justify-content: space-between; align-items: start; gap: var(--wa-space-s); }
.plan-flag {
  padding: 0.2em 0.55em;
  background: var(--hb-honey);
  color: var(--hb-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.plan-featured {
  background: var(--hb-ink);
  color: var(--hb-bone);
  border-color: var(--hb-ink);
}
.plan-featured .price { color: var(--hb-honey); }
.plan-meta { margin: 0; color: var(--wa-color-text-quiet); font-weight: 600; }
.price-row { display: flex; align-items: baseline; gap: 0.25rem; }
.price {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.per { color: var(--wa-color-text-quiet); font-weight: 600; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wa-space-xs); }
.ticks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--wa-space-xs); align-items: baseline; }
.ticks wa-icon { color: var(--hb-honey-ink); font-size: 0.9em; }
.plan-featured .ticks wa-icon { color: var(--hb-honey); }

.discount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wa-space-s) var(--wa-space-m);
  padding: var(--wa-space-m) var(--wa-space-l);
  border: 2px dashed var(--hb-honey-ink);
  border-radius: 3px;
  font-size: 1.15rem;
  font-weight: 600;
}
.fine-print { margin: 0; color: var(--wa-color-text-quiet); }
.discount wa-icon { font-size: 1.75rem; color: var(--hb-honey-ink); }

.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  border-top: 1px solid var(--wa-color-surface-border);
}
.paths > div {
  display: grid;
  gap: var(--wa-space-xs);
  align-content: start;
  padding: var(--wa-space-l) var(--wa-space-l) var(--wa-space-l) 0;
}
.paths h3 { margin: 0; font-size: 1.6rem; }
.paths p { margin: 0; color: var(--wa-color-text-quiet); }

/* Events */
.event-card { scroll-margin-top: 7rem; }
.event-card::part(media) { aspect-ratio: 16 / 9; background: var(--hb-ink); }
.event-card img[slot="media"] { width: 100%; height: 100%; object-fit: contain; }
.event-card:target { --border-color: var(--hb-honey); --border-width: 3px; }
.event-card h3 { margin: 0; }
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--wa-space-l);
  align-items: start;
}

.next-comp {
  display: grid;
  align-content: center;
  gap: var(--wa-space-m);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 3px;
  background: var(--hb-ink);
  color: var(--hb-bone);
}
.next-comp .plan-flag { width: fit-content; }
.next-comp h3 { margin: 0; font-size: clamp(2.25rem, 4vw, 3rem); color: var(--hb-bone); }
.next-comp p { margin: 0; color: var(--hb-ash); max-width: 42ch; }
.next-comp .arrow-link { color: var(--hb-honey); }

/* ---------- Free week steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--wa-space-xl);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  gap: var(--wa-space-xs);
  align-content: start;
  padding-top: var(--wa-space-m);
  border-top: 3px solid var(--hb-ink);
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4rem;
  line-height: 0.9;
  color: var(--hb-honey-ink);
}
.steps h2 { margin: 0; font-size: 1.75rem; }
.steps p { margin: 0; color: var(--wa-color-text-quiet); }

.first-class { display: grid; gap: var(--wa-space-xl); }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1px;
  margin: 0;
  background: var(--wa-color-surface-border);
  border: 1px solid var(--wa-color-surface-border);
}
.facts > div { display: grid; gap: var(--wa-space-2xs); align-content: start; padding: var(--wa-space-l); background: var(--wa-color-surface-raised); }
.facts dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
}
.facts dd { margin: 0; color: var(--wa-color-text-quiet); }

/* ---------- Schedule ---------- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: var(--wa-space-l);
}
.day {
  position: relative;
  padding: var(--wa-space-l);
  border: 1px solid var(--wa-color-surface-border);
  border-radius: 3px;
  background: var(--wa-color-surface-raised);
  scroll-margin-top: 6rem;
}
.day h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 var(--wa-space-s);
  font-size: 2rem;
}
.day-today {
  display: none;
  padding: 0.15em 0.5em;
  background: var(--hb-honey);
  color: var(--hb-ink);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.day.is-today { background: var(--hb-ink); color: var(--hb-bone); border-color: var(--hb-ink); }
.day.is-today .day-today { display: inline-block; }
.day.is-today .class-row { border-color: #3a362f; }
.day.is-today .childcare { color: var(--hb-ash); }
.day.is-today a { color: var(--hb-honey); }
.class-list { list-style: none; margin: 0; padding: 0; }
.class-row {
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  gap: var(--wa-space-s);
  align-items: baseline;
  padding-block: var(--wa-space-xs);
  border-top: 1px solid var(--wa-color-surface-border);
}
.class-time {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.class-meta { display: grid; gap: 0.1rem; }
.childcare { font-size: var(--wa-font-size-xs); font-weight: 600; color: var(--wa-color-text-quiet); }
.childcare wa-icon { margin-right: 0.3em; }
.class-row.is-next .class-time { color: var(--hb-honey); }
.class-row.is-next .class-meta::after {
  content: "Next up";
  width: fit-content;
  padding: 0.05em 0.45em;
  background: var(--hb-honey);
  color: var(--hb-ink);
  font-size: var(--wa-font-size-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--wa-space-l);
}

/* ---------- Contact ---------- */
.contact-lines { display: grid; gap: var(--wa-space-l); }
.contact-line { display: grid; gap: var(--wa-space-3xs); }
.contact-line span {
  font-weight: 600;
  color: var(--wa-color-text-quiet);
}
.contact-line a, .contact-line address {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: normal;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.05;
  text-decoration: none;
  color: var(--wa-color-text-normal);
}
.contact-line a:hover { color: var(--hb-honey-ink); }

/* ---------- Wodify embeds ---------- */
.wodify-wrap { display: grid; gap: var(--wa-space-m); scroll-margin-top: 6rem; }
.wodify-howto {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--wa-space-xs) var(--wa-space-l);
}
.wodify-howto p { margin: 0; max-width: 60ch; }
.wodify-fallback {
  margin: 0;
  font-size: var(--wa-font-size-s);
  color: var(--wa-color-text-quiet);
}
.wodify-open { display: none; }
@media (max-width: 760px) {
  .wodify-open { display: block; }
  .wodify-open::part(base) { width: 100%; }
  .wodify-embed { display: none; }
}
.wodify-embed.is-loaded::before { display: none; }
.wodify-embed {
  position: relative;
  width: 100%;
  min-height: 32rem;
  border: 1px solid var(--wa-color-surface-border);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
/* Shown underneath until Wodify paints over it. */
.wodify-embed::before {
  content: "Loading class booking from Wodify…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: start center;
  padding-top: 8rem;
  color: var(--hb-stone);
  font-weight: 600;
  background:
    linear-gradient(90deg, transparent, rgb(255 176 0 / 0.12), transparent) 0 0 / 40% 100% no-repeat,
    #fff;
  animation: sweep 1.6s linear infinite;
}
@keyframes sweep { from { background-position: -40% 0, 0 0; } to { background-position: 140% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .wodify-embed::before { animation: none; } }
.wodify-embed iframe {
  position: relative;
  display: block;
  width: 100%;
  min-height: 48rem;
  border: 0;
}

/* ---------- 404 ---------- */
.lost {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.lost img {
  width: clamp(7rem, 18vw, 13rem);
  height: auto;
  mix-blend-mode: multiply;
  transform: rotate(-8deg);
}
.quick-links { display: flex; flex-wrap: wrap; gap: var(--wa-space-s) var(--wa-space-xl); }
@media (max-width: 560px) { .lost { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--hb-ink);
  color: var(--hb-bone);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) var(--wa-space-xl);
  overflow: hidden;
}
.footer-shout {
  margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3rem, 11vw, 6rem);
  line-height: 0.86;
  color: var(--hb-bone);
}
.footer-shout span { color: var(--hb-honey); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--wa-space-2xl);
}
.footer-col { display: grid; gap: var(--wa-space-xs); align-content: start; }
.footer-col h2 {
  margin: 0 0 var(--wa-space-2xs);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--hb-ash);
}
.site-footer a { color: var(--hb-bone); text-decoration: none; }
.site-footer a:hover { color: var(--hb-honey); }
.site-footer address { font-style: normal; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--wa-space-s);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--wa-space-l);
  border-top: 1px solid #2f2c26;
  color: var(--hb-ash);
  font-size: var(--wa-font-size-s);
}
.footer-base p { margin: 0; }

/* ---------- Free week dialog ---------- */
.trial-dialog { --width: 34rem; }
.trial-dialog::part(title) { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 2rem; }
.trial-intro { margin: 0; color: var(--wa-color-text-quiet); }
.trial-alt { font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); }
.trial-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-invalid { --wa-form-control-border-color: var(--wa-color-danger-border-loud); }
.field-invalid::part(hint) { color: var(--wa-color-danger-on-quiet); font-weight: 600; }
.trial-error {
  display: grid;
  gap: var(--wa-space-s);
  padding: var(--wa-space-m);
  border: 1px solid var(--wa-color-danger-border-normal);
  border-radius: 3px;
  background: var(--wa-color-danger-fill-quiet);
}
.trial-error p { margin: 0; font-weight: 600; }
.trial-done {
  display: grid;
  justify-items: center;
  gap: var(--wa-space-s);
  padding-block: var(--wa-space-l);
  text-align: center;
}
.trial-done img { width: 6rem; height: auto; mix-blend-mode: multiply; }
.trial-done h3 { margin: 0; font-size: 2.25rem; }
.trial-done p { margin: 0; color: var(--wa-color-text-quiet); max-width: 34ch; }
@media (prefers-reduced-motion: no-preference) {
  .trial-done img { animation: badger 600ms var(--ease-out) both; }
  @keyframes badger {
    from { transform: scale(0.6) rotate(-14deg); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

/* ---------- Google reviews ---------- */
/* minmax(0, …) and min-width: 0 keep the sideways-scrolling row from widening the page. */
.reviews { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wa-space-xl); min-width: 0; }
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--wa-space-s) var(--wa-space-xl);
}
.reviews-head h2 { margin: 0; font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
.reviews-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wa-space-2xs) var(--wa-space-s);
  margin: 0;
  color: var(--wa-color-text-quiet);
}
.reviews-score strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--wa-color-text-normal);
  font-variant-numeric: tabular-nums;
}
.stars { display: inline-flex; gap: 0.1em; color: var(--hb-honey); font-size: 1.05rem; }
.stars wa-icon[variant="regular"] { color: var(--wa-color-text-quiet); opacity: 0.5; }

/* One row that scrolls sideways; the next card peeks in so it's obvious there's more. */
.reviews-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85%, 24rem);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative; /* keeps the hidden screen-reader labels inside the scroller */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  background: var(--wa-color-surface-border);
  border: 1px solid var(--wa-color-surface-border);
  scrollbar-color: var(--hb-stone) transparent;
}
.review {
  display: flex;
  flex-direction: column;
  gap: var(--wa-space-s);
  margin: 0;
  padding: var(--wa-space-l);
  background: var(--wa-color-surface-raised);
  scroll-snap-align: start;
}
.review blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
  color: inherit;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
  font-size: var(--wa-font-size-m);
  line-height: 1.55;
}
.review-more { align-self: start; font-weight: 600; color: var(--hb-honey-ink); text-underline-offset: 0.2em; }
.review footer {
  display: flex;
  align-items: center;
  gap: var(--wa-space-s);
  margin-top: auto;
  padding-top: var(--wa-space-s);
}
.review footer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.review footer > span { display: grid; line-height: 1.3; }
.review footer a { font-weight: 700; color: inherit; text-decoration: none; }
.review footer a[href]:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.review [data-when] { font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); }

.reviews-links { display: flex; flex-wrap: wrap; gap: var(--wa-space-s) var(--wa-space-xl); }
.reviews-source { margin: 0; font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); }
