/* Candid Vows. Confetti outside, paper for the words people write, nothing but the words on the day.
   Design system: DESIGN.md. Tokens first, then base, then components in page order. */

/* ---------- fonts (self-hosted, subset, SIL OFL; licences in /assets/fonts/) ---------- */
@font-face {
  font-family: "Bricolage Display";
  src: url("/assets/fonts/bricolage-display.woff2") format("woff2");
  font-weight: 800;
  font-stretch: 88% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-text.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("/assets/fonts/courier-prime.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
/* Metric-matched fallbacks, measured against the subset files, so the swap barely moves anything. */
@font-face { font-family: "Display Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 800; size-adjust: 86%; ascent-override: 108%; descent-override: 31%; line-gap-override: 0%; }
@font-face { font-family: "Text Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 104%; ascent-override: 89%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Reading Fallback"; src: local("Georgia"); size-adjust: 107.8%; ascent-override: 109.1%; descent-override: 28.6%; line-gap-override: 0%; }
@font-face { font-family: "Typed Fallback"; src: local("Courier New"), local("CourierNewPSMT"); size-adjust: 99.9%; ascent-override: 78.2%; descent-override: 34.2%; line-gap-override: 0%; }

/* ---------- tokens ---------- */
:root {
  --sun: #FFD23F;
  --sun-deep: #F7C21A;
  --cobalt: #2447D8;
  --cobalt-deep: #1A35A8;
  --coral: #FF6B5A;
  --paper: #FFFFFF;
  --paper-2: #E9EEFF;
  --ink: #14183A;
  --ink-soft: #3B4066;

  --kraft: #D9B77E;
  --kraft-deep: #B8935A;
  --sheet: #FFF9E8;
  --rule: rgba(36, 71, 216, .14);
  --ink-wash: rgba(20, 24, 58, .08);
  --ink-edge: rgba(20, 24, 58, .12);
  --on-ink: rgba(255, 255, 255, .86);
  --on-ink-line: rgba(255, 255, 255, .45);
  --on-ink-rule: rgba(255, 255, 255, .2);
  --airmail:repeating-linear-gradient(-45deg,
    var(--coral) 0 12px, var(--sheet) 12px 20px,
    var(--cobalt) 20px 32px, var(--sheet) 32px 40px);

  --f-display: "Bricolage Display", "Display Fallback", system-ui, sans-serif;
  --f-ui: "Bricolage", "Text Fallback", system-ui, sans-serif;
  --f-read: "Literata", "Reading Fallback", Georgia, serif;
  --f-typed: "Courier Prime", "Typed Fallback", "Courier New", monospace;

  --fs-display: clamp(3.2rem, 8vw, 6.6rem);
  --fs-h2: clamp(2.2rem, 5.2vw, 4.2rem);
  --fs-h3: 1.5rem;
  --fs-label: .82rem;
  --fs-body: 1.0625rem;
  --fs-lede: 1.2rem;
  --fs-vow: 1.25rem;

  --edge: 2.5px solid var(--ink);
  --sticker: 5px 5px 0 var(--ink);
  --sticker-up: 8px 8px 0 var(--ink);
  --paper-shadow: 0 18px 30px -22px rgba(20, 24, 58, .45);
  --r-card: 22px;
  --r-pill: 999px;
  --r-photo: 6px;
  --r-paper: 2px;

  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --gutter: 32px;
  --band-y: 112px;
  --measure: 66ch;
}
@media (max-width: 639px) {
  :root { --gutter: 20px; --band-y: 72px; --fs-body: 1.125rem; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-read);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, picture { display: block; max-width: 100%; }
a { color: var(--cobalt); text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { color: var(--cobalt-deep); }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; color: var(--cobalt); font-weight: 800; }
h2 {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  font-stretch: 92%;
  line-height: .98;
  letter-spacing: -.012em;
  word-spacing: .08em;
  text-wrap: balance;
}
h3 { font-family: var(--f-ui); font-size: var(--fs-h3); line-height: 1.1; color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.stripe--cobalt :focus-visible, .basefoot :focus-visible { outline-color: var(--sun); }
::selection { background: var(--sun); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skiplink {
  position: absolute; left: var(--gutter); top: -80px; z-index: 50;
  background: var(--ink); color: var(--paper); font-family: var(--f-ui); font-weight: 700;
  padding: 12px 20px; border-radius: var(--r-pill); text-decoration: none;
}
.skiplink:focus { top: 12px; color: var(--paper); }

.frame { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- header ---------- */
.topbar { background: var(--paper); border-bottom: var(--edge); position: relative; z-index: 5; }
.topbar--sun { background: var(--sun); border-bottom: 0; }
.topbar__in {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 88px; padding-block: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px;
  font-family: var(--f-ui); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo svg { width: 30px; height: 30px; flex: none; }
.menu { display: flex; align-items: center; gap: 4px; font-family: var(--f-ui); font-weight: 600; font-size: 1rem; }
.menu a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px;
  border-radius: var(--r-pill); color: var(--ink); text-decoration: none;
  transition: background-color .2s var(--ease);
}
.menu a:hover { background: var(--ink-wash); color: var(--ink); }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 6px; }
.menu .menu__reader { margin-right: 12px; }
@media (max-width: 759px) {
  .topbar__in { display: grid; grid-template-columns: 1fr auto; gap: 12px 12px; min-height: 0; padding-block: 12px 12px; }
  .menu { display: contents; }
  .menu .menu__reader { grid-column: 2; grid-row: 1; margin: 0; }
  .menu__rest { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; }
  .menu__rest a { justify-content: center; padding: 0 4px; font-size: 15px; }
}
@media (max-width: 359px) {
  .menu__rest a { font-size: 14px; padding: 0 2px; }
}
@media (min-width: 760px) { .menu__rest { display: flex; gap: 4px; } }

/* ---------- buttons ---------- */
/* The one hard shadow on a button: the primary action. It lifts up and left, and sinks when pressed. */
.press {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  font-family: var(--f-ui); font-weight: 700; font-size: 1.06rem; line-height: 1.1; text-align: center;
  color: var(--paper); background: var(--cobalt);
  border: var(--edge); border-radius: var(--r-pill);
  box-shadow: var(--sticker);
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s var(--spring), background-color .2s var(--ease);
}
.press:hover { color: var(--paper); background: var(--cobalt-deep); transform: translate(-3px, -3px); box-shadow: var(--sticker-up); }
.press:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.menu .press { min-height: 48px; padding: 0 20px; color: var(--paper); }
.menu .press:hover { background: var(--cobalt-deep); color: var(--paper); }

/* Secondary: paper fill, ink text, border only. Lifts 3px on hover. */
.plain {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  font-family: var(--f-ui); font-weight: 700; font-size: 1.06rem; line-height: 1.1; text-align: center;
  color: var(--ink); background: var(--paper);
  border: var(--edge); border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--spring), background-color .2s var(--ease);
}
.plain:hover { color: var(--ink); transform: translateY(-3px); }
.plain:active { transform: translateY(1px); }

.textlink { font-family: var(--f-ui); font-weight: 700; color: var(--cobalt); }

/* ---------- bands ---------- */
.stripe { padding-block: var(--band-y); }
.stripe--sun { background: var(--sun); }
.stripe--paper { background: var(--paper); }
.stripe--mist { background: var(--paper-2); }
.stripe--cobalt { background: var(--cobalt); color: var(--paper); }
.stripe--coral { background: var(--coral); }
.stripe--cobalt h2 { color: var(--paper); }
.stripe--coral h2 { color: var(--ink); }

.sect-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 64px);
}
.sect-head p { margin: 0; font-size: var(--fs-lede); line-height: 1.55; max-width: 34em; }
@media (max-width: 859px) { .sect-head { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ---------- hero ---------- */
.welcome { position: relative; background: var(--sun); padding: clamp(28px, 4vw, 48px) 0 88px; overflow: hidden; }
.welcome__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 40px clamp(32px, 4vw, 64px); align-items: center;
}
.welcome__title { margin: 0 0 24px; }
.title-kicker {
  display: block; margin-bottom: 16px;
  font-family: var(--f-ui); font-size: var(--fs-h3); font-weight: 800; line-height: 1.1; color: var(--ink);
}
.title-main {
  display: block;
  font-family: var(--f-display); font-size: var(--fs-display); font-stretch: 90%; font-weight: 800;
  line-height: .92; letter-spacing: -.015em; word-spacing: .08em; color: var(--cobalt);
}
.title-main span { display: block; white-space: nowrap; }
.welcome__sub { font-size: var(--fs-lede); line-height: 1.55; max-width: 27em; margin: 0 0 32px; }
.welcome__moves { display: flex; flex-wrap: wrap; gap: 16px 20px; }
@media (max-width: 899px) {
  .welcome__grid { grid-template-columns: minmax(0, 1fr); }
  .welcome__moves { flex-direction: column; align-items: stretch; }
  .welcome__moves > * { width: 100%; }
}

/* the scene: a print of the photograph, the envelope in front, two speech bubbles */
.scene { position: relative; height: 560px; }
.snap {
  position: absolute; left: 0; top: 30px; width: 56%; margin: 0;
  background: var(--paper); padding: 12px 12px 40px; border-radius: var(--r-photo);
  box-shadow: var(--paper-shadow), 0 2px 0 var(--ink-edge);
  transform: rotate(-3deg);
}
.snap img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.snap figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 9px;
  font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 600; color: var(--ink);
}

.bubble {
  position: relative; display: block;
  background: var(--paper); color: var(--ink);
  border: var(--edge); border-radius: var(--r-card);
  padding: 20px 20px 16px;
  font-family: var(--f-read); font-size: var(--fs-vow); line-height: 1.45;
  text-decoration: none;
}
.bubble::after {
  content: ""; position: absolute; left: 28px; bottom: -15px; width: 22px; height: 22px;
  background: inherit; border-right: var(--edge); border-bottom: var(--edge);
  transform: skewX(28deg) rotate(45deg); transform-origin: center;
  border-bottom-right-radius: 4px;
}
.bubble--sun { background: var(--sun); }
.bubble--mist { background: var(--paper-2); }
.bubble q { quotes: "\201C" "\201D"; display: block; }
.bubble__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px;
  font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 600; line-height: 1.2;
}
.chip {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: 4px 12px; border-radius: var(--r-pill); font-weight: 700;
}
.scene .bubble { position: absolute; width: min(300px, 62%); font-size: 1.06rem; padding: 16px 16px 12px; z-index: 3; }
.scene .bubble--one { right: 1%; top: -26px; transform: rotate(2deg); }
.scene .bubble--two { left: -9%; top: 47%; transform: rotate(-3deg); width: min(228px, 42%); }
.scene .bubble__meta { margin-top: 8px; }

/* ---------- the envelope (letter moment 6.1) ---------- */
.letter {
  position: absolute; right: 0; bottom: 64px; z-index: 2;
  width: 76%; aspect-ratio: 16 / 10; padding: 0;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  perspective: 1100px;
}
.letter:focus-visible { outline: none; }
.letter:focus-visible .letter__pocket { outline: 3px solid var(--cobalt); outline-offset: 6px; }
.letter__sheet {
  position: absolute; left: 7%; right: 7%; top: -30%; height: 92%;
  padding: 8px; background: var(--airmail);
  border-radius: var(--r-paper); box-shadow: var(--paper-shadow);
  transform: rotate(-1.5deg); transform-origin: 50% 100%;
  z-index: 1;
}
.letter__paper {
  display: block; height: 100%; background: var(--sheet); padding: 16px 20px;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px);
  background-position: 0 12px;
  text-align: left;
}
.letter__typed {
  display: block; font-family: var(--f-typed); font-size: 1.05rem; line-height: 32px; color: var(--cobalt);
  min-height: 64px;
}
.letter__pocket {
  position: absolute; inset: 0; z-index: 2;
  background: var(--kraft); border: var(--edge); border-radius: var(--r-paper);
  box-shadow: var(--sticker);
  transition: transform .2s var(--spring), box-shadow .2s var(--spring);
}
.letter__folds { position: absolute; inset: 0; width: 100%; height: 100%; }
.letter__flap {
  position: absolute; left: 0; right: 0; top: 0; height: 56%; z-index: 4;
  transform-origin: 50% 0; transform: rotateX(0deg);
  pointer-events: none;
}
.letter__flap svg { width: 100%; height: 100%; overflow: visible; }
.letter__to {
  position: absolute; left: 9%; bottom: 17%; z-index: 3;
  font-family: var(--f-typed); font-size: 1.08rem; line-height: 1.35; color: var(--ink); text-align: left;
}
.letter__to svg { width: 100%; height: 12px; margin-top: 4px; overflow: visible; }
.letter__stamp { position: absolute; right: 6%; bottom: 10%; z-index: 3; width: 13%; height: auto; transform: rotate(4deg); }
.letter:hover .letter__pocket { transform: translate(-3px, -3px); box-shadow: var(--sticker-up); }
.letter:active .letter__pocket { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }

.scene__hint {
  position: absolute; right: 0; bottom: 14px; width: 76%; margin: 0; z-index: 2;
  font-family: var(--f-ui); font-size: .95rem; font-weight: 600; text-align: right;
}

/* opening sequence: the flap lifts, the sheet rises and straightens; the stage then grows from it */
.scene.is-opening .letter__flap { transform: rotateX(180deg); z-index: 0; transition: transform .22s var(--ease), z-index 0s linear .2s; }
.scene.is-opening .letter__sheet { transform: translateY(-34%) rotate(0deg); transition: transform .26s var(--ease) .22s; }
.scene.is-opening .snap, .scene.is-opening .bubble, .scene.is-opening .scene__hint { opacity: 0; transition: opacity .3s var(--ease) .2s; }
.scene.is-open .snap, .scene.is-open .bubble, .scene.is-open .letter, .scene.is-open .scene__hint { visibility: hidden; opacity: 0; }

.scene.is-quick.is-opening .letter__flap { transition-duration: .09s; }
.scene.is-quick.is-opening .letter__sheet { transition-duration: .11s; transition-delay: .09s; }
.when-js { display: none; }
.js .when-js { display: inline; }
.js .no-js { display: none; }

@media (max-width: 899px) {
  .scene { height: auto; padding-top: 128px; margin-top: 8px; }
  .snap { width: 52%; top: 0; left: 2px; padding: 8px 8px 32px; }
  .snap figcaption { left: 10px; bottom: 7px; font-size: .76rem; }
  .scene .bubble--one { right: 0; top: 4px; width: 52%; font-size: .95rem; padding: 12px 12px 12px; }
  .scene .bubble--one .bubble__meta { font-size: .74rem; }
  .scene .bubble--two { display: none; }
  .letter { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 112px; }
  .letter__sheet { top: -34%; }
  .letter__typed { font-size: .9rem; line-height: 26px; }
  .scene__hint { position: static; width: auto; text-align: left; margin-top: 20px; }
  .letter__to { font-size: .95rem; }
}
@media (max-width: 899px) {
  .scene.is-open { padding-top: 0; }
  .scene.is-open .letter, .scene.is-open .scene__hint, .scene.is-open .snap, .scene.is-open .bubble { display: none; }
}
@media (max-width: 899px) and (min-width: 560px) {
  .scene { max-width: 520px; padding-top: 172px; }
}

/* ---------- the reader stage on the home page ---------- */
.stage {
  position: absolute; inset: 0 0 auto 0; z-index: 6;
  display: flex; flex-direction: column; gap: 16px;
}
.stage[hidden] { display: none; }
.stage__frame {
  position: relative; height: 410px; container-type: inline-size;
  border: var(--edge); border-radius: var(--r-card); overflow: hidden;
  background: var(--ink);
}
.stage__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.looks { display: inline-flex; border: var(--edge); border-radius: var(--r-pill); background: var(--paper); padding: 4px; }
.looks button {
  min-height: 44px; min-width: 64px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  font-family: var(--f-ui); font-weight: 700; font-size: .95rem; color: var(--ink); background: transparent; cursor: pointer;
}
.looks button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.mini-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 20px;
  border: var(--edge); border-radius: var(--r-pill); background: var(--paper); color: var(--ink);
  font-family: var(--f-ui); font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .2s var(--spring);
}
.mini-btn:hover { transform: translateY(-3px); }
.mini-btn svg { width: 18px; height: 18px; }

