/* 人情簿 Renqingbu — site
 *
 * DIRECTION: "the red envelope, then the ledger." Two acts.
 *   Act 1 — the hero is the inside of a 紅包: deep oxblood, gold foil, the
 *           question the whole product exists to answer, and a working answer.
 *   Act 2 — the page resolves into the ledger itself: the app's cream paper,
 *           its liquid glass, its gilt medallions.
 *
 * Every colour here is the app's own (docs/design/README.md) or a darker shade
 * of the app's own lacquer hue. Nothing invented.
 *
 * WHY THE HERO IS NOT CREAM. The app's ground is cream because the app is a
 * ledger — paper you look at for minutes. A storefront is not paper. Warm-cream
 * + serif + terracotta is also the single most saturated AI-design signature of
 * 2026, so spending the hero on it would read as generic no matter how well it
 * were executed. Oxblood is the app's lacquer at depth: same hue, same family,
 * and the actual colour of the object this product is about.
 *
 * CONTRAST — measured, not assumed (WCAG AA needs 4.5:1 body / 3:1 large):
 *   ink-2 .78 on cream ground ....... 7.21:1  ✓ body default
 *   ink-3 .62 on cream ground ....... 4.37:1  ✗ FAILS — large text only
 *   ink-3 .62 on glass card ......... 4.51:1  ~ marginal — large text only
 *   lacquer on cream ................ 6.41:1  ✓ links
 *   gold #96682a on cream ........... 4.14:1  ✗ trim and large text only
 *   gold-deep #8a5f22 on cream ...... 4.77:1  ✓ small gold text uses this
 * The app's docs call .62 "the floor"; on the bare ground it is fractionally
 * under. So ink-3 is demoted here to captions ≥18px and decoration only.
 */

/* ---------------------------------------------------------------- tokens */

:root {
  /* Act 1 — the envelope. Darker shades of the app's own lacquer hue. */
  --env-deep: #3d0f0d;
  --env: #571512;
  --env-lift: #6e1e19;
  --env-ink: #f8f0e2;
  --env-ink-2: rgba(248, 240, 226, 0.82);
  --env-ink-3: rgba(248, 240, 226, 0.66);

  /* Act 2 — the ledger. App tokens, verbatim. */
  --ground: #f2ece0;
  --card: rgba(255, 252, 245, 0.55);
  --specular: rgba(255, 255, 255, 0.85);
  --rim: rgba(255, 255, 255, 0.4);
  --hairline: rgba(36, 31, 25, 0.14);
  --drop: 0 8px 24px rgba(74, 54, 32, 0.1);

  --ink: #241f19;
  --ink-2: rgba(36, 31, 25, 0.78);
  --ink-3: rgba(36, 31, 25, 0.62); /* large text / decoration only — see header */

  --lacquer: #9c2b23;
  --lacquer-tint: rgba(156, 43, 35, 0.12);
  --gold: #96682a;
  --gold-deep: #8a5f22; /* the one used for small gold text — 4.77:1 */
  --gold-lit: #d6b07a;  /* gold on dark grounds */
  --gold-bright: #e8c68a;
  --gold-tint: rgba(182, 130, 53, 0.14);

  /* 白包 grey — a condolence answer never renders in lacquer. App rule. */
  --grey: #4f5856;
  --grey-tint: rgba(79, 88, 86, 0.12);

  --blur-card: blur(26px) saturate(180%);
  --blur-veil: blur(16px) saturate(180%);

  --r-card: 24px;
  --r-inner: 22px;
  --r-button: 20px;
  --r-field: 16px;
  --r-pill: 100px;

  /* The app's single easing curve, plus a stronger ease-out for entrances. */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s6: 3rem;
  --s8: 4rem;
  --s12: 6rem;

  --serif: "Noto Serif TC", "Songti TC", "PingFang TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;

  /* Semantic z-scale. Never arbitrary 999s. */
  --z-bloom: 0;
  --z-content: 1;
  --z-sticky: 10;
  --z-seal: 40;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 300 1.03rem/1.75 var(--sans);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--env);
  color: var(--env-ink);
  padding: var(--s2);
  z-index: 100;
  border-radius: 0 0 var(--r-field) 0;
}
.skip:focus { left: 0; }

/* ============================================================== ACT ONE
   The envelope. */

.env {
  position: relative;
  background: var(--env-deep);
  color: var(--env-ink);
  overflow: hidden;
  isolation: isolate;
}

/* Lacquer depth: two soft pools of lighter red, so the ground reads as a
   lacquered surface catching light rather than a flat fill. */
