/* Hallmark · shape: Long Document (content-pack order) · genre: atmospheric · theme: Midnight (manual deal; variety vs hookup siblings f-buddies [Manifesto/Lumen/Instrument Serif] and fancyaquickie [Marquee Hero/Spore/Young Serif]) · job: join · draw: manual
 * hero: Poster, image bottom-anchored over a ground scrim (brief-fixed) · nav: solid header + in-flow accordion (house rule) · footer: statement mast · imagery: one holding photograph (hero only) · signature: the US-metro guide as four moonlit panels · midnight: crimson signal
 * axes: Hanging|Single column|Negative space|Solid (square)|Full-bleed hero only|Fade (hero settle) · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: R, held the warm crimson to the Join control, one link hover and one rule only (never a band or a head), per Midnight's one-signal discipline */
/* Hallmark · adapt theme-accent · Midnight's azure signal warmed to ONE crimson per the bulk design brief section 2 (adult family = warm low-light accents, which wins where a theme default clashes); done through tokens, no gate 48 breach */
/* Hallmark · adapt display-face · Midnight's Mona Sans needs an expanded width axis that cannot be self-hosted as static WOFF2; self-hosted Outfit at the light cut (300) carries the wide, light, cinematic voice. Fonts self-hosted only, never a font host */
/* Hallmark · answered F19 · body is client-checked SEO copy from content-v2.md, used word for word; one semibold (Inter 600) renders the few bold leads */
/* Hallmark · copy: verbatim · dismissed 58 · long-form ranking pages (700-1120 words) are the point; density stays ~one idea per screen across big heads, panels and pull-quotes. h1 word counts are the pack's fixed H1s */
/* Hallmark · dismissed F1 · straight quotes and apostrophes are kept because the body is verbatim client copy; typographic quotes would alter it */
/* Hallmark · dismissed 25 · .pull is a one-line display pull-quote, not running prose; the narrow measure is the device */

/* ---- Fonts (self-hosted WOFF2 only) ---------------------------------- */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }

/* ---- Tokens (Midnight + 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.1875rem; --text-xl: 1.5rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.1rem, 3.6vw + 0.6rem, 3.3rem); --text-display: clamp(2.5rem, 4.6vw + 1rem, 4.4rem);
  --text-section: clamp(1.75rem, 2.1vw + 1rem, 2.85rem); --text-title: clamp(1.3rem, 0.8vw + 0.95rem, 1.7rem); --text-lead: clamp(1.1rem, 0.4vw + 1rem, 1.35rem);
  --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: 600ms;
  --container: 1440px; --container-text: 760px; --gutter: 64px; --gap-columns: 24px;
  --z-base: 1; --z-raised: 10; --z-sticky: 200; --z-sticky-nav: 300; --z-toast: 500;
  --color-paper: oklch(14% 0.045 264); --color-paper-2: oklch(18.5% 0.05 264); --color-paper-3: oklch(23% 0.055 264);
  --color-ink: oklch(95% 0.016 255); --color-ink-2: oklch(87% 0.03 255); --color-muted: oklch(80% 0.03 258);
  --color-rule: oklch(30% 0.05 264); --color-rule-2: oklch(40% 0.055 262);
  --color-accent: oklch(54% 0.19 21); --color-accent-2: oklch(46% 0.17 21); --color-accent-ink: oklch(98% 0.01 60);
  --color-link: oklch(80% 0.12 26); --color-focus: oklch(72% 0.17 22);
  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif; --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px; --shadow-card: 0 24px 48px -24px oklch(6% 0.04 264 / 0.7);
  --tracking-display: -0.01em; --display-weight: 300;
  --header-h: 70px;
}

/* ---- Base (the Floor's decisions) ------------------------------------ */
*, *::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.6; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 35%, transparent); }
: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: var(--display-weight); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.08; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 22ch; font-size: var(--text-display-s); }
h2 { max-width: 26ch; font-size: var(--text-section); }
h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.16; font-weight: 500; }
.lead { font-family: var(--font-body); font-weight: 400; font-size: var(--text-lead); line-height: 1.55; 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; 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 --------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: 0; background: transparent; color: var(--color-ink); font-family: var(--font-display); font-weight: 500; 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-2); border-color: var(--color-ink-2); }
.btn:active { background: var(--color-paper-3); }
.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-2); border-color: var(--color-accent-2); }
.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-md); }
.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(118px, 33vw, 190px); height: auto; display: block; }
.brand-pin { fill: var(--color-accent); }
.brand-word { fill: var(--color-ink); font-family: var(--font-display); font-weight: 500; font-size: 27px; letter-spacing: -0.01em; }
.mainnav { order: 1; display: flex; align-items: center; gap: var(--space-lg); }
.mainnav a { font-family: var(--font-body); font-weight: 400; 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-2); 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: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink); border-radius: 0; 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-link); }
  .mainnav .login-link { text-decoration: none; }
}

