/* ==========================================================================
   Southpaw — letterpress fight-bill template for combat-sports gyms
   A Templatorium template · https://templatorium.pages.dev

   HOW TO RE-THEME (the 30-second version — full guide in docs/README.md):
   every color, font, and size the design uses is a custom property in the
   :root block directly below. Change the values there and the whole site
   follows. Everything below the tokens is structure.

   A promise this template makes that yours should keep: every text/background
   pair in the shipped palette meets WCAG 2.2 AA (ratios noted inline).
   If you swap colors, re-check them: https://webaim.org/resources/contrastchecker/
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS — the re-theme contract
   -------------------------------------------------------------------------- */
:root {
  /* Color story: unbleached poster stock / letterpress ink / one hot scarlet.
     The scarlet is used on LESS than 5% of any page: the ticket CTA, one word
     per display stack, the ✦ ornaments, eyebrow rules, and the form submit.
     It is never a section background and never a body-copy link color. */
  --paper:   #F3EBDD; /* page — unbleached cream poster stock */
  --surface: #ECE1CC; /* alt bands, schedule cells (slightly deeper stock) */
  --ink:     #191512; /* primary text + dark band fill (15.33:1 on paper) */
  --muted:   #5C5348; /* secondary text, captions (6.37:1 on paper) */
  --line:    #D8CDB9; /* decorative hairlines ONLY — structure uses --ink */
  --accent:  #C8102E; /* THE scarlet (4.97:1 on paper — AA) */
  --accent-ink: #F3EBDD; /* text on scarlet fills (4.97:1 — AA) */

  /* Dark-ground palette. RULE: the base scarlet is NEVER used on ink — its
     token math says 3.08:1, but the grain overlay lifts ink's rendered
     luminance and drags real pixels under the 3:1 floor (measured). On ink,
     scarlet display words use --accent-on-ink: a lighter pull of the same
     red that clears 3:1 AS RENDERED, grain included, with headroom. Still
     display-size only; body text on dark bands is cream or --muted-on-dark. */
  --inverse-bg:    #191512;
  --inverse-ink:   #F3EBDD; /* 15.33:1 on ink */
  --muted-on-dark: #CFC5B2; /* 10.61:1 on ink — captions on dark bands */
  --accent-on-ink: #E22945; /* scarlet for ink grounds — 4.0:1 flat, ~3.5:1 rendered under the grain */

  /* Ticket-stub perforation "punch" — the hole must match whatever ground
     the ticket sits on. Dark bands override this to --ink. */
  --punch: var(--paper);

  /* Type. All four faces are vendored in /fonts (free-for-commercial:
     Fontshare ITF-FFL for Tanker; Google/OFL for Khand, Archivo, Courier
     Prime). No CDN requests, ever. */
  --font-display: "Tanker", "Arial Black", sans-serif;        /* headliner */
  --font-cond:    "Khand", "Arial Narrow", sans-serif;        /* undercard */
  --font-body:    "Archivo", system-ui, sans-serif;           /* body */
  --font-label:   "Courier Prime", "Courier New", monospace;  /* plates */

  /* Scale. The jump IS the design: a 148px wood-type headliner against
     16.5px body, with the condensed undercard at a >=3x drop below it. */
  --t-headliner: clamp(56px, 11vw, 148px);  /* Tanker, ALL CAPS, lh 0.92 */
  --t-under:     clamp(28px, 4.5vw, 56px);  /* Khand — undercard, H2 */
  --t-h3:        22px;
  --t-body:      16.5px;
  --t-small:     14px;
  --t-label:     11px;   /* Courier eyebrows/plates, tracking .16em */

  /* Space & structure. Two widths on purpose: poster sections run a single
     centered 880px column; utility sections (schedule, coaches) break OUT
     to 1140px — the width change is the page rhythm. */
  --max:        1140px;
  --max-poster: 880px;
  --gutter:     24px;
  --sp-section: clamp(64px, 9vw, 104px);

  /* Radius is 0 everywhere on purpose. Letterpress has no border-radius. */
}