/* the round coral practice button: the second of the three hard shadows */
.practise {
  display: grid; place-items: center; width: 92px; height: 92px; margin-left: auto; padding: 8px;
  border: var(--edge); border-radius: 50%; background: var(--coral); color: var(--ink);
  font-family: var(--f-ui); font-weight: 800; font-size: .92rem; line-height: 1.08; text-align: center;
  box-shadow: var(--sticker); cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s var(--spring);
}
.practise:hover { transform: translate(-3px, -3px); box-shadow: var(--sticker-up); }
.practise:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.practise[aria-pressed="true"] { background: var(--paper); }

.stage__note { margin: 0; font-family: var(--f-ui); font-size: .95rem; font-weight: 600; line-height: 1.4; }
.stage__result { margin: 0; font-family: var(--f-read); font-size: 1.05rem; line-height: 1.5; }
.stage__result:empty { display: none; }
.stage__result strong { font-family: var(--f-ui); font-variant-numeric: tabular-nums; }
.stage__small { display: block; font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 600; margin-top: 4px; }

@media (max-width: 899px) {
  .stage { position: relative; inset: auto; margin-top: 8px; }
  .stage__frame { height: min(460px, 72vh); }
  .practise { width: 84px; height: 84px; }
}

/* ---------- reader section ---------- */
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; counter-reset: pt; }
.points li { position: relative; padding-left: 84px; counter-increment: pt; }
.points li::before {
  content: counter(pt); position: absolute; left: 0; top: 0;
  font-family: var(--f-display); font-size: 3.4rem; font-weight: 800; font-stretch: 90%; line-height: .9; color: var(--cobalt);
}
.points h3 { margin: 4px 0 8px; }
.points p { margin: 0; max-width: 32em; }
@media (max-width: 759px) { .points { grid-template-columns: minmax(0, 1fr); gap: 32px; } .points li { padding-left: 60px; } .points li::before { font-size: 2.6rem; } }

