/* Hallmark · genre: atmospheric · design-system: design.md · designed-as-app · macrostructure: Ecosystem Index · nav: N5 Floating pill · footer: Ft5 Statement · section head: S3 Sticky pinned
 * theme: custom (tuned) · vibe: "harbour after dark, string lights, warm on navy" · paper: oklch(15% 0.015 230) · accent: oklch(74% 0.14 45)
 * display: Geist 600 · body: Geist 350 · outlier: Geist Mono (times only) · axes: dark / geometric-sans / warm
 * enrichment: E7-style canvas — two fixed radial blooms, no animation (atmospheric allowance) · studied: no · context: inferred · pre-emit critique: P4 H4 E4 S4 R4 V4
 */
/* Self-hosted Geist (SIL OFL 1.1) — regenerate with scripts/fetch_fonts.py */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 350;
  font-display: swap; src: url('assets/fonts/geist-350.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('assets/fonts/geist-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('assets/fonts/geist-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('assets/fonts/geist-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('assets/fonts/geist-mono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD; }



html { overflow-x: clip; background: var(--color-paper); color-scheme: dark; }
body {
  margin: 0; overflow-x: clip; color: var(--color-ink);
  background-color: var(--color-paper);
  background-image: radial-gradient(38% 30% at 82% 8%, var(--color-bloom) 0%, transparent 70%), radial-gradient(34% 26% at 8% 92%, var(--color-bloom-2) 0%, transparent 70%);
  background-attachment: fixed; background-repeat: no-repeat;
  font-family: var(--font-body); font-weight: 350; font-size: var(--text-base); line-height: 1.55;
  padding-inline: max(var(--page-gutter), env(safe-area-inset-left)); padding-top: var(--banner-height); padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--color-accent); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.skip { position: absolute; left: var(--space-md); top: -100%; padding: var(--space-xs) var(--space-sm); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-input); z-index: var(--z-sticky-nav); }
.skip:focus-visible { top: var(--space-md); }
.wordmark { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wx { display: inline-block; vertical-align: -0.3em; margin-inline-end: 0.35em; color: var(--color-accent); }

/* ---------- N5 floating pill ---------- */
.pill { position: fixed; top: var(--space-md); left: 50%; transform: translateX(-50%); z-index: var(--z-sticky-nav); display: inline-flex; align-items: center; gap: var(--space-sm); max-width: calc(100% - 2 * var(--space-md)); padding: 0 var(--space-xs) 0 var(--space-md); background: color-mix(in oklch, var(--color-paper-2) 78%, transparent); backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); box-shadow: 0 8px 24px -12px oklch(0% 0 0 / 0.5); }
.pill__brand { font-size: var(--text-md); white-space: nowrap; color: var(--color-ink); }
.wk { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-3xs); }
.wk__link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-sm); white-space: nowrap; font-size: var(--text-sm); font-weight: 400; text-decoration: none; color: var(--color-ink-2); border-radius: var(--radius-pill); }
a.wk__link:hover { background: var(--color-paper-3); color: var(--color-ink); }
.wk__link.is-disabled { color: var(--color-muted); }

.fold { max-width: var(--measure); margin: var(--space-xl) auto 0; display: grid; gap: var(--space-xs); }
.fold__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-display); line-height: 1.02; letter-spacing: -0.035em; overflow-wrap: anywhere; min-width: 0; }
.fold__lede { margin: 0; max-width: 46ch; font-size: var(--text-md); color: var(--color-ink-2); }

.jump { max-width: var(--measure); margin: var(--space-lg) auto 0; display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.jump__link { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; padding-inline: var(--space-md); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); font-size: var(--text-sm); font-weight: 400; text-decoration: none; transition: background-color var(--dur-micro) var(--ease-out); }
.jump__link:hover { background: var(--color-paper-3); color: var(--color-ink); }