/* --------------------------------------------------------------------------
   2. FONT FACES — vendored woff2, no CDN, no rendering lottery.
      Archivo is a VARIABLE font: one file covers every weight 400–700.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Tanker";
  src: url("../fonts/tanker-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Khand";
  src: url("../fonts/khand-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Khand";
  src: url("../fonts/khand-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Khand";
  src: url("../fonts/khand-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; } /* anchor targets clear the sticky nav */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Paper-stock grain — texture over gradient. A tiny inline-SVG turbulence
   tile at very low opacity. Decorative, but NOT free for contrast: measured
   on rendered pixels it taxes every text/background pair by roughly 0.1–0.3
   of ratio (it lifts the ink ground's luminance the most). The cream-ground
   pairs all carry enough headroom to absorb it; on ink grounds the scarlet
   is lightened (--accent-on-ink) specifically to survive it. If you crank
   the opacity up, re-measure your contrast from rendered pixels. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

p, li { max-width: 68ch; } /* body line length cap */

a { color: inherit; } /* body links are ink + underline, never scarlet */

/* Focus is visible on EVERY ground: 3px ring, offset 2. Scarlet on light
   grounds (4.97:1 on paper, 4.54:1 on surface — clear of the 3:1 non-text
   floor). On ink grounds the ring switches to CREAM (--inverse-ink,
   15.33:1): scarlet's rendered ratio on grained ink falls short of 3:1,
   so it does not get to be a focus ring there. Never outline:none —
   anywhere. */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.on-ink :focus-visible { outline-color: var(--inverse-ink); }

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

.skip-link {
  position: absolute;
  left: var(--gutter); top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-cond); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* Layout primitives */
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--poster { max-width: var(--max-poster); } /* the narrow poster column */
.section { padding-block: var(--sp-section); }
.section--airy { padding-block: calc(var(--sp-section) * 1.5); } /* explainers breathe */
.section--surface { background: var(--surface); }

/* Dark bands. Everything inside inherits the inverse palette. */
.on-ink {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  --punch: var(--ink); /* ticket holes punch through to the dark ground */
}
.on-ink .eyebrow { color: var(--muted-on-dark); }

/* --------------------------------------------------------------------------
   4. TYPE ROLES
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-label);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The headliner — wood-type ALL CAPS. Exactly ONE scarlet word per stack
   (<b class="hit">): emphasis is size and color, never italics. */
.headliner {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-headliner);
  line-height: 0.92;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hit { color: var(--accent); font-weight: inherit; } /* the one scarlet word */
.on-ink .hit { color: var(--accent-on-ink); } /* lighter pull on ink — clears 3:1 rendered, grain included */

/* The undercard — condensed caps. Section headings, nav, timetable numerals. */
.undercard, h2 {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: var(--t-under);
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
}
h3 {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: var(--t-h3);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.lede { font-size: 18px; color: var(--muted); }
.on-ink .lede { color: var(--muted-on-dark); }

.fine {
  font-family: var(--font-label);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-ink .fine { color: var(--muted-on-dark); }

/* --------------------------------------------------------------------------
   5. RULES & ORNAMENTS — the letterpress furniture
   -------------------------------------------------------------------------- */
/* Double rule: a 3px + 1px pair, 6px apart. Structural rules are ink. */
.rule-double {
  height: 10px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.on-ink .rule-double {
  border-color: var(--inverse-ink);
}

/* The ✦ ornament — a rotated square, pure CSS, no icon font. */
.orn {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}

/* Divider: double rules flanking a centered scarlet ✦. */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
}
.divider .rule-double { flex: 1; }

/* Poster frame: 3px outer border + 1px inner rule, 6px apart. */
.frame-double {
  position: relative;
  border: 3px solid var(--ink);
}
.frame-double::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--ink);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  /* radius 0 — letterpress */
}
.btn:hover { background: var(--ink); color: var(--paper); }
.on-ink .btn { border-color: var(--inverse-ink); color: var(--inverse-ink); }
.on-ink .btn:hover { background: var(--inverse-ink); color: var(--ink); }

/* THE ticket stub — the primary CTA and the only scarlet fill on any page.
   Perforation: a dashed rule inset from the left edge, with two "punched"
   semicircles cut by radial-gradients in the ground color (--punch). */
.btn--ticket {
  position: relative;
  border: none;
  background:
    radial-gradient(circle 7px at 26px 0,      var(--punch) 98%, transparent) no-repeat,
    radial-gradient(circle 7px at 26px 100%,   var(--punch) 98%, transparent) no-repeat,
    var(--accent);
  color: var(--accent-ink);
  padding: 14px 26px 14px 44px;
}
.btn--ticket::before {
  content: "";
  position: absolute;
  left: 26px; top: 9px; bottom: 9px;
  border-left: 2px dashed var(--accent-ink);
  opacity: .7;
}
.btn--ticket:hover {
  background:
    radial-gradient(circle 7px at 26px 0,      var(--punch) 98%, transparent) no-repeat,
    radial-gradient(circle 7px at 26px 100%,   var(--punch) 98%, transparent) no-repeat,
    #A50D26; /* deepened scarlet; cream on it rises to ~6:1 */
  color: var(--accent-ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* Body-copy links: ink, underlined — scarlet is not a link color here. */
.link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.link:hover { text-decoration-thickness: 3px; }

/* Chips — Courier plates used for age groups / schedule tags. */
.chip {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--ink);
  font-family: var(--font-label);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   7. NAV — solid cream, 2px ink rule. No translucency, no glass, ever.
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper); /* SOLID — nothing to contrast-check mid-scroll */
  border-bottom: 2px solid var(--ink);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.wordmark .orn { width: 8px; height: 8px; margin: 0 2px 2px; }
.nav nav { margin-left: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--ink); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-cta { white-space: nowrap; }
.nav .btn--ticket { padding: 9px 18px 9px 40px; } /* compact in the nav */

/* Drawer toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 10px;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
}
.nav-toggle .bars {
  position: relative;
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin-block: 7px;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  background: var(--ink);
}
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after  { top:  7px; }
/* Open drawer (aria-expanded is wired in js/main.js): the bars stamp an X. */
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   8. HERO — "Top of the Bill". The full letterpress fight bill: stacked
      wood type, double rules, ✦ ornaments, ticket-stub close. This stack
      appears ONCE — no other section repeats it.
   -------------------------------------------------------------------------- */
.bill {
  padding: 24px clamp(20px, 5vw, 56px) clamp(28px, 5vw, 48px);
  text-align: center;
  background: var(--paper);
}
.bill > * + * { margin-top: clamp(14px, 2.5vw, 24px); }
.bill .eyebrow { display: block; }
.bill .undercard { font-weight: 700; }
.bill .headliner { display: block; }
.bill h1 { font: inherit; }           /* the h1 is the stack, not one line */
.bill h1 > span:not(.bill-vs) { display: block; }
/* the "VS" line — Khand, flanked by short double rules */
.bill-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: .3em;
  text-indent: .3em; /* optically recenter the tracked caps */
  text-transform: uppercase;
  margin-block: clamp(10px, 2vw, 18px);
}
.bill-vs::before, .bill-vs::after {
  content: "";
  flex: 1;
  max-width: 140px;
  height: 10px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.bill .divider { margin-inline: clamp(8px, 6vw, 64px); }
.bill .fine { letter-spacing: .2em; }
.hero { padding-block: clamp(40px, 6vw, 72px); }

/* --------------------------------------------------------------------------
   9. PROGRAMS UNDERCARD GRID — the intentional asymmetry. A 2/3 + 1/3
      off-center split; Courier program numbers HANG in the left margin,
      outside the text block.
   -------------------------------------------------------------------------- */
.undercard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(32px, 6vw, 80px);
}
/* DOM order keeps the heading first (a11y); visually the list takes the
   left 2/3 and the heading block sits off-center right. */
.undercard-grid > header { order: 2; align-self: center; }
.undercard-grid > .prog-list { order: 1; }
.prog-list {
  list-style: none;
  /* room for the hanging numbers */
  padding-left: 84px;
}
.prog-list li { border-top: 2px solid var(--ink); position: relative; max-width: none; }
.prog-list li:last-child { border-bottom: 2px solid var(--ink); }
.prog-list .num {
  position: absolute;
  left: -84px;
  top: 22px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--t-label);
  letter-spacing: .16em;
  color: var(--muted);
}
.prog-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0;
  text-decoration: none;
}
.prog-row .name {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.prog-row .who {
  font-family: var(--font-label);
  font-size: var(--t-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: auto;
}
.prog-row:hover .name { color: var(--accent); }

/* --------------------------------------------------------------------------
   10. VALUES — three NAMED values, ruled, no icons, no card trio.
   -------------------------------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.value {
  border-left: 2px solid var(--ink);
  padding: 8px 24px 8px 20px;
}
.value h3 { margin-bottom: 8px; }
.value p { color: var(--muted); font-size: var(--t-small); }

/* --------------------------------------------------------------------------
   11. SCHEDULE — dark preview band (home) + the full timetable (schedule
       page). A real <table> with scope attrs; JS only dims, never removes.
   -------------------------------------------------------------------------- */
.sched-preview .rule-double { margin-block: 24px; }
.sched-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.sched-strip li { border-left: 1px solid var(--muted-on-dark); padding: 6px 18px; max-width: none; }
.sched-strip .day {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
}
.sched-strip .slot {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  display: block;
  margin-top: 4px;
}

/* Filter bar — progressive enhancement; [hidden] until JS removes it. */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.filter-bar[hidden] { display: none; }
.filter-btn {
  padding: 6px 14px;
  border: 2px solid var(--ink);
  background: transparent;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* The timetable itself */
.table-scroll { overflow-x: auto; } /* wide content scrolls in its own box */
.timetable {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  border: 3px solid var(--ink);
}
.timetable caption {
  text-align: left;
  padding-bottom: 14px;
}
.timetable th, .timetable td {
  border: 1px solid var(--ink);
  padding: 10px 12px;
  vertical-align: top;
  text-align: left;
}
.timetable thead th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-color: var(--paper);
  border-top-color: var(--ink);
}
.timetable thead th:first-child { border-left-color: var(--ink); }
.timetable thead th:last-child { border-right-color: var(--ink); }
.timetable tbody th {
  font-family: var(--font-cond); /* Khand numerals */
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
  white-space: nowrap;
  background: var(--surface);
}
.timetable td {
  font-family: var(--font-label); /* Courier program names */
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.timetable td .lvl { color: var(--muted); display: block; }
.timetable td.dim { opacity: .3; } /* JS filter dims — content never removed */
.timetable td:empty { background: var(--surface); }

/* --------------------------------------------------------------------------
   12. PROGRAM ENTRIES (programs page) — full-width ruled entries that
       expand on anchor. Native <details>: works without JS; js/main.js
       opens the entry a #hash points at.
   -------------------------------------------------------------------------- */
/* Container that reserves the left margin the numbers hang into */
.entries { padding-left: 84px; }

.prog-entry { border-top: 3px solid var(--ink); position: relative; }
.prog-entry:last-of-type { border-bottom: 3px solid var(--ink); }
.prog-entry > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 26px 0;
}
.prog-entry > summary::-webkit-details-marker { display: none; }
.prog-entry .p-num {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--t-label);
  letter-spacing: .16em;
  color: var(--muted);
  position: absolute;
  left: -84px;
  top: 34px;
}
.prog-entry .p-name {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
}
.prog-entry .p-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.prog-entry .p-marker {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  flex: none;
}
.prog-entry[open] .p-marker { transform: rotate(45deg); } /* + becomes x */
.prog-entry:target .p-name { color: var(--accent); } /* anchor arrival mark */
.prog-body {
  padding: 0 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(24px, 5vw, 64px);
}
.prog-body h3 { margin-bottom: 10px; }
.prog-body p + p { margin-top: 14px; } /* paragraph rhythm — no inline styles */
.prog-facts {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  list-style: none;
}
.prog-facts li {
  border-top: 1px solid var(--ink);
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: none;
}
.prog-facts li:last-child { border-bottom: 1px solid var(--ink); }
.prog-facts .k { color: var(--muted); }

/* --------------------------------------------------------------------------
   13. COACH PLATES — framed plates, not cards. 2px ink border, name band
       in ink with cream text, Courier record plate.
   -------------------------------------------------------------------------- */
.coach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.coach {
  border: 2px solid var(--ink);
}
/* Duotone portrait SLOT — ships as a designed empty state: surface fill,
   oversized Tanker initial, and the spec plate. When you add a photo, keep
   the ink+scarlet duotone treatment (see docs/README.md). */
.coach .slot {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.coach .slot .initial {
  font-family: var(--font-display);
  font-size: clamp(120px, 14vw, 190px);
  line-height: 1;
  color: var(--line);
  text-transform: uppercase;
  user-select: none;
}
.coach .slot .spec {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.coach .name-band {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 14px;
}
.coach .record {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--t-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink);
}
.coach .bio { padding: 12px 14px 16px; font-size: var(--t-small); color: var(--muted); }
/* Drop a photo INSIDE the slot (keep the div) and it fills the frame. */
.coach .slot img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* THE HEADLINER PLATE (coaches page) — the head coach gets top billing:
   a plate spanning two of the grid's three columns, big slot left, name
   band + record + the long bio right. The five undercard plates sit in
   the regular grid beneath it. */
.coach--head { margin-bottom: clamp(20px, 3vw, 36px); }
@media (min-width: 981px) {
  .coach--head {
    /* same width as two grid columns + one gap, so edges align */
    --g: clamp(20px, 3vw, 36px);
    width: calc((100% - 2 * var(--g)) / 3 * 2 + var(--g));
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto 1fr;
  }
  .coach--head .slot {
    grid-row: 1 / -1;
    border-bottom: none;
    border-right: 2px solid var(--ink);
  }
  .coach--head .slot .initial { font-size: clamp(160px, 16vw, 230px); }
  .coach--head .name-band { font-size: 24px; }
  .coach--head .bio { font-size: var(--t-body); }
}

/* --------------------------------------------------------------------------
   14. EXPLAINER — "your first class". Copy pushed RIGHT; a giant ghosted
       Tanker "?" holds the left. Decorative, aria-hidden, gone below 600px.
   -------------------------------------------------------------------------- */
.explainer { position: relative; }
.explainer .ghost {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(220px, 30vw, 420px);
  line-height: 1;
  color: var(--surface); /* ghosted — barely off the paper, on purpose */
  -webkit-text-stroke: 1px var(--line);
  user-select: none;
  pointer-events: none;
}
.explainer .push-right {
  margin-left: 41.66%; /* copy takes the right 7 of 12 columns */
}
.steps { list-style: none; counter-reset: step; margin-top: 28px; }
.steps li {
  counter-increment: step;
  border-top: 1px solid var(--ink);
  padding: 16px 0 16px 64px;
  position: relative;
}
.steps li:last-child { border-bottom: 1px solid var(--ink); }
.steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0; top: 18px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--t-label);
  letter-spacing: .16em;
  color: var(--accent);
}
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: var(--t-small); }

