/* =========================================================
   Wedding invitation — styles
   ========================================================= */
/* Fonts are served from this site (latin subset, variable weights), so the
   first paint never waits on a third-party stylesheet */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../assets/fonts/Cinzel.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../assets/fonts/CormorantGaramond.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../assets/fonts/CormorantGaramond-Italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pinyon Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/PinyonScript.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --col: 520px;                 /* phone-width column on desktop */
  --rose: #7a2b43;              /* headings: the card's maroon */
  --rose-deep: #5e1f33;
  --rose-soft: #a85b74;
  --ink: #3a2e34;               /* body text */
  --ink-soft: #857079;
  --paper: #f7f4f1;             /* pearl ivory */
  --paper-2: #eef0f4;           /* pale blue tint, like the card's peonies */
  --gold: #c99a3a;
  --gold-light: #f3d27a;
  --blue: #6f84ab;
  --env: #eee9e3;

  --script: "Pinyon Script", "Great Vibes", cursive;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --caps: "Cinzel", Georgia, serif;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(111, 132, 171, .35), transparent 70%),
    radial-gradient(50% 50% at 85% 90%, rgba(122, 43, 67, .35), transparent 70%),
    #1b1922;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100vh; height: 100svh; }
img, svg, canvas { display: block; }
button { font: inherit; color: inherit; }

/* =========================================================
   1. Envelope
   ========================================================= */
.envelope {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  background: rgba(36, 26, 32, .6);
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.env-box {
  position: relative;
  width: min(100%, var(--col));
  height: 100%;
  overflow: hidden;
  perspective: 1600px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.env-paper,
.env-flap-paper {
  background-color: var(--env);
  background-image:
    var(--env-pattern, none),
    radial-gradient(120% 80% at 25% 15%, #f7f3ed 0%, #ede7df 45%, #e0d7cb 100%);
  background-size: 104px 104px, cover;
}
.env-paper { position: absolute; inset: 0; }

/* Inside of the envelope, shown once the flap lifts */
.env-pocket {
  position: absolute;
  inset: 0 0 auto 0;
  height: 58%;
  clip-path: polygon(0 0, 100% 0, 100% 56%, 50% 100%, 0 56%);
  background: linear-gradient(180deg, #4b5a7c 0%, #7187ad 60%, #9eb0cf 100%);
}

/* The flap */
.env-flap {
  position: absolute;
  inset: 0 0 auto 0;
  height: 58%;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transition: transform 1.25s var(--ease-io);
  z-index: 3;
}
.env-flap-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 56%, 50% 100%, 0 56%);
}
/* Gold edge peeks out under the paper layer */
.env-flap-front {
  background: linear-gradient(90deg, #a77a2a, #f3d68a 30%, #c3933a 55%, #f6dd98 80%, #a77a2a);
}
.env-flap-paper {
  position: absolute;
  inset: 0;
  transform: translateY(-3px);
  clip-path: polygon(0 0, 100% 0, 100% 56%, 50% 100%, 0 56%);
  box-shadow: inset 0 -30px 60px rgba(120, 60, 64, .12);
}
.env-flap-back {
  transform: rotateX(180deg);
  background: linear-gradient(0deg, #8da1c4, #6d82a8);
}
.env-shadow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 58%;
  filter: blur(7px);
  transform: translateY(9px);
  z-index: 2;
  transition: opacity .5s ease;
}
.env-shadow i {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 100% 56%, 50% 100%, 0 56%);
  background: rgba(95, 40, 46, .38);
}

/* Wax seal */
.seal {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 6;
  width: clamp(92px, 27vw, 128px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 8px rgba(80, 40, 20, .45));
  transition: transform .6s var(--ease-out), opacity .5s ease;
  animation: sealPulse 2.6s ease-in-out infinite;
}
.seal svg { width: 100%; height: 100%; }
.seal-text {
  font-family: var(--caps);
  font-weight: 600;
  font-size: 19px;
  fill: #5a3d0c;
  fill-opacity: .9;
}
.seal-mono { font-size: 25px; letter-spacing: 1px; }
.seal:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 50%; }
@keyframes sealPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.06); }
}

.env-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(9%, calc(env(safe-area-inset-bottom) + 40px));
  text-align: center;
  color: #8f6a22;
  z-index: 1;
  transition: opacity .6s ease;
}
.env-ornament {
  width: 132px;
  margin: 0 auto 10px;
  filter: drop-shadow(0 1px 0 rgba(255, 238, 200, .7));
}
.env-tap {
  margin: 1.4rem 0 0;
  font-style: italic;
  font-size: .95rem;
  color: rgba(105, 50, 55, .7);
  animation: softBlink 2.6s ease-in-out infinite;
}
@keyframes softBlink { 50% { opacity: .35; } }