/* ---- Hero ------------------------------------------------------------ */
.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: brightness(0.82) saturate(0.9); }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--color-paper) 1%, color-mix(in oklab, var(--color-paper) 74%, transparent) 28%, color-mix(in oklab, var(--color-paper) 18%, transparent) 62%, transparent 82%); }
.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: 300; 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); }
.settle { animation: settle var(--dur-long) var(--ease-out) both; }
@keyframes settle { from { opacity: 0.55; } to { opacity: 1; } }

@media (max-width: 47.99rem) {
  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero-inner { padding-bottom: calc(var(--space-lg) + 72px); 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); }
.seo-content > h2:first-of-type { margin-top: var(--space-2xl); }
.seo-content h3 { margin-top: var(--space-2xl); margin-bottom: var(--space-sm); color: var(--color-ink); }
.seo-content p { max-width: 68ch; margin-top: var(--space-md); color: var(--color-ink); }
.seo-content p.lead { margin-top: 0; }
.seo-content a:not(.btn) { color: var(--color-link); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--color-link) 55%, transparent); 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); }
.seo-content strong { font-weight: 600; color: var(--color-ink); }

/* ---- Non-prose blocks ------------------------------------------------ */
/* Pull-quote (every page) */
.pull { margin: var(--space-2xl) 0; max-width: var(--container-text); }
.pull p { font-family: var(--font-display); font-weight: 300; letter-spacing: var(--tracking-display); line-height: 1.12; font-size: var(--text-display-s); color: var(--color-ink); max-width: 24ch; border-left: 2px solid var(--color-accent); padding-left: var(--space-lg); margin-top: 0; }

/* Two-shape card pair (home) */
.shapes { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.shapes .shape { background: var(--color-paper-2); padding: var(--space-xl); border-top: 2px solid var(--color-accent); }
.shapes .shape p { margin-top: 0; font-size: var(--text-lg); line-height: 1.5; color: var(--color-ink); max-width: none; }

/* Four moves: numbered list, no connecting line (how-it-works) */
.moves { margin-top: var(--space-xl); padding: 0; list-style: none; counter-reset: move; }
.moves > li { counter-increment: move; display: grid; grid-template-columns: minmax(0, 4rem) minmax(0, 1fr); gap: var(--space-sm) var(--space-lg); align-items: baseline; padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.moves > li:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.moves > li::before { content: counter(move, decimal-leading-zero); font-family: var(--font-display); font-weight: 300; font-size: var(--text-2xl); line-height: 0.9; color: var(--color-link); font-variant-numeric: tabular-nums; }
.moves .move-t { font-size: var(--text-lg); line-height: 1.55; color: var(--color-ink); max-width: 60ch; }

/* US-metro panels: the signature (cities) */
.metros { margin-top: var(--space-xl); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.metros .metro { background: var(--color-paper-2); padding: var(--space-xl); box-shadow: var(--shadow-card); }
.metros .metro h3 { margin-top: 0; margin-bottom: var(--space-sm); color: var(--color-ink); }
.metros .metro p { margin-top: 0; max-width: none; color: var(--color-ink-2); line-height: 1.6; }

@media (max-width: 40rem) {
  .shapes, .metros { grid-template-columns: minmax(0, 1fr); }
  .moves > li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .moves > li::before { font-size: var(--text-xl); }
}

/* ---- 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); }
.cta .container { display: flex; justify-content: center; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); }

/* ---- 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: 500; font-size: var(--text-2xl); letter-spacing: -0.01em; color: var(--color-ink); line-height: 1; }
.footer-line { font-size: var(--text-sm); color: var(--color-muted); max-width: 60ch; 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-2); 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); text-align: left; }
.notfound .container { max-width: var(--container-text); }
.notfound .code404 { font-family: var(--font-display); font-weight: 300; 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; }
}