/* --------------------------------------------------------------------------
   15. PRICING — ruled price list (teaser + join page table).
   -------------------------------------------------------------------------- */
.price-list { list-style: none; }
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--ink);
  padding: 16px 0;
  max-width: none;
}
.price-list li:last-child { border-bottom: 1px solid var(--ink); }
.price-list .plan {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.price-list .terms { color: var(--muted); font-size: var(--t-small); }
.price-list .amount {
  margin-left: auto;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 26px;
  white-space: nowrap;
}
.price-list .amount .per {
  font-family: var(--font-label);
  font-weight: 400;
  font-size: var(--t-label);
  letter-spacing: .1em;
  color: var(--muted);
}
/* the scarlet price arrow — an allowed accent use */
.price-list .arrow { color: var(--accent); font-weight: 700; }

/* --------------------------------------------------------------------------
   16. TESTIMONIALS — type-only. Quote + name + program. No avatars.
   -------------------------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
.quotes blockquote { border-left: 3px solid var(--ink); padding-left: 20px; }
.quotes p {
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  text-transform: none;
}
.quotes footer { margin-top: 12px; }

/* --------------------------------------------------------------------------
   17. CTA BAND — inverse ink, Tanker headline with one scarlet word
       (display-size only, and in the lightened on-ink scarlet — the base
       scarlet doesn't survive the grain on ink; see the tokens block).
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .headliner { font-size: clamp(44px, 7vw, 96px); margin-block: 18px; }
.cta-band .rule-double { max-width: 520px; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }
.cta-band .fine { margin-top: 18px; }

/* --------------------------------------------------------------------------
   18. IMAGERY BANDS — the 21:9 gym-interior slot (About). Ships as a
       designed empty state: double-rule band, centered ✦, mono label.
   -------------------------------------------------------------------------- */
.photo-band {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--surface);
  aspect-ratio: 21 / 9;
  width: 100%;       /* keep full-bleed; only the height clamps below */
  max-height: 380px; /* a placeholder band shouldn't own the whole viewport */
  display: grid;
  place-content: center;
  gap: 14px;
  justify-items: center;
}
.photo-band .spec {
  font-family: var(--font-label);
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding-inline: var(--gutter);
}