/* Light burst from inside the envelope */
.env-glow {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 40vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, #fff 0%, #fff4e6 25%, rgba(255, 220, 210, .6) 50%, rgba(255, 220, 210, 0) 72%);
  z-index: 4;
  transition: transform 1.4s var(--ease-out);
}
.env-rays {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 180vmax;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(.2) rotate(0deg);
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .55) 0deg 3deg, rgba(255, 255, 255, 0) 3deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .7) 18%, transparent 55%);
          mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .7) 18%, transparent 55%);
  opacity: 0;
  z-index: 4;
  transition: opacity .6s ease, transform 2.2s var(--ease-out);
}

/* Opening sequence states (added by JS) */
.envelope.is-opening .seal { animation: none; opacity: 0; transform: translate(-50%, -50%) scale(1.35) rotate(-12deg); }
.envelope.is-opening .env-foot { opacity: 0; }
.envelope.flap-open .env-flap { transform: rotateX(178deg); }
.envelope.flap-open .env-shadow { opacity: 0; }
.envelope.is-glowing .env-glow { transform: translate(-50%, -50%) scale(5); }
.envelope.is-glowing .env-rays { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(40deg); }
.envelope.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

/* =========================================================
   Overlays
   ========================================================= */
.sparkles, .burst {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sparkles { z-index: 5; }
.burst { z-index: 70; }

.music {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 14px);
  right: max(14px, calc((100vw - var(--col)) / 2 + 14px));
  z-index: 40;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease, background .4s, color .4s, border-color .4s;
}
.music svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.music .m-speaker { fill: currentColor; }
.music .m-mute { display: none; }
.music[aria-pressed="false"] .m-waves { display: none; }
.music[aria-pressed="false"] .m-mute { display: inline; }
.music.is-visible { opacity: 1; pointer-events: auto; }
.music.on-light { color: var(--rose); border-color: rgba(142, 44, 69, .25); background: rgba(255, 255, 255, .6); }
.music.is-playing .m-waves { animation: waves 1.6s ease-in-out infinite; }
@keyframes waves { 50% { opacity: .35; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  z-index: 80;
  max-width: min(90vw, 420px);
  padding: .85rem 1.3rem;
  border-radius: 14px;
  background: rgba(70, 25, 37, .92);
  color: #fff;
  font-size: 1.05rem;
  text-align: center;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Site column
   ========================================================= */
.site {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 90px rgba(0, 0, 0, .45);
  overflow: clip;
}

/* =========================================================
   2. Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: max(100vh, 640px);
  min-height: max(100svh, 640px);
  overflow: hidden;
  color: #f8ecdf;
  background: #1c1925;
}
.hero-art {
  position: absolute;
  inset: -6% -6% -2%;
  will-change: transform;
}
.hero-art svg {
  width: 100%;
  height: 100%;
  animation: kenburns 26s ease-in-out infinite alternate;
  transform-origin: 50% 40%;
}
@keyframes kenburns {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.14) translateY(-1.5%); }
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 45% at 50% 52%, rgba(16, 14, 28, .5), transparent 75%),
    linear-gradient(180deg, rgba(10, 10, 22, .55) 0%, rgba(10, 10, 22, 0) 22%, rgba(10, 10, 22, 0) 70%, rgba(245, 240, 241, .0) 84%, var(--paper) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: max(100vh, 640px);
  min-height: max(100svh, 640px);
  padding: max(15svh, 84px) 1.25rem calc(max(17svh, 100px) + 3.5rem);
  text-align: center;
  will-change: transform, opacity;
}
.hero-heart {
  width: 22px;
  fill: #fff6ee;
  filter: drop-shadow(0 0 8px rgba(255, 220, 200, .8));
  margin-bottom: 1rem;
}
.hero-welcome {
  margin: 0 auto;
  max-width: 19em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 4.9vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: .01em;
  color: #fbf1e6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.hero-names {
  margin: .5rem 0 0;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-name {
  display: block;
  padding: 0 .35em;
  font-family: var(--script);
  font-size: clamp(2.3rem, 11.4vw, 3.9rem);
  line-height: 1.2;
  white-space: nowrap;
  color: #fff7ef;
  text-shadow: 0 0 22px rgba(255, 214, 190, .45), 0 3px 14px rgba(0, 0, 0, .5);
}
.hero-detail {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  max-width: 20em;
  font-size: clamp(.92rem, 3.6vw, 1.05rem);
  line-height: 1.45;
  color: #efdccd;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
.hero-amp {
  display: block;
  margin: .7rem 0 .1rem;
  font-family: var(--script);
  font-size: 2.2rem;
  line-height: 1;
  color: #f3d6b8;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(17svh, 100px);
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--caps);
  font-size: .62rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #f3e3d6;
  opacity: 0;
  transition: opacity 1s ease 3.2s;
}
.scroll-cue svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* Hero entrance after the envelope opens */
.hero-heart, .hero-welcome, .hero-detail, .hero-amp {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 1.1s ease, transform 1.2s var(--ease-out), filter 1.1s ease;
}
.hero-name {
  clip-path: inset(-20% 100% -20% 0);
  transition: clip-path 1.8s var(--ease-io);
}
body.is-open .hero-heart, body.is-open .hero-welcome, body.is-open .hero-detail, body.is-open .hero-amp {
  opacity: 1; transform: none; filter: none;
}
body.is-open .hero-name { clip-path: inset(-20% -10% -20% -10%); }
body.is-open .scroll-cue { opacity: 1; }
body.is-open .hero-heart   { transition-delay: .2s; }
body.is-open .hero-welcome { transition-delay: .5s; }
body.is-open .hero-names > :nth-child(1) { transition-delay: 1s; }
body.is-open #groomDetail  { transition-delay: 1.9s; }
body.is-open .hero-amp     { transition-delay: 2.2s; }
body.is-open .hero-names > :nth-child(4) { transition-delay: 2.4s; }
body.is-open #brideDetail  { transition-delay: 3.3s; }

/* =========================================================
   3. Intro words
   ========================================================= */
.intro {
  position: relative;
  height: 118vh;
  height: 118svh;
  background: #0e0c15;
}
.intro-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  text-align: center;
}
.intro-text {
  margin: 0;
  max-width: 19em;
  font-size: clamp(1.45rem, 6.2vw, 1.85rem);
  line-height: 1.5;
  font-style: italic;
}
.intro-text .w {
  color: rgba(255, 240, 235, .16);
  transition: color .45s ease, text-shadow .45s ease;
}
.intro-text .w.on { color: #f6ebe2; }
.intro-text .w.name { font-family: var(--script); font-style: normal; font-size: 1.3em; }
.intro-text .w.name.on { color: #f3c9d2; text-shadow: 0 0 18px rgba(243, 201, 210, .35); }
.intro-heart {
  width: 18px;
  margin-top: 1.4rem;
  fill: #f3c9d2;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .6s ease, transform .6s var(--ease-out);
}
.intro.is-done .intro-heart { opacity: 1; transform: scale(1); }

/* =========================================================
   Light content sections
   ========================================================= */
.light {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 50%, var(--paper) 100%);
}
.block {
  position: relative;
  padding: 4.25rem 1.25rem;
  text-align: center;
}
.block > * { position: relative; z-index: 1; }
.block > .peony { z-index: 0; }
.block + .block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 2.2rem;
  background: linear-gradient(var(--rose-soft), transparent);
  opacity: .35;
}
.script-title, .hero-name, .closing-names, .timeline.single h3, .intro-text .w.name {
  -webkit-text-stroke: .5px currentColor;
  paint-order: stroke fill;
}
.script-title {
  display: inline-block;
  margin: 0;
  padding: 0 .3em;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.35rem, 10.5vw, 2.9rem);
  line-height: 1.2;
  color: var(--rose);
}
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin: .5rem auto 1.6rem;
}
.divider span { width: 48px; height: 1px; background: linear-gradient(90deg, transparent, rgba(142, 44, 69, .45)); }
.divider span:last-child { transform: scaleX(-1); }
.divider i { font-style: normal; font-size: .7rem; color: var(--rose-soft); line-height: 1; }
.divider i::before { content: "\2665"; }

