/* ============================================================================
   Lapse — mylapse.app · "PANEL BY PANEL"
   The site is one comic page: sequential ink-outlined panels, because comics
   are the original technology for showing a person change over time — which
   is exactly what Lapse does with photos. Every decorative element is lifted
   from the app icon's own language: thick #1A1A1A ink outlines, tilted
   polaroids, 4-point sparkles, speed lines, halftone dots.

   DECORATION BUDGET (hard limits — the page dies the day these are exceeded):
     · starbursts ("FREE BETA")        max 1 per viewport
     · sparkles                        max 3 per section
     · speed-line bursts               max 2 on the whole page
     · speech bubbles                  max 1 per page
     · decoration lives in gutters/corners, never behind running text
     · rotations: wrappers only; text-bearing panels ≤0.5deg; 0deg <420px

   DARK MODE = "the second printing": same page inked in bone on aubergine
   paper, with an opaque violet under-print shadow. Polaroids do NOT flip —
   they stay physical white photo objects (--frame-* never changes).
   ========================================================================= */

/* ---- Self-hosted variable fonts (OFL, same files the app bundles) ---- */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/Fraunces.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  /* paper stocks (panel fill rotation — no two adjacent panels share one) */
  --canvas: #F7F5F1;
  --surface: #FFFFFF;
  --paper-lilac: #EEE9FB;
  --paper-butter: #FBF4D9;
  --paper-blush: #F9EAE6;
  --paper-peri: #E9E4F9;

  /* ink system */
  --ink: #221E29;            /* running text */
  --line: #1A1A1A;           /* structural comic linework (flips to bone) */
  --ink-shadow: #1A1A1A;     /* hard offset "under-print" (flips to violet) */
  --text-2: #57525E;
  --text-3: #8E8896;

  /* polaroid stock — a physical object; NEVER flips in dark mode */
  --frame-stock: #FFFDF7;
  --frame-ink: #1A1A1A;
  --frame-caption: #4A4452;

  /* pigments (the four crayons) */
  --butter: #FFF275;
  --blush: #E8A0A0;
  --peri: #B7A4EF;
  --violet: #5B3FC4;

  --brand: #5B3FC4;          /* interactive color: links, focus */
  --marker: rgba(255, 242, 117, .85);   /* highlighter swipe */

  /* the night panel (privacy) is aubergine in BOTH themes */
  --night: #241C31;
  --night-line: #F2EEE7;
  --night-text: #E9E4DC;
  --night-text-2: #B5AEC2;

  --bw: 3px;                 /* comic border weight */
  --shadow: 7px;             /* offset-print shadow distance */
  --maxw: 1120px;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* display voices — Fraunces wght MUST be pinned (file default is 900) */
  --fv-display: 'opsz' 144, 'wght' 620, 'SOFT' 0, 'WONK' 1;
  --fv-subhead: 'opsz' 60, 'wght' 590, 'SOFT' 0, 'WONK' 1;
  --fv-note: 'opsz' 18, 'wght' 480, 'SOFT' 100, 'WONK' 1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #16131C;
    --surface: #1E1A26;
    --paper-lilac: #241F33;
    --paper-butter: #292432;
    --paper-blush: #281F2B;
    --paper-peri: #221E31;

    --ink: #F6F4EF;
    --line: #D9D2C7;         /* bone linework, dimmed so it doesn't glow */
    --ink-shadow: #3E3559;   /* opaque violet under-print */
    --text-2: #A9A4B0;
    --text-3: #6E6878;

    --brand: #B7A4EF;
    --marker: rgba(183, 164, 239, .45);
  }
}

/* ---- Reset / base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: clip;             /* offset shadows must never cause h-scroll */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
::selection { background: var(--butter); color: #1A1A1A; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
[id] { scroll-margin-top: 24px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  font: 600 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--butter); border: 2px solid #1A1A1A;
  padding: 10px 14px; text-decoration: none;
}
.skip:focus-visible { top: 12px; color: #1A1A1A; box-shadow: none; }

/* links: wavy ink underline → highlighter swipe on hover */
a { color: var(--brand); text-decoration: underline; text-decoration-style: wavy;
    text-decoration-thickness: 1.5px; text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, var(--brand) 55%, transparent); }