/* Lineage timeline — a ruled vertical list, deliberately not a component. */
.timeline { list-style: none; border-left: 3px solid var(--ink); }
.timeline li { padding: 18px 0 18px 28px; position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7.5px; top: 28px;
  width: 12px; height: 12px;
  background: var(--paper);
  border: 3px solid var(--ink);
}
.timeline .yr {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--t-label);
  letter-spacing: .16em;
  color: var(--muted);
  display: block;
}
.timeline h3 { margin: 4px 0 4px; }
.timeline p { color: var(--muted); font-size: var(--t-small); }

/* Affiliations strip — text plates, no logo soup. */
.affil { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.affil li { max-width: none; }

/* --------------------------------------------------------------------------
   19. FORM — cream fields, 2px ink borders, Courier labels ABOVE fields,
       scarlet ticket submit. Wiring notes live in docs/README.md.
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.field input,
.field select {
  font: inherit;
  font-size: 16px; /* >=16px: no iOS zoom-on-focus */
  padding: 12px 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  width: 100%;
}
.field select { appearance: none; background-image: none; }
.field .hint { font-size: 13px; color: var(--muted); }
.form-foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
/* Error text pattern (scarlet on cream — 4.97:1). Unhide when wiring up. */
.field .error { color: var(--accent); font-size: 13px; font-weight: 500; }