.icon { width: 34px; height: 34px; margin: 0 auto .5rem; color: var(--rose); }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

.body-text {
  margin: 0 auto;
  max-width: 24em;
  font-size: 1.22rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: .85rem 1.7rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #b52d47, #8c1e35);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(140, 30, 53, .28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out infinite 1s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(140, 30, 53, .34); }
.btn:active { transform: translateY(1px); }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* =========================================================
   Scroll reveal
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transition:
    opacity 1s ease,
    transform 1.1s var(--ease-out),
    filter 1s ease,
    clip-path 1.7s var(--ease-io);
  transition-delay: calc(var(--d, 0) * 130ms);
}
[data-reveal="up"]   { transform: translateY(30px); }
[data-reveal="zoom"] { transform: scale(.88); filter: blur(6px); }
[data-reveal="write"] { opacity: 1; clip-path: inset(-25% 100% -25% 0); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-reveal="write"].in { clip-path: inset(-25% -15% -25% -15%); }

/* =========================================================
   4. Scratch card
   ========================================================= */
.scratch { padding-top: 2rem; }
.scratch-titles { display: grid; justify-items: center; }
.scratch-titles > * { grid-area: 1 / 1; }
.t-scratch { transition: opacity .6s ease, clip-path 1.7s var(--ease-io); }
.t-forever { clip-path: inset(-25% 100% -25% 0); transition: clip-path 1.8s var(--ease-io) .3s; }
.scratch.is-revealed .t-scratch { opacity: 0; }
.scratch.is-revealed .t-forever { clip-path: inset(-25% -15% -25% -15%); }

