/* Jhosie's Eighteenth · Version A · "Gilded Garden Keepsake"
   One narrow column on warm paper. Script + Cormorant only. See DESIGN-SPEC.md. */

:root {
  --paper: #F6F1E6;
  --sheet: #F2EADB;
  --card: #FBF8F2;
  --linen: #D9C9A9;
  --linen-lt: #E3D5B9;
  --linen-dk: #C8B48D;
  --liner: #EADFC8;
  --gold: #B08D4F;
  --gold-lt: #E8D3A0;
  --gold-dk: #7A5C24;
  --olive: #5A6134;
  --ink: #3B1A16;
  --ink-2: #4E2620;
  --ink-mute: #6E4A40;
  --hair: rgba(79, 90, 44, .28);
  --maroon: #6B1A16;
  --olive-dk: #4F5A2C;
  --pink: #D07FAE;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;

  /* fluid steps between 390px and 1440px */
  --w: calc((100vw - 390px) / 1050);

  --grain-page: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .56 0 0 0 0 .54 0 0 0 0 .5 0 0 0 1.5 -.35'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  --fibres: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .45' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .47 0 0 0 0 .37 0 0 0 0 .2 0 0 0 1.6 -.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.2'/%3E%3C/svg%3E");
  --grain-sheet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .56 0 0 0 0 .54 0 0 0 0 .5 0 0 0 1.5 -.35'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #C9D3B0; -webkit-text-size-adjust: 100%; scroll-behavior: auto; scrollbar-gutter: stable; }   /* the page keeps the same width when it becomes scrollable, so the opening ends exactly on the hero */
body {
  margin: 0;
  isolation: isolate;
  background: var(--paper) url("../assets/garden/paper.webp") left top / 1200px auto repeat;
  color: var(--ink);
  font: 500 clamp(18px, calc(18px + 1 * var(--w)), 19px)/1.6 var(--serif);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html:has(body.is-sealed), html:has(body.is-opening:not(.is-live)) { overflow: hidden; }
body.is-sealed, body.is-opening:not(.is-live) { overflow: hidden; min-height: 100vh; min-height: 100dvh; }
body.is-sealed { touch-action: none; }
html.is-locked, body.is-locked { overflow: hidden; touch-action: none; overscroll-behavior: none; }

img, svg { display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }

.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold-dk); outline-offset: 3px; }

/* ---------- type roles ---------- */
.eyebrow {
  font: 600 13px/1.4 var(--serif);
  letter-spacing: .22em; text-transform: uppercase; color: var(--olive-dk);
  margin-bottom: 6px;
}
.title {
  font-family: var(--script);
  font-size: clamp(46px, calc(46px + 12 * var(--w)), 58px);
  line-height: 1.1; margin-bottom: 10px; color: var(--maroon);
}
.lead {
  font-size: clamp(21px, calc(21px + 2 * var(--w)), 23px);
  line-height: 1.5; color: var(--ink-2); margin-top: 8px;
}
.lead-it { font-style: italic; }
.body { font-size: clamp(18px, calc(18px + 1 * var(--w)), 19px); line-height: 1.6; color: var(--ink-2); margin-top: 8px; }
.body strong { font-weight: 600; color: var(--ink); }
.date {
  font: 600 clamp(26px, calc(26px + 4 * var(--w)), 30px)/1.25 var(--serif);
  color: var(--ink); margin-top: 26px;
}
.cap-it {
  font: italic 500 clamp(17px, calc(17px + 1 * var(--w)), 18px)/1.5 var(--serif);
  color: var(--ink-mute); margin-top: 6px;
}
.label {
  font: 600 13px/1.4 var(--serif); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute);
}
.smallcaps {
  font: 600 16px/1.5 var(--serif); font-variant-caps: all-small-caps; letter-spacing: .05em; color: var(--ink-mute);
  margin-top: 18px;
}

/* ---------- layout ---------- */
main, .hero { position: relative; }
main { overflow-x: clip; }
.sec { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 0 24px; text-align: center; text-wrap: balance; }
.sec-last { padding-bottom: 8px; }

.orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 48px 0; }
.orn::before, .orn::after { content: ""; width: 64px; height: 1px; background: var(--hair); }
.orn svg { width: 16px; height: 16px; fill: var(--olive); flex: none; }

