/* ==========================================================================
   Russ — Birthdays · landing page
   Hand-written. No framework, no build step, no web fonts.
   The pigments mirror RussBirthday/Design/Palette.swift so the page and the
   app are the same object seen from two sides.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Pigments */
  --paper: #FBF5EC;  --paper-deep: #F2EADF;  --linen: #F8F1E6;
  --ink: #161411;    --ink-soft: #61584D;    --ink-whisper: #736B61;
  --shadow: #1F1B17; --shadow-deep: #14110E; --cream: #FFF7E8;
  --ember: #D26038;  --ember-deep: #B03C1A;
  --rose: #DF9A9C;   --sage: #96AE94;  --butter: #F2D18A;
  --plum: #735473;   --sky: #B0CAD4;   --ice: #D7DEE0;
  --coat: #A38D7A;   --coat-light: #C9B7A2;  --tusk: #F1E5C9;

  /* Semantic — light */
  --bg: var(--paper);
  --bg-deep: var(--paper-deep);
  --card: #FDF9F2;
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --fg-whisper: var(--ink-whisper);
  --hairline: rgba(22, 20, 17, .08);
  --russ-line: var(--ink);
  --russ-hat: var(--paper);
  --russ-shadow-opacity: .10;
  --memorial-bg: #F2EDE5;
  --butter-wash: color-mix(in srgb, var(--butter) 22%, var(--card));
  --grain-blend: multiply;
  --grain-opacity: .055;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--shadow);
    --bg-deep: var(--shadow-deep);
    --card: #29241F;
    --fg: var(--cream);
    --fg-soft: rgba(255, 247, 232, .72);
    --fg-whisper: rgba(255, 247, 232, .56);
    --hairline: rgba(255, 247, 232, .10);
    --russ-line: var(--cream);
    --russ-hat: var(--shadow);
    --russ-shadow-opacity: .30;
    --memorial-bg: #1B1719;
    --butter-wash: color-mix(in srgb, var(--butter) 8%, var(--card));
    --grain-blend: soft-light;
    --grain-opacity: .10;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--shadow);
  --bg-deep: var(--shadow-deep);
  --card: #29241F;
  --fg: var(--cream);
  --fg-soft: rgba(255, 247, 232, .72);
  --fg-whisper: rgba(255, 247, 232, .56);
  --hairline: rgba(255, 247, 232, .10);
  --russ-line: var(--cream);
  --russ-hat: var(--shadow);
  --russ-shadow-opacity: .30;
  --memorial-bg: #1B1719;
  --butter-wash: color-mix(in srgb, var(--butter) 8%, var(--card));
  --grain-blend: soft-light;
  --grain-opacity: .10;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.55 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--ember); color: var(--cream); }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 16px; top: -120px; z-index: 100; padding: .7em 1.1em; border-radius: 999px; background: var(--ink); color: var(--cream); font: 600 .9rem/1 var(--sans); text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: min(var(--wrap), 100% - 2 * clamp(20px, 5vw, 48px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 1.1rem;
  font: 600 .8125rem/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-whisper);
}
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--fg); text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 1.4rem + 6.4vw, 6.5rem); line-height: .98; letter-spacing: -.024em; }
h2 { font-size: clamp(2.1rem, 1.1rem + 3.7vw, 4rem); line-height: 1.04; letter-spacing: -.02em; }
h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.01em; }
.lede {
  margin: 1.5rem 0 0;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  line-height: 1.42;
  color: var(--fg-soft);
  text-wrap: pretty;
}
.meta { font: 500 .875rem/1.4 var(--sans); color: var(--fg-whisper); }
.quiet { color: var(--fg-soft); }
em { font-style: italic; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.125rem/1 var(--serif); letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; font: 500 .9rem/1 var(--sans); }
.nav-links a { color: var(--fg-soft); text-decoration: none; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 800px) { .nav-links { display: none; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 1.02em 1.6em;
  border-radius: 999px;
  background: var(--ember);
  color: var(--cream);
  font: 600 1.0625rem/1 var(--sans);
  text-decoration: none;
  box-shadow: 0 12px 30px -14px rgba(210, 96, 56, .7);
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pill:hover { background: var(--ember-deep); transform: translateY(-1px); box-shadow: 0 16px 34px -14px rgba(210, 96, 56, .75); }
.pill:active { transform: translateY(0) scale(.99); }
.pill--small { padding: .78em 1.25em; font-size: .9375rem; }
.ghost { display: inline-flex; align-items: center; gap: .5em; padding: 1em .5em; font: 600 1rem/1 var(--sans); color: var(--fg-soft); text-decoration: none; }
.ghost:hover { color: var(--fg); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { position: relative; isolation: isolate; padding: clamp(88px, 12vw, 176px) 0; }
.section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 220px 220px;
  opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend);
}
.section--deep { background: var(--bg-deep); }
.section--memorial { background: var(--memorial-bg); }
.section--ink {
  background: var(--shadow);
  --bg: var(--shadow); --card: #29241F;
  --fg: var(--cream); --fg-soft: rgba(255, 247, 232, .72); --fg-whisper: rgba(255, 247, 232, .56);
  --hairline: rgba(255, 247, 232, .12);
  --grain-blend: soft-light; --grain-opacity: .10;
  color: var(--cream);
}
.chapter { max-width: 840px; margin-inline: auto; text-align: center; }
.chapter h2 { max-width: 20ch; margin-inline: auto; }
.chapter .lede { max-width: 56ch; margin-inline: auto; }
.chapter .eyebrow { text-align: center; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: clamp(48px, 7vw, 104px) 0 0; text-align: center; overflow: hidden; }
.russ-stage { position: relative; width: clamp(190px, 26vw, 280px); margin: 0 auto 4px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero h1 { max-width: 14ch; margin: .4rem auto 0; }
.hero .lede { max-width: 44ch; margin-inline: auto; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 2.4rem; }
.hero .phone { margin: clamp(56px, 8vw, 104px) auto 0; --w: min(380px, 78vw); }
.hero-fade { height: clamp(40px, 6vw, 88px); }

/* --------------------------------------------------------------------------
   Device frame — the screenshots are real, taken from the running app
   -------------------------------------------------------------------------- */
.phone {
  --w: 320px;
  width: var(--w);
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .175);
  background: linear-gradient(155deg, #4a4744 0%, #1d1b19 45%, #34302c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(22, 20, 17, .45), 0 8px 24px -12px rgba(22, 20, 17, .35);
}
.phone .screen { overflow: hidden; border-radius: calc(var(--w) * .145); aspect-ratio: 1206 / 2622; background: #000; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-caption { margin-top: 20px; text-align: center; }

/* --------------------------------------------------------------------------
   The promise — three iOS banners with the app's real copy
   -------------------------------------------------------------------------- */
.notifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 84px); }
@media (max-width: 880px) { .notifs { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.notif-label { margin: 0 0 12px 8px; font: 600 .8125rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-whisper); }
.notif {
  display: grid; grid-template-columns: 38px 1fr; column-gap: 12px;
  padding: 14px 16px 15px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--hairline), 0 18px 40px -24px rgba(22, 20, 17, .45);
  font-family: var(--sans);
  text-align: left;
}
.notif img { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 9px; }
.notif .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.notif .title { font: 600 .9375rem/1.3 var(--sans); color: var(--fg); }
.notif .time { font: 400 .75rem/1 var(--sans); color: var(--fg-whisper); white-space: nowrap; }
.notif .body { margin-top: 2px; font: 400 .9375rem/1.35 var(--sans); color: var(--fg-soft); }
.afterword { max-width: 46ch; margin: clamp(40px, 5vw, 64px) auto 0; text-align: center; color: var(--fg-soft); font-size: 1.125rem; }

/* --------------------------------------------------------------------------
   Split layouts — copy beside a device
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split .copy h2 { max-width: 16ch; }
.split .phone { --w: min(340px, 80vw); margin-inline: auto; }
.split--flip .visual { order: -1; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .visual { order: 0; }
  .split .copy { text-align: center; }
  .split .copy h2 { margin-inline: auto; }
  .split .points { text-align: left; }
}
.points { display: grid; gap: 1.05rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.points li { position: relative; padding-left: 1.5rem; color: var(--fg-soft); font-size: 1.0625rem; line-height: 1.5; }
.points li::before { content: ""; position: absolute; left: 0; top: .66em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ember); }
.detail { border-radius: 28px; overflow: hidden; box-shadow: 0 30px 70px -36px rgba(22, 20, 17, .5), inset 0 0 0 1px var(--hairline); background: var(--card); }
.detail img { width: 100%; height: auto; }

/* Two devices, one a step behind */
.duo { display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 4vw, 48px); margin-top: clamp(48px, 6vw, 84px); }
.duo .phone { --w: min(320px, 44vw); }
.duo .phone:last-child { margin-bottom: clamp(24px, 5vw, 72px); }
@media (max-width: 520px) { .duo { flex-direction: column; align-items: center; } .duo .phone { --w: min(320px, 78vw); } .duo .phone:last-child { margin-bottom: 0; } }