/* ---------- rails (Ecosystem Index: each section a titled band) ---------- */
.listing { max-width: var(--measure); margin-inline: auto; }
.sec { padding-top: var(--space-2xl); }
.sec__head { display: grid; gap: var(--space-3xs); padding-bottom: var(--space-md); }
.sec__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-2xl); line-height: 1.05; letter-spacing: -0.03em; overflow-wrap: anywhere; min-width: 0; }
.sec__count { margin: 0; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); letter-spacing: 0.04em; }

.day__head { position: sticky; top: var(--banner-height); z-index: var(--z-sticky); margin: 0 calc(-1 * var(--space-xs)) var(--space-md); padding: var(--space-sm) var(--space-xs); background: color-mix(in oklch, var(--color-paper) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); flex-wrap: wrap; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.02em; border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.day__wx { font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); color: var(--color-ink-2); font-variant-numeric: tabular-nums; }

.events { list-style: none; margin: 0 0 var(--space-lg); padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); align-items: start; }
.events > li { min-width: 0; }
.ev { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); overflow: hidden; transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ev:hover { transform: translateY(-2px); background: var(--color-paper-3); box-shadow: var(--shadow-glow); } }
.ev__media { margin: 0; order: -1; }
.ev__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 18%; /* performers' faces sit in the upper third */ }
.ev__time { margin: 0; padding: var(--space-md) var(--space-md) 0; font-family: var(--font-mono); font-size: var(--text-sm); font-variant-numeric: tabular-nums; color: var(--color-accent); white-space: nowrap; }
.ev__body { display: grid; gap: var(--space-2xs); padding: var(--space-2xs) var(--space-md) var(--space-md); min-width: 0; }
.ev__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; min-width: 0; }
.ev__title a { text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
.ev__meta { margin: 0; display: flex; gap: var(--space-sm); flex-wrap: wrap; align-items: baseline; font-size: var(--text-sm); color: var(--color-ink-2); }
.ev__venue { text-decoration: none; border-bottom: 1px solid var(--color-rule); }
.ev__venue:hover { border-bottom-color: var(--color-accent); }
.ev__genre { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
.ev__adm { margin: 0; font-size: var(--text-sm); color: var(--color-ink-2); }
.ev__actions { margin: var(--space-xs) 0 0; display: flex; gap: var(--space-xs); flex-wrap: wrap; }

/* pill CTA (atmospheric allowance) — 8 states */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font-size: var(--text-sm); font-weight: 400; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover, .btn.is-hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn:focus-visible, .btn.is-focus { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:active, .btn.is-active { transform: translateY(1px); background: var(--color-paper-3); }
.btn[aria-disabled="true"], .btn.is-disabled { color: var(--color-muted); border-color: var(--color-rule-2); pointer-events: none; }
.btn[data-state="loading"] { color: var(--color-muted); cursor: progress; }
.btn[data-state="error"] { border-color: var(--color-accent); color: var(--color-accent); }
.btn[data-state="success"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }

/* ---------- Ft5 statement ---------- */
.stmt { max-width: var(--measure); margin: var(--space-3xl) auto 0; padding-bottom: var(--space-xl); display: grid; gap: var(--space-lg); }
.stmt__line { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 4.5vw, 3rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 24ch; overflow-wrap: anywhere; }
.stmt__meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-lg); flex-wrap: wrap; padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.stmt__small { font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.6; color: var(--color-ink-2); max-width: 70ch; }

@media (min-width: 40rem) {
  .events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 60rem) {
  .events { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sec { padding-top: var(--space-3xl); }
  .fold { margin-top: var(--space-2xl); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 150ms !important; animation-duration: 150ms !important; }
}

/* ---------- index page: list of weeks (Index-First rows on the same system) ---------- */
.weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.weeks__link { display: flex; align-items: center; min-height: 48px; padding: var(--space-xs) var(--space-md); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-input); background: var(--color-paper-2); color: var(--color-ink); text-decoration: none; font-size: var(--text-md); transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.weeks__link:hover { background: var(--color-paper-3); border-color: var(--color-accent); color: var(--color-ink); }
.weeks__link--current { font-weight: 600; border-color: var(--color-accent); }