.scratch-stage {
  position: relative;
  width: min(86vw, 330px);
  aspect-ratio: 300 / 270;
  margin: 0 auto;
}
.scratch-under { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.heart-outline {
  fill: rgba(255, 255, 255, .55);
  stroke: var(--rose);
  stroke-width: 1.4;
  stroke-opacity: .7;
}
.scratch.is-revealed .heart-outline { animation: heartbeat 2.4s ease-in-out infinite 1s; transform-origin: 50% 50%; transform-box: fill-box; }
@keyframes heartbeat {
  0%, 60%, 100% { transform: scale(1); }
  10% { transform: scale(1.04); }
  20% { transform: scale(.99); }
  30% { transform: scale(1.03); }
}
.scratch-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4% 20% 16%;
  color: var(--rose-deep);
  text-align: center;
}
.scratch-info p { margin: 0; }
.si-small { font-style: italic; font-size: .95rem; color: var(--ink-soft); }
.si-date { margin-top: .2rem !important; font-size: clamp(1.1rem, 4.7vw, 1.35rem); font-weight: 700; line-height: 1.2; text-wrap: balance; }
.si-day { font-style: italic; font-size: .92rem; color: var(--ink); }
.si-time { margin-top: .15rem !important; font-size: .88rem; font-weight: 600; letter-spacing: .03em; color: var(--rose-deep); }
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  transition: opacity .9s ease;
}
.scratch-canvas:focus-visible { outline: 2px dashed var(--rose-soft); outline-offset: 6px; }
.scratch.is-revealed .scratch-canvas { opacity: 0; pointer-events: none; }
.scratch-hint {
  margin: 1.3rem 0 0;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  transition: opacity .5s ease;
}
.scratch.is-revealed .scratch-hint { opacity: 0 !important; }

/* =========================================================
   5. Photo
   ========================================================= */
.photo { padding-top: 1rem; padding-bottom: 2rem; }
.photo-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(110, 40, 60, .2), 0 0 0 6px rgba(255, 255, 255, .7);
}
.photo-inner {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.photo-inner svg { width: 100%; height: 100%; }

/* =========================================================
   6. Countdown
   ========================================================= */
.cd-panel {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  padding: 1.5rem 1rem 1.3rem;
  border-radius: 22px;
  background: linear-gradient(155deg, #6a1f36 0%, #4a1426 55%, #5e1b31 100%);
  box-shadow: 0 24px 50px rgba(94, 27, 49, .32), inset 0 0 0 1px rgba(243, 210, 122, .35);
  overflow: hidden;
  color: #fff;
}
.cd-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(243, 210, 122, .8);
}
.cd-corner.tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.cd-corner.tr { top: 9px; right: 9px; border-left: 0; border-bottom: 0; }
.cd-corner.bl { bottom: 9px; left: 9px; border-right: 0; border-top: 0; }
.cd-corner.br { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }
.cd-eyebrow {
  margin: 0 0 1rem;
  font-family: var(--caps);
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #f3d27a;
}
.cd-note { margin: 1rem 0 0; font-style: italic; font-size: 1.05rem; color: rgba(255, 240, 236, .85); }
.cd-shine {
  position: absolute;
  top: -20%;
  left: -40%;
  width: 30%;
  height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 190, .18), transparent);
  transform: skewX(-18deg);
  animation: cdshine 5.5s ease-in-out infinite 1.5s;
  pointer-events: none;
}
@keyframes cdshine { 0%, 65% { left: -40%; } 100% { left: 130%; } }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin: 0 auto;
}
.cd {
  padding: .9rem .1rem .7rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(243, 210, 122, .25);
}
.cd b {
  display: block;
  font-size: clamp(1.8rem, 8.4vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  color: #f6dc8c;
  text-shadow: 0 0 18px rgba(243, 210, 122, .35);
  font-variant-numeric: tabular-nums;
}
.cd b.tick { animation: tick .5s var(--ease-out); }
@keyframes tick { from { transform: translateY(-40%); opacity: 0; } }
.cd small {
  display: block;
  margin-top: .45rem;
  font-family: var(--caps);
  font-size: .56rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 240, 236, .7);
}