/* --------------------------------------------------------------------------
   20. FOOTER — poster fine print on ink.
   -------------------------------------------------------------------------- */
.site-footer { padding-block: clamp(44px, 6vw, 72px) 32px; }
.site-footer .rule-double { margin-bottom: 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}
.site-footer address,
.site-footer .hours {
  font-style: normal;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 2;
  color: var(--muted-on-dark);
}
.site-footer address a { color: var(--inverse-ink); }
.footer-col h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { padding-block: 4px; }
.footer-col a {
  text-decoration: none;
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-fine {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer-fine p {
  font-family: var(--font-label);
  font-size: var(--t-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

/* --------------------------------------------------------------------------
   21. PAGE HEADERS — every inner page opens with a small bill.
   -------------------------------------------------------------------------- */
.page-head { text-align: center; padding-block: clamp(40px, 6vw, 64px) 0; }
.page-head .headliner { font-size: clamp(48px, 8vw, 110px); margin-block: 12px 16px; }
.page-head .divider { max-width: 520px; margin-inline: auto; }
.page-head .lede { margin: 20px auto 0; max-width: 56ch; }
/* Utility variant (schedule): the timetable page opens in the utility
   register — title left-aligned above the table, no centered lede. The
   poster/utility register change IS the page rhythm; this page is utility. */
.page-head--utility { text-align: left; }
.page-head--utility .headliner { font-size: clamp(44px, 7vw, 88px); margin-block: 12px 20px; }

/* --------------------------------------------------------------------------
   22. MOTION — the single letterpress "stamp". Content is VISIBLE BY
       DEFAULT: the .in class (added on viewport entry by js/main.js) PLAYS
       a keyframe whose `backwards` fill supplies the hidden start frame.
       Print, full-page screenshots, and no-JS all render the complete page.
       With prefers-reduced-motion there is no animation at all.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal.in {
    animation: southpaw-stamp 320ms ease-out backwards;
  }
}
@keyframes southpaw-stamp {
  from { opacity: 0.001; transform: scale(0.985); }
  to   { opacity: 1;     transform: scale(1); }
}

/* --------------------------------------------------------------------------
   23. RESPONSIVE — one codebase. Poster stacks scale by clamp; frames
       simplify; hanging numbers tuck above their entries at 390px.
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .undercard-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 20px; }
  .coach-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .sched-strip { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Hanging numbers tuck above their entries */
  .entries { padding-left: 0; }
  .prog-list { padding-left: 0; }
  .prog-list .num { position: static; display: block; padding-top: 14px; }
  .prog-list .num + .prog-row { padding-top: 6px; }
  .prog-entry .p-num { position: static; display: block; padding-top: 16px; }
  .prog-body { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* Nav ≤760px. WITH JS (html.js — set first thing in js/main.js) the
     links collapse behind the menu button into a solid cream drawer.
     WITHOUT JS the button never renders and the nav simply ships expanded
     — the same stacked list, in the page flow — so no-JS visitors never
     get a dead button or an unreachable menu. No glass, ever. */
  .nav .wrap { flex-wrap: wrap; }
  .nav nav { margin-left: 0; flex-basis: 100%; }
  /* no-JS: the expanded nav must live in the page flow, not stick — a
     379px permanent banner would occlude anchor targets on phones */
  html:not(.js) .nav { position: static; }

  html.js .nav-toggle { display: block; }
  html.js .nav nav { display: none; }
  html.js .nav nav.open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper); /* SOLID */
    border-bottom: 2px solid var(--ink);
  }
  html.js .nav nav.open .nav-links { padding-inline: var(--gutter); }

  /* The stacked link list — shared by the JS drawer and the no-JS nav */
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
  }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
  }
  .nav-links .nav-cta { margin-top: 16px; text-align: center; }
  .nav-links .nav-cta a { display: inline-block; border-bottom: none; }

  /* Explainer: ghost "?" hides, copy takes the full column */
  .explainer .ghost { display: none; }
  .explainer .push-right { margin-left: 0; }

  .form-grid { grid-template-columns: 1fr; }
  .coach-grid { grid-template-columns: 1fr; }
  /* Square slots on phones — six full-width 4:5 empty states would be
     several thousand pixels of blank scroll. */
  .coach .slot { aspect-ratio: 1 / 1; }

  /* Double rules & frames simplify to single 2px rules */
  .rule-double { height: 0; border-top: 2px solid var(--ink); border-bottom: none; }
  .on-ink .rule-double { border-top-color: var(--inverse-ink); }
  .frame-double { border-width: 2px; }
  .frame-double::before { display: none; }

  /* Timetable → stacked groups: each time row becomes a ruled block, every
     cell labeled with its day (data-day). Still the same <table> markup
     with scope attrs — only the presentation stacks. */
  .timetable { min-width: 0; border: none; }
  .timetable thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .timetable tbody, .timetable tr, .timetable tbody th, .timetable td { display: block; width: 100%; }
  .timetable tr { border: 2px solid var(--ink); margin-bottom: 20px; }
  .timetable tbody th {
    background: var(--ink); /* the Khand band heading */
    color: var(--paper);
    border: none;
    font-size: 20px;
  }
  .timetable td { border: none; border-top: 1px solid var(--line); }
  .timetable td::before {
    content: attr(data-day);
    display: block;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--muted);
  }
  .timetable td:empty { display: none; }

  .site-footer .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .prog-row .who { margin-left: 0; width: 100%; }
  .prog-entry .p-chips { margin-left: 0; width: 100%; }
  /* Pin the +/x disclosure marker top-right of the summary so it can't
     orphan bottom-left after the chips wrap. */
  .prog-entry > summary { position: relative; padding-right: 44px; }
  .prog-entry .p-marker { position: absolute; right: 0; top: 42px; }
  .sched-strip { grid-template-columns: 1fr; }
  .bill .divider { margin-inline: 0; }
  /* Price rows: plan + price on line one, terms full-width beneath. */
  .price-list li { flex-wrap: wrap; row-gap: 2px; }
  .price-list .terms { order: 3; width: 100%; }
}

/* --------------------------------------------------------------------------
   24. PRINT — the poster prints like a poster.
   -------------------------------------------------------------------------- */
@media print {
  .nav, .skip-link, .filter-bar, body::after { display: none; }
  .on-ink { background: none; color: var(--ink); }
}
