/* vela.cool — one stylesheet for the home page and the legal pages.
   Brand values follow docs/BRAND.md (Fraunces 400 wordmark, the flame, the one
   gold #f5c26b, the #1a1614 ground); the light palette is the app's parchment
   (packages/ui globals.css), dark its candlelight. Fonts are the app's own,
   self-hosted and cut to Latin (fonts/, SIL OFL). */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/fraunces-latin-v1.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
  src: url('/fonts/inter-latin-v1.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --paper: #f8f3ea;
  --vellum: #f1e8d8;
  --sage: #ecebd9;
  --card: #fffcf6;
  --ink: #2a2019;
  --text: #3d3229;
  --muted: #6b5d50;
  --rule: rgba(42, 32, 25, 0.14);
  --gold: #f5c26b;
  --gold-ink: #8a5a12;
  --night: #1a1614;
  --night-2: #231e1a;
  --night-text: #e8e0d6;
  --night-muted: #a89a8c;
  --btn-ink-bg: #2a2019;
  --btn-ink-fg: #f8f3ea;
  --btn-ink-border: #2a2019;
  --shadow: 0 1px 2px rgba(42, 32, 25, 0.08), 0 12px 32px rgba(42, 32, 25, 0.14);
  --shadow-lg: 0 2px 4px rgba(42, 32, 25, 0.08), 0 30px 60px rgba(42, 32, 25, 0.22);
  --ruled: rgba(138, 90, 18, 0.07);

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #1a1614;
    --vellum: #211c19;
    --sage: #1d1e19;
    --card: #26201c;
    --ink: #f1e8dc;
    --text: #e2d8cb;
    --muted: #a89a8c;
    --rule: rgba(232, 224, 214, 0.13);
    --gold-ink: #f5c26b;
    --night: #110e0c;
    --night-2: #1a1614;
    --btn-ink-bg: transparent;
    --btn-ink-fg: #f1e8dc;
    --btn-ink-border: rgba(241, 232, 220, 0.45);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 60px rgba(0, 0, 0, 0.5);
    --ruled: rgba(245, 194, 107, 0.05);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow {
  display: block;
  font: 600 0.75rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 18px;
}
.h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text); }
.muted { color: var(--muted); }
.gold { color: var(--gold-ink); }

/* ---------- Buttons ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn svg { flex: none; }
.btn-store {
  background: var(--gold); color: #1a1614;
  box-shadow: inset 0 -3px 8px rgba(160, 100, 20, 0.35), inset 0 2px 6px rgba(255, 248, 230, 0.6), 0 6px 18px rgba(199, 145, 41, 0.28);
}
.btn-web {
  background: var(--btn-ink-bg); color: var(--btn-ink-fg); border-color: var(--btn-ink-border);
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.25), inset 0 2px 6px rgba(255, 255, 255, 0.12);
}
.btn-web .arrow { transition: transform 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-web:hover .arrow { transform: translateX(3px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.on-night .btn-web { background: transparent; color: var(--night-text); border-color: rgba(232, 224, 214, 0.45); box-shadow: none; }
.note { font-size: 0.875rem; color: var(--muted); margin-top: 16px; }
.link-arrow { font-weight: 600; color: var(--gold-ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 20px; height: 28px; }
.brand span { font: 400 1.75rem/1 var(--display); letter-spacing: -0.04em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--text); }
.nav a:hover { color: var(--gold-ink); }
.header-cta { margin-left: 8px; }
.brand + .header-cta { margin-left: auto; }
.menu-btn { display: none; }

@media (max-width: 880px) {
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
  .nav a:last-child { border-bottom: 0; }
  .header-cta { margin-left: auto; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 10px;
  }
}
@media (max-width: 380px) { .header-cta .long { display: none; } }
@media (min-width: 381px) { .header-cta .short { display: none; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section) 0; }
.band-vellum { background: var(--vellum); }
.band-sage { background: var(--sage); }
.band-card { background: var(--card); }
.band-night { background: var(--night); color: var(--night-text); }
.band-night h2, .band-night h3 { color: #f5ede2; }
.band-night .eyebrow { color: var(--gold); }
.band-night .muted { color: var(--night-muted); }
.ruled {
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--ruled) 31px, var(--ruled) 32px);
}

/* Torn-paper edges: the band's own colour, cut with torn.svg. */
.torn-top::before, .torn-bottom::after {
  content: ''; position: absolute; left: 0; right: 0; height: 18px; z-index: 2;
  background: inherit;
  -webkit-mask: url('/images/site/torn.svg') repeat-x 0 0 / 1200px 18px;
  mask: url('/images/site/torn.svg') repeat-x 0 0 / 1200px 18px;
  pointer-events: none;
}
.torn-top::before { top: -17px; }
.torn-bottom::after { bottom: -17px; transform: scaleY(-1); -webkit-mask-position: 377px 0; mask-position: 377px 0; }

