/* Hallmark · shape: Marquee Hero (Poster image hero) · genre: atmospheric · theme: Spore (cellar) · job: join · draw: 7b6a4b
 * hero: Poster image hero, bottom-anchored over a ground scrim (brief-fixed) · nav: solid header + in-flow accordion (house rule) · footer: colophon block · imagery: one holding photograph (hero only) · signature: the Little British Quickie Dictionary set as a shelf; the fast-forward wordmark · spore: cellar
 * axes: dark/roman-serif/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: R, held the oyster pink to the Join control, the focus ring, link-hover and small fills (quote bar, card mark); every head is one weight of Young Serif, hierarchy by size only */
/* Hallmark · copy: verbatim · page body is client-checked SEO content from content-v2.md, used word for word, so gates 19/58/69 (word budget, echoes) report as notes */
/* Hallmark · dismissed 58 · long-form guide pages (600-900 words) are the point of these ranking sites; density stays ~one idea per screen across big heads, a ledger, two cards, pull-quotes and the dictionary shelf */
/* Hallmark · dismissed 25 · .pull is a display pull-quote of one short statement lifted once from the body, not running prose; the narrow measure is the device */
/* Hallmark · swaps from the draw (7b6a4b): hero Ledge -> Poster image hero and nav edge-aligned -> solid header + in-flow accordion, both fixed by the bulk design brief (sections 1 and 4); the membership-rows/session/schedule run is replaced by the content pack's fixed H1-opens-content section order (no invented features) */

/* ---- Fonts (self-hosted WOFF2 only) ---------------------------------- */
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/young-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }

/* ---- Tokens (Spore cellar + shared scale) ---------------------------- */
:root {
  color-scheme: dark;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(1.85rem, 2.2vw + 1rem, 3rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --text-numeral: clamp(4rem, 9vw + 1rem, 9rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --container: 1440px; --container-text: 760px; --gutter: 64px;
  --z-base: 1; --z-raised: 10; --z-sticky: 200; --z-sticky-nav: 300; --z-toast: 500;
  --color-paper: oklch(15% 0.012 60); --color-paper-2: oklch(19% 0.014 58); --color-paper-3: oklch(24% 0.02 50);
  --color-ink: oklch(93% 0.022 85); --color-ink-2: oklch(84% 0.022 78); --color-muted: oklch(67% 0.02 70);
  --color-rule: oklch(31% 0.016 60);
  --color-accent: oklch(77% 0.09 30); --color-accent-2: oklch(86% 0.06 30); --color-accent-ink: oklch(15% 0.012 60); --color-focus: oklch(86% 0.06 30);
  --font-display: "Young Serif", Georgia, serif; --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 14px; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-card: 0 16px 40px oklch(8% 0.01 60 / 0.4);
  --tracking-display: -0.012em; --grain: 0.15;
  --header-h: 72px;
}

/* ---- Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display-s); line-height: 1.02; }
h2 { max-width: 26ch; font-size: var(--text-section); line-height: 1.06; }
h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-family: var(--font-body); font-weight: 400; font-size: var(--text-lead); line-height: 1.5; max-width: 60ch; color: var(--color-ink); }
p { margin: 0; text-wrap: pretty; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-sm); top: -48px; z-index: var(--z-toast); background: var(--color-accent); color: var(--color-accent-ink); padding: var(--space-xs) var(--space-md); font-family: var(--font-body); font-weight: 600; border-radius: var(--radius-pill); text-decoration: none; transition: top var(--dur-micro) var(--ease-out); }
.skip-link:focus { top: var(--space-sm); }
@media (max-width: 60rem) { :root { --gutter: 24px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ---- Buttons (pills) ------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: 1.5px solid var(--color-ink-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font-family: var(--font-body); font-weight: 600; font-size: var(--text-md); line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-paper-3); color: var(--color-ink); border-color: var(--color-ink); }
.btn:active { background: var(--color-paper-2); }
.btn-join { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn-join:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); color: var(--color-accent-ink); }
.btn-join:active { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn-lg { min-height: 54px; padding: 0 var(--space-xl); font-size: var(--text-lg); }
.btn-sm { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn:disabled, .nav-toggle:disabled, .cookie button:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- Header ---------------------------------------------------------- */
.site-header { position: relative; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.site-header .inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); min-height: var(--header-h); padding-block: var(--space-sm); }
.brand { order: 0; margin-right: auto; display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: clamp(110px, 33vw, 240px); height: auto; display: block; }
.brand-mark { fill: var(--color-accent); }
.brand-word { fill: var(--color-ink); font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: var(--tracking-display); }
.mainnav { order: 1; display: flex; align-items: center; gap: var(--space-lg); }
.mainnav a { font-family: var(--font-body); font-weight: 500; font-size: var(--text-md); color: var(--color-ink-2); text-decoration: none; padding-block: var(--space-2xs); border-bottom: 2px solid transparent; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.mainnav a:hover { color: var(--color-ink); }
.mainnav a.active { color: var(--color-ink); border-bottom-color: var(--color-accent); }
.mainnav .login-link { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.2em; }
.mainnav .login-link:hover { text-decoration-color: var(--color-accent); }
.header-join { order: 2; }
.nav-toggle { order: 3; display: none; align-items: center; justify-content: center; width: 46px; height: 46px; background: transparent; border: 1.5px solid var(--color-rule); color: var(--color-ink); border-radius: var(--radius-pill); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 47.99rem) {
  .nav-toggle { display: inline-flex; }
  .mainnav { order: 4; flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; padding-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); margin-top: var(--space-sm); }
  .mainnav.open { display: flex; }
  .mainnav a { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lg); color: var(--color-ink); }
  .mainnav a.active { border-bottom-color: var(--color-rule); color: var(--color-accent); }
  .mainnav .login-link { text-decoration: none; }
}