.env::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-bloom);
  background:
    radial-gradient(70% 55% at 22% 12%, var(--env-lift), transparent 70%),
    radial-gradient(60% 50% at 88% 78%, var(--env), transparent 72%);
  pointer-events: none;
}

/* Gold foil grain — the fine speckle of stamped foil, at very low opacity.
   Pure CSS, no asset. */
.env::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: var(--z-bloom);
  background-image:
    repeating-linear-gradient(115deg, rgba(232, 198, 138, 0.045) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.env > * { position: relative; z-index: var(--z-content); }

.env-inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: var(--s4) var(--s3) var(--s12);
}

/* ---- header */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-bottom: var(--s8);
}

/* The wordmark is a link, so it carries a full 44px target even though the
   glyphs themselves are 14px. Negative margin keeps the optical position. */
.wordmark {
  font: 600 0.86rem/1 var(--serif);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--gold-bright);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -15px 0;
}

.masthead nav { display: flex; gap: var(--s1); align-items: center; }

.masthead nav a {
  font: 300 0.86rem/1 var(--sans);
  color: var(--env-ink-2);
  text-decoration: none;
  padding: 0.72rem 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .masthead nav a:hover { color: var(--gold-bright); background: rgba(232, 198, 138, 0.1); }
}
.masthead nav a:active { transform: scale(0.97); }

/* ---- hero type */

.hero { max-width: 34rem; }

/* A gilt hairline flourish — hairline, lozenge, hairline. From the app's
   onboarding page 1, where it sits under the wordmark. */
.flourish {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--s3);
}
.flourish::before, .flourish::after {
  content: "";
  height: 1px;
  flex: 0 0 3.4rem;
  background: linear-gradient(to right, transparent, var(--gold-lit), transparent);
}
.flourish span {
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--gold-lit);
  transform: rotate(45deg);
}
.flourish.center { justify-content: center; }

.hero h1 {
  font: 300 clamp(2.6rem, 8vw, 4.2rem)/1.08 var(--serif);
  letter-spacing: -0.03em;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--gold-bright);
}

.hero-sub {
  font: 300 1.06rem/1.7 var(--sans);
  color: var(--env-ink-2);
  margin: 0 0 var(--s6);
  max-width: 30rem;
}

/* ============================================== the calculator (signature) */

.calc {
  background: rgba(255, 250, 240, 0.07);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: var(--r-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 210, 0.18),
    inset 0 0 0 1px rgba(232, 198, 138, 0.16),
    0 24px 60px rgba(0, 0, 0, 0.34);
  padding: var(--s4);
  max-width: 40rem;
}

@media (max-width: 34rem) {
  .calc { padding: var(--s3) var(--s2); border-radius: var(--r-inner); }
}

.calc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  margin-bottom: var(--s3);
}

.calc-title {
  font: 600 1.14rem/1.3 var(--serif);
  letter-spacing: -0.005em;
  color: var(--env-ink);
  margin: 0;
}

/* Gilt folio numeral — the app's calculator shows the step this way. */
.folio {
  font: 600 1.5rem/1 var(--serif);
  color: rgba(232, 198, 138, 0.55);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.folio small {
  font-size: 0.62em;
  color: rgba(232, 198, 138, 0.42);
}

/* 4-segment gold rail, mirroring the app's progress rail. */
.rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: var(--s3);
}
.rail i {
  height: 2px;
  border-radius: 2px;
  background: rgba(232, 198, 138, 0.2);
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
  transform-origin: left;
}
.rail i.on {
  background: var(--gold-lit);
  transform: scaleY(1.6);
}

.field { margin-bottom: var(--s3); }
.field:last-of-type { margin-bottom: var(--s4); }

.field > label,
.field > .lbl {
  display: block;
  font: 300 0.82rem/1 var(--sans);
  letter-spacing: 0.06em;
  color: var(--env-ink-3);
  margin-bottom: 0.7rem;
}

/* Choice chips. Occasions carry their glyph in a gilt medallion, exactly the
   same object the app uses in every list. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: 300 0.92rem/1 var(--sans);
  color: var(--env-ink-2);
  background: rgba(255, 250, 240, 0.06);
  box-shadow: inset 0 0 0 1px rgba(232, 198, 138, 0.14);
  border-radius: var(--r-pill);
  padding: 0.6rem 0.95rem 0.6rem 0.6rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition:
    color 160ms var(--ease),
    background-color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    transform 140ms var(--ease);
}
.chip.bare { padding-left: 0.95rem; }

@media (hover: hover) and (pointer: fine) {
  .chip:hover { background: rgba(255, 250, 240, 0.11); color: var(--env-ink); }
}
.chip:active { transform: scale(0.97); }

.chip[aria-pressed="true"] {
  color: #2a0d0b;
  background: var(--gold-lit);
  box-shadow: inset 0 0 0 1px var(--gold-bright), 0 4px 14px rgba(0, 0, 0, 0.28);
  font-weight: 600;
}

/* The gilt medallion: a round cream disc, gold hairline ring, glyph inside.
   Identical construction to the app's occasion medallions. */