/* =========================================================
   7. Timeline
   ========================================================= */
.timeline {
  position: relative;
  max-width: 330px;
  margin: 0 auto;
  padding: 0 0 0 2rem;
  list-style: none;
  text-align: left;
}
.timeline::before {
  content: "";
  position: absolute;
  left: .5rem;
  top: .4rem;
  bottom: .4rem;
  width: 1px;
  background: linear-gradient(var(--rose), rgba(142, 44, 69, .1));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.8s var(--ease-io);
}
.timeline.in::before { transform: scaleY(1); }
.timeline li { position: relative; padding-bottom: 1.7rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 5px);
  top: .45rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(142, 44, 69, .25);
}
.timeline h3, .event h3, .pair h3 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--rose);
}
.when { margin: .1rem 0 .2rem; font-size: .98rem; color: var(--ink-soft); }
.timeline p:last-child { margin: 0; font-style: italic; font-size: 1.05rem; }

/* =========================================================
   8–13. Venue, dress code, events
   ========================================================= */
.venue-map { display: block; max-width: 340px; margin: 0 auto 1.2rem; filter: drop-shadow(0 14px 28px rgba(90, 60, 80, .14)); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .35s var(--ease-out); }
.venue-map:hover, .venue-map:focus-visible { transform: translateY(-2px); }
.venue-map:active { transform: scale(.985); }
.vm-hint { fill: var(--rose); font-size: 7.5px; letter-spacing: 1.2px; }
.venue-map svg { width: 100%; height: auto; }
.vm-label { font-family: var(--caps); font-size: 8px; letter-spacing: 1.5px; fill: var(--ink-soft); }
.vm-roads path { stroke-dasharray: 600; stroke-dashoffset: 600; }
.venue-map.is-live .vm-roads path { animation: draw 2.2s ease-out forwards; }
.venue-map.is-live .vm-roads path:nth-child(2) { animation-delay: .2s; }
.venue-map.is-live .vm-roads path:nth-child(3) { animation-delay: .4s; }
.venue-map.is-live .vm-roads path:nth-child(4) { animation-delay: .5s; }
.venue-map.is-live .vm-roads path:nth-child(5) { animation-delay: .7s; stroke-dasharray: 3 5; stroke-dashoffset: 0; opacity: 0; animation: fadein .8s ease-out 1.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.vm-pin { transform-origin: 160px 72px; transform: translateY(-90px); opacity: 0; }
.venue-map.is-live .vm-pin { animation: pindrop .9s cubic-bezier(.2, .9, .3, 1.3) 1s forwards; }
@keyframes pindrop { 0% { transform: translateY(-90px); opacity: 0; } 60% { opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }
.vm-ring, .vm-ripple { opacity: 0; transform-origin: 160px 72px; }
.venue-map.is-live .vm-ring { animation: fadein .6s ease-out 1.8s forwards; }
.venue-map.is-live .vm-ripple { animation: ripple 2.4s ease-out 1.9s infinite; }
.venue-map.is-live .vm-ripple2 { animation-delay: 3.1s; }
@keyframes ripple { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.venue-name { margin: 0 0 .5rem; font-size: clamp(1.7rem, 7.2vw, 2.1rem); font-weight: 700; line-height: 1.15; color: var(--rose-deep); text-wrap: balance; }
#venue .body-text { font-weight: 600; color: var(--ink); max-width: 20em; }

.pairs { display: grid; gap: 1.5rem; max-width: 320px; margin: 0 auto; }
.pair p { margin: .25rem 0 0; font-size: 1.1rem; line-height: 1.5; font-style: italic; }

.events { display: grid; gap: .85rem; max-width: 340px; margin: 0 auto; }
.event {
  padding: 1.15rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(142, 44, 69, .12);
  box-shadow: 0 10px 24px rgba(142, 44, 69, .06);
}
.event p { margin: 0; }
.event .where { font-style: italic; font-size: 1.05rem; }

/* =========================================================
   14. RSVP
   ========================================================= */
.rsvp { max-width: 360px; margin: 0 auto; text-align: left; }
.rsvp label { display: block; margin-bottom: 1.2rem; font-size: 1rem; font-weight: 500; color: var(--rose-deep); }
.rsvp input, .rsvp select, .rsvp textarea {
  display: block;
  width: 100%;
  margin-top: .2rem;
  padding: .55rem 0;
  border: 0;
  border-bottom: 1px solid rgba(142, 44, 69, .28);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  transition: border-color .3s;
  -webkit-appearance: none;
          appearance: none;
}
.rsvp select {
  background-image: linear-gradient(45deg, transparent 50%, var(--rose) 50%), linear-gradient(135deg, var(--rose) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.rsvp textarea { resize: vertical; min-height: 4.5rem; }
.rsvp ::placeholder { color: rgba(93, 71, 77, .45); font-style: italic; }
.rsvp input:focus, .rsvp select:focus, .rsvp textarea:focus { border-bottom-color: var(--rose); }
.rsvp .is-invalid { border-bottom-color: #c0392b; }
.btn-wide { width: 100%; border-radius: 12px; margin-top: .4rem; }
.form-note { min-height: 1.3em; margin: .8rem 0 0; text-align: center; font-style: italic; color: var(--ink-soft); }

/* =========================================================
   15. Closing
   ========================================================= */
.closing { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
.wave { width: 70%; max-width: 260px; margin: 0 auto; fill: none; stroke: var(--rose-soft); stroke-width: 1.2; opacity: .55; }
.closing-text {
  display: block;
  margin: 1.4rem auto .6rem;
  max-width: 11em;
  padding: 0 .3em;
  font-family: var(--script);
  font-size: clamp(2.3rem, 10vw, 2.8rem);
  line-height: 1.25;
  color: var(--rose);
}
.closing-names { margin: 0 0 1.6rem; font-family: var(--script); font-size: 1.9rem; color: var(--rose-soft); }
.footer-note { margin: 1.4rem 0 0; font-family: var(--caps); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal], .hero-heart, .hero-welcome, .hero-detail, .hero-amp, .hero-name { transition-duration: .3s !important; transition-delay: 0s !important; }
}

/* =========================================================
   WebGL scenes + GSAP choreography (applied when available)
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* 3D envelope: the CSS envelope stays as the no-WebGL fallback */
.env-gl {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: block;
  opacity: 0;
  transition: opacity .7s ease;
}
.envelope.has-gl .env-gl { opacity: 1; }
/* While the 3D envelope loads (html.gl-early is set before the first paint,
   .gl-pending once the bundle runs): a plain ivory card, no CSS envelope */
.env-poster {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
html.gl-early .envelope:not(.gl-failed) .env-poster { display: block; }
html.poster-mode .env-poster,
.envelope.is-flashed .env-poster { display: none !important; }
html.gl-early .envelope:not(.gl-failed) .env-paper,
.envelope.gl-pending .env-paper,
.envelope.has-gl .env-paper { background: #eee9e3; }
html.gl-early .envelope:not(.gl-failed) :is(.env-pocket, .env-flap, .env-shadow, .seal, .env-foot, .env-glow, .env-rays),
.envelope.gl-pending :is(.env-pocket, .env-flap, .env-shadow, .seal, .env-foot, .env-glow, .env-rays),
.envelope.has-gl :is(.env-pocket, .env-flap, .env-shadow, .seal, .env-foot, .env-glow, .env-rays) { display: none; }
.envelope.is-flashed { background: transparent; pointer-events: none; }
.envelope.is-flashed .env-paper { display: none; }

/* 3D hero */
.hero-art.is-gl { inset: 0; }
.hero-art.is-gl canvas { display: block; width: 100%; height: 100%; }
.gsap-on .hero-shade {
  background:
    radial-gradient(75% 38% at 50% 44%, rgba(9, 8, 20, .5), transparent 78%),
    linear-gradient(180deg, rgba(8, 8, 18, .55) 0%, rgba(8, 8, 18, 0) 20%, rgba(8, 8, 18, 0) 70%, #0e0c15 100%);
}

/* dawn: a long, soft fade from the dark welcome into the paper pages */
.dawn {
  height: 18vh;
  height: 18svh;
  background: linear-gradient(180deg, #0e0c15 0%, #2a2535 22%, #6d6372 50%, #cfc6c8 78%, var(--paper) 100%);
}

/* GSAP owns the reveal states */
.gsap-on [data-reveal] { transition: none; transform: none; filter: none; }
.gsap-on [data-reveal="write"] { clip-path: inset(-25% 100% -25% 0%); }
.gsap-on .countdown { perspective: 700px; }
.gsap-on .timeline::before { transform: scaleY(var(--rail, 0)); transition: none; }

/* glitter sweeping across the scratch heart */
.scratch-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 34%, rgba(255, 255, 255, .95) 0 1.5px, transparent 3px),
    radial-gradient(circle at 64% 26%, rgba(255, 255, 255, .9) 0 1.2px, transparent 2.5px),
    radial-gradient(circle at 52% 62%, rgba(255, 255, 255, .9) 0 1.4px, transparent 3px),
    radial-gradient(circle at 74% 48%, rgba(255, 255, 255, .85) 0 1px, transparent 2.5px),
    linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 260% 100%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 270'%3E%3Cpath d='M150 252C112 222 22 166 22 92 22 50 52 22 90 22c26 0 46 14 60 36 14-22 34-36 60-36 38 0 68 28 68 70 0 74-90 130-128 160z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 270'%3E%3Cpath d='M150 252C112 222 22 166 22 92 22 50 52 22 90 22c26 0 46 14 60 36 14-22 34-36 60-36 38 0 68 28 68 70 0 74-90 130-128 160z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  animation: sheen 3.4s ease-in-out infinite, twinkle 1.7s ease-in-out infinite alternate;
  transition: opacity .4s ease;
}
@keyframes sheen { from { background-position: 0 0, 0 0, 0 0, 0 0, 130% 0; } to { background-position: 0 0, 0 0, 0 0, 0 0, -130% 0; } }
@keyframes twinkle { from { filter: brightness(.7); } to { filter: brightness(1.25); } }
.scratch.is-scratching .scratch-sheen,
.scratch.is-revealed .scratch-sheen { opacity: 0; }


/* =========================================================
   Card-specific sections
   ========================================================= */
.eyebrow {
  margin: 0 0 .6rem;
  font-family: var(--caps);
  font-size: .6rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-wrap: balance;
}
.scratch-note {
  margin: .3rem 0 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--rose-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .8s ease .6s, transform .8s var(--ease-out) .6s;
}
.scratch.is-revealed .scratch-note { opacity: 1; transform: none; }

/* single-entry programme */
.timeline.single { padding-left: 0; text-align: center; max-width: 360px; }
.timeline.single::before { display: none; }
.timeline.single li { padding: 0; border-radius: 22px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(122, 43, 67, .12); box-shadow: 0 18px 40px rgba(90, 60, 80, .12); overflow: hidden; }
.timeline.single .tl-body { padding: .6rem 1.2rem 1.5rem; }
.prog-sky { display: block; width: 100%; height: auto; }
.prog-sky .stars circle { animation: twinkle 2.6s ease-in-out infinite; animation-delay: calc(var(--k) * -.37s); transform-origin: center; }
.prog-sky .moon { filter: drop-shadow(0 0 6px rgba(243, 210, 122, .8)); }
.prog-sky .lanterns circle { animation: twinkle 1.8s ease-in-out infinite alternate; }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.timeline.single li::before { display: none; }
.timeline.single h3 { font-family: var(--script); font-weight: 400; font-size: 2rem; line-height: 1.15; }
.timeline.single .when { margin-top: .5rem; font-size: clamp(1.3rem, 5.6vw, 1.55rem); font-weight: 700; line-height: 1.3; color: var(--rose-deep); }
.timeline.single .time { margin: .15rem 0 0; font-size: clamp(1.35rem, 5.8vw, 1.6rem); font-weight: 700; color: var(--rose); }
.timeline.single p:last-child { margin-top: .35rem; font-family: var(--caps); font-size: .95rem; font-style: normal; font-weight: 600; color: var(--rose); letter-spacing: .14em; text-transform: uppercase; }

/* buttons */
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.5rem; }
.btn-row .btn { margin-top: 0; }
.btn-ghost { background: transparent; color: var(--rose); box-shadow: inset 0 0 0 1.5px rgba(122, 43, 67, .45); }
.btn-ghost::after { display: none; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--rose), 0 10px 24px rgba(122, 43, 67, .12); }

/* watercolour peonies in the margins */
.peony {
  position: absolute;
  width: min(62vw, 300px);
  aspect-ratio: 1;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.peony.is-painted { opacity: .72; }
.peony-a { right: -30%; top: 14%; transform: rotate(14deg); }
.peony-b { left: -32%; bottom: -10%; transform: rotate(-18deg) scaleX(-1); }
.peony-c { right: -34%; bottom: -14%; transform: rotate(8deg); }
.peony-d { left: -32%; top: -4%; transform: rotate(-10deg) scaleX(-1); }
.family { overflow: visible; }

/* crest finale: a laurel wreath that draws itself around the mirrored initials */
.crest { width: min(78vw, 330px); margin: .6rem auto 1rem; }
.crest svg { width: 100%; height: auto; overflow: visible; }
.wr-leaf { fill: rgba(201, 154, 58, .08); }
.wr-berry { fill: #c99a3a; stroke: none; }
.crest-a {
  font-family: var(--caps);
  font-weight: 500;
  font-size: 86px;
  text-anchor: middle;
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.1;
  paint-order: stroke;
}
.crest-a1 { transform: translate(-24px, 0); fill: var(--rose); stroke: none; }
.crest-a2 { transform: translate(24px, 0); fill: rgba(122, 43, 67, .12); stroke: var(--rose); }
.crest-amp {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  text-anchor: middle;
  fill: var(--gold);
}
.crest-date {
  font-family: var(--caps);
  font-size: 11px;
  letter-spacing: 3px;
  text-anchor: middle;
  fill: var(--ink-soft);
}

/* phones: no blur filters anywhere (they stutter on low-end GPUs) */
html.touch .btn::after { animation-duration: 6s; }
html.touch .hero-heart, html.touch .hero-welcome, html.touch .hero-detail, html.touch .hero-amp { filter: none; }
html.touch .scratch-sheen { animation-duration: 4.2s, 2s; }


/* =========================================================
   Save the Date
   ========================================================= */
.btn-gold {
  margin-top: 1.4rem;
  gap: .55rem;
  background: linear-gradient(180deg, #e2bc62, #b98a2c);
  color: #3f2a08;
  box-shadow: 0 10px 24px rgba(185, 138, 44, .32), inset 0 1px 0 rgba(255, 245, 210, .7);
}
.btn-gold svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn-gold:hover { box-shadow: 0 14px 28px rgba(185, 138, 44, .4), inset 0 1px 0 rgba(255, 245, 210, .7); }
.save-date { opacity: 0; transform: translateY(10px); transition: opacity .8s ease .9s, transform .8s var(--ease-out) .9s; }
.scratch.is-revealed .save-date, .gsap-on .save-date { opacity: 1; transform: none; }

body.sheet-open { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 90; }
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 14, 22, .45);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}
.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 520px);
  transform: translate(-50%, 100%);
  padding: .6rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
  background: var(--paper);
  box-shadow: 0 -20px 60px rgba(60, 20, 35, .25);
  transition: transform .32s var(--ease-out);
}
.sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet.is-open .sheet-panel { transform: translate(-50%, 0); }
.sheet-grip { display: block; width: 42px; height: 4px; margin: 0 auto .9rem; border-radius: 2px; background: rgba(122, 43, 67, .2); }
.sheet-title { margin: 0; font-family: var(--script); font-weight: 400; font-size: 2.2rem; line-height: 1.1; color: var(--rose); text-align: center; }
.sheet-sub { margin: .25rem 0 1rem; text-align: center; font-size: 1.02rem; font-weight: 600; color: var(--rose-deep); }
.sheet-list { display: grid; gap: .5rem; }
.sheet-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .75rem .9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(122, 43, 67, .12);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.sheet-item:hover, .sheet-item:focus-visible { background: #fff; transform: translateX(3px); outline: none; }
.sheet-item:active { transform: scale(.985); }
.sheet-item b { display: block; font-size: 1.08rem; font-weight: 600; color: var(--rose-deep); }
.sheet-item small { display: block; font-size: .85rem; color: var(--ink-soft); }
.sheet-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, #f0d894, #c99a3a); color: #3f2a08; }
.sheet-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sheet-close {
  display: block;
  width: 100%;
  margin-top: .9rem;
  padding: .8rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--ink-soft);
  cursor: pointer;
}