.checks {
  margin-top: clamp(48px, 7vw, 72px); padding: 28px clamp(20px, 4vw, 40px);
  background: var(--paper-2); border-radius: var(--r-card);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 16px 64px; align-items: start;
}
.checks h3 { font-size: 1.25rem; }
.checks p { margin: 8px 0 0; font-size: 1rem; }
.checks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; line-height: 1.45; }
.checks svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
@media (max-width: 759px) { .checks, .checks ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- examples ---------- */
.bubbles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; align-items: start; }
.bubbles .bubble { transition: transform .2s var(--spring); }
.bubbles .bubble:hover { transform: translateY(-3px); color: var(--ink); }
.bubbles .bubble:nth-child(3n+2) { margin-top: 28px; }
.after-bubbles { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 56px; }
.after-bubbles p { margin: 0; font-size: 1rem; }
@media (max-width: 959px) { .bubbles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bubbles .bubble:nth-child(3n+2) { margin-top: 0; } .bubbles .bubble:nth-child(2n) { margin-top: 24px; } }
@media (max-width: 639px) { .bubbles { grid-template-columns: minmax(0, 1fr); gap: 36px; } .bubbles .bubble:nth-child(2n) { margin-top: 0; } }

/* ---------- traditional ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start; margin: 28px 0 0; padding: 16px 20px;
  background: var(--paper-2); color: var(--ink); border-radius: 14px;
  font-family: var(--f-ui); font-size: .98rem; font-weight: 600; line-height: 1.45; max-width: 36em;
}
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.stripe--cobalt .sect-head > p { color: var(--paper); }
.rites { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 12px; }
.rites a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border: 2.5px solid var(--paper); border-radius: var(--r-pill);
  font-family: var(--f-ui); font-weight: 700; font-size: 1rem; color: var(--paper); text-decoration: none;
  transition: transform .2s var(--spring), background-color .2s var(--ease);
}
.rites a:hover { transform: translateY(-3px); color: var(--paper); }
.rites a[aria-selected="true"], .rites a.is-current { background: var(--sun); border-color: var(--ink); color: var(--ink); }
.rite {
  background: var(--paper); color: var(--ink); border: var(--edge); border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 44px);
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px clamp(28px, 5vw, 64px);
}
.rite[hidden] { display: none; }
.rite h3 { color: var(--cobalt); font-size: 1.75rem; margin-bottom: 16px; }
.rite p { max-width: 34em; }
.rite ul { margin: 0; padding-left: 1.2em; }
.rite li { margin-bottom: 8px; }
.rite li::marker { color: var(--cobalt); }
@media (max-width: 859px) { .rite { grid-template-columns: minmax(0, 1fr); } }

.quoted { margin: 0; border: var(--edge); border-radius: 4px; padding: 20px 24px; background: var(--paper); }
.quoted + .quoted { margin-top: 16px; }
.quoted__label { display: block; margin-bottom: 8px; font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 700; color: var(--cobalt); }
.quoted p { margin: 0; font-size: var(--fs-vow); line-height: 1.45; }
.source-line { margin: 16px 0 0; font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 600; line-height: 1.5; }

/* ---------- write, practise, print ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { background: var(--paper); border-radius: var(--r-card); padding: 32px 28px 28px; display: flex; flex-direction: column; }
.step__n { font-family: var(--f-display); font-size: 4.2rem; font-weight: 800; font-stretch: 90%; line-height: .85; color: var(--cobalt); margin-bottom: 16px; }
.step h3 { margin-bottom: 12px; }
.step h3 a { color: inherit; text-decoration: none; }
.step h3 a:hover { text-decoration: underline; }
.step p { margin: 0 0 24px; }
.step__demo { margin-top: auto; }
.demo-q { background: var(--paper-2); border-radius: 14px; padding: 16px 20px; }
.demo-q b { display: block; font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 700; color: var(--cobalt); margin-bottom: 4px; }
.demo-q span { font-family: var(--f-ui); font-weight: 700; font-size: 1.1rem; }
.demo-clock { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--paper-2); border-radius: 14px; padding: 16px 20px; }
.demo-clock b { font-family: var(--f-ui); font-weight: 800; font-size: 2rem; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 12px; }
.demo-clock b::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }
.demo-clock span { font-family: var(--f-ui); font-weight: 700; font-size: .95rem; text-align: right; }
.demo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; background: var(--paper-2); border-radius: 14px; }
.demo-card { aspect-ratio: 105 / 148; background: var(--airmail); padding: 4px; border-radius: var(--r-paper); box-shadow: var(--paper-shadow); }
.demo-card:first-child { transform: rotate(-1.5deg); }
.demo-card:last-child { transform: rotate(1deg); }
.demo-card span { display: block; height: 100%; background: var(--sheet); padding: 12px 8px; font-family: var(--f-read); font-size: .72rem; line-height: 1.45; }
.demo-card b { display: block; font-family: var(--f-ui); font-size: .7rem; color: var(--cobalt); margin-bottom: 4px; }
@media (max-width: 959px) { .steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* ---------- renewal ---------- */
.renew { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 40px 64px; align-items: end; }
.renew blockquote { margin: 0; }
.renew blockquote p { font-family: var(--f-read); font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.25; font-weight: 500; margin: 0 0 20px; }
.renew blockquote footer { font-family: var(--f-ui); font-size: var(--fs-label); font-weight: 700; }
.renew h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.renew__side p { margin-bottom: 24px; }
@media (max-width: 859px) { .renew { grid-template-columns: minmax(0, 1fr); } }