.med {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 32% 14%, #fffdf6, #f5ecd9);
  box-shadow: inset 0 0 0 1px rgba(182, 130, 53, 0.38);
  font: 600 0.94rem/1 var(--serif);
  color: var(--lacquer);
}
.med.white { color: var(--grey); }

/* Primary action. Lacquer fill — the app's action colour. Gold never fills. */
.go {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  min-height: 52px;
  border-radius: var(--r-button);
  background: var(--lacquer);
  color: #fff6ec;
  font: 600 1.02rem/1 var(--serif);
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.3);
  transition: transform 140ms var(--ease), filter 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .go:hover { filter: brightness(1.08); }
}
.go:active { transform: scale(0.98); }
.go:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---- the answer */

.answer {
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid rgba(232, 198, 138, 0.18);
  position: relative;
}

.answer[hidden] { display: none; }

.amount {
  font: 600 clamp(2.6rem, 9vw, 3.6rem)/1 var(--serif);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
  margin: 0;
}
.amount .cur { font-size: 0.44em; margin-right: 0.18em; opacity: 0.75; }
.amount.white { color: #dfe6e4; }

.range {
  font: 300 0.95rem/1.6 var(--sans);
  color: var(--env-ink-2);
  margin: 0.6rem 0 0;
  font-variant-numeric: tabular-nums;
}

/* Caveat note. Only appears on rows the dataset actually flags — a pooled
   envelope figure, a single/conflicting source, or an unusually wide range.
   Rendered in --env-ink-2 (6.19:1 on the lightest ground) rather than the
   quieter --env-ink-3 (4.59:1): this text changes how the number above it
   should be read, so it is a caveat, not a footnote. Same token .range
   already uses — no new value introduced. */
.note {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font: 300 0.86rem/1.65 var(--sans);
  color: var(--env-ink-2);
  margin: var(--s2) 0 0;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(214, 176, 122, 0.45);
}
.note[hidden] { display: none; }

/* Source line. This is the product's credibility, so it is shown, not hidden
   behind a disclosure — every figure is attributable or it doesn't ship. */
.src {
  font: 300 0.82rem/1.6 var(--sans);
  color: var(--env-ink-3);
  margin: var(--s2) 0 0;
}
.src a {
  color: var(--gold-lit);
  text-underline-offset: 0.18em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -12px 0;
}

/* The 記 seal. The app's one celebratory moment, and the site's signature.
   Fires when an answer resolves; never on hover, never twice. */
.seal {
  position: absolute;
  top: var(--s3);
  right: 0;
  width: 54px; height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--lacquer);
  color: #fff4e8;
  font: 600 1.9rem/1 var(--serif);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  z-index: var(--z-seal);
}
.seal.white { background: var(--grey); }
.seal.stamp { animation: stamp 1750ms var(--ease) forwards; }

@keyframes stamp {
  0%   { opacity: 0; transform: scale(2.4) rotate(-22deg); }
  18%  { opacity: 1; transform: scale(0.88) rotate(-8deg); }
  30%  { transform: scale(1.05) rotate(-8deg); }
  38%  { transform: scale(1) rotate(-8deg); }
  72%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1) rotate(-8deg); }
}

/* ============================================================== ACT TWO
   The ledger. */

.paper {
  position: relative;
  background: var(--ground);
  overflow: hidden;
}

.blooms { position: absolute; inset: 0; z-index: var(--z-bloom); pointer-events: none; }
.bloom { position: absolute; border-radius: 50%; filter: blur(40px); will-change: transform; }
.bloom-1 {
  width: 58vmax; height: 58vmax; top: -20vmax; left: -14vmax;
  background: radial-gradient(circle, rgba(182, 130, 53, 0.17), transparent 68%);
  animation: drift-1 46s var(--ease) infinite;
}
.bloom-2 {
  width: 44vmax; height: 44vmax; top: 40%; right: -16vmax;
  background: radial-gradient(circle, rgba(156, 43, 35, 0.1), transparent 68%);
  animation: drift-2 54s var(--ease) infinite;
}
.bloom-3 {
  width: 36vmax; height: 36vmax; bottom: -12vmax; left: 20vmax;
  background: radial-gradient(circle, rgba(182, 130, 53, 0.13), transparent 68%);
  animation: drift-3 38s var(--ease) infinite;
}
@keyframes drift-1 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(4vmax,3vmax,0); } }
@keyframes drift-2 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-3vmax,4vmax,0); } }
@keyframes drift-3 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(3vmax,-3vmax,0); } }