a:hover { text-decoration: none; box-shadow: inset 0 -0.5em var(--marker); color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* ---- Type voices ---- */
.display {
  font-family: var(--font-display);
  font-variation-settings: var(--fv-display);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.subhead {
  font-family: var(--font-display);
  font-variation-settings: var(--fv-subhead);
  line-height: 1.12;
  letter-spacing: -0.008em;
}
.note { /* handwriting in the margins — rationed to ~1 per viewport */
  font-family: var(--font-display);
  font-variation-settings: var(--fv-note);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--text-2);
}
.lead { font-size: 1.14rem; line-height: 1.6; color: var(--text-2); }

/* camera-metadata voice: date stamps, frame counters, kickers */
.stamp {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px/1 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  padding: 5px 9px;
}

/* ---- The atom: an ink panel ---- */
.panel {
  position: relative;
  background: var(--panel-bg, var(--surface));
  border: var(--bw) solid var(--line);
  box-shadow: var(--shadow) var(--shadow) 0 var(--ink-shadow);
}

/* caption box riding a panel's top border */
.caption {
  position: absolute; top: -13px; left: 18px; z-index: 2;
  font: 700 11px/1 var(--font-body);
  letter-spacing: .12em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: #1A1A1A;
  background: var(--butter);
  border: 2.5px solid #1A1A1A;   /* butter is a light island in both themes */
  padding: 5px 10px;
  white-space: nowrap;
}

/* ---- Masthead (static, comic-issue top rule) ---- */
.masthead { border-bottom: var(--bw) solid var(--line); position: relative; background: var(--canvas); }
.masthead::after { /* the second rule of the double-rule */
  content: ''; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 1.5px; background: var(--line); opacity: .8;
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; box-shadow: none; }
.lockup:hover { box-shadow: none; }
.lockup img { width: 42px; height: 42px; border: 2.5px solid var(--frame-ink); }
.lockup .name {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 60, 'wght' 650, 'SOFT' 0, 'WONK' 1;
  font-size: 27px; color: var(--ink); line-height: 1;
}
.masthead nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 26px); }
.masthead nav a { font: 600 15px/1 var(--font-body); color: var(--ink); text-decoration: none; padding: 14px 4px; margin: -14px -4px; }
.masthead nav a:hover { box-shadow: inset 0 -0.5em var(--marker); color: var(--ink); }
.masthead .stamp { transform: rotate(-1.5deg); }
@media (max-width: 700px) { .masthead .nav-only, .masthead .stamp { display: none; } }