.intro { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.intro .lead { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(80px, 10vw, 120px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero .lead { margin: 24px 0 32px; max-width: 34em; }
.hero h1 .w { display: inline-block; }

.collage { position: relative; aspect-ratio: 1 / 1.06; max-width: 560px; width: 100%; margin: 0 auto; }
.collage > * { position: absolute; }
.collage .phone { left: 27%; top: 2%; width: 46%; z-index: 3; }
.collage .cover-a { left: 0; top: 16%; width: 33%; transform: rotate(-7deg); z-index: 2; }
.collage .cover-b { right: 1%; top: 6%; width: 28%; transform: rotate(6deg); z-index: 1; }
.collage .print { right: -2%; bottom: 3%; width: 44%; transform: rotate(3.5deg); z-index: 4; }
.collage .bubble { left: 1%; bottom: 13%; z-index: 5; max-width: 52%; }

.cover { border-radius: 4px; box-shadow: var(--shadow-lg); background: #3a2a26; }
.phone {
  border-radius: 13% / 6%;
  padding: 2.6%;
  background: #0d0b0a;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #3a332d;
}
.phone img { border-radius: 11% / 5.1%; width: 100%; }
.print {
  background: #f7efe0; padding: 3.2%; border-radius: 3px; box-shadow: var(--shadow-lg);
}
.print img { border-radius: 2px; }
.print figcaption { font: italic 400 0.8125rem/1.3 var(--display); color: #5a4a3c; padding: 9px 2px 1px; }
.bubble {
  background: var(--card); color: var(--ink);
  border-radius: 18px 18px 18px 4px; padding: 14px 16px;
  font: 400 1rem/1.35 var(--display);
  box-shadow: var(--shadow);
  border: 1px solid var(--rule);
}
.bubble small { display: flex; align-items: center; gap: 6px; font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 7px; }
/* Portraits are line art on transparency: always on paper, so dark mode keeps their ink. */
.round { border-radius: 50%; box-shadow: var(--shadow); border: 3px solid #fffcf6; background: #f7efe0; }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .ctas { justify-content: center; }
  .collage { max-width: 460px; margin-top: 8px; }
}
@media (max-width: 520px) {
  .btn { width: 100%; }
  .hero .ctas, .final .ctas { flex-direction: column; align-items: stretch; }
  .collage .bubble { font-size: 0.875rem; padding: 11px 12px; max-width: 58%; }
  .collage .print figcaption { display: none; }
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 64px); }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--muted); }
.pillar .num { font: 400 0.875rem/1 var(--display); color: var(--gold-ink); display: block; margin-bottom: 14px; letter-spacing: 0.04em; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Feature rows ---------- */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.row.flip .row-media { order: -1; }
.row-copy .lead { margin-top: 20px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 14px;
  background: var(--gold); border-radius: 50%;
  box-shadow: inset 0 -2px 3px rgba(160, 100, 20, 0.4);
}
.row-media { position: relative; display: flex; justify-content: center; }
.row-media .phone { width: min(300px, 74%); }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; }
  .row.flip .row-media { order: 0; }
}

/* Illustrate */
.frame-stack { position: relative; width: min(500px, 100%); padding-bottom: 10%; }
.frame-stack .print { position: relative; width: 82%; transform: rotate(-2.5deg); z-index: 2; background: #efe4cf; }
.frame-stack .phone { position: absolute; right: 0; bottom: 0; width: 40%; z-index: 3; transform: rotate(3deg); }

/* ---------- Keep & share ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.tile {
  background: var(--card); border: 1px solid var(--rule); border-radius: 22px;
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.tile p { color: var(--muted); }
.tile-art { height: 168px; border-radius: 14px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

.swatches { flex-direction: column; justify-content: flex-start; gap: 10px; background: var(--vellum); padding: 16px 18px; align-items: stretch; }
.swatches p { font: 400 0.98rem/1.72 var(--display); color: var(--ink); }
.hl { padding: 1px 2px; border-radius: 3px; color: #2a2019; }
.hl-1 { background: #f6d77a; }
.hl-2 { background: #b9dcae; }
.hl-3 { background: #a9cdeb; }
.hl-4 { background: #f0b7c4; }

.quote-card {
  width: 82%; background: #1a1614; color: #e8e0d6; border-radius: 12px; padding: 18px 18px 14px;
  box-shadow: var(--shadow); transform: rotate(-2deg);
}
.quote-card q { display: block; font: 400 0.98rem/1.4 var(--display); quotes: '“' '”'; }
.quote-card .src { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font: 500 0.6875rem/1 var(--sans); color: #a89a8c; letter-spacing: 0.04em; }
.quote-card .src svg { width: 10px; height: 14px; }
.tile-art.card-bg { background: linear-gradient(160deg, #f1e3c4, #e7d3ad); }
@media (prefers-color-scheme: dark) { .tile-art.card-bg { background: linear-gradient(160deg, #2c2520, #221d19); } }
.share-chip {
  display: inline-flex; flex-direction: column; gap: 6px; width: 82%;
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow);
  font-size: 0.8125rem; color: var(--muted); transform: rotate(1.5deg);
}
.share-chip b { font: 400 1rem/1.3 var(--display); color: var(--ink); }
.share-chip .tag { font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }

/* ---------- Catalog marquee ---------- */
.shelf { margin-top: clamp(40px, 6vw, 64px); overflow: hidden; padding: 16px 0 28px; }
.shelf-track { display: flex; gap: 22px; width: max-content; }
.shelf-track img { width: 150px; aspect-ratio: 2 / 3; object-fit: cover; }
.js .shelf.is-moving .shelf-track { animation: drift 90s linear infinite; }
.shelf:hover .shelf-track, .shelf:focus-within .shelf-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(calc(-50% - 11px)); } }
@media (max-width: 600px) { .shelf-track img { width: 112px; } .shelf-track { gap: 14px; } @keyframes drift { to { transform: translateX(calc(-50% - 7px)); } } }
.facts { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; margin-top: 8px; padding: 0; list-style: none; }
.facts li { border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px; font-size: 0.9375rem; color: var(--text); background: var(--card); }