.paper-inner {
  position: relative;
  z-index: var(--z-content);
  max-width: 60rem;
  margin: 0 auto;
  padding: var(--s12) var(--s3);
}

.section-title {
  font: 600 clamp(1.6rem, 4.4vw, 2.1rem)/1.24 var(--serif);
  letter-spacing: -0.018em;
  margin: 0 0 var(--s2);
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  font: 300 1.05rem/1.75 var(--sans);
  color: var(--ink-2);
  max-width: 34rem;
  margin: 0 0 var(--s6);
}

/* ---- the three things, as ledger rows.
   Not a card grid: a ledger is rows, and the product is a ledger. Each row
   carries its own medallion, the way every list in the app does. */

.rows {
  border-top: 1px solid var(--hairline);
}

.row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--s3);
  align-items: start;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--hairline);
}

.row .med {
  width: 52px; height: 52px; flex: 0 0 52px;
  font-size: 1.5rem;
}

.row h3 {
  font: 600 1.16rem/1.4 var(--serif);
  letter-spacing: -0.006em;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.row p {
  margin: 0;
  color: var(--ink-2);
  max-width: 38em;
}

.row .en {
  display: block;
  font: 300 0.84rem/1.5 var(--sans);
  color: var(--gold-deep);
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}

@media (max-width: 34rem) {
  .row { grid-template-columns: 40px 1fr; gap: var(--s2); padding: var(--s3) 0; }
  .row .med { width: 40px; height: 40px; flex: 0 0 40px; font-size: 1.2rem; }
}

/* ---- sources strip.
   Real cited publications, pulled from the shipping dataset. This exists
   instead of testimonials or download counts: nothing on this page is claimed
   that cannot be clicked through and checked. */

.sources {
  margin-top: var(--s8);
  padding: var(--s4);
  border-radius: var(--r-card);
  background: var(--gold-tint);
  box-shadow: inset 0 0 0 1px rgba(182, 130, 53, 0.22);
}

.sources h3 {
  font: 600 1.02rem/1.4 var(--serif);
  color: var(--gold-deep);
  margin: 0 0 0.6rem;
}

.sources p { margin: 0 0 var(--s2); color: var(--ink-2); font-size: 0.95rem; }

.src-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.src-list li {
  font: 300 0.86rem/1 var(--sans);
  color: var(--ink-2);
  background: rgba(255, 252, 245, 0.7);
  box-shadow: inset 0 0 0 1px var(--hairline);
  border-radius: var(--r-pill);
  padding: 0.5rem 0.85rem;
}

/* ---- privacy panel. The app's onboarding page 3, as a section. */

.vow {
  margin-top: var(--s8);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--s3);
  align-items: center;
  background: var(--card);
  backdrop-filter: var(--blur-card);
  -webkit-backdrop-filter: var(--blur-card);
  border-radius: var(--r-card);
  box-shadow: inset 0 1px 0 var(--specular), inset 0 0 0 1px var(--rim), var(--drop);
  padding: var(--s4);
}

.vow .med {
  width: 72px; height: 72px; flex: 0 0 72px;
  font-size: 2rem;
  color: var(--gold-deep);
}

.vow h3 {
  font: 600 1.2rem/1.4 var(--serif);
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.vow p { margin: 0; color: var(--ink-2); }

@media (max-width: 34rem) {
  .vow { grid-template-columns: 1fr; padding: var(--s3); }
  .vow .med { width: 56px; height: 56px; flex: 0 0 56px; font-size: 1.6rem; }
}

/* ============================================== document pages (ToU etc.) */

.doc-head {
  background: var(--env-deep);
  color: var(--env-ink);
  position: relative;
  overflow: hidden;
}
.doc-head::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 100% at 20% 0%, var(--env-lift), transparent 72%);
}
.doc-head > * { position: relative; }

.doc-head .env-inner { padding: var(--s4) var(--s3) var(--s6); }

.doc-head h1 {
  font: 600 clamp(1.9rem, 5.6vw, 2.6rem)/1.2 var(--serif);
  letter-spacing: -0.022em;
  margin: var(--s4) 0 0.5rem;
  text-wrap: balance;
}
.doc-head .updated {
  font: 300 0.88rem/1.6 var(--sans);
  color: var(--env-ink-3);
  margin: 0;
}