/* --------------------------------------------------------------------------
   Widgets — drawn to the widget code's own measurements; they keep their
   paper colour in the dark, exactly as the real widgets do
   -------------------------------------------------------------------------- */
.shelf {
  margin-top: clamp(48px, 6vw, 84px);
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px);
  border-radius: 40px;
  background:
    radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--rose) 22%, transparent), transparent 60%),
    radial-gradient(100% 90% at 100% 100%, color-mix(in srgb, var(--butter) 30%, transparent), transparent 60%),
    var(--bg-deep);
}
.widgets { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 28px; }
.widget {
  overflow: hidden;
  border-radius: 40px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  text-align: left;
  box-shadow: 0 30px 60px -30px rgba(22, 20, 17, .4), inset 0 0 0 1px rgba(22, 20, 17, .05);
}
.widget--small { display: flex; flex-direction: column; width: 170px; height: 170px; padding: 18px; }
.widget--medium { display: grid; grid-template-columns: 1fr auto; width: 364px; height: 170px; background: color-mix(in srgb, var(--rose) 18%, var(--paper)); }
.widget--medium .text { display: flex; flex-direction: column; padding: 18px 0 18px 20px; min-width: 0; }
.widget--medium .glyph { align-self: center; width: 96px; height: 96px; margin-right: 14px; }
.widget .kicker { font: 600 .75rem/1.2 var(--sans); color: var(--ink-soft); }
.widget .name { margin-top: 6px; font: 600 1.375rem/1.15 var(--serif); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget .sub { margin-top: 4px; font: 400 .8125rem/1.3 var(--serif); color: var(--ink-soft); }
.widget .sub.memory { font-style: italic; }
.widget .foot { display: flex; align-items: center; gap: 6px; margin-top: auto; font: 500 .75rem/1 var(--sans); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.widget .foot .glyph { width: 28px; height: 28px; }
.widget .list { display: grid; gap: 3px; margin-top: auto; }
.widget .list div { font: 400 .75rem/1.3 var(--serif); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget .list span { font: 400 .6875rem/1 var(--sans); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lock {
  width: 364px; padding: 26px 28px;
  border-radius: 40px;
  background: linear-gradient(165deg, #3a3745 0%, #1d1b21 55%, #2a2731 100%);
  color: #fff;
  font-family: var(--sans);
  text-align: left;
  box-shadow: 0 30px 60px -30px rgba(22, 20, 17, .55), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.lock .clock { font: 300 3.25rem/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lock .date { margin-top: 2px; font: 600 .9375rem/1.2 var(--sans); opacity: .9; }
.lock .accessory { display: inline-grid; gap: 1px; margin-top: 18px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lock .accessory .k { font: 600 .6875rem/1.2 var(--sans); opacity: .7; }
.lock .accessory .n { font: 500 1rem/1.2 var(--serif); }
.lock .accessory .s { font: 400 .6875rem/1.2 var(--sans); opacity: .7; }
.shelf-note { margin: 28px auto 0; max-width: 46ch; text-align: center; }

/* --------------------------------------------------------------------------
   Memorial
   -------------------------------------------------------------------------- */
.section--memorial .eyebrow { color: var(--plum); }
.candle { width: 72px; margin: clamp(32px, 5vw, 56px) auto 0; overflow: visible; }
.candle .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.3s ease-in-out infinite alternate; }
.candle .halo { animation: halo 3.7s ease-in-out infinite alternate; }
@keyframes flicker { 0% { transform: scale(1.03, .95) translateX(-.1px); } 50% { transform: scale(.97, 1.08) translateX(.15px); } 100% { transform: scale(1.02, .97) translateX(-.05px); } }
@keyframes halo { from { opacity: .76; } to { opacity: 1; } }
.memorial-line { margin: clamp(28px, 4vw, 40px) auto 0; font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); line-height: 1.25; letter-spacing: -.01em; color: var(--fg); }
.memorial-line small { display: block; margin-top: .5rem; font: 500 .875rem/1.4 var(--sans); color: var(--plum); }

/* --------------------------------------------------------------------------
   Privacy grid
   -------------------------------------------------------------------------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); margin-top: clamp(48px, 6vw, 88px); }
.grid3 h3 { margin-bottom: .55rem; }
.grid3 p { color: var(--fg-soft); font: 400 1rem/1.55 var(--sans); }
@media (max-width: 880px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } }
.evidence { display: grid; grid-template-columns: 1fr auto; gap: clamp(40px, 6vw, 96px); align-items: center; margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--hairline); }
.evidence .phone { --w: min(300px, 76vw); }
.evidence blockquote { margin: 0; font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); line-height: 1.25; letter-spacing: -.01em; }
.evidence blockquote footer { margin-top: 1rem; font: 500 .875rem/1.4 var(--sans); color: var(--fg-whisper); }
@media (max-width: 880px) { .evidence { grid-template-columns: 1fr; text-align: center; } .evidence .phone { margin-inline: auto; } }

/* --------------------------------------------------------------------------
   What Russ will never do
   -------------------------------------------------------------------------- */
.never { columns: 2; column-gap: clamp(32px, 5vw, 80px); max-width: 900px; margin: clamp(40px, 5vw, 72px) auto 0; padding: 0; list-style: none; }
.never li { break-inside: avoid; padding: .68em 0; border-bottom: 1px solid var(--hairline); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-weight: 500; line-height: 1.2; letter-spacing: -.012em; }
@media (max-width: 640px) { .never { columns: 1; } }

/* --------------------------------------------------------------------------
   Built to be kept
   -------------------------------------------------------------------------- */
.kept { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); margin-top: clamp(48px, 6vw, 84px); }
.kept > div { padding: 28px 28px 30px; border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); }
.kept h3 { margin-bottom: .6rem; }
.kept p { color: var(--fg-soft); font: 400 1rem/1.55 var(--sans); }
@media (max-width: 880px) { .kept { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.ledger-line { margin-top: clamp(48px, 6vw, 80px); text-align: center; }
.ledger-line .years { display: inline-flex; gap: 10px; margin-bottom: 18px; }
.ledger-line .years i { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); }
.ledger-line .years i.quiet { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg-whisper); }
.ledger-line q { font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); line-height: 1.25; letter-spacing: -.01em; quotes: "\201C" "\201D"; }
.ledger-line p { max-width: 50ch; margin: 1rem auto 0; color: var(--fg-soft); }

/* --------------------------------------------------------------------------
   Questions
   -------------------------------------------------------------------------- */
.faq { max-width: 760px; margin: clamp(40px, 5vw, 64px) auto 0; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 1.25rem 0; cursor: pointer; list-style: none; font: 600 1.2rem/1.3 var(--serif); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 1.7rem/1 var(--sans); color: var(--fg-whisper); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { max-width: 62ch; padding: 0 0 1.4rem; color: var(--fg-soft); }

/* --------------------------------------------------------------------------
   Closing
   -------------------------------------------------------------------------- */
.closing { text-align: center; }
.closing .russ-stage { width: clamp(150px, 18vw, 200px); }
.closing h2 { margin-top: .4rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { padding: 56px 0 48px; border-top: 1px solid var(--hairline); font: 400 .875rem/1.5 var(--sans); color: var(--fg-whisper); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a { color: var(--fg-soft); text-decoration: none; }
.footer a:hover { color: var(--fg); }
.footer .langs { flex-basis: 100%; gap: 6px 18px; font-size: .8125rem; }
.footer .langs a { color: var(--fg-whisper); }
.footer .langs a[aria-current] { color: var(--fg); font-weight: 600; }
.footer .legal { flex-basis: 100%; margin-top: 8px; font-size: .75rem; }

/* --------------------------------------------------------------------------
   Inner pages (privacy, press)
   -------------------------------------------------------------------------- */
.prose { max-width: 680px; margin-inline: auto; }
.prose h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4rem); }
.prose h2 { margin-top: 3rem; font-size: 1.75rem; }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { color: var(--fg-soft); }
.prose p + p, .prose ul { margin-top: 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .5rem; }
.prose .updated { margin-top: .75rem; }
.prose table { width: 100%; margin-top: 1rem; border-collapse: collapse; font: 400 1rem/1.5 var(--sans); }
.prose th, .prose td { padding: .7rem 0; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; color: var(--fg); }
.prose td { color: var(--fg-soft); }
.prose td:first-child { color: var(--fg); padding-right: 1.5rem; white-space: nowrap; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 1.5rem; }
.press-grid a { display: block; padding: 20px 22px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); text-decoration: none; font: 500 .95rem/1.4 var(--sans); color: var(--fg); }
.press-grid a small { display: block; margin-top: 4px; color: var(--fg-whisper); font-weight: 400; }
.russ-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 1.5rem; }
.russ-row .tile { width: 180px; padding: 20px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); }
.russ-row .tile.dark { background: var(--shadow); --russ-line: var(--cream); --russ-hat: var(--shadow); --russ-shadow-opacity: .3; }

/* --------------------------------------------------------------------------
   Russ — the SwiftUI drawing, translated line for line
   -------------------------------------------------------------------------- */
.russ { width: 100%; height: auto; overflow: visible; }
.russ .coat { fill: var(--coat); }
.russ .coat-light { fill: var(--coat-light); }
.russ .edge-body { stroke: var(--russ-line); stroke-opacity: .9; stroke-width: .9; }
.russ .edge-flipper { stroke: var(--russ-line); stroke-opacity: .9; stroke-width: .7; }
.russ .edge-head { stroke: var(--russ-line); stroke-opacity: .95; stroke-width: 1.1; }
.russ .edge-pad { stroke: var(--russ-line); stroke-opacity: .95; stroke-width: 1; }
.russ .tusk { fill: var(--tusk); stroke: var(--russ-line); stroke-opacity: .8; stroke-width: .55; stroke-linejoin: round; }
.russ .petal { fill: none; stroke: var(--cream); stroke-opacity: .92; stroke-width: .73; stroke-linecap: round; }
.russ .tuft { fill: none; stroke: var(--russ-line); stroke-opacity: .85; stroke-width: .5; stroke-linecap: round; }
.russ .nose { fill: var(--russ-line); }
.russ .eye { fill: none; stroke: var(--russ-line); stroke-width: 1.1; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 100%; animation: blink 27s linear infinite; }
.russ .hat-band { fill: none; stroke: var(--butter); stroke-width: 1.1; stroke-linecap: round; }
.russ .hat-edge { fill: none; stroke: var(--russ-line); stroke-width: .9; stroke-linejoin: round; }
.russ .hat-pompom { fill: var(--butter); stroke: var(--russ-line); stroke-width: .7; }
.russ .russ-shadow { fill: var(--ink); opacity: var(--russ-shadow-opacity); filter: blur(1px); }
.russ .russ-glow { opacity: 0; animation: glowin .9s ease-out .5s forwards; }
.russ .russ-breath { transform-box: view-box; transform-origin: 50px 85px; animation: breath 1.8s ease-in-out infinite alternate; }
.russ .russ-sway { transform-box: view-box; transform-origin: 50px 85px; animation: sway 4.55s ease-in-out infinite alternate; }
.russ .russ-muzzle { transform-box: view-box; transform-origin: 50px 45px; animation: drift 4.4s ease-in-out infinite alternate; }
.russ .russ-hat { animation: hatdrop .75s cubic-bezier(.34, 1.45, .64, 1) .45s both; }
.russ--still .russ-hat { animation: none; }
.russ--still .russ-glow { display: none; }
@keyframes breath { from { transform: scaleY(.984); } to { transform: scaleY(1.016); } }
@keyframes breath-soft { from { transform: scaleY(.992); } to { transform: scaleY(1.008); } }
@keyframes sway { from { transform: translateX(-.9px) rotate(-.5deg); } to { transform: translateX(.9px) rotate(.5deg); } }
@keyframes drift { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
@keyframes blink {
  0%, 40%, 40.6%, 77.5%, 78.1%, 78.5%, 79.1%, 100% { transform: scaleY(1); }
  40.3% { transform: scaleY(.35); }
  78.3%, 78.8% { transform: scaleY(.35); }
}
@keyframes hatdrop { from { transform: translateY(-46px); } to { transform: none; } }
@keyframes glowin { to { opacity: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* Confetti from the blowhole (D1) */
.confetti { position: absolute; width: 8px; height: 5px; border-radius: 2px; pointer-events: none; --dx: 0px; --rot: 0deg; animation: puff .95s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes puff { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(var(--dx), -110px) rotate(var(--rot)); opacity: 0; } }

/* --------------------------------------------------------------------------
   Scroll reveal — additive; the page is complete without it
   -------------------------------------------------------------------------- */
/* Complete at rest: a section is always readable; below the fold it sits a
   few points low and settles as it arrives. Nothing waits at opacity 0 —
   crawlers, link previews and skimmers see the whole page. */
html.js .reveal { transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.js .reveal.pending { transform: translateY(16px); }

/* --------------------------------------------------------------------------
   Reduce Motion — the accessibility charter: breath stays, choreography stops
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .reveal.pending { transform: none; transition: none; }
  .russ .russ-sway, .russ .russ-muzzle { animation: none; }
  .russ .russ-breath { animation-name: breath-soft; }
  .russ .russ-hat { animation: fadein .28s ease-out .3s both; }
  .candle .flame { animation: none; }
  .pill, .pill:hover { transform: none; }
}

@media print {
  .nav, .pill, .ghost, .skip { display: none; }
  .section { padding: 24px 0; }
}

/* ==========================================================================
   Added with the cards and the envelope
   ========================================================================== */

/* The wall of twelve — every card playing, each tilted a little, like cards
   stood along a mantelpiece rather than tiles in a grid. */
.card-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 2.2vw, 28px);
  margin: clamp(48px, 6vw, 88px) auto 0;
  padding: 0;
  list-style: none;
  max-width: 1180px;
}
.card-wall li { margin: 0; }
.card-wall figure { margin: 0; }
.card-wall img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: var(--paper-deep);
  box-shadow: 0 22px 40px -26px rgba(22, 20, 17, .55), 0 2px 6px -2px rgba(22, 20, 17, .18);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card-wall li:nth-child(odd) img { transform: rotate(-1.4deg); }
.card-wall li:nth-child(even) img { transform: rotate(1.2deg) translateY(10px); }
.card-wall li:nth-child(3n) img { transform: rotate(-0.4deg) translateY(4px); }
.card-wall li img:hover { transform: rotate(0) translateY(-6px) scale(1.03); box-shadow: 0 30px 50px -26px rgba(22, 20, 17, .6); }
.card-wall figcaption { margin-top: 14px; text-align: center; font: 500 .8125rem/1.3 var(--sans); color: var(--fg-whisper); }
@media (max-width: 980px) { .card-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .card-wall { grid-template-columns: repeat(3, 1fr); } .card-wall figcaption { display: none; } }

/* Three phones in a row: the envelope's story, sealed → kept → opened. */
.trio { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 40px); margin-top: clamp(48px, 6vw, 84px); }
.trio figure { margin: 0; text-align: center; }
.trio .phone { --w: min(270px, 28vw); }
.trio figure:nth-child(2) .phone { --w: min(300px, 31vw); }
.trio figcaption { margin-top: 18px; font: 500 .9375rem/1.4 var(--sans); color: var(--fg-soft); }
.trio figcaption b { display: block; font: 600 1.0625rem/1.3 var(--serif); color: var(--fg); letter-spacing: -.01em; }
@media (max-width: 720px) {
  .trio { flex-direction: column; align-items: center; }
  .trio .phone, .trio figure:nth-child(2) .phone { --w: min(300px, 78vw); }
}

/* The small print under a CTA. */
.cta-note { margin-top: 2px; font: 500 .8125rem/1.4 var(--sans); color: var(--fg-whisper); }
.pill[aria-disabled="true"] { cursor: default; }

/* Russ's face at stamp size, for the widgets. */
.glyph { display: block; }

/* A section's closing aside — one sentence, set apart. */
.aside { max-width: 52ch; margin: clamp(36px, 4vw, 56px) auto 0; text-align: center; color: var(--fg-soft); font-size: 1.0625rem; }
.aside a { color: var(--fg); }

/* Quiet anchor offsets under the sticky nav. */
section[id] { scroll-margin-top: 72px; }

/* ==========================================================================
   The Ask — "When's your birthday?"
   One card on paper: Russ, a question, three fields, a button.
   ========================================================================== */
.ask-page { min-height: 100dvh; display: grid; place-items: center; }
.ask [hidden] { display: none !important; }
.ask { width: 100%; padding: clamp(28px, 6vw, 72px) 16px; }
.ask-card {
  width: min(460px, 100%); margin-inline: auto; padding: clamp(28px, 5vw, 44px);
  border-radius: 32px; background: var(--card); text-align: center;
  box-shadow: 0 40px 90px -50px rgba(22, 20, 17, .55), inset 0 0 0 1px var(--hairline);
}
.ask-russ { width: 132px; margin: -4px auto 8px; }
.ask h1 { font: 600 clamp(1.7rem, 1.2rem + 2.2vw, 2.25rem)/1.15 var(--serif); letter-spacing: -.02em; margin: .3rem 0 .5rem; color: var(--fg); }
.ask h1:focus { outline: none; }
.ask .lede { font-size: 1.0625rem; margin: 0 auto 1.6rem; max-width: 34ch; }
.ask form, .ask section { display: grid; gap: 14px; }
.ask-field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; text-align: left; }
.ask-field label, .ask-field legend { padding: 0; font: 600 .8125rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-whisper); }
.ask-date { display: grid; grid-template-columns: minmax(5.25rem, 1fr) minmax(0, 2fr) minmax(4.5rem, 1.2fr); gap: 8px; }
.ask input, .ask select {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--hairline); background: var(--bg); color: var(--fg);
  font: 400 1.0625rem/1.2 var(--serif); -webkit-appearance: none; appearance: none;
}
.ask select { background-image: linear-gradient(45deg, transparent 50%, var(--fg-whisper) 50%), linear-gradient(135deg, var(--fg-whisper) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.ask input:focus-visible, .ask select:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.ask .pill { justify-self: center; margin-top: 6px; min-width: 220px; justify-content: center; }
.ask .pill:disabled { opacity: .6; cursor: progress; transform: none; }
.ask-error { margin: 0; color: var(--plum); font: 500 .9375rem/1.4 var(--sans); }
.ask-privacy { margin: 4px auto 0; max-width: 40ch; }
.ask-return { padding: 16px; border-radius: 18px; background: var(--butter-wash); }
.ask-return p { margin: 0; font: 400 1.0625rem/1.4 var(--serif); }
.ask-invite { margin-top: 18px; padding: 26px 20px 22px; border-radius: 24px; background: var(--butter-wash); box-shadow: 0 1px 0 var(--hairline) inset, 0 10px 30px -18px rgba(60, 30, 10, .35); display: grid; justify-items: center; gap: 4px; }
.ask-invite-icon { width: 64px; height: 64px; border-radius: 15px; margin: -2px 0 10px; box-shadow: 0 6px 16px -8px rgba(60, 30, 10, .45); }
.ask-invite .eyebrow { margin: 0 0 4px; }
.ask-invite h2 { margin: 0 0 8px; font: 600 clamp(1.4rem, 1.15rem + 1.2vw, 1.75rem)/1.15 var(--serif); letter-spacing: -.02em; color: var(--fg); text-wrap: balance; }
.ask-invite p { margin: 0 auto 16px; max-width: 34ch; color: var(--fg-soft); }
.ask-invite .pill { margin-top: 0; }
.ask-invite .meta { margin: 2px 0 0; }
.ask-made { margin: 18px auto 0; padding-top: 16px; border-top: 1px solid var(--hairline); max-width: 36ch; font: 500 .875rem/1.4 var(--sans); color: var(--fg-whisper); }
.ask-made a { color: var(--ember); font-weight: 600; text-decoration: none; }
.ask-made a:hover { text-decoration: underline; }
.ask-count { justify-self: center; display: inline-flex; align-items: baseline; gap: 8px; margin: -0.6rem 0 0.4rem; padding: 7px 15px; border-radius: 999px; background: var(--butter-wash); color: var(--fg-soft); font: 600 .9375rem/1.2 var(--sans); }
.ask-count b { font: 700 1.25rem/1 var(--round, var(--sans)); color: var(--ember); font-variant-numeric: tabular-nums; }
.ask-tally { margin: -0.8rem auto 0.6rem; font: italic 500 1.0625rem/1.4 var(--serif); color: var(--ember); }
.ask-noscript { position: fixed; inset: auto 16px 16px; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: var(--cream); font: 500 .9375rem/1.4 var(--sans); text-align: center; }
@media (max-width: 380px) { .ask-date { grid-template-columns: 1fr 1fr; } .ask-date input { grid-column: span 2; } }