/* ---------- inner pages (stubs for now) ---------- */
.pagehead { background: var(--sun); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px); }
.pagehead h1 {
  font-family: var(--f-display); font-size: var(--fs-h2); font-stretch: 92%; line-height: .98;
  letter-spacing: -.012em; word-spacing: .08em; max-width: 16em; text-wrap: balance;
}
.pagehead p { margin: 20px 0 0; font-size: var(--fs-lede); max-width: 32em; }
.pagebody { padding-block: clamp(48px, 7vw, 88px) clamp(72px, 9vw, 112px); }
.pagebody .frame > * { max-width: var(--measure); }
.soon { background: var(--paper-2); border-radius: var(--r-card); padding: 28px 28px; margin-bottom: 32px; }
.soon p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.basefoot { position: relative; background: var(--ink); color: var(--paper); padding: 84px 0 56px; }
.basefoot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 28px;
  background: url("/assets/img/confetti-strip.svg") center top / 1600px 28px repeat-x;
}
.basefoot a { color: var(--paper); text-decoration-color: var(--on-ink-line); }
.basefoot a:hover { color: var(--sun); text-decoration-color: var(--sun); }
.basefoot__cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .6fr) minmax(0, .6fr); gap: 32px 64px; }
.basefoot .logo { color: var(--paper); margin-bottom: 8px; }
.basefoot .logo:hover { color: var(--sun); }
.basefoot__line { margin: 0; max-width: 26em; color: var(--on-ink); }
.basefoot ul { list-style: none; margin: 0; padding: 0; font-family: var(--f-ui); font-weight: 600; }
.basefoot li a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.basefoot li a:hover { text-decoration: underline; }
.smallprint { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--on-ink-rule); font-family: var(--f-ui); font-size: .86rem; line-height: 1.55; color: var(--on-ink); }
.smallprint p { margin: 0 0 8px; }
@media (max-width: 759px) { .basefoot__cols { grid-template-columns: 1fr 1fr; } .basefoot__brand { grid-column: 1 / -1; } }

/* ---------- motion (only with script, only when motion is welcome) ---------- */
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease); transition-delay: var(--stagger, 0ms); }
  .js .rise.is-in { opacity: 1; transform: none; }
  .js .welcome:not(.is-ready) .scene .bubble { opacity: 0; scale: .6; }
  .js .welcome.is-ready .scene .bubble { animation: pop .52s var(--spring) both; }
  .js .welcome.is-ready .scene .bubble--two { animation-delay: .38s; }
}
@keyframes pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  .press, .plain, .practise, .mini-btn, .letter__pocket, .bubbles .bubble, .rites a { transition: background-color .2s linear, color .2s linear; }
  .press:hover, .press:active, .plain:hover, .plain:active, .practise:hover, .practise:active,
  .mini-btn:hover, .letter:hover .letter__pocket, .letter:active .letter__pocket, .bubbles .bubble:hover, .rites a:hover { transform: none; }
  .scene.is-opening .letter__flap, .scene.is-opening .letter__sheet { transition: none; }
}