.page {
  position: relative;
  z-index: var(--z-content);
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--s8) var(--s3) var(--s12);
}

.card {
  background: var(--card);
  backdrop-filter: var(--blur-card);
  -webkit-backdrop-filter: var(--blur-card);
  border-radius: var(--r-card);
  box-shadow: inset 0 1px 0 var(--specular), inset 0 0 0 1px var(--rim), var(--drop);
  padding: var(--s6) var(--s4);
}

@media (max-width: 34rem) {
  .page { padding: var(--s4) var(--s2) var(--s8); }
  .card { padding: var(--s4) var(--s3); border-radius: var(--r-inner); }
}

.card h2 {
  font: 600 1.24rem/1.4 var(--serif);
  letter-spacing: -0.008em;
  margin: var(--s6) 0 var(--s2);
  color: var(--ink);
  text-wrap: balance;
}
.card h2:first-child { margin-top: 0; }

.card h3 {
  font: 600 1.02rem/1.45 var(--serif);
  margin: var(--s4) 0 var(--s1);
  color: var(--ink);
}

.card p, .card li {
  margin: 0 0 var(--s2);
  color: var(--ink-2);
  max-width: 38em;
  text-wrap: pretty;
}

.card ul { padding-left: 1.15rem; }
.card li { margin-bottom: 0.4rem; }
.card li::marker { color: var(--gold); }

.card strong { font-weight: 600; color: var(--ink); }

a { color: var(--lacquer); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.card a { text-decoration-color: rgba(156, 43, 35, 0.4); transition: text-decoration-color 160ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .card a:hover { text-decoration-color: var(--lacquer); } }

.summary {
  border-radius: var(--r-inner);
  background: var(--gold-tint);
  box-shadow: inset 0 0 0 1px rgba(182, 130, 53, 0.22);
  padding: var(--s3);
  margin-bottom: var(--s4);
}
.summary h2 { margin: 0 0 var(--s1) !important; font-size: 1.05rem; color: var(--gold-deep); }
.summary p:last-child { margin-bottom: 0; }

.draft {
  border-radius: var(--r-field);
  background: var(--lacquer-tint);
  box-shadow: inset 0 0 0 1px rgba(156, 43, 35, 0.26);
  padding: var(--s2) var(--s3);
  margin-bottom: var(--s4);
}
.draft p { margin: 0; font-size: 0.92rem; }
.draft strong { color: var(--lacquer); }

.todo {
  font-weight: 600;
  font-size: 0.88em;
  color: var(--lacquer);
  background: var(--lacquer-tint);
  border-radius: 6px;
  padding: 0.1em 0.42em;
}

/* ---------------------------------------------------------------- footer */

.foot {
  background: var(--env-deep);
  color: var(--env-ink-2);
  padding: var(--s6) var(--s3);
}
.foot-inner { max-width: 60rem; margin: 0 auto; }

.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--s4);
  border-bottom: 1px solid rgba(232, 198, 138, 0.16);
}

.foot nav { display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.foot nav a {
  color: var(--env-ink-2);
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .foot nav a:hover { color: var(--gold-bright); } }

.foot-bottom {
  padding-top: var(--s3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--env-ink-3);
}
.foot-bottom p { margin: 0; }
.foot-bottom a { color: var(--env-ink-3); }

.kin { display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.kin a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (hover: hover) and (pointer: fine) { .kin a:hover { color: var(--gold-bright); } }

/* -------------------------------------------------- accessibility modes */

@media (prefers-reduced-motion: reduce) {
  .bloom { animation: none; }
  /* The seal is celebration, not information — the answer above it already
     says everything. Suppress it rather than leaving it stamped on screen
     forever, which is what `animation: none` on a forwards-filling keyframe
     would do. */
  .seal.stamp { animation: none; opacity: 0; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root { --card: #fffdf8; }
  .card, .vow, .calc { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .calc { background: rgba(255, 250, 240, 0.12); }
  .blooms { display: none; }
}

@media (prefers-contrast: more) {
  :root { --ink-2: #241f19; --ink-3: #241f19; --card: #fffdf8; }
  .card, .vow { box-shadow: inset 0 0 0 1px var(--ink); }
  .blooms { display: none; }
  .chip { box-shadow: inset 0 0 0 1px var(--gold-bright); }
}

@media print {
  .env, .doc-head, .foot, .blooms, .draft, .calc { display: none; }
  body { background: #fff; color: #000; }
  .card { background: none; box-shadow: none; padding: 0; backdrop-filter: none; }
  a { color: #000; }
}