/* ---- Hero (Poster image) --------------------------------------------- */
.hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--color-paper-3); color: var(--color-ink); min-height: clamp(540px, 82svh, 760px); }
.hero > picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: center 40%; filter: sepia(0.22) saturate(0.96) contrast(1.05) brightness(0.96); }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--color-paper) 3%, color-mix(in oklab, var(--color-paper) 74%, transparent) 28%, transparent 60%); }
.hero-inner { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); padding-block: var(--space-2xl); }
.hero-heading { font-family: var(--font-display); font-weight: 400; line-height: 1.02; letter-spacing: var(--tracking-display); font-size: var(--text-display); color: var(--color-ink); max-width: 16ch; }
.hero-strap { font-family: var(--font-body); font-weight: 400; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink); max-width: 46ch; }
.hero .btn { margin-top: var(--space-xs); }

@media (max-width: 47.99rem) {
  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero-heading { font-size: clamp(2rem, 9vw, 2.75rem); }
  .hero-inner { padding-bottom: calc(var(--space-lg) + 76px); gap: var(--space-sm); }
}

/* ---- Content layout -------------------------------------------------- */
main { display: block; }
.section { padding-block: var(--space-3xl); }
.section + .section { padding-top: 0; }
.seo-content { max-width: var(--container-text); margin-inline: auto; }
.seo-content h1 { margin-bottom: var(--space-lg); }
.seo-content h2 { margin-top: var(--space-3xl); margin-bottom: var(--space-md); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.seo-content p { max-width: 68ch; margin-top: var(--space-md); color: var(--color-ink-2); }
.seo-content p.lead { margin-top: 0; color: var(--color-ink); }
.seo-content a:not(.btn) { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.16em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.seo-content a:not(.btn):hover { text-decoration-color: var(--color-accent-2); }
.seo-content strong { font-weight: 600; color: var(--color-ink); }

/* ---- Non-prose blocks ------------------------------------------------ */
/* Pull-quote: one short statement in Young Serif, a solid pink bar (home, tonight, quickie) */
.pull { margin: var(--space-2xl) 0; max-width: var(--container-text); }
.pull p { font-family: var(--font-display); font-weight: 400; letter-spacing: var(--tracking-display); line-height: 1.1; font-size: var(--text-display-s); color: var(--color-ink); max-width: 28ch; }
.pull p::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 4px; background: var(--color-accent); margin-bottom: var(--space-md); }

/* Two who-cards: grained wells, a solid pink mark each (home) */
.whocards { margin-top: var(--space-xl); padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.whocards li { list-style: none; position: relative; isolation: isolate; background: var(--color-paper-2); color: var(--color-ink); border-radius: var(--radius-card); padding: var(--space-lg); }
.whocards li::before { content: ""; display: block; width: 28px; height: 8px; border-radius: var(--radius-pill); background: var(--color-accent); margin-bottom: var(--space-md); }
.whocards p { margin: 0; max-width: none; color: var(--color-ink); font-size: var(--text-lg); line-height: 1.45; }

/* Someday ledger: three ruled rows, the key in Young Serif (tonight) */
.ledger { margin-top: var(--space-xl); padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.ledger li { list-style: none; display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); gap: var(--space-sm) var(--space-lg); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.ledger .ledger-k { font-family: var(--font-display); font-weight: 400; font-size: var(--text-title); color: var(--color-ink); letter-spacing: var(--tracking-display); }
.ledger .ledger-t { font-size: var(--text-lg); line-height: 1.45; color: var(--color-ink-2); }

/* The Little British Quickie Dictionary: a shelf of ruled rows (quickie) */
.dict { margin-top: var(--space-xl); padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.dict > div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: var(--space-xs) var(--space-lg); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.dict dt { font-family: var(--font-display); font-weight: 400; font-size: var(--text-title); line-height: 1.1; color: var(--color-ink); letter-spacing: var(--tracking-display); }
.dict dd { margin: 0; color: var(--color-ink-2); line-height: 1.5; }

@media (max-width: 40rem) {
  .whocards { grid-template-columns: minmax(0, 1fr); }
  .ledger li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .dict > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}

/* ---- CTA band (headingless action bar; no invented copy) ------------- */
.cta { padding-block: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink); position: relative; isolation: isolate; }
.cta .container { display: flex; justify-content: center; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); }

/* Grain on the non-picture wells */
.grained::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain); mix-blend-mode: screen; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 200px 200px; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-2xl); background: var(--color-paper); color: var(--color-ink); }
.site-footer .container { display: flex; flex-direction: column; gap: var(--space-lg); }
.footer-word { font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); letter-spacing: var(--tracking-display); color: var(--color-ink); line-height: 1; }
.footer-line { font-size: var(--text-sm); color: var(--color-muted); max-width: 64ch; line-height: 1.5; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); }
.footer-nav a { font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); }
.footer-legal a { font-size: var(--text-sm); color: var(--color-muted); text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.2em; }
.footer-legal a:hover { color: var(--color-ink-2); text-decoration-color: var(--color-accent); }
.footer-copy { font-size: var(--text-sm); color: var(--color-muted); }