.wide { margin-inline: calc(50% - min(50vw, 310px)); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.15s var(--ease), transform 1.3s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   THE ENVELOPE / HERO STAGE
   ========================================================= */
.hero { min-height: 100vh; min-height: 100svh; padding: 24px 0; display: flex; justify-content: center; align-items: center; overflow-x: clip; }
.stage {
  position: relative; z-index: 1; left: max(-3.18vw, -23.64px); width: min(94vw, 700px); aspect-ratio: 1229 / 1280;   /* Center the envelope body at art x=656 */
  container-type: inline-size;
  --s: 1;
}

/* Round 16B: full-canvas 1229x1280 layers stacked at inset 0 with 0px offset (shadows baked into assets) */
.env, .r16-layer, .r16-contents, .flap-wrap { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.env-img, .r16-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.env-back-wrap { z-index: 1; }
.env-liner-wrap { z-index: 2; }
.r16-contents { z-index: 3; clip-path: inset(0 3.01% 2.19% 9.76%); }
.r16-heart { z-index: 4; clip-path: inset(0 3.01% 2.19% 9.76%); transform-origin: 53.4% 63.4%; }
.env-pocket-wrap { z-index: 5; }
.r16-left { z-index: 6; transform-origin: 18% 60%; }
.r16-bouquet { z-index: 6; transform-origin: 78% 76%; }

/* 3D flap: hinge at y=510/1280 (39.84375%). Closed=-180deg (flap-front visible via 180deg pre-flip), open=0deg (flap-back visible over liner). */
.flap-wrap { perspective: 1400px; z-index: 7; }
.flap { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 39.84375%; transform: rotateX(-180deg); }
.flap-face { position: absolute; inset: 0; width: 100%; height: 100%; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flap-front { transform-origin: 50% 39.84375%; transform: rotateX(180deg); }
.flap-back { transform: none; }
.flap-liner { clip-path: inset(0 0 60.15625% 0); }

.env-hit { position: absolute; left: 9.76%; top: 39.84%; width: 87.23%; height: 57.97%; z-index: 8; cursor: pointer; }
body:not(.is-sealed) .env-hit { pointer-events: none; }

/* wax seal: full-canvas layer, press scales in place around seal_center [656, 952] = (53.38%, 74.38%) */
.seal-btn {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 9;
  padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 53.38% 74.38%;
  -webkit-tap-highlight-color: transparent;
}
.seal-btn img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.seal-btn:focus-visible { outline: 2px solid var(--gold-dk); outline-offset: -4px; }

/* resting open hero: identical pixels to the settled envelope stack; visible by default (no-JS and is-open) */
.contents { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.contents-in { position: absolute; inset: 0; }
.stationery-template { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* default open / no-JS state: hide animated layers, show resting hero */
body:not(.is-sealed):not(.is-opening) .r16-left,
body:not(.is-sealed):not(.is-opening) .env,
body:not(.is-sealed):not(.is-opening) .r16-contents,
body:not(.is-sealed):not(.is-opening) .r16-heart,
body:not(.is-sealed):not(.is-opening) .r16-bouquet,
body:not(.is-sealed):not(.is-opening) .flap-wrap,
body:not(.is-sealed):not(.is-opening) .seal-btn { opacity: 0; visibility: hidden; pointer-events: none; }

/* REQ-2 closed state: cream back clipped to body, flap closed, pocket + seal visible, everything else hidden */
body.is-sealed .env-back-wrap { clip-path: inset(39.84375% 0 0 0); }
body.is-sealed .env-liner-wrap { opacity: 0; visibility: hidden; }
body.is-sealed .flap-liner { opacity: 0; }
body.is-sealed .r16-left { opacity: 0; visibility: hidden; transform: scale(.18); }
body.is-sealed .r16-contents { opacity: 0; visibility: hidden; }
body.is-sealed .r16-contents-img { transform: translateY(55%); }
body.is-sealed .r16-heart { opacity: 0; visibility: hidden; transform: translateY(20%) scale(.92); }
body.is-sealed .r16-bouquet { opacity: 0; visibility: hidden; transform: scale(.18); }
body.is-sealed .contents { opacity: 0; visibility: hidden; }

/* REQ-2 Round 34 synchronized opening timeline (2.3s total; flap 0.25s -> 2.25s, 4 emerging layers settle at 2.25s, swap at 2.3s) */
body.is-opening .seal-btn {
  pointer-events: none;
  animation: r16-seal-press .25s cubic-bezier(.45, .05, .55, .95) 0s 1 both, r16-hide-end 2.3s steps(1, end) 0s 1 forwards;
}
body.is-opening .flap {
  animation: r16-flap-open 2.0s cubic-bezier(.22, .72, .28, 1) .25s 1 forwards;
}
body.is-opening .flap-wrap {
  animation: r16-flap-z .5s steps(1, end) 0s 1 forwards, r16-flap-hide 2.25s steps(1, end) 0s 1 forwards;
}
body.is-opening .flap-liner {
  opacity: 0;
  animation: r34-liner-fade 1.85s cubic-bezier(.22, .72, .28, 1) .4s 1 both;
}
body.is-opening .env-back-wrap {
  animation: r16-back-unclip 2.25s steps(1, end) 0s 1 forwards, r16-hide-end 2.3s steps(1, end) 0s 1 forwards;
}
body.is-opening .env-liner-wrap {
  opacity: 0; visibility: visible;
  animation: r16-hide-end 2.3s steps(1, end) 0s 1 forwards, r34-liner-fade 1.85s cubic-bezier(.22, .72, .28, 1) .4s 1 both, r16-back-unclip 2.25s steps(1, end) 0s 1 forwards;
}
body.is-opening .env-pocket-wrap {
  animation: r16-hide-end 2.3s steps(1, end) 0s 1 forwards;
}
body.is-opening .r16-contents {
  opacity: 0; visibility: hidden;
  animation: r16-emerge-vis 1.9s linear .4s 1 both;
}
body.is-opening .r16-contents-img {
  transform: translateY(55%);
  animation: r16-contents-rise 1.85s cubic-bezier(.22, .72, .28, 1) .4s 1 both;
}
body.is-opening .r16-heart {
  opacity: 0; visibility: hidden;
  transform: translateY(20%) scale(.92);
  animation: r16-heart-rise 1.85s cubic-bezier(.22, .72, .28, 1) .4s 1 both, r16-emerge-vis 1.9s linear .4s 1 both;
}
body.is-opening .r16-bouquet {
  opacity: 0; visibility: hidden;
  transform: scale(.18);
  animation: r16-bouquet-rise 1.85s cubic-bezier(.22, .72, .28, 1) .4s 1 both, r16-emerge-vis 1.9s linear .4s 1 both;
}
body.is-opening .r16-left {
  opacity: 0; visibility: hidden;
  transform: scale(.18);
  animation: r16-left-rise 1.85s cubic-bezier(.22, .72, .28, 1) .4s 1 both, r16-emerge-vis 1.9s linear .4s 1 both;
}
body.is-opening .contents {
  opacity: 0; visibility: hidden;
  animation: r16-hero-swap 2.3s steps(1, end) 0s 1 forwards;
}

@keyframes r16-seal-press {
  0% { transform: scale(1); }
  50% { transform: scale(.96); }
  100% { transform: scale(1); }
}
@keyframes r16-flap-open {
  from { transform: rotateX(-180deg); }
  to { transform: rotateX(0deg); }
}
@keyframes r16-flap-z {
  from { z-index: 7; }
  to { z-index: 2; }
}
@keyframes r16-flap-hide {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}
@keyframes r16-back-unclip {
  from { clip-path: inset(39.84375% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes r17-liner-in {
  0% { opacity: 0; visibility: visible; animation-timing-function: cubic-bezier(.45, .05, .55, .95); }
  8%, 99.99% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes r34-liner-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes r16-emerge-vis {
  0% { opacity: 0; visibility: visible; }
  4%, 99.99% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes r16-contents-rise {
  from { transform: translateY(55%); }
  to { transform: translateY(0); }
}
@keyframes r16-heart-rise {
  from { transform: translateY(20%) scale(.92); }
  to { transform: translateY(0) scale(1); }
}
@keyframes r16-bouquet-rise {
  from { transform: scale(.18); }
  to { transform: scale(1); }
}
@keyframes r16-left-rise {
  from { transform: scale(.18); }
  to { transform: scale(1); }
}
@keyframes r16-hide-end {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}
@keyframes r16-hero-swap {
  from { opacity: 0; visibility: hidden; }
  to { opacity: 1; visibility: visible; }
}
/* caption under the closed envelope */
.cap { position: fixed; left: 0; right: 0; top: var(--cap-top, 62vh); z-index: 3; text-align: center; pointer-events: none; padding: 0 24px; }
.cap-hint { display: inline-block; padding: 6px 20px; font: italic 600 clamp(19px, calc(19px + 3 * var(--w)), 22px)/1.4 var(--serif); color: var(--ink); letter-spacing: .02em;
  text-shadow: 0 0 6px rgba(255, 251, 240, .8), 0 0 16px rgba(255, 251, 240, .6), 0 0 34px rgba(255, 251, 240, .4); }
.cap-title {
  --wc: min(86vw, 520px);
  position: fixed; left: 0; right: 0; bottom: var(--title-bottom, 60vh); z-index: 3;
  text-align: center; pointer-events: none; padding: 0 20px; color: var(--olive-dk);
  /* round 11: the page's own colours (olive kicker, deep maroon script) with only a soft, edgeless light halo, no box */
  text-shadow: 0 0 6px rgba(255, 251, 240, .8), 0 0 16px rgba(255, 251, 240, .6), 0 0 34px rgba(255, 251, 240, .4);
}
.cap-kicker { font: 700 clamp(17px, calc(17px + 7 * var(--w)), 24px)/1.2 var(--serif); font-variant-caps: all-small-caps; letter-spacing: .12em; color: var(--olive-dk); }
.cap-script { font: 400 clamp(48px, calc(48px + 34 * var(--w)), 82px)/1.05 var(--script); color: var(--maroon); }
body:not(.is-sealed) .cap-title { opacity: 0; visibility: hidden; transition: opacity .3s ease-in-out, visibility 0s .3s; }

/* =========================================================
   GARDEN BACKGROUNDS: each painting scrolls with its own scene.
   The incoming painting overlaps the preceding one at the join, so the
   feather exposes the neighbouring painting without fading the content.
   Phones use centered portrait paintings. Wider portrait screens retain two landscape crops that favor foreground features.
   Round 60a: pre-r50 7svh feather (un-zoomed desktop scale) with 9-stop cosine S-curve mask reaching opaque before 2*feather.
   ========================================================= */
body { --garden-feather: 7vh; --garden-feather: 7svh; }
.hero, .garden-scene { --garden-position: center; }
.garden-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding-block: clamp(136px, 16vh, 168px);
  padding-block: clamp(136px, 16svh, 168px);
}
.garden-art {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: calc(-1 * var(--garden-feather)) 0;
  background: #C9D3B0 var(--garden-image) var(--garden-position) / cover no-repeat;
  -webkit-mask-image: linear-gradient(transparent, rgba(0, 0, 0, .038) calc(.2375 * var(--garden-feather)), rgba(0, 0, 0, .146) calc(.475 * var(--garden-feather)), rgba(0, 0, 0, .309) calc(.7125 * var(--garden-feather)), rgba(0, 0, 0, .5) calc(.95 * var(--garden-feather)), rgba(0, 0, 0, .691) calc(1.1875 * var(--garden-feather)), rgba(0, 0, 0, .854) calc(1.425 * var(--garden-feather)), rgba(0, 0, 0, .962) calc(1.6625 * var(--garden-feather)), #000 calc(1.9 * var(--garden-feather)));
  mask-image: linear-gradient(transparent, rgba(0, 0, 0, .038) calc(.2375 * var(--garden-feather)), rgba(0, 0, 0, .146) calc(.475 * var(--garden-feather)), rgba(0, 0, 0, .309) calc(.7125 * var(--garden-feather)), rgba(0, 0, 0, .5) calc(.95 * var(--garden-feather)), rgba(0, 0, 0, .691) calc(1.1875 * var(--garden-feather)), rgba(0, 0, 0, .854) calc(1.425 * var(--garden-feather)), rgba(0, 0, 0, .962) calc(1.6625 * var(--garden-feather)), #000 calc(1.9 * var(--garden-feather)));
}
.hero > .garden-art { top: 0; -webkit-mask-image: none; mask-image: none; }
.garden-scene:last-child > .garden-art { bottom: 0; }
.hero { --garden-image: url("../assets/garden/section-top.webp"); }
.garden-details { --garden-image: url("../assets/garden/section-details.webp"); }
.garden-specials { --garden-image: url("../assets/garden/section-specials.webp"); }
.garden-dress { --garden-image: url("../assets/garden/section-dress.webp"); }
.garden-gifts { --garden-image: url("../assets/garden/section-gifts.webp"); }
.garden-gallery { --garden-image: url("../assets/garden/section-gallery.webp"); }
.garden-rsvp { --garden-image: url("../assets/garden/section-rsvp.webp"); }
.garden-signoff { --garden-image: url("../assets/garden/section-signoff.webp"); padding-bottom: 0; }
.garden-foot { height: clamp(150px, 28vw, 300px); margin-top: 40px; background: url("../assets/garden/border.webp") center bottom / auto 100% repeat-x; }
@media (min-width: 768px) {
  .hero { padding: 34px 0 135px; }
}
@media (max-width: 767px) {
  .hero { --garden-image: url("../assets/garden/section-top-tall.webp"); }
  .garden-details { --garden-image: url("../assets/garden/section-details-tall.webp"); }
  .garden-specials { --garden-image: url("../assets/garden/section-specials-tall.webp"); }
  .garden-dress { --garden-image: url("../assets/garden/section-dress-tall.webp"); }
  .garden-gifts { --garden-image: url("../assets/garden/section-gifts-tall.webp"); }
  .garden-gallery { --garden-image: url("../assets/garden/section-gallery-tall.webp"); }
  .garden-rsvp { --garden-image: url("../assets/garden/section-rsvp-tall.webp"); }
  .garden-signoff { --garden-image: url("../assets/garden/section-signoff-tall.webp"); }
  .garden-details, .garden-gifts { --garden-position: center; }
  .garden-details { --garden-feather: 16vh; --garden-feather: 16svh; }

  .garden-scene {
    min-height: 100vh;
    min-height: 100svh;
    padding-block: max(134px, calc(18vh + 15px));
    padding-block: max(134px, calc(18svh + 15px));
  }
  .garden-foot {
    position: absolute;
    inset: auto 0 0;
    height: min(16vh, 150px);
    margin: 0;
    pointer-events: none;
  }
}
body:not(.is-sealed) .cap { opacity: 0; visibility: hidden; }
body.is-opening .cap { transition: opacity .3s ease-in-out, visibility 0s .3s; }

/* rest of the page */
body:not(.is-live) #main { display: none; }
body.is-live #main { animation: main-in .42s var(--ease); }
@keyframes main-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#main:focus { outline: none; }

/* =========================================================
   DETAILS
   ========================================================= */
.venue { margin-top: 18px; }
.venue a {
  display: inline-block; padding: 10px 0; text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 1px; text-underline-offset: 5px;
  font: 600 22px/1.3 var(--serif); color: var(--ink);
}
.venue + .cap-it { margin-top: 0; }

.countdown { margin-top: 38px; }
.cd-row { display: flex; justify-content: center; gap: 28px; margin-top: 10px; }
.cd { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.cd-n {
  font: 500 clamp(40px, calc(40px + 8 * var(--w)), 48px)/1.1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums; color: var(--ink);
}
.cd-l { font: 600 11px/1.4 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); margin-top: 2px; }
.begun { font: italic 500 clamp(21px, calc(21px + 2 * var(--w)), 23px)/1.5 var(--serif); color: var(--ink-2); margin-top: 12px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; max-width: 420px; margin: 0 auto; }
.fact { padding: 4px 12px; }
.fact + .fact { border-left: 1px solid var(--hair); }
.fact-v { font: 500 22px/1.3 var(--serif); color: var(--ink); margin-top: 4px; }
.palette-line { margin-top: 26px; }
.swatches { list-style: none; display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.swatches li { width: 24px; height: 24px; border-radius: 50%; background: var(--c); border: 1px solid var(--hair); position: relative; }

/* =========================================================
   EIGHTEEN SPECIALS (the scroll)
   ========================================================= */
.tabs {
  display: flex; flex-wrap: wrap; gap: 0 clamp(2px, 1.2vw, 22px); justify-content: center;
  margin: 14px 0 26px; padding: 0;
}
.tab {
  position: relative; flex: none; min-height: 44px; padding: 0 5px;
  background: none; border: 0; cursor: pointer; font: 500 clamp(16px, 4.3vw, 17px)/1 var(--serif); color: var(--ink-mute); white-space: nowrap;
  transition: color .25s var(--ease);
}
.tab[aria-selected="true"] { color: var(--ink); }
.tab:hover { color: var(--ink); }

.scroll { position: relative; width: 100%; max-width: 540px; margin: 18px auto 0; isolation: isolate; }
@media (max-width: 480px) { .scroll { width: auto; margin-inline: 10px; } }

/* Option I-3 (owner pick, Round 23): single warm textured cotton deckled stationery card with antique-gold inner frame, L-corner brackets, and centered bottom diamond */
.sheet {
  position: relative; padding: 38px 30px 32px; isolation: isolate;
  text-align: left; filter: drop-shadow(0 10px 16px rgba(58, 38, 18, .19));
}
.sheet::before, .sheet::after { content: none; }
.sheet > * { position: relative; z-index: 2; }
@media (max-width: 480px) { .sheet { padding: 34px 22px 28px; } }

.sheet-fx { transition: opacity .15s ease; }
.sheet-fx.is-out { opacity: 0; }
.sheet-fx.is-pre { opacity: 0; transform: translateY(4px); transition: none; }
.sheet-fx.is-in { animation: ink-in .3s var(--ease) both; }
@keyframes ink-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* roster head, names grid and sheet dressing: see the ROUND 10 block at the end */

.pager {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--hair);
}
.pg-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  background: none; border: 0; cursor: pointer; font: 500 16px/1 var(--serif); color: var(--ink);
}
.pg-btn .arr { width: 28px; height: 10px; flex: none; transition: transform .25s var(--ease); }
.pg-btn:hover .arr { transform: translateX(3px); }
.pg-btn:hover .arr-l { transform: scaleX(-1) translateX(3px); }
.arr-l { transform: scaleX(-1); }
.pg-count { white-space: nowrap; font: 600 14px/1 var(--serif); letter-spacing: .1em; color: var(--ink-2); font-variant-numeric: lining-nums; }
@media (max-width: 380px) { .pg-btn { gap: 6px; } .pg-btn .arr { width: 22px; } }

/* =========================================================
   DRESS CODE
   ========================================================= */
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 38px; }
.fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.fig-art { height: 170px; width: auto; }
.fig-title { margin-top: 14px; display: flex; flex-direction: column; align-items: center; }
.fig-title .for { font: italic 500 16px/1.2 var(--serif); color: var(--ink-mute); }
.fig-title .who { font: 400 clamp(27px, 7.4vw, 36px)/1.1 var(--script); color: var(--ink); }
.fig .body { margin-top: 6px; font-size: 18px; max-width: 11.5em; margin-inline: auto; text-wrap: balance; }   /* same width and line height under both figures; the ladies line breaks in two on desktop too */
.reminders { list-style: none; margin-top: 12px; }
.reminders li {
  position: relative; padding: 4px 0 4px 0; font-size: clamp(18px, calc(18px + 1 * var(--w)), 19px); color: var(--ink-2); line-height: 1.6;
}
/* =========================================================
   GIFTS
   ========================================================= */

/* =========================================================
   GALLERY
   ========================================================= */
.gal { margin-top: 26px; }
.gal.wide { margin-inline: calc(50% - min(50vw, 450px)); }
.gal-viewport {
  overflow: hidden; padding: 10px 0 24px; touch-action: pan-y; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.gal-track { list-style: none; position: relative; padding: 0; margin: 0; transition: transform .6s var(--ease); will-change: transform; }
.gal-track.is-drag { transition: none; }
.gal-slide {
  position: absolute; top: 0; left: calc(50% - min(72%, 446px) / 2); width: min(72%, 446px); --s: .82;
  transform: translate3d(calc(var(--o, 0) * 100%), 0, 0) scale(var(--s)); opacity: .55;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.gal-slide.is-active { --s: 1; opacity: 1; z-index: 1; }
.gal-slide button {
  display: block; width: 100%; aspect-ratio: 3 / 4; padding: 7px; background: none;
  border: 1px solid var(--gold); border-radius: 999px 999px 6px 6px; cursor: zoom-in;
  box-shadow: 0 14px 28px rgba(70, 50, 20, .14);
}
.gal-slide:not(.is-active) button { cursor: pointer; }
.gal-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  border-radius: 999px 999px 3px 3px; box-shadow: 0 0 0 1px var(--gold); user-select: none; -webkit-user-drag: none;
}
.gal .pager { margin: 0 auto; width: min(100% - 48px, 420px); padding: 10px 0 0; }
@media (max-width: 600px) {
  /* phones: narrower slide + short fade so the neighbour photos stay visible at the sides */
  .gal-viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  }
  .gal-slide { left: 17%; width: 66%; }
  .gal-slide:not(.is-active) { opacity: .75; }
}
.gal:focus-visible { outline-offset: -3px; }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 1000; background: rgba(28, 24, 20, .96); color: #F7F3EC;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .35s var(--ease);
}
.lb[hidden] { display: none; }
.lb.is-in { opacity: 1; }
.lb-stage { display: flex; align-items: center; justify-content: center; width: 100%; flex: 1; min-height: 0; overflow: hidden; touch-action: pan-y; }
.lb-img {
  max-width: 92vw; max-height: 86vh; object-fit: contain; transform: scale(.96); opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease); user-select: none; -webkit-user-drag: none;
}
.lb.is-in .lb-img { transform: none; opacity: 1; }
.lb-img.is-swap { opacity: 0; transform: scale(.98); }
.lb-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: #F7F3EC; z-index: 2;
}
.lb-bar { display: flex; align-items: center; justify-content: space-between; width: min(100%, 420px); padding: 0 16px 12px; }
.lb .pg-btn, .lb .pg-count { color: #F7F3EC; }
.lb :focus-visible { outline-color: var(--gold-lt); }

/* =========================================================
   RSVP + SIGN-OFF
   ========================================================= */
.btn {
  display: inline-block; margin-top: 26px; padding: 14px 38px; background: var(--olive-dk); color: #FBF8EF; box-shadow: 0 6px 14px rgba(60, 70, 30, .22);
  border-radius: 3px; font: 600 17px/1.3 var(--serif); text-decoration: none; min-height: 44px;
  transition: transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.rsvp-note { margin-top: 14px; }
.signoff { font: 400 44px/1.15 var(--script); color: var(--maroon); margin-top: 18px; }

/* =========================================================
   PETALS
   ========================================================= */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   GARDEN PAPER CARDS (inspo frame-05 / frame-15): soft borderless deckled paper, slight tilt, a pressed flower over one edge
   ========================================================= */
#details, #dress, #gifts, #rsvp { isolation: isolate; width: min(calc(100% - 28px), 600px); }
/* three different treatments: dress = flat wash between hairlines, gifts = open on the page (open on the page), rsvp = one small deckled card */
#dress { width: min(calc(100% - 28px), 600px); padding: 36px 22px; background: rgba(252, 250, 244, .6); }
#gifts { padding: 0; width: min(calc(100% - 28px), 560px); }
#rsvp { width: min(calc(100% - 44px), 440px); padding: 43px 24px; rotate: -.8deg; filter: drop-shadow(0 8px 12px rgba(60, 40, 20, .16)); }
#dress .title { font: italic 500 clamp(32px, 9vw, 38px)/1.2 var(--serif); }
#gifts .title { font-size: clamp(46px, calc(46px + 12 * var(--w)), 58px); }
.paper {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: #FCFAF4 url("../assets/garden/paper.webp") left top / 1200px auto repeat;
  filter: url(#deckle);
}
@media (min-width: 768px) { #dress { padding: 46px 48px; } #rsvp { padding: 51px 40px; } }
#dress .figs { margin-top: 26px; }
#dress .orn { margin: 30px auto; }
/* gold flourish dividers (inspo frame-05 / frame-15) replace the star rule */
.orn { width: min(78%, 340px); aspect-ratio: 900 / 102; margin-inline: auto; background: url("../assets/garden/flourish.webp") center / contain no-repeat; }
.orn::before, .orn::after, .orn svg { display: none; }

/* details card: the white embossed scalloped card (round 40, see ROUND 40 FRAMES at the end of this file sets its frame and padding) */
#details .date { margin-top: 18px; }
#details .countdown { margin-top: 26px; }

/* =========================================================
   FALLBACK when the envelope pictures fail to load: a plain CSS envelope, no broken icons or alt text
   ========================================================= */
body.env-fail .env-img, body.env-fail .flap-wrap, body.env-fail .env-pocket-wrap, body.env-fail .seal-btn img, body.env-fail .stationery-template, body.env-fail .r16-left, body.env-fail .r16-contents, body.env-fail .r16-heart, body.env-fail .r16-bouquet { display: none; }
body.env-fail .contents { clip-path: none; }
body.env-fail .env-back-wrap { left: 9.76%; top: 39.84%; width: 87.23%; height: 57.97%; clip-path: none; background: linear-gradient(#F3EBDA, #E3D5B7); border-radius: 6px; filter: drop-shadow(0 14px 22px rgba(50, 40, 20, .28)); }
body.env-fail.is-sealed .contents { visibility: hidden; }
body.env-fail .contents-in { background: var(--card); border-radius: 6px; inset: 6% 12% 40%; box-shadow: 0 10px 18px rgba(70, 50, 20, .16); }
body.env-fail #hero-name {
  position: absolute !important; inset: 28% 8% auto; width: auto; height: auto; margin: 0; clip: auto; clip-path: none; white-space: normal; overflow: visible;
  text-align: center; font: 400 clamp(30px, 8cqw, 44px)/1.15 var(--script); color: var(--olive);
}
body.env-fail .seal-btn { inset: auto; left: 53.38%; top: 74.38%; transform-origin: 50% 50%; width: 18cqw; height: 18cqw; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #D9BE74, #A98543); box-shadow: 0 3px 6px rgba(60, 40, 10, .35); }

/* =========================================================
   STATES: offline / slow notice, failed pictures, loading placeholders
   ========================================================= */
.conn-note {
  position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top)); z-index: 30; translate: -50% 0; width: min(calc(100% - 24px), 420px);
  padding: 10px 16px; text-align: center; background: var(--maroon); color: #FBF8EF; border-radius: 6px; font: 600 16px/1.35 var(--serif); box-shadow: 0 6px 14px rgba(40, 20, 10, .3);
}
.conn-note[hidden] { display: none; }
.gal-slide.is-loading button { background: linear-gradient(135deg, #EFE6D3, #E3D5B7); }
.gal-slide .image-failed {
  position: absolute; inset: 7px; display: grid; place-items: center; padding: 14px; text-align: center;
  background: var(--card); border-radius: 999px 999px 3px 3px; font: italic 500 17px/1.4 var(--serif); color: var(--ink-2);
}
.gal-slide.is-failed img { visibility: hidden; }
.lb-fail { position: absolute; left: 50%; top: 50%; translate: -50% -50%; max-width: min(80vw, 320px); text-align: center; font: italic 500 20px/1.4 var(--serif); color: #F7F3EC; }
.lb-fail[hidden] { display: none; }

/* =========================================================
   ROUND 7: skip link, text halos instead of a veil over the garden, no-JS view
   ========================================================= */
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--maroon); color: #FBF8EF; font: 600 17px/1.2 var(--serif); border-radius: 4px; text-decoration: none; transition: top .2s ease; }
.skip:focus, .skip:focus-visible { top: 12px; outline: 2px solid var(--gold-lt); outline-offset: 2px; }
/* the garden is shown at full colour in every section: no veil, no wash and NO backing behind words (owner r7).
   Words on the meadow stay readable through their colour, weight and a very faint glow; panels and paper stay where they already were. */
#specials > .title, #specials > .eyebrow, #gifts > .eyebrow, #gifts > .title, #gifts > .lead, #gifts .ideas li, #gallery > .eyebrow, #gallery > .title, #gallery > .cap-it,
.garden-heading .title, .garden-heading .eyebrow, .garden-heading .cap-it, .signoff-copy .lead, .signoff-copy .signoff,
.gal .pager, #signoff > .lead, #signoff > .signoff, #signoff > .smallcaps, #sp-tabs .tab {
  text-shadow: 0 0 2px rgba(255, 252, 244, .55), 0 0 8px rgba(255, 252, 244, .35);
}
#dress { background: rgba(252, 250, 244, .8); }
.ns-lists { display: none; }
.ns-h { font: 400 34px/1.2 var(--script); color: var(--ink); text-align: center; margin: 26px 0 8px; }
.ns-gal { list-style: none; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 0; margin: 20px 0; }
.ns-gal img { width: min(46vw, 220px); height: auto; border: 1px solid var(--gold); }

@media (max-width: 480px) {
  #details { padding-bottom: 84px; }
}
@media (max-width: 359px) { .cd-row { gap: 14px; } .cd { min-width: 44px; } }

/* the two bouquet clusters now sit small and light at the top left and top right of the details frame and the RSVP card (owner r7) */
#details::before, #details::after, #rsvp::before, #rsvp::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; width: 92px; height: 92px; top: -30px;
  opacity: .88;
}
#details::before, #rsvp::before { left: -12px; }
#details::after, #rsvp::after { right: -12px; transform: scaleX(-1); }
/* RSVP (owner r8): the two clusters sit at the bottom left and bottom right of the card, flipped upside down so they grow up from the corners */
#rsvp::before, #rsvp::after { top: auto; bottom: -30px; }
#rsvp::before { transform: scaleY(-1); }
#rsvp::after { transform: scale(-1, -1); }
@media (min-width: 768px) { #details::before, #details::after, #rsvp::before, #rsvp::after { width: 128px; height: 128px; top: -42px; } #details::before, #rsvp::before { left: -26px; } #details::after, #rsvp::after { right: -26px; } #rsvp::before, #rsvp::after { top: auto; bottom: -42px; } }

/* modal: no scroll chaining, controls clear of notches and home bars */
.lb { overscroll-behavior: contain; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.lb-close { top: calc(12px + env(safe-area-inset-top)); right: calc(12px + env(safe-area-inset-right)); }
.lb-bar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.lb-img { width: auto; height: auto; }


/* text that sits straight on the meadow (no backing, owner r7): darker, heavier colours instead, so contrast stays at 4.5 or more */
.garden-heading .eyebrow, #dress > .eyebrow { color: #2F3A14; font-weight: 700; }
.garden-heading .title, .signoff-copy .signoff { color: #4A0E0C; }
#sp-tabs .tab { color: #2A100C; font-weight: 600; }
#sp-tabs .tab[aria-selected="true"] { color: #1E0A07; }
.garden-heading .cap-it, #signoff > .smallcaps { color: #2A100C; font-weight: 600; }
#gifts .ideas li, .signoff-copy .lead { color: #2A100C; }
.gal .pager .pg-btn, .gal .pager .pg-count { color: #2A100C; }

/* =========================================================
   ROUND 10: one ornament kit (review/r10/DESIGN-KIT.md), opening centred as one block, fixed roster grid, dressed panels
   ========================================================= */
:root {
  --cap: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 27 34%22 preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient id=%22s%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%233A260E%22 stop-opacity=%22.55%22/%3E%3Cstop offset=%22.14%22 stop-color=%22%233A260E%22 stop-opacity=%22.2%22/%3E%3Cstop offset=%22.3%22 stop-color=%22%233A260E%22 stop-opacity=%220%22/%3E%3Cstop offset=%22.56%22 stop-color=%22%23FFFAEB%22 stop-opacity=%22.2%22/%3E%3Cstop offset=%22.68%22 stop-color=%22%233A260E%22 stop-opacity=%220%22/%3E%3Cstop offset=%22.86%22 stop-color=%22%233A260E%22 stop-opacity=%22.24%22/%3E%3Cstop offset=%221%22 stop-color=%22%233A260E%22 stop-opacity=%22.6%22/%3E%3C/linearGradient%3E%3ClinearGradient id=%22k%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%237B5E3A%22/%3E%3Cstop offset=%22.5%22 stop-color=%22%23A5875B%22/%3E%3Cstop offset=%221%22 stop-color=%22%2376593A%22/%3E%3C/linearGradient%3E%3CradialGradient id=%22f%22 cx=%22.55%22 cy=%22.5%22 r=%22.62%22%3E%3Cstop offset=%220%22 stop-color=%22%23EEE1C2%22/%3E%3Cstop offset=%22.7%22 stop-color=%22%23E6D6B2%22/%3E%3Cstop offset=%221%22 stop-color=%22%23D2BF93%22/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d=%22M3 13H15.2V21H3Q.6 21 .6 17Q.6 13 3 13Z%22 fill=%22url(%23k)%22/%3E%3Cpath d=%22M1 14.6H15M1 17H15M1 19.4H15%22 stroke=%22%2332200A%22 stroke-opacity=%22.2%22 stroke-width=%22.3%22 fill=%22none%22/%3E%3Cellipse cx=%2221%22 cy=%2217%22 rx=%226%22 ry=%2217%22 fill=%22url(%23f)%22 stroke=%22%23644B28%22 stroke-opacity=%22.55%22 stroke-width=%22.5%22/%3E%3Cpath d=%22M20.71 17.26 L20.66 17.14 L20.61 16.97 L20.57 16.75 L20.55 16.49 L20.55 16.21 L20.57 15.92 L20.61 15.62 L20.68 15.33 L20.77 15.07 L20.88 14.86 L21.01 14.70 L21.16 14.61 L21.32 14.60 L21.48 14.68 L21.65 14.85 L21.80 15.11 L21.95 15.47 L22.07 15.91 L22.17 16.42 L22.23 17.00 L22.26 17.62 L22.24 18.27 L22.19 18.92 L22.09 19.56 L21.95 20.15 L21.77 20.68 L21.55 21.12 L21.30 21.46 L21.03 21.67 L20.73 21.74 L20.44 21.67 L20.14 21.44 L19.85 21.06 L19.59 20.52 L19.36 19.85 L19.16 19.06 L19.02 18.16 L18.93 17.18 L18.91 16.16 L18.95 15.11 L19.05 14.07 L19.22 13.09 L19.45 12.18 L19.74 11.39 L20.08 10.74 L20.47 10.26 L20.88 9.97 L21.32 9.88 L21.76 10.02 L22.19 10.37 L22.60 10.95 L22.98 11.73 L23.31 12.70 L23.58 13.84 L23.78 15.11 L23.90 16.48 L23.93 17.92 L23.88 19.37 L23.73 20.79 L23.50 22.15 L23.18 23.38 L22.79 24.46 L22.33 25.34 L21.81 25.99 L21.26 26.38 L20.68 26.50 L20.10 26.33 L19.53 25.88 L18.98 25.13 L18.49 24.12 L18.05 22.87 L17.70 21.40 L17.44 19.76 L17.28 18.00 L17.22 16.16 L17.29 14.30 L17.46 12.48 L17.75 10.75 L18.15 9.17 L18.64 7.79 L19.21 6.65 L19.85 5.81 L20.54 5.29 L21.26 5.11 L21.99 5.28 L22.71 5.82 L23.39 6.71 L24.01 7.93 L24.55 9.45 L25.00 11.23 L25.33 13.22 L25.54 15.37 L25.62 17.62 L25.56 19.89 L25.36 22.12 L25.02 24.23 L24.56 26.17 L23.98 27.87 L23.29 29.28 L22.53 30.34 L21.70 31.02 L20.84 31.28 L19.97 31.12 L19.11 30.53 L18.29 29.52 L17.54 28.11 L16.88 26.35 L16.34 24.26 L15.92 21.93 L15.65 19.40 L15.54 16.76 L15.59 14.08 L15.80 11.44 L16.18 8.92 L16.71 6.61 L17.37 4.57 L18.16 2.87 L19.04 1.57 L20.00 0.72 L21.00 0.34%22 fill=%22none%22 stroke=%22%236E522C%22 stroke-opacity=%22.65%22 stroke-width=%22.38%22 stroke-linejoin=%22round%22/%3E%3Cellipse cx=%2221%22 cy=%2217%22 rx=%226%22 ry=%2217%22 fill=%22url(%23s)%22 fill-opacity=%22.5%22/%3E%3C/svg%3E");
  --sprig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cg fill='%236C7749' stroke='%234F5A2C' stroke-width='.35'%3E%3Cpath d='M1 6.5C8 6.1 14 6 23 5.6' fill='none' stroke-width='.9'/%3E%3Cpath d='M7.5 6.3C6.6 3.2 8.6 1.2 11.8 1.4C12.4 4 10.8 5.8 7.5 6.3Z'/%3E%3Cpath d='M11.5 6C11 9 13 11 16.2 10.8C16.8 8.2 14.8 6.4 11.5 6Z'/%3E%3Cpath d='M17 5.8C17 3 19 1.5 21.6 1.8C21.8 4 20.2 5.5 17 5.8Z'/%3E%3Cpath d='M22.6 5.6C24.6 4.6 26.8 4.9 28.6 6.3C26.8 7.5 24.6 7.3 22.6 5.6Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* --- opening: the title, the closed envelope and the hint are centred as one block (js/app.js layoutClosed sets --dy). The envelope settles to the hero position while it opens. --- */
body.is-sealed .stage { translate: 0 var(--dy, 0px); }
body.is-opening .stage { transition: translate 1.2s cubic-bezier(.4, .1, .6, .9); }

/* --- heading lockup: kicker with a leaf sprig on each side, script title, gold flourish --- */
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; }
.eyebrow::before, .eyebrow::after { content: ""; flex: none; width: 30px; height: 12px; background: var(--sprig) center / contain no-repeat; }
.eyebrow::before { transform: scaleX(-1); }
@media (max-width: 480px) { .eyebrow { letter-spacing: .16em; gap: 8px; } .eyebrow::before, .eyebrow::after { width: 22px; } }   /* "Jhosie's Eighteenth Birthday" fits on one line at 390 */
.title { margin-bottom: 2px; }
.flo { width: min(220px, 60%); height: auto; aspect-ratio: 260 / 20; margin: 2px auto 10px; overflow: visible; }   /* line breaker under every section title: a hairline with a tiny leaf */
#specials .flo, #gifts .flo, #gallery .flo { filter: drop-shadow(0 0 2px rgba(255, 252, 244, .7)); }

/* --- roster tabs: the active word gets a small gold flourish, not a line --- */
.tab .tf { position: absolute; left: 50%; bottom: 4px; width: 34px; height: 8px; translate: -50% 0; opacity: 0; transform: scaleX(.4); transition: opacity .25s var(--ease), transform .3s var(--ease); overflow: visible; }
.tab[aria-selected="true"] .tf { opacity: 1; transform: none; }

/* --- roster sheet: head with a laurel "18", category icon, fixed names grid, double rule, corner sprigs, faint watermark --- */
.sheet { padding: 38px 30px 32px; }
@media (max-width: 480px) { .sheet { padding: 34px 22px 28px; } .scroll { margin-inline: 10px; } }
.sheet-head { display: flex; flex-direction: column; align-items: center; gap: 0; }
.sheet-line { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; }
.sheet-line::before, .sheet-line::after { content: ""; flex: none; width: 30px; height: 12px; background: var(--sprig) center / contain no-repeat; }   /* leaf sprigs on both sides, as on the other headings */
.sheet-line::before { transform: scaleX(-1); }
.sheet-18 { font: 500 46px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--gold-dk); }   /* the plain numeral, as big as the script title */
.sheet-head .flo { margin: 0 auto 2px; }
.sheet-title { font: 400 46px/1.1 var(--script); color: var(--ink); white-space: nowrap; }
@media (max-width: 480px) { .sheet-18 { font-size: 40px; } .sheet-title { font-size: 40px; } .sheet-line { gap: 8px; } .sheet-line::before, .sheet-line::after { width: 20px; } }
@media (max-width: 359px) { .sheet-18 { font-size: 34px; } .sheet-title { font-size: 34px; } }

.names {
  list-style: none; margin: 18px auto 0; width: min(100%, 25.5rem);
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(9, auto); grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(10px, 3vw, 22px); row-gap: 8px;
}
.names li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); column-gap: .35em; align-items: baseline; font-size: 14px; }
@media (min-width: 481px) { .names li { font-size: 15px; } .names { width: min(100%, 22.5rem); } }
.names .n { font: 600 1em/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; text-align: right; color: var(--ink-mute); }
.names .t { font: 500 clamp(16px, calc(16px + 3 * var(--w)), 19px)/1.25 var(--serif); color: var(--ink); overflow-wrap: break-word; min-width: 0; }
@media (max-width: 359px) { .names { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr; } .sheet { padding-inline: 18px; } }

/* --- dress code: floral border carried around the panel (corner bouquets, trailing vine, inset rule), painted blooms for the colours --- */
#dress { padding-inline: 26px; }
#dress .inset { position: absolute; inset: 10px; z-index: 0; border: 1px solid rgba(176, 141, 79, .7); pointer-events: none; }
#dress .inset::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(176, 141, 79, .4); }
#dress .vine { position: absolute; left: -12px; top: 70px; width: 40px; height: auto; aspect-ratio: 44 / 320; z-index: 0; pointer-events: none; overflow: visible; }
#dress::before, #dress::after { content: ""; position: absolute; z-index: 0; pointer-events: none; }
#dress::before { right: -4px; top: -34px; width: 112px; height: 112px; transform: scaleX(-1); }
#dress::after { left: -4px; bottom: -28px; width: 92px; height: 92px; transform: scaleY(-1); }
@media (min-width: 768px) {
  #dress::before { right: -40px; top: -44px; width: 150px; height: 150px; }
  #dress::after { left: -36px; bottom: -40px; width: 124px; height: 124px; }
  #dress .vine { left: -26px; width: 46px; }
}

/* --- gifts: the words and the ideas sit on one small cream card with a deckled edge and a corner sprig; ideas are a centred list with tiny butterfly bullets --- */
.gcard { position: relative; isolation: isolate; margin: 16px auto 0; max-width: 430px; padding: 26px 28px 24px; rotate: .7deg; filter: drop-shadow(0 8px 12px rgba(60, 40, 20, .16)); }
.gcard::before { content: ""; position: absolute; z-index: 0; pointer-events: none; right: -7px; top: -14px; width: 36px; height: 60px; background: url("../assets/garden/m-rosebud.webp") center / contain no-repeat; transform: scaleX(-1) rotate(12deg); opacity: .98; filter: drop-shadow(0 1px 1.5px rgba(48, 34, 18, .26)) drop-shadow(3px 6px 6px rgba(56, 38, 18, .22)) contrast(1.06) saturate(1.08); }
#gifts .gcard .lead { margin-top: 0; font-size: clamp(20px, calc(20px + 2 * var(--w)), 22px); color: var(--ink-2); text-shadow: none; }
.ideas { list-style: none; margin-top: 14px; text-align: center; }
.ideas li { display: block; padding: 2px 0; font: italic 500 19px/1.55 var(--serif); color: var(--ink-2); text-shadow: none; }
.ideas li::before { content: ""; display: inline-block; width: 15px; height: 13px; margin-right: 8px; vertical-align: -2px; background: url("../assets/garden/m-butterfly.webp") center / contain no-repeat; filter: drop-shadow(0 1px 1px rgba(48, 34, 18, .34)) contrast(1.08) saturate(1.12); }

/* --- sign-off as the letter's closing: pressed-flower spray, then the date and place between two short gold rules --- */
.spray-wrap { position: relative; width: min(180px, 46vw); aspect-ratio: 156 / 136; margin: 6px auto 0; display: flex; align-items: center; justify-content: center; }
.js #signoff .spray-wrap.reveal { opacity: 1; transform: none; transition: none; }
/* R40C (owner 2026-11-30): no white see-through wash or white halo inside the flower heart; the garden shows through */
.spray { display: block; width: min(128px, 34vw); height: auto; aspect-ratio: 900 / 795; margin: 0; position: relative; z-index: 1; filter: drop-shadow(0 2px 4px rgba(88, 68, 110, .24)); }   /* natural watercolour spray from the bouquet family (clean alpha) */
.spray-fx { position: absolute; inset: -22%; width: 144%; height: 144%; pointer-events: none; z-index: 2; }
#signoff .smallcaps { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; font-size: clamp(21px, calc(21px + 2 * var(--w)), 23px); line-height: 1.5; }
#signoff .smallcaps .rule { flex: none; width: clamp(18px, 7vw, 36px); height: 1px; background: linear-gradient(90deg, rgba(176, 141, 79, 0), var(--gold)); }
#signoff .smallcaps .rule:last-child { transform: scaleX(-1); }
#signoff .smallcaps .t { text-align: center; }
#signoff .smallcaps .dot { white-space: pre; }
@media (max-width: 520px) { #signoff .smallcaps .dot { display: none; } #signoff .smallcaps .p { display: block; } }

/* --- gallery frame (owner pick Q-121: cream with gold highlights; review/make-frame-r10.py cuts it to clean alpha).
   The slide is the frame's size; the photo sits in its opening (a little under the rim, so no gap shows); the side slides wear the same frame, lighter. --- */
.gal-slide { aspect-ratio: 800 / 1114; --ol: 17.8%; --ot: 13.4%; --ow: 66.8%; --oh: 75.8%; }
.gal-slide::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: url("../assets/garden/gallery-frame.webp") center / 100% 100% no-repeat; filter: drop-shadow(0 10px 16px rgba(70, 50, 20, .22)); transition: opacity .6s var(--ease); }
.gal-slide:not(.is-active)::after { opacity: .55; }
.gal-slide button { position: absolute; left: var(--ol); top: var(--ot); width: var(--ow); height: var(--oh); aspect-ratio: auto; padding: 0; border: 0; box-shadow: none; border-radius: 999px 999px 3px 3px; overflow: hidden; z-index: 1; }
.gal-slide img { box-shadow: none; border-radius: 0; }
.gal-slide .image-failed { inset: 0; border-radius: 999px 999px 3px 3px; }
.gal-slide.is-loading button { border-radius: 999px 999px 3px 3px; }

/* ROUND 26 bespoke Garden Colors watercolor motifs (9 unique single-use motifs + spray, zero repetition):
   m-lily (details bottom-left), m-butterfly (details top-right), m-ribbon (specials card top),
   m-tulip (dress), m-babys-breath (dress), m-rosebud (gifts), sprig-green (gifts),
   m-rsvp-leaf (rsvp top-left), m-peony-bud (rsvp), spray (signoff). */
#details::before, #details::after,
#specials .scroll::before,
#dress::before, #dress::after,
.gcard::after,
#rsvp::before, #rsvp::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  background-position: center; background-size: contain; background-repeat: no-repeat; opacity: .98;
  filter: drop-shadow(0 1px 1.5px rgba(48, 34, 18, .26)) drop-shadow(3px 6px 6px rgba(56, 38, 18, .22)) contrast(1.06) saturate(1.08);
}
#details::before { background-image: url("../assets/garden/m-lily.webp"); left: 16px; bottom: -4px; top: auto; width: 42px; height: 68px; transform: rotate(-48deg); z-index: 2; }
#details::after { background-image: url("../assets/garden/m-butterfly.webp"); right: 10px; top: 10px; bottom: auto; width: 66px; height: 56px; transform: rotate(-8deg); z-index: 2; filter: drop-shadow(0 2px 2px rgba(48, 34, 18, .20)) drop-shadow(4px 8px 8px rgba(56, 38, 18, .24)) contrast(1.06) saturate(1.08); }
#specials .scroll { isolation: isolate; }
#specials .scroll::before { background-image: url("../assets/garden/m-ribbon.webp"); left: 50%; top: -18px; translate: -50% 0; width: 112px; height: 35px; opacity: .98; z-index: 4; }
#dress::before { background-image: url("../assets/garden/m-tulip.webp"); right: -4px; top: -44px; width: 52px; height: 106px; transform: rotate(18deg); }
#dress::after { background-image: url("../assets/garden/m-babys-breath.webp"); left: -20px; bottom: -32px; width: 64px; height: 84px; transform: rotate(-44deg); z-index: 2; }
.gcard::after { background-image: url("../assets/garden/sprig-green.webp"); left: -10px; bottom: -26px; width: 52px; height: 61px; transform: rotate(-16deg); opacity: .88; z-index: -1; }
#rsvp::before { background-image: url("../assets/garden/m-rsvp-leaf.webp"); left: -14px; top: -22px; bottom: auto; width: 92px; height: 98px; transform: rotate(-6deg); opacity: .98; }
#rsvp::after { background-image: url("../assets/garden/m-peony-bud.webp"); right: -4px; bottom: -8px; top: auto; width: 64px; height: 95px; transform: rotate(18deg); }
@media (min-width: 768px) {
  #details::before { left: 26px; bottom: 4px; top: auto; width: 54px; height: 90px; }
  #details::after { right: 18px; top: 14px; bottom: auto; width: 78px; height: 66px; }
  #specials .scroll::before { top: -22px; width: 132px; height: 40px; }
  #dress::before { right: -28px; top: -48px; width: 64px; height: 130px; }
  #dress::after { left: -20px; bottom: -32px; width: 84px; height: 110px; }
  .gcard::before { right: -11px; top: -16px; width: 43px; height: 72px; }
  .gcard::after { left: -24px; bottom: -32px; width: 70px; height: 82px; }
  #rsvp::before { left: -28px; top: -32px; bottom: auto; width: 122px; height: 130px; }
  #rsvp::after { right: -20px; bottom: -10px; top: auto; width: 78px; height: 116px; }
}
/* ROUND 37: Post-open hero effects (DCA) */
.hero-rays {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  opacity: 0;
  will-change: opacity;
}
.hero-rays::before {
  content: ""; position: absolute; left: 50%; top: 44%; width: min(140vw, 1180px); height: min(140vw, 1180px);
  translate: -50% -50%;
  background: repeating-conic-gradient(
    from -12deg at 50% 50%,
    rgba(255, 224, 150, 0) 0deg,
    rgba(255, 224, 150, .24) 5deg,
    rgba(255, 224, 150, 0) 13deg,
    rgba(246, 206, 128, 0) 21deg,
    rgba(246, 206, 128, .18) 28deg,
    rgba(246, 206, 128, 0) 36deg 45deg
  );
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .92) 8%, rgba(0, 0, 0, .48) 42%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .92) 8%, rgba(0, 0, 0, .48) 42%, transparent 72%);
  will-change: transform, opacity;
}
@keyframes r37-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body.is-open:not(.env-fail) .hero-rays {
  animation: r37-fade 1.4s ease-in-out forwards;
}
body.is-open:not(.env-fail) .hero-rays::before {
  animation: r37-rays 6.5s ease-in-out infinite alternate;
}
@keyframes r37-rays {
  0%   { opacity: .52; transform: rotate(-4deg) scale(.97); }
  100% { opacity: .88; transform: rotate(4deg) scale(1.04); }
}

.hero-oval-glow {
  position: absolute; left: 18.2%; top: 19.8%; width: 37.8%; height: 41.2%;
  z-index: 2; border-radius: 50%; pointer-events: none;
  transform: rotate(-6deg);
  box-shadow: 0 0 26px 5px rgba(244, 211, 141, .40), inset 0 0 20px 2px rgba(255, 242, 204, .32);
  opacity: 0;
  will-change: opacity, transform;
}
@keyframes r37-oval-in {
  from { opacity: 0; transform: rotate(-6deg) scale(.995); }
  to   { opacity: .64; transform: rotate(-6deg) scale(1.012); }
}
body.is-open:not(.env-fail) .hero-oval-glow {
  animation: r37-oval-in 1.2s ease-in-out forwards, r37-oval 4.8s ease-in-out 1.2s infinite;
}
@keyframes r37-oval {
  0%, 100% { opacity: .64; transform: rotate(-6deg) scale(1.012); }
  50%      { opacity: .28; transform: rotate(-6deg) scale(.995); }
}

.hero-sheen {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden;
  opacity: 0;
  -webkit-mask-image: radial-gradient(ellipse 46% 36% at 50% 37%, #000 32%, transparent 74%);
  mask-image: radial-gradient(ellipse 46% 36% at 50% 37%, #000 32%, transparent 74%);
  will-change: opacity;
}
.hero-sheen::before {
  content: ""; position: absolute; inset: -18% -30%;
  background: linear-gradient(
    115deg,
    transparent 34%,
    rgba(255, 244, 212, .16) 44%,
    rgba(255, 232, 168, .44) 50%,
    rgba(255, 244, 212, .16) 56%,
    transparent 66%
  );
  mix-blend-mode: soft-light;
  transform: translateX(-85%);
  will-change: transform, opacity;
}
body.is-open:not(.env-fail) .hero-sheen {
  animation: r37-fade .8s ease-out forwards;
}
body.is-open:not(.env-fail) .hero-sheen::before {
  animation: r37-sheen 6s ease-in-out .25s infinite;
}
@keyframes r37-sheen {
  0%        { transform: translateX(-85%); opacity: 0; }
  18%       { opacity: 1; }
  68%       { transform: translateX(85%); opacity: 1; }
  82%, 100% { transform: translateX(85%); opacity: 0; }
}

.hero-fx {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none;
  opacity: 0; transition: opacity .9s ease-out;
  will-change: opacity;
}
body.is-open:not(.env-fail):not(.fx-paused) .hero-fx {
  opacity: 1;
}

.hero-bfly {
  position: absolute; left: 81.5%; top: 10%; width: 13.2%; aspect-ratio: 66 / 56;
  z-index: 11; pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.hero-bfly-wing {
  display: block; width: 100%; height: 100%;
  background: url("../assets/garden/m-butterfly.webp") center / contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(52, 34, 16, .24));
  transform-origin: 50% 55%;
  will-change: transform;
}
body.is-opening:not(.env-fail) .hero-bfly {
  animation: r37-bfly-enter 1.85s cubic-bezier(.22, .72, .28, 1) .4s 1 both;
}
body.is-open:not(.env-fail) .hero-bfly {
  opacity: 1;
  animation: r37-bfly-hover 5.2s ease-in-out infinite;
}
body.is-opening:not(.env-fail) .hero-bfly-wing,
body.is-open:not(.env-fail) .hero-bfly-wing {
  animation: r37-bfly-wing 1.3s ease-in-out infinite;
}
@keyframes r37-bfly-enter {
  0%   { opacity: 0; transform: translate(12%, 95%) scale(.76) rotate(-10deg); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
}
@keyframes r37-bfly-hover {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  35%      { translate: -5% -9%; rotate: -4deg; }
  70%      { translate: 4% -4%; rotate: 3deg; }
}
@keyframes r37-bfly-wing {
  0%, 100% { transform: scaleX(1) scaleY(1); }
  50%      { transform: scaleX(.84) scaleY(1.04); }
}

body.fx-paused .hero-rays::before,
body.fx-paused .hero-rays,
body.fx-paused .hero-oval-glow,
body.fx-paused .hero-sheen,
body.fx-paused .hero-sheen::before,
body.fx-paused .hero-bfly,
body.fx-paused .hero-bfly-wing {
  animation-play-state: paused !important;
}
body.fx-paused .hero-rays,
body.fx-paused .hero-oval-glow,
body.fx-paused .hero-sheen,
body.fx-paused .hero-fx,
body.fx-paused .hero-bfly {
  opacity: 0 !important;
  transition: opacity .35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .hero-rays, .hero-oval-glow, .hero-sheen, .hero-fx, .hero-bfly { display: none !important; }
}

/* =========================================================
   ROUND 40 FRAMES (owner 2026-11-30): one art file per frame, drawn with border-image so the corners, rolls and crests keep their
   proportions (every border width is the art's own pixel size times one scale, --u) and only the plain middle grows with the content.
   ========================================================= */
/* 18s holder: floral parchment scroll (inspo 18s-holder-scroll.jpg). Art 973 x 1469: top band 304 (roll), bottom band 957 (vines and roll),
   side vines 175; the 208 px middle band repeats seamlessly (its last rows fade into the rows above it) and js/app.js (Frames) snaps the
   height to whole repeats, so the vines are never squashed or stretched. */
#specials .scroll {
  --sw: min(calc(100vw - 16px), 380px); --u: calc(var(--sw) / 973);
  width: var(--sw); max-width: none; margin: 18px calc((100% - var(--sw)) / 2) 0;
}
@media (min-width: 768px) { #specials .scroll { --sw: min(calc(100vw - 48px), 600px); } }
#specials .scroll::before { content: none; }
.sheet {
  border-style: solid; border-color: transparent;
  border-image: url("../assets/frames/scroll.webp") 304 175 957 175 fill / calc(304 * var(--u)) calc(175 * var(--u)) calc(957 * var(--u)) calc(175 * var(--u)) stretch round;
  border-width: 0;
  padding: calc(215 * var(--u)) calc(165 * var(--u) + 14px) calc(185 * var(--u));
  display: flex; flex-direction: column; justify-content: center;   /* whole-repeat snapping adds a little parchment: split it above and below */
  min-height: calc(1469 * var(--u));
  filter: drop-shadow(0 10px 14px rgba(58, 38, 18, .22));
}
.sheet-18 { font: 600 28px/1 var(--serif); letter-spacing: .02em; color: var(--gold-dk); }   /* XVIII (owner typed XVII; eighteen is XVIII) */
.sheet-title { font-size: 34px; }
.sheet-line { gap: 8px; }
.sheet-line::before, .sheet-line::after { display: none; }
@media (max-width: 359px) { .sheet-18 { font-size: 24px; } .sheet-title { font-size: 30px; } }
@media (min-width: 768px) { .sheet-18 { font-size: 40px; } .sheet-title { font-size: 46px; } .sheet-line { gap: 12px; } .sheet-line::before, .sheet-line::after { display: block; width: 26px; } }
/* names: one column on every screen, like the scroll inspo (long full names wrap inside the name column; the number column stays fixed) */
.names { width: 100%; margin-top: 14px; grid-auto-flow: row; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
.names .t { font-size: 16px; line-height: 1.22; }
@media (max-width: 767px) { .names { row-gap: 4px; } }
@media (min-width: 768px) { .names { width: min(100%, 24rem); row-gap: 7px; } .names .t { font-size: 18px; } .names li { font-size: 15px; } }

/* event details: white embossed scalloped card (inspo event-details-white-card.jpg). Art 874 x 1499: top band 534 (crest, corner
   scrollwork, sprigs), bottom band 823, sides 110; the 142 px middle band is one repeat of the side scallops, and js/app.js (Frames)
   snaps the card height to whole repeats. */
#details {
  --dw: min(calc(100vw - 24px), 600px); --u: calc(var(--dw) / 874);
  width: var(--dw); max-width: none;
  border-style: solid; border-color: transparent; border-width: 0;
  border-image: url("../assets/frames/details-card.webp") 534 110 823 110 fill / calc(534 * var(--u)) calc(110 * var(--u)) calc(823 * var(--u)) calc(110 * var(--u)) stretch round;
  padding: calc(300 * var(--u) + 6px) calc(100 * var(--u) + 18px) calc(285 * var(--u) + 8px);
  min-height: calc(1499 * var(--u));
  filter: drop-shadow(0 10px 16px rgba(60, 45, 25, .22));
}
@media (min-width: 768px) { #details { padding: calc(300 * var(--u) + 6px) calc(100 * var(--u) + 28px) calc(285 * var(--u) + 8px); } }
#details::before, #details::after { content: none; }
#details .eyebrow { color: #5E4A1E; }
#details .cap-it, #details .cd-l { color: var(--ink-2); font-weight: 600; }
#details .cd-l { font-size: 11px; letter-spacing: .14em; }
@media (min-width: 768px) { #details .cd-l { font-size: 12px; letter-spacing: .2em; } }
#details .occasion {
  margin-top: 20px; font: 700 18px/1.3 var(--serif); font-variant: small-caps; text-transform: lowercase; letter-spacing: .16em; color: #6A4A14;
}
#details .occasion + .date { margin-top: 4px; }
@media (max-width: 767px) {
  #details {
    --dw: min(76.5vw, 600px);
    padding: calc(305 * var(--u)) calc(100 * var(--u) + 17px) calc(290 * var(--u));
  }
  #details .eyebrow { font-size: calc(28 * var(--u)); letter-spacing: .12em; margin-top: 2px; margin-bottom: calc(10 * var(--u)); }
  #details .title { font-size: calc(108 * var(--u)); margin-bottom: calc(14 * var(--u)); }
  #details .flo { margin-bottom: calc(10 * var(--u)); }
  #details .lead { font-size: calc(49 * var(--u)); line-height: 1.44; margin-top: calc(10 * var(--u)); }
  #details .occasion { font-size: calc(42 * var(--u)); margin-top: calc(34 * var(--u)); }
  #details .date { font-size: calc(60 * var(--u)); }
  #details .body { font-size: calc(42 * var(--u)); margin-top: calc(10 * var(--u)); }
  #details .venue { margin-top: calc(28 * var(--u)); }
  #details .venue a { font-size: calc(52 * var(--u)); padding: calc(14 * var(--u)) 0; text-underline-offset: 4px; }
  #details .cap-it { font-size: calc(40 * var(--u)); margin-top: calc(8 * var(--u)); }
  #details .countdown { margin-top: calc(38 * var(--u)); }
  #details .cd-row { gap: calc(20 * var(--u)); margin-top: calc(14 * var(--u)); }
  #details .cd { min-width: calc(96 * var(--u)); }
  #details .cd-n { font-size: calc(92 * var(--u)); }
  #details .cd-l { font-size: calc(27 * var(--u)); letter-spacing: .08em; }
  #details .begun { font-size: calc(49 * var(--u)); }
}
@media (max-width: 380px) {
  .sheet-line { gap: 4px; }
  .sheet-18 { letter-spacing: 0; }
}

/* gifts: thin antique-gold baroque frame (inspo gift-gold-frame.jpg) with two butterflies. Art 1199 x 692: top band 320 (crest and
   corners), bottom band 272 (corners, cream blossom lower-left), sides 100; only the straight 100 px of each side rail grows on tall phones.
   The frame (.gframe) is drawn over the bare section garden (R40C removed the cream paper behind the words). */
#gifts { padding-inline: 0; }
.gcard {
  --gw: min(calc(100vw - 24px), 640px); --u: calc(var(--gw) / 1199);
  width: var(--gw); max-width: none; margin: 16px calc((100% - var(--gw)) / 2) 0; rotate: none;
  padding: calc(219 * var(--u) + 20px) calc(130 * var(--u) + 14px) calc(150 * var(--u) + 18px);
  min-height: calc(692 * var(--u));
}
.gcard .gframe {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-style: solid; border-color: transparent; border-width: 0;
  border-image: url("../assets/frames/gift-frame.webp") 320 100 272 100 / calc(320 * var(--u)) calc(100 * var(--u)) calc(272 * var(--u)) calc(100 * var(--u)) stretch stretch;
  filter: drop-shadow(0 4px 5px rgba(60, 40, 20, .2));
}
/* R40C (owner 2026-11-30): no cream paper or white oval inside the frame; the section garden shows through and the words keep the
   page's own faint glow (same as the other words on the meadow). */
#gifts .gcard .lead { text-shadow: 0 0 2px rgba(255, 252, 244, .55), 0 0 8px rgba(255, 252, 244, .35); }
.gcard::before, .gcard::after { content: none; }
/* two natural butterflies (assets/garden/m-butterfly.webp): one resting on the top-right corner of the frame, one just outside below the
   lower-right corner; both clear of the words. Built like the hero butterfly: the outer span hovers (r37-bfly-hover) at a fixed slant,
   the inner wing flaps (r37-bfly-wing); still under reduced motion. */
.gbfly { position: absolute; z-index: 3; pointer-events: none; animation: r37-bfly-hover 5.2s ease-in-out infinite; }
.gbfly-wing {
  display: block; width: 100%; height: 100%;
  background: url("../assets/garden/m-butterfly.webp") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(48, 34, 18, .22)) drop-shadow(3px 6px 6px rgba(56, 38, 18, .18));
  transform-origin: 50% 55%;
  animation: r37-bfly-wing 1.3s ease-in-out infinite;
}
.gbfly-a { right: calc(59 * var(--u) - 25px); top: calc(208 * var(--u) - 21.5px); width: 50px; height: 43px; transform: rotate(40deg); }
@media (min-width: 768px) {
  .gbfly-a { right: calc(59 * var(--u) - 33px); top: calc(208 * var(--u) - 28.5px); width: 66px; height: 57px; }
}
body.fx-paused .gbfly, body.fx-paused .gbfly-wing { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .gbfly, .gbfly-wing { animation: none; } }
#gifts .gcard .lead { color: var(--ink); }
#gifts .ideas li { color: var(--ink); }

/* sign-off: name first, then the thank-you, then the closing line */
.signoff-copy .signoff { margin-top: 18px; }
.signoff-copy .signoff + .lead { margin-top: 14px; }
.signoff-copy .lead-it { font: 400 clamp(30px, calc(30px + 8 * var(--w)), 38px)/1.2 var(--script); margin-top: 10px; color: #4A0E0C; }

/* R40F (owner 2026-12-01): soft see-through cream panel fills the entire inside of the gold gift frame, following its baroque inner contour without covering the frame or ornaments. */
.garden-panel {
  position: static;
  isolation: auto;
  text-shadow: none;
}
.garden-panel > * {
  position: relative;
  z-index: 2;
}
.garden-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: color-mix(in srgb, var(--sheet) 55%, transparent);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
  pointer-events: none;
  clip-path: polygon(calc(657 * var(--u)) calc(107 * var(--u)), calc(670 * var(--u)) calc(107 * var(--u)), calc(690 * var(--u)) calc(112 * var(--u)), calc(707 * var(--u)) calc(119 * var(--u)), calc(735 * var(--u)) calc(134 * var(--u)), calc(740 * var(--u)) calc(135 * var(--u)), calc(747 * var(--u)) calc(139 * var(--u)), calc(758 * var(--u)) calc(141 * var(--u)), calc(797 * var(--u)) calc(141 * var(--u)), calc(798 * var(--u)) calc(140 * var(--u)), calc(802 * var(--u)) calc(141 * var(--u)), calc(830 * var(--u)) calc(141 * var(--u)), calc(831 * var(--u)) calc(140 * var(--u)), calc(834 * var(--u)) calc(141 * var(--u)), calc(859 * var(--u)) calc(141 * var(--u)), calc(860 * var(--u)) calc(140 * var(--u)), calc(930 * var(--u)) calc(141 * var(--u)), calc(932 * var(--u)) calc(145 * var(--u)), calc(933 * var(--u)) calc(153 * var(--u)), calc(936 * var(--u)) calc(159 * var(--u)), calc(940 * var(--u)) calc(163 * var(--u)), calc(951 * var(--u)) calc(168 * var(--u)), calc(965 * var(--u)) calc(167 * var(--u)), calc(974 * var(--u)) calc(160 * var(--u)), calc(976 * var(--u)) calc(155 * var(--u)), calc(975 * var(--u)) calc(145 * var(--u)), calc(969 * var(--u)) calc(140 * var(--u)), calc(963 * var(--u)) calc(140 * var(--u)), calc(964 * var(--u)) calc(137 * var(--u)), calc(969 * var(--u)) calc(132 * var(--u)), calc(980 * var(--u)) calc(127 * var(--u)), calc(991 * var(--u)) calc(125 * var(--u)), calc(1010 * var(--u)) calc(126 * var(--u)), calc(1025 * var(--u)) calc(132 * var(--u)), calc(1034 * var(--u)) calc(140 * var(--u)), calc(1036 * var(--u)) calc(143 * var(--u)), calc(1036 * var(--u)) calc(148 * var(--u)), calc(1039 * var(--u)) calc(151 * var(--u)), calc(1048 * var(--u)) calc(153 * var(--u)), calc(1049 * var(--u)) calc(155 * var(--u)), calc(1042 * var(--u)) calc(158 * var(--u)), calc(1038 * var(--u)) calc(164 * var(--u)), calc(1039 * var(--u)) calc(176 * var(--u)), calc(1047 * var(--u)) calc(184 * var(--u)), calc(1053 * var(--u)) calc(187 * var(--u)), calc(1071 * var(--u)) calc(186 * var(--u)), calc(1079 * var(--u)) calc(189 * var(--u)), calc(1089 * var(--u)) calc(211 * var(--u)), calc(1097 * var(--u)) calc(222 * var(--u)), calc(1095 * var(--u)) calc(225 * var(--u)), calc(1086 * var(--u)) calc(231 * var(--u)), calc(1082 * var(--u)) calc(238 * var(--u)), calc(1082 * var(--u)) calc(253 * var(--u)), calc(1084 * var(--u)) calc(256 * var(--u)), calc(1093 * var(--u)) calc(263 * var(--u)), calc(1102 * var(--u)) calc(263 * var(--u)), calc(1106 * var(--u)) calc(261 * var(--u)), calc(1109 * var(--u)) calc(258 * var(--u)), calc(1110 * var(--u)) calc(254 * var(--u)), calc(1114 * var(--u)) calc(254 * var(--u)), calc(1124 * var(--u)) calc(259 * var(--u)), calc(1140 * var(--u)) calc(276 * var(--u)), calc(1151 * var(--u)) calc(295 * var(--u)), calc(1158 * var(--u)) calc(314 * var(--u)), calc(1165 * var(--u)) calc(320 * var(--u) + 0.26 * (100% - 592 * var(--u))), calc(1165 * var(--u)) calc(320 * var(--u) + 0.4 * (100% - 592 * var(--u))), calc(1166 * var(--u)) calc(320 * var(--u) + 0.41 * (100% - 592 * var(--u))), calc(1165 * var(--u)) calc(320 * var(--u) + 0.7 * (100% - 592 * var(--u))), calc(1161 * var(--u)) calc(320 * var(--u) + 0.93 * (100% - 592 * var(--u))), calc(1156 * var(--u)) calc(100% - 262 * var(--u)), calc(1146 * var(--u)) calc(100% - 238 * var(--u)), calc(1134 * var(--u)) calc(100% - 218 * var(--u)), calc(1128 * var(--u)) calc(100% - 212 * var(--u)), calc(1118 * var(--u)) calc(100% - 212 * var(--u)), calc(1115 * var(--u)) calc(100% - 210 * var(--u)), calc(1103 * var(--u)) calc(100% - 215 * var(--u)), calc(1091 * var(--u)) calc(100% - 216 * var(--u)), calc(1082 * var(--u)) calc(100% - 213 * var(--u)), calc(1074 * var(--u)) calc(100% - 205 * var(--u)), calc(1073 * var(--u)) calc(100% - 190 * var(--u)), calc(1075 * var(--u)) calc(100% - 186 * var(--u)), calc(1079 * var(--u)) calc(100% - 182 * var(--u)), calc(1084 * var(--u)) calc(100% - 180 * var(--u)), calc(1093 * var(--u)) calc(100% - 181 * var(--u)), calc(1096 * var(--u)) calc(100% - 177 * var(--u)), calc(1098 * var(--u)) calc(100% - 167 * var(--u)), calc(1095 * var(--u)) calc(100% - 151 * var(--u)), calc(1086 * var(--u)) calc(100% - 130 * var(--u)), calc(1080 * var(--u)) calc(100% - 135 * var(--u)), calc(1073 * var(--u)) calc(100% - 138 * var(--u)), calc(1057 * var(--u)) calc(100% - 138 * var(--u)), calc(1052 * var(--u)) calc(100% - 136 * var(--u)), calc(1046 * var(--u)) calc(100% - 130 * var(--u)), calc(1045 * var(--u)) calc(100% - 128 * var(--u)), calc(1046 * var(--u)) calc(100% - 114 * var(--u)), calc(1050 * var(--u)) calc(100% - 110 * var(--u)), calc(1060 * var(--u)) calc(100% - 110 * var(--u)), calc(1062 * var(--u)) calc(100% - 108 * var(--u)), calc(1062 * var(--u)) calc(100% - 104 * var(--u)), calc(1053 * var(--u)) calc(100% - 106 * var(--u)), calc(1050 * var(--u)) calc(100% - 105 * var(--u)), calc(1046 * var(--u)) calc(100% - 101 * var(--u)), calc(1045 * var(--u)) calc(100% - 92 * var(--u)), calc(1047 * var(--u)) calc(100% - 90 * var(--u)), calc(1047 * var(--u)) calc(100% - 87 * var(--u)), calc(1041 * var(--u)) calc(100% - 80 * var(--u)), calc(1027 * var(--u)) calc(100% - 72 * var(--u)), calc(1014 * var(--u)) calc(100% - 69 * var(--u)), calc(1004 * var(--u)) calc(100% - 70 * var(--u)), calc(992 * var(--u)) calc(100% - 75 * var(--u)), calc(988 * var(--u)) calc(100% - 80 * var(--u)), calc(986 * var(--u)) calc(100% - 87 * var(--u)), calc(987 * var(--u)) calc(100% - 88 * var(--u)), calc(998 * var(--u)) calc(100% - 88 * var(--u)), calc(1003 * var(--u)) calc(100% - 92 * var(--u)), calc(1006 * var(--u)) calc(100% - 98 * var(--u)), calc(1006 * var(--u)) calc(100% - 109 * var(--u)), calc(1003 * var(--u)) calc(100% - 116 * var(--u)), calc(998 * var(--u)) calc(100% - 121 * var(--u)), calc(989 * var(--u)) calc(100% - 125 * var(--u)), calc(976 * var(--u)) calc(100% - 125 * var(--u)), calc(967 * var(--u)) calc(100% - 122 * var(--u)), calc(953 * var(--u)) calc(100% - 110 * var(--u)), calc(948 * var(--u)) calc(100% - 98 * var(--u)), calc(947 * var(--u)) calc(100% - 91 * var(--u)), calc(948 * var(--u)) calc(100% - 78 * var(--u)), calc(948 * var(--u)) calc(100% - 80 * var(--u)), calc(943 * var(--u)) calc(100% - 84 * var(--u)), calc(934 * var(--u)) calc(100% - 83 * var(--u)), calc(930 * var(--u)) calc(100% - 80 * var(--u)), calc(924 * var(--u)) calc(100% - 69 * var(--u)), calc(912 * var(--u)) calc(100% - 71 * var(--u)), calc(878 * var(--u)) calc(100% - 71 * var(--u)), calc(877 * var(--u)) calc(100% - 72 * var(--u)), calc(871 * var(--u)) calc(100% - 71 * var(--u)), calc(650 * var(--u)) calc(100% - 72 * var(--u)), calc(645 * var(--u)) calc(100% - 77 * var(--u)), calc(645 * var(--u)) calc(100% - 89 * var(--u)), calc(638 * var(--u)) calc(100% - 97 * var(--u)), calc(620 * var(--u)) calc(100% - 98 * var(--u)), calc(615 * var(--u)) calc(100% - 96 * var(--u)), calc(609 * var(--u)) calc(100% - 91 * var(--u)), calc(602 * var(--u)) calc(100% - 92 * var(--u)), calc(592 * var(--u)) calc(100% - 92 * var(--u)), calc(591 * var(--u)) calc(100% - 91 * var(--u)), calc(584 * var(--u)) calc(100% - 96 * var(--u)), calc(575 * var(--u)) calc(100% - 99 * var(--u)), calc(568 * var(--u)) calc(100% - 99 * var(--u)), calc(561 * var(--u)) calc(100% - 96 * var(--u)), calc(555 * var(--u)) calc(100% - 89 * var(--u)), calc(555 * var(--u)) calc(100% - 76 * var(--u)), calc(552 * var(--u)) calc(100% - 73 * var(--u)), calc(542 * var(--u)) calc(100% - 71 * var(--u)), calc(539 * var(--u)) calc(100% - 72 * var(--u)), calc(294 * var(--u)) calc(100% - 71 * var(--u)), calc(289 * var(--u)) calc(100% - 79 * var(--u)), calc(284 * var(--u)) calc(100% - 84 * var(--u)), calc(281 * var(--u)) calc(100% - 85 * var(--u)), calc(275 * var(--u)) calc(100% - 92 * var(--u)), calc(266 * var(--u)) calc(100% - 96 * var(--u)), calc(250 * var(--u)) calc(100% - 99 * var(--u)), calc(256 * var(--u)) calc(100% - 113 * var(--u)), calc(256 * var(--u)) calc(100% - 119 * var(--u)), calc(258 * var(--u)) calc(100% - 125 * var(--u)), calc(258 * var(--u)) calc(100% - 139 * var(--u)), calc(257 * var(--u)) calc(100% - 140 * var(--u)), calc(252 * var(--u)) calc(100% - 140 * var(--u)), calc(244 * var(--u)) calc(100% - 136 * var(--u)), calc(231 * var(--u)) calc(100% - 135 * var(--u)), calc(216 * var(--u)) calc(100% - 129 * var(--u)), calc(213 * var(--u)) calc(100% - 136 * var(--u)), calc(205 * var(--u)) calc(100% - 142 * var(--u)), calc(194 * var(--u)) calc(100% - 145 * var(--u)), calc(189 * var(--u)) calc(100% - 145 * var(--u)), calc(178 * var(--u)) calc(100% - 141 * var(--u)), calc(174 * var(--u)) calc(100% - 148 * var(--u)), calc(162 * var(--u)) calc(100% - 159 * var(--u)), calc(151 * var(--u)) calc(100% - 161 * var(--u)), calc(142 * var(--u)) calc(100% - 158 * var(--u)), calc(135 * var(--u)) calc(100% - 153 * var(--u)), calc(133 * var(--u)) calc(100% - 153 * var(--u)), calc(126 * var(--u)) calc(100% - 146 * var(--u)), calc(123 * var(--u)) calc(100% - 141 * var(--u)), calc(122 * var(--u)) calc(100% - 136 * var(--u)), calc(117 * var(--u)) calc(100% - 137 * var(--u)), calc(107 * var(--u)) calc(100% - 158 * var(--u)), calc(105 * var(--u)) calc(100% - 167 * var(--u)), calc(105 * var(--u)) calc(100% - 175 * var(--u)), calc(108 * var(--u)) calc(100% - 182 * var(--u)), calc(120 * var(--u)) calc(100% - 180 * var(--u)), calc(125 * var(--u)) calc(100% - 182 * var(--u)), calc(130 * var(--u)) calc(100% - 187 * var(--u)), calc(131 * var(--u)) calc(100% - 202 * var(--u)), calc(125 * var(--u)) calc(100% - 211 * var(--u)), calc(116 * var(--u)) calc(100% - 215 * var(--u)), calc(102 * var(--u)) calc(100% - 216 * var(--u)), calc(95 * var(--u)) calc(100% - 214 * var(--u)), calc(88 * var(--u)) calc(100% - 210 * var(--u)), calc(83 * var(--u)) calc(100% - 213 * var(--u)), calc(80 * var(--u)) calc(100% - 213 * var(--u)), calc(80 * var(--u)) calc(100% - 230 * var(--u)), calc(76 * var(--u)) calc(100% - 243 * var(--u)), calc(71 * var(--u)) calc(100% - 253 * var(--u)), calc(72 * var(--u)) calc(100% - 261 * var(--u)), calc(76 * var(--u)) calc(100% - 268 * var(--u)), calc(79 * var(--u)) calc(100% - 270 * var(--u)), calc(79 * var(--u)) calc(320 * var(--u) + 0.98 * (100% - 592 * var(--u))), calc(77 * var(--u)) calc(320 * var(--u) + 0.96 * (100% - 592 * var(--u))), calc(65 * var(--u)) calc(320 * var(--u) + 0.98 * (100% - 592 * var(--u))), calc(54 * var(--u)) calc(100% - 268 * var(--u)), calc(46 * var(--u)) calc(100% - 259 * var(--u)), calc(44 * var(--u)) calc(100% - 261 * var(--u)), calc(36 * var(--u)) calc(320 * var(--u) + 0.87 * (100% - 592 * var(--u))), calc(34 * var(--u)) calc(320 * var(--u) + 0.75 * (100% - 592 * var(--u))), calc(32 * var(--u)) calc(320 * var(--u) + 0.57 * (100% - 592 * var(--u))), calc(33 * var(--u)) calc(320 * var(--u) + 0.26 * (100% - 592 * var(--u))), calc(36 * var(--u)) calc(320 * var(--u) + 0.14 * (100% - 592 * var(--u))), calc(36 * var(--u)) calc(320 * var(--u) + 0.07 * (100% - 592 * var(--u))), calc(41 * var(--u)) calc(309 * var(--u)), calc(49 * var(--u)) calc(291 * var(--u)), calc(59 * var(--u)) calc(274 * var(--u)), calc(74 * var(--u)) calc(259 * var(--u)), calc(84 * var(--u)) calc(254 * var(--u)), calc(90 * var(--u)) calc(255 * var(--u)), calc(90 * var(--u)) calc(257 * var(--u)), calc(95 * var(--u)) calc(262 * var(--u)), calc(107 * var(--u)) calc(262 * var(--u)), calc(116 * var(--u)) calc(255 * var(--u)), calc(118 * var(--u)) calc(251 * var(--u)), calc(118 * var(--u)) calc(238 * var(--u)), calc(116 * var(--u)) calc(234 * var(--u)), calc(111 * var(--u)) calc(229 * var(--u)), calc(105 * var(--u)) calc(226 * var(--u)), calc(102 * var(--u)) calc(222 * var(--u)), calc(110 * var(--u)) calc(211 * var(--u)), calc(117 * var(--u)) calc(197 * var(--u)), calc(119 * var(--u)) calc(189 * var(--u)), calc(125 * var(--u)) calc(188 * var(--u)), calc(127 * var(--u)) calc(186 * var(--u)), calc(136 * var(--u)) calc(188 * var(--u)), calc(145 * var(--u)) calc(187 * var(--u)), calc(151 * var(--u)) calc(185 * var(--u)), calc(158 * var(--u)) calc(179 * var(--u)), calc(161 * var(--u)) calc(172 * var(--u)), calc(161 * var(--u)) calc(166 * var(--u)), calc(160 * var(--u)) calc(162 * var(--u)), calc(155 * var(--u)) calc(157 * var(--u)), calc(153 * var(--u)) calc(157 * var(--u)), calc(153 * var(--u)) calc(154 * var(--u)), calc(163 * var(--u)) calc(147 * var(--u)), calc(163 * var(--u)) calc(141 * var(--u)), calc(169 * var(--u)) calc(135 * var(--u)), calc(181 * var(--u)) calc(129 * var(--u)), calc(198 * var(--u)) calc(125 * var(--u)), calc(211 * var(--u)) calc(125 * var(--u)), calc(224 * var(--u)) calc(129 * var(--u)), calc(235 * var(--u)) calc(138 * var(--u)), calc(235 * var(--u)) calc(139 * var(--u)), calc(231 * var(--u)) calc(139 * var(--u)), calc(227 * var(--u)) calc(141 * var(--u)), calc(223 * var(--u)) calc(147 * var(--u)), calc(223 * var(--u)) calc(155 * var(--u)), calc(225 * var(--u)) calc(160 * var(--u)), calc(234 * var(--u)) calc(167 * var(--u)), calc(247 * var(--u)) calc(168 * var(--u)), calc(258 * var(--u)) calc(163 * var(--u)), calc(263 * var(--u)) calc(158 * var(--u)), calc(267 * var(--u)) calc(147 * var(--u)), calc(267 * var(--u)) calc(141 * var(--u)), calc(270 * var(--u)) calc(140 * var(--u)), calc(272 * var(--u)) calc(141 * var(--u)), calc(280 * var(--u)) calc(140 * var(--u)), calc(283 * var(--u)) calc(141 * var(--u)), calc(364 * var(--u)) calc(141 * var(--u)), calc(365 * var(--u)) calc(140 * var(--u)), calc(366 * var(--u)) calc(141 * var(--u)), calc(382 * var(--u)) calc(141 * var(--u)), calc(383 * var(--u)) calc(140 * var(--u)), calc(444 * var(--u)) calc(141 * var(--u)), calc(454 * var(--u)) calc(138 * var(--u)), calc(458 * var(--u)) calc(135 * var(--u)), calc(469 * var(--u)) calc(131 * var(--u)), calc(495 * var(--u)) calc(117 * var(--u)), calc(512 * var(--u)) calc(111 * var(--u)), calc(529 * var(--u)) calc(107 * var(--u)), calc(544 * var(--u)) calc(107 * var(--u)), calc(549 * var(--u)) calc(109 * var(--u)), calc(554 * var(--u)) calc(113 * var(--u)), calc(555 * var(--u)) calc(123 * var(--u)), calc(559 * var(--u)) calc(127 * var(--u)), calc(564 * var(--u)) calc(129 * var(--u)), calc(579 * var(--u)) calc(128 * var(--u)), calc(593 * var(--u)) calc(117 * var(--u)), calc(606 * var(--u)) calc(117 * var(--u)), calc(607 * var(--u)) calc(116 * var(--u)), calc(620 * var(--u)) calc(127 * var(--u)), calc(626 * var(--u)) calc(129 * var(--u)), calc(637 * var(--u)) calc(129 * var(--u)), calc(646 * var(--u)) calc(123 * var(--u)), calc(648 * var(--u)) calc(111 * var(--u)));
}
@media (min-width: 768px) {
  .garden-panel::before { background: color-mix(in srgb, var(--sheet) 35%, transparent); }
}
.gift-copy { padding: 12px 14px; }
@media (min-width: 768px) { .gift-copy { padding: 14px 20px; } }
.signoff-copy { display: flow-root; }
#gifts .gcard { filter: none; }
#gifts .gcard .gframe {
  filter: drop-shadow(0 4px 5px rgba(60, 40, 20, .2)) drop-shadow(0 8px 12px rgba(60, 40, 20, .16));
}
#gifts .gcard .lead, #gifts .ideas li {
  text-shadow: none;
}
@media (max-width: 380px) {
  .gbfly-a { right: calc(59 * var(--u) - 18px); }
}