/* ---------- Read together ---------- */
.readers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: min(420px, 100%); }
.readers figure { margin: 0; text-align: center; }
.readers img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.readers figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 8px; }
.readers figure:nth-child(1) img { border-color: #f5c26b; }
.readers figure:nth-child(2) img { border-color: #b9dcae; }
.readers figure:nth-child(3) img { border-color: #a9cdeb; }
.readers figure:nth-child(4) img { border-color: #f0b7c4; }
.who { font: 400 1.25rem/1.2 var(--display); color: var(--ink); margin-bottom: 18px; text-align: center; }
.together-media { flex-direction: column; align-items: center; gap: 36px; }
.bedtime {
  margin-top: 36px; padding: 24px 26px; border-radius: 20px;
  background: #0f0c0a; color: #d9a24a;
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
}
.bedtime h3 { color: #e5b25c; font-size: 1.25rem; margin-bottom: 6px; }
.bedtime p { color: #c48f3e; font-size: 0.98rem; }
.moon { width: 34px; height: 34px; color: #e5b25c; }

/* ---------- Privacy ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 56px); }
.grid-4 .tile { padding: 24px; }
.grid-4 .tile h3 { font-size: 1.2rem; }
.glyph { width: 40px; height: 40px; border-radius: 12px; background: var(--vellum); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 56px); align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--rule); border-radius: 24px; padding: 30px 28px; display: flex; flex-direction: column; }
.plan.lit { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 50px rgba(199, 145, 41, 0.16); }
.plan h3 { font-size: 1.5rem; }
.price { font: 400 2.75rem/1 var(--display); color: var(--ink); margin: 18px 0 4px; letter-spacing: -0.02em; }
.price small { font: 500 0.9375rem/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.plan .sub { color: var(--muted); font-size: 0.9375rem; min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--rule); }
.plan li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--rule); position: relative; font-size: 0.98rem; }
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 12px; height: 7px; border-left: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: rotate(-45deg); }
.fine { max-width: 720px; margin: 28px auto 0; text-align: center; font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } .plan .sub { min-height: 0; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: clamp(32px, 5vw, 48px) auto 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 4px; font: 500 1.0625rem/1.4 var(--sans); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 22px; height: 22px; position: relative; }
.faq summary .plus::before, .faq summary .plus::after { content: ''; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; background: var(--gold-ink); border-radius: 2px; transition: transform 0.25s ease; }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--gold-ink); }
.faq .answer { padding: 0 4px 24px; color: var(--muted); max-width: 680px; }
.faq .answer p + p { margin-top: 10px; }
.faq .answer a { color: var(--gold-ink); }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final .h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.final .lead { color: var(--night-muted); margin: 18px auto 34px; max-width: 34em; }
.final .ctas { justify-content: center; }
.final .flame-big { width: 44px; height: 63px; margin: 0 auto 26px; filter: drop-shadow(0 0 22px rgba(245, 194, 107, 0.45)); }
.hearth { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 0%, rgba(201, 140, 50, 0.22), transparent 70%); pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-muted); padding: 56px 0 40px; border-top: 1px solid rgba(232, 224, 214, 0.08); font-size: 0.9375rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #f1e8dc; }
.site-footer h2 { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #f1e8dc; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--night-muted); }
.site-footer a:hover { color: var(--gold); }
.site-footer .tag { margin-top: 14px; max-width: 22em; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(232, 224, 214, 0.08); padding-top: 22px; margin-top: 8px; font-size: 0.8125rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

/* ---------- Legal pages ---------- */
.doc { padding: clamp(40px, 7vw, 80px) 0 var(--section); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; }
.doc .date { color: var(--muted); margin: 12px 0 40px; font-size: 0.9375rem; }
.doc h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 44px 0 14px; padding-top: 22px; border-top: 1px solid var(--rule); }
.doc p, .doc li { color: var(--text); margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc li::marker { color: var(--gold-ink); }
.doc a { color: var(--gold-ink); text-underline-offset: 3px; }
.doc strong { color: var(--ink); font-weight: 600; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }
.js .hero h1 .w { opacity: 0; transform: translateY(0.35em); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(0.07s * var(--i) + 0.05s); }
.js .hero .fade { opacity: 0; animation: fade 0.9s ease forwards; animation-delay: 0.55s; }
.js .collage > * { opacity: 0; animation: settle 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(0.12s * var(--o, 0) + 0.25s); }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes settle { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
.flame-flicker { animation: flicker 4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-0.6deg); } 40% { transform: scale(1.03, 1.05) rotate(0.6deg); } 70% { transform: scale(0.99, 1.02) rotate(-0.2deg); } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero h1 .w, .js .hero .fade, .js .collage > * { opacity: 1; transform: none; animation: none; translate: none; transition: none; }
  .js .shelf.is-moving .shelf-track { animation: none; }
  .shelf { overflow-x: auto; }
  .flame-flicker { animation: none; }
  .btn:hover { transform: none; }
}