/* ---- 404 ------------------------------------------------------------- */
.notfound { padding-block: var(--space-4xl) var(--space-3xl); }
.notfound .container { max-width: var(--container-text); }
.notfound .code404 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-numeral); line-height: 0.9; color: var(--color-ink); }
.notfound h1 { margin-top: var(--space-sm); }
.notfound p { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 54ch; }
.notfound .cta-actions { justify-content: flex-start; margin-top: var(--space-xl); }

/* ---- Cookie banner --------------------------------------------------- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); display: none; background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule); }
.cookie.show { display: block; }
.cookie .cookie-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); padding-block: var(--space-sm); }
.cookie p { margin: 0; font-size: var(--text-sm); color: var(--color-ink-2); }
.cookie a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.16em; }
@media (max-width: 40rem) {
  .cookie .cookie-inner { gap: var(--space-sm); padding-block: var(--space-xs); flex-wrap: nowrap; }
  .cookie p { font-size: var(--text-xs); line-height: 1.3; }
  .cookie .btn-sm { min-height: 36px; flex: none; }
}

/* hero focus (bulk runner v15) */
@media (min-width: 768px) {
  picture img { object-position: 66% 18% !important; }
}
@media (max-width: 767px) {
  picture img { object-position: 50% 50% !important; }
}