/* ---- Sticker CTA buttons (press-flat choreography) ---- */
.btn-sticker {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 52px; padding: 10px 20px;
  font-family: var(--font-body); text-decoration: none;
  color: #1A1A1A; background: var(--butter);
  border: var(--bw) solid #1A1A1A; border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink-shadow);
  transition: transform .13s ease, box-shadow .13s ease;
}
.btn-sticker.alt { background: var(--peri); }
.btn-sticker:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink-shadow); color: #1A1A1A; }
.btn-sticker:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink-shadow); }
.btn-sticker:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.btn-sticker svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.btn-sticker .st { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.btn-sticker .st small { font: 700 10px/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.btn-sticker .st strong { font-size: 16.5px; font-weight: 700; }
.store-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---- Polaroid (physical object — does not flip in dark) ---- */
.polaroid {
  background: var(--frame-stock);
  border: var(--bw) solid var(--frame-ink);
  padding: 9px 9px 40px;
  box-shadow: 6px 6px 0 var(--ink-shadow);
  width: fit-content;
}
.polaroid img { width: 100%; height: auto; border: 2px solid color-mix(in srgb, var(--frame-ink) 85%, transparent); }
.polaroid .chin {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 10px 2px 0;
}
.polaroid .chin .note { font-size: .98rem; color: var(--frame-caption); }
.polaroid .chin .stamp { border-width: 1.5px; padding: 3px 6px; font-size: 10.5px;
  background: var(--frame-stock); color: var(--frame-caption); border-color: color-mix(in srgb, var(--frame-ink) 55%, transparent); }

/* ---- Sparkles / speed lines / halftone / sprockets ---- */
.sparkle {
  display: inline-block; width: 18px; height: 18px; background: var(--butter);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.sparkle.blush { background: var(--blush); }
.sparkle.deco { position: absolute; }

.speedlines { position: absolute; width: 46px; height: 40px; }
.speedlines i { position: absolute; display: block; height: 3.5px; border-radius: 2px; background: var(--line); transform: rotate(-32deg); }
.speedlines i:nth-child(1) { width: 30px; top: 4px; left: 12px; }
.speedlines i:nth-child(2) { width: 22px; top: 17px; left: 4px; }
.speedlines i:nth-child(3) { width: 14px; top: 30px; left: 0; }

.halftone::before {
  content: ''; position: absolute; inset: auto 0 0 auto; width: 42%; height: 46%;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--line) 26%, transparent) 1.3px, transparent 1.5px);
  background-size: 13px 13px;
  -webkit-mask-image: radial-gradient(closest-side at 100% 100%, #000 20%, transparent 78%);
  mask-image: radial-gradient(closest-side at 100% 100%, #000 20%, transparent 78%);
  pointer-events: none;
}

hr.sprockets {
  border: 0; height: 10px; margin: 34px 0;
  background-image: radial-gradient(circle, var(--line) 2.1px, transparent 2.5px);
  background-size: 19px 10px; background-repeat: repeat-x; background-position: 0 50%;
  opacity: .55;
}

/* ---- Sections & panel numbering ---- */
main { counter-reset: panel; }
section.strip { padding: clamp(44px, 7vw, 76px) 0; }
.panel-no::before { counter-increment: panel; content: 'Panel ' counter(panel, decimal-leading-zero) ' · '; }

.section-head { max-width: 52ch; margin-bottom: 42px; }
.section-head .stamp { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(29px, 4.4vw, 42px); margin-bottom: 12px; color: var(--ink); }
.section-head p { color: var(--text-2); font-size: 1.06rem; max-width: 56ch; }

/* ---- Hero ---- */
.hero { padding: clamp(30px, 5.5vw, 60px) 0 clamp(46px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy .stamp { margin-bottom: 20px; transform: rotate(-1.2deg); }
.hero-copy h1 { font-size: clamp(42px, 6.4vw, 74px); color: var(--ink); margin-bottom: 20px; max-width: 14ch; }
.hero-copy h1 .hl { box-shadow: inset 0 -0.38em var(--marker); }
.hero-copy .lead { max-width: 40ch; margin-bottom: 30px; }
.hero-cta { position: relative; width: fit-content; }
.hero-cta .note { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; }
.hero-cta .note svg { width: 34px; height: 22px; stroke: var(--line); stroke-width: 2.6; fill: none; stroke-linecap: round; }

.burst {
  position: absolute; top: -64px; right: -18px; width: 88px; height: 88px;
  transform: rotate(9deg); pointer-events: none;
}
.burst text {
  font: 800 13px var(--font-body); letter-spacing: .06em;
  fill: #1A1A1A;
}

/* the fan of frames — real photos as tilted polaroids, two loose rows */
.fan { position: relative; min-height: clamp(400px, 43vw, 540px); }
.fan figure.polaroid { position: absolute; width: clamp(150px, 45%, 214px); }
.fan figure.polaroid:nth-of-type(1) { top: 1%; left: 2%; transform: rotate(-7deg); }
.fan figure.polaroid:nth-of-type(2) { top: 5%; right: 3%; transform: rotate(3.5deg); z-index: 1; }
.fan figure.polaroid:nth-of-type(3) { bottom: 3%; left: 3%; transform: rotate(-2.5deg); z-index: 3; }
.fan figure.polaroid:nth-of-type(4) { bottom: 0; right: 1%; transform: rotate(6deg); z-index: 2; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fan figure.polaroid { transition: transform .22s cubic-bezier(.34, 1.56, .64, 1); }
  .fan figure.polaroid:hover { z-index: 5; }
  .fan figure.polaroid:nth-of-type(1):hover { transform: rotate(-3deg) translateY(-6px) scale(1.03); }
  .fan figure.polaroid:nth-of-type(2):hover { transform: rotate(1deg) translateY(-6px) scale(1.03); }
  .fan figure.polaroid:nth-of-type(3):hover { transform: rotate(-1deg) translateY(-6px) scale(1.03); }
  .fan figure.polaroid:nth-of-type(4):hover { transform: rotate(3deg) translateY(-6px) scale(1.03); }
}
.fan > .speedlines { top: -3%; right: 4%; }
.fan > .sparkle.deco:nth-of-type(1) { top: 10%; left: 44%; z-index: 4; }
.fan > .sparkle.deco:nth-of-type(2) { bottom: 8%; left: 1%; width: 13px; height: 13px; }

/* ---- How-it-works: a 3-panel strip ---- */
.strip-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 30px); }
.how { padding: 30px 24px 26px; }
.how .doodle { height: 84px; margin-bottom: 18px; display: flex; align-items: center; }
.how .doodle svg { height: 100%; width: auto; }
.how h3 { font-family: var(--font-display); font-variation-settings: var(--fv-subhead); font-size: 22.5px; margin-bottom: 8px; color: var(--ink); }
.how p { color: var(--text-2); font-size: .97rem; }
/* stroke voices first, fill classes second — fill-* must win the cascade */
.doodle .st-ink { stroke: var(--line); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.doodle .st-frame { stroke: var(--frame-ink); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.doodle .fill-butter { fill: var(--butter); } .doodle .fill-blush { fill: var(--blush); }
.doodle .fill-peri { fill: var(--peri); } .doodle .fill-paper { fill: var(--frame-stock); }

/* ---- Feature spread: 6 mini-panels, four-swatch fill rotation ---- */
.spread { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 30px); }
.feature { padding: 26px 22px 24px; }
.feature:nth-child(6n+1) { --panel-bg: var(--surface); }
.feature:nth-child(6n+2) { --panel-bg: var(--paper-lilac); }
.feature:nth-child(6n+3) { --panel-bg: var(--paper-butter); }
.feature:nth-child(6n+4) { --panel-bg: var(--paper-blush); }
.feature:nth-child(6n+5) { --panel-bg: var(--paper-peri); }
.feature:nth-child(6n+6) { --panel-bg: var(--surface); }
.feature .doodle { height: 46px; margin-bottom: 14px; }
.feature .doodle svg { height: 100%; width: auto; }
.feature h3 { font-family: var(--font-display); font-variation-settings: 'opsz' 40, 'wght' 600, 'SOFT' 0, 'WONK' 1; font-size: 19.5px; margin-bottom: 7px; color: var(--ink); }
.feature p { color: var(--text-2); font-size: .93rem; line-height: 1.55; }
.feature hr.sprockets { margin: 14px 0 12px; }

/* one speech bubble per page */
.bubble {
  position: relative; width: fit-content; max-width: 34ch;
  background: var(--surface); border: 2.5px solid var(--line); border-radius: 14px;
  padding: 10px 14px; margin-top: 18px;
  font-family: var(--font-display); font-variation-settings: var(--fv-note); font-style: italic;
  font-size: 1rem; color: var(--ink);
}
.bubble::after {
  content: ''; position: absolute; bottom: -9px; left: 26px; width: 14px; height: 14px;
  background: var(--surface);
  border-right: 2.5px solid var(--line); border-bottom: 2.5px solid var(--line);
  transform: rotate(45deg);
}

/* ---- In-action: phone + copy ---- */
.action-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.phone-panel { width: min(320px, 86%); margin: 0 auto; padding: 10px; --panel-bg: #0E0D11; }
.phone-panel img { width: 100%; height: auto; border: 2px solid #2A2733; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; list-style: none; padding: 0; }
.chip {
  font: 600 13.5px/1 var(--font-body); color: var(--ink);
  background: var(--panel-bg, var(--surface));
  border: 2.5px solid var(--line); border-radius: 999px;
  padding: 9px 15px;
  box-shadow: 0 0 0 3px var(--canvas), 3px 3px 0 3px var(--ink-shadow); /* die-cut sticker rim */
}
.chip:nth-child(4n+1) { --panel-bg: var(--paper-butter); }
.chip:nth-child(4n+2) { --panel-bg: var(--surface); }
.chip:nth-child(4n+3) { --panel-bg: var(--paper-blush); }
.chip:nth-child(4n+4) { --panel-bg: var(--paper-lilac); }
.chip:nth-child(odd) { transform: rotate(-1deg); }
.chip:nth-child(even) { transform: rotate(.8deg); }

/* ---- The night panel (privacy) — aubergine island in BOTH themes ---- */
.night {
  --panel-bg: var(--night);
  --line: var(--night-line);
  --ink: var(--night-text);
  --text-2: var(--night-text-2);
  --ink-shadow: #0C0912;
  --marker: rgba(183, 164, 239, .45);
  --brand: #CBBCF4;
  color: var(--night-text);
  padding: clamp(30px, 5vw, 52px) clamp(22px, 4vw, 48px);
}
.night-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3.5vw, 40px); align-items: start; }
.night .doodle { width: 74px; }
.night h2 { font-size: clamp(26px, 3.6vw, 34px); margin-bottom: 10px; color: var(--night-text); }
.night p { color: var(--night-text-2); font-size: 1.03rem; max-width: 62ch; }
.night .sparkle.deco:nth-of-type(1) { top: 18px; right: 22px; }
.night .sparkle.deco:nth-of-type(2) { bottom: 20px; right: 64px; width: 12px; height: 12px; }
.night a { color: var(--brand); }
.night a:hover { color: var(--night-text); }

/* ---- Final CTA ---- */
.finale { text-align: center; padding-bottom: clamp(56px, 8vw, 96px); }
.finale .panel { --panel-bg: var(--paper-lilac); display: inline-block; padding: clamp(34px, 5vw, 56px) clamp(24px, 6vw, 72px); }
.finale h2 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 12px; color: var(--ink); }
.finale > .panel > p { color: var(--text-2); font-size: 1.08rem; margin-bottom: 26px; }
.finale .store-row { justify-content: center; }
.finale .note { display: block; margin-top: 18px; }

/* ---- Footer: the back cover ---- */
.backcover { border-top: var(--bw) solid var(--line); position: relative; }
.backcover::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 1.5px; background: var(--line); opacity: .8; }
.backcover .wrap { padding-top: 36px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.backcover .lockup img { width: 32px; height: 32px; }
.backcover .lockup .name { font-size: 21px; }
.backcover nav { display: flex; flex-wrap: wrap; gap: 20px; }
.backcover nav a { font: 500 14.5px/1 var(--font-body); color: var(--text-2); text-decoration: none; padding: 10px 2px; margin: -10px -2px; }
.backcover nav a:hover { box-shadow: inset 0 -0.5em var(--marker); color: var(--ink); }
.backcover .meta { width: 100%; color: var(--text-2); font-size: 13px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- Prose pages (privacy / terms / support) — sober, lightly inked ---- */
.prose-page { padding: clamp(36px, 5.5vw, 64px) 0 88px; }
.prose-page .wrap { max-width: 780px; }
.prose-page .back { display: inline-flex; align-items: center; gap: 7px; font: 600 14.5px/1 var(--font-body); color: var(--text-2); text-decoration: none; margin-bottom: 30px; }
.prose-page .back:hover { box-shadow: inset 0 -0.5em var(--marker); color: var(--ink); }
.prose-page h1 { font-family: var(--font-display); font-variation-settings: var(--fv-display); font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.012em; line-height: 1.05; margin: 14px 0 10px; color: var(--ink); }
.prose-page .stamp { margin-bottom: 4px; }
.prose-page .lede { margin: 14px 0 8px; font-size: 1.15rem; }
/* .notice: reserved for owner callouts on prose pages (currently unused) */
.prose-page .notice {
  border: 2.5px solid var(--line); background: var(--paper-butter);
  padding: 14px 16px; margin: 26px 0 34px; font-size: .93rem; color: var(--ink);
}
.prose { counter-reset: sect; }
.prose h2 { font-family: var(--font-display); font-variation-settings: 'opsz' 40, 'wght' 600, 'SOFT' 0, 'WONK' 0; font-size: 23px; margin: 40px 0 12px; color: var(--ink); display: flex; align-items: baseline; gap: 12px; }
.prose h2::before {
  counter-increment: sect; content: '§ ' counter(sect, decimal-leading-zero);
  font: 700 11px/1 var(--font-body); letter-spacing: .12em; font-variant-numeric: tabular-nums;
  color: var(--text-2); border: 2px solid var(--line); padding: 4px 7px; transform: translateY(-3px);
  white-space: nowrap;
}
.prose.plain h2::before { content: none; }   /* terms carries its own clause numbers */
.prose h3 { font-size: 16.5px; font-weight: 700; margin: 22px 0 8px; color: var(--ink); }
.prose p, .prose li { color: var(--text-2); font-size: 1.02rem; line-height: 1.7; margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 14px; }
.prose ul { list-style: none; padding-left: 6px; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before {
  content: ''; position: absolute; left: 0; top: .48em; width: 12px; height: 12px;
  background: var(--peri);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.prose strong { color: var(--ink); }
.prose .card-block { border: 2.5px solid var(--line); background: var(--surface); padding: 20px; margin-bottom: 16px; }
.prose .card-block h3 { margin-top: 0; }
.prose .contact { text-align: center; border: var(--bw) solid var(--line); background: var(--paper-lilac); box-shadow: 6px 6px 0 var(--ink-shadow); padding: 24px; margin-top: 12px; }
.prose .contact a { font-size: 1.06rem; font-weight: 600; }

/* ---- 404 ---- */
.lost { min-height: 74vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.lost .panel { --panel-bg: var(--surface); display: inline-block; padding: clamp(30px, 6vw, 56px) clamp(22px, 7vw, 72px); }
.lost h1 { font-size: clamp(40px, 8vw, 76px); margin: 14px 0 8px; color: var(--ink); }
.lost p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 26px; }
.lost .polaroid { margin: 0 auto 8px; transform: rotate(-4deg); }
.lost .polaroid .blank { width: 150px; height: 150px; background: repeating-linear-gradient(45deg, #EDE7DE 0 10px, #F5F1EA 10px 20px); border: 2px solid color-mix(in srgb, #1A1A1A 85%, transparent); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .strip-3, .spread { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .fan { min-height: min(118vw, 500px); width: min(100%, 470px); margin: 26px auto 0; order: 2; }
  .action-grid { grid-template-columns: 1fr; }
  .phone-panel { margin-top: 6px; }
}
@media (max-width: 620px) {
  :root { --shadow: 4px; }
  .strip-3, .spread { grid-template-columns: 1fr; }
  .night-grid { grid-template-columns: 1fr; }
  .burst { top: -70px; right: 2px; width: 78px; height: 78px; }
}
@media (max-width: 420px) {
  :root { --bw: 2.5px; }
  .chip:nth-child(odd), .chip:nth-child(even), .masthead .stamp, .hero-copy .stamp { transform: none; }
  .caption { position: static; display: inline-block; margin-bottom: 12px; transform: none; }
  .panel > .caption { margin: -6px 0 12px; }
  .fan { min-height: 122vw; }
  .fan figure.polaroid { width: 47%; }
}

/* ---- Reduced motion: kill all animation/transition in one place ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
