/* Ported from the locked Lavish design (review r37) with only the picked variants kept. The root .pv-d
   still carries the picked data attributes, so every surviving rule matches exactly as it did in the review.
   The "rN" and "Round N" notes refer to that review's revisions. */

/* Self-hosted Google Fonts (SIL Open Font License), latin subset. Manrope sets the buttons, the hint and the scroll
   label, as in the design. The "Bodoni Moda" rules below belong to the unpicked Bodoni letter and are overridden;
   its font file went with the two drawings that used it (2026-11-19). */
@font-face{font-family:"Parisienne";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/parisienne.woff2) format("woff2")}
@font-face{font-family:"Lora";font-style:normal;font-weight:400 500;font-display:swap;src:url(/fonts/lora.woff2) format("woff2")}
@font-face{font-family:"Lora";font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/lora-italic.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:400 500;font-display:swap;src:url(/fonts/manrope.woff2) format("woff2")}

:root{color-scheme:light}
*,*::before,*::after{box-sizing:border-box}
/* the paper's base colour, so the strips beside a phone's notch (held sideways) blend into the sheet */
html,body{margin:0;background:#F2ECE4;color:#35262B}
body{font:16px/1.55 "Manrope",system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
:where(p,h1,h2,h3,h4,li,dd,figcaption){overflow-wrap:anywhere}
.defs{position:absolute;width:0;height:0;overflow:hidden}
/* ---------- the screen ---------- */
/* The invitation is one full screen that scrolls inside itself, the way the review's preview did, so every size in
   the design means what it meant there. svh: the height with the browser's bars showing. The side margins keep it
   clear of a notch when a phone is held sideways (viewport-fit=cover).
   --cq is 1% of this box's width. The design sized things in container units (cqi) and switched layouts with
   container queries, which iOS 15 lacks (iPhone 7, 6s and first SE are stuck there). The box is the screen less the
   notch margins, so --cq is worked out from the screen in a way every browser understands, and the switches are
   plain media queries at the same widths. Those agree with the box everywhere: the margins are only non-zero on a
   notched phone held sideways, far wider than 560px. */
.pv{--pvh:100svh;position:relative;height:var(--pvh);overflow:hidden;isolation:isolate;
  --cq:calc((100vw - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)) / 100);
  margin-inline:env(safe-area-inset-left,0px) env(safe-area-inset-right,0px)}
.pv-scroll{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}
.pv-scroll > section{position:relative}
.pv-hero{height:var(--pvh);overflow:hidden}
.lyr{position:absolute;inset:0;pointer-events:none;will-change:transform}
.rv{display:block;overflow:hidden;padding-block:.14em;margin-block:-.14em}
.rv > span{display:block;transform:translateY(112%);transition:transform 1.25s cubic-bezier(.19,1,.22,1) var(--d,0s)}
.go .rv > span{transform:none}
/* ---------- A: Blush Atelier ---------- */
.a-petals i{position:absolute;top:-30px;left:var(--x);width:var(--s,14px);height:calc(var(--s,14px)*1.25);border-radius:0 100% 0 100%;background:linear-gradient(135deg,var(--c1,#FDE8EB),var(--c2,#EFA9B7));opacity:.9;animation:a-fall var(--t,11s) linear var(--dl,0s) infinite;box-shadow:inset -1px -2px 3px rgba(180,90,110,.25)}
@keyframes a-fall{0%{transform:translate3d(0,0,0) rotate3d(1,.4,.2,0deg)}25%{transform:translate3d(22px,calc(var(--pvh)*.25),0) rotate3d(1,.4,.2,120deg)}50%{transform:translate3d(-14px,calc(var(--pvh)*.5),0) rotate3d(1,.4,.2,230deg)}75%{transform:translate3d(18px,calc(var(--pvh)*.75),0) rotate3d(1,.4,.2,320deg)}100%{transform:translate3d(-6px,calc(var(--pvh) + 60px),0) rotate3d(1,.4,.2,420deg)}}
@keyframes a-sheen{0%{background-position:130% 0}28%,100%{background-position:-30% 0}}
/* envelope */
.a-env{position:relative;width:min(340px,calc(76 * var(--cq)));aspect-ratio:1.55;border:0;padding:0;background:none;cursor:pointer;perspective:900px}
.a-env > span{position:absolute;display:block}
/* the letter needs grid to center its text; the rule above would otherwise pin it to the top edge */
.env-back{inset:0;background:#E9BBC4;border-radius:6px;box-shadow:0 34px 50px -22px rgba(158,79,99,.55);z-index:0}
.env-front{inset:0;border-radius:6px;background:linear-gradient(170deg,#F8DDE1,#F0C5CD);clip-path:polygon(0 0,50% 54%,100% 0,100% 100%,0 100%);z-index:2}
.env-front::before,.env-front::after{content:"";position:absolute;inset:0}
.env-front::before{background:rgba(158,79,99,.07);clip-path:polygon(0 0,52% 56%,0 100%)}
.env-front::after{background:rgba(158,79,99,.05);clip-path:polygon(100% 0,48% 56%,100% 100%)}
.env-flap{left:0;right:0;top:0;height:60%;background:linear-gradient(180deg,#F3CDD4,#E9B5BF);clip-path:polygon(0 0,100% 0,50% 100%);transform-origin:50% 0;z-index:3;transition:transform .7s cubic-bezier(.6,0,.3,1) .15s, z-index 0s linear .5s;filter:drop-shadow(0 2px 2px rgba(0,0,0,.08))}
.env-hint{font:500 11px/1 "Jost";letter-spacing:.32em;text-indent:.32em;text-transform:uppercase;color:#9E4F63;margin:0;transition:opacity .3s}
.open .env-flap{transform:rotateX(180deg);z-index:0}
.open .env-hint{opacity:0}
/* A next */
.rvs{opacity:0;transform:translateY(46px);transition:opacity 1s ease var(--d,0s), transform 1.3s cubic-bezier(.19,1,.22,1) var(--d,0s)}
.rvs.in{opacity:1;transform:none}
/* ---------- C: Silk & Pearl ---------- */
.c-end{background:#F4DADA;padding:70px 24px 90px;text-align:center}
.c-end p{margin:0;font:italic 400 clamp(26px,calc(4.5 * var(--cq)),40px)/1.2 "Bodoni Moda"}
.c-end small{display:block;margin-top:12px;font:600 11px/1 "Manrope";letter-spacing:.3em;text-transform:uppercase;color:var(--c-mauve)}
/* ---------- Round 2: the mix ---------- */
.pv-d{--c-ink:#3B2930;--c-mauve:#8E6470;--a-rose:#B76E79;font-family:"Manrope",sans-serif;color:var(--c-ink);background:#F8E9E6}
.d-hero{background:#F9ECE8}
/* the clean letter */
.d-card{position:relative;width:min(420px,calc(84 * var(--cq)));padding:clamp(58px,calc(10 * var(--cq)),72px) clamp(24px,calc(6 * var(--cq)),44px) clamp(28px,calc(5.5 * var(--cq)),38px);text-align:center;background:rgba(255,251,249,.8);backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%);border:1px solid rgba(255,255,255,.9);border-radius:999px 999px 22px 22px;box-shadow:0 44px 80px -36px rgba(120,60,75,.45);opacity:0;translate:0 30px;scale:.97;transition:opacity 1.1s ease,translate 1.5s cubic-bezier(.19,1,.22,1),scale 1.5s cubic-bezier(.19,1,.22,1)}
.go .d-card{opacity:1;translate:0 0;scale:1}
.d-card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.85) 48%,transparent 60%);background-size:260% 100%;background-position:130% 0;mix-blend-mode:soft-light;animation:a-sheen 8s ease-in-out 2s infinite}
.d-card p,.d-card h1{margin:0}
/* Round 4, option 1 "name-led": name and occasion form one Bodoni title; facts in two Manrope lines.
   A lower optical size keeps Bodoni's hairlines visible at display sizes. */
.d-pre span{font:400 14px/1.4 "Manrope";color:var(--c-mauve)}
.d-name{margin-top:8px !important}
.d-name span{font:italic 500 clamp(52px,calc(12 * var(--cq)),76px)/1 "Bodoni Moda";font-variation-settings:"opsz" 40;letter-spacing:-.015em;color:var(--c-ink);padding:0 .05em}
.d-bs{margin-top:2px !important}
.d-bs span{font:italic 400 clamp(25px,calc(5 * var(--cq)),30px)/1.1 "Bodoni Moda";font-variation-settings:"opsz" 28;color:#A9606C}
/* Round 5: scroll cue. Arrives after the letter settles, leaves on the first scroll. 2026-11-19: centred
   under the title with an arrow, a bigger butterfly and label, and wherever it lands the bottom of the screen
   fades into the paper behind it (.d-fade), so it never sits on top of a sentence. Centred by auto margins, not
   translate, which the arrive and leave transitions already use. */
.d-cue{position:absolute;left:0;right:0;width:max-content;bottom:clamp(14px,calc(2.2 * var(--cq)),22px);z-index:5;margin:0 auto;padding:8px 18px;border:0;background:none;cursor:pointer;opacity:0;translate:0 14px;pointer-events:none;transition:opacity .9s ease,translate 1.2s cubic-bezier(.19,1,.22,1)}
.go .d-cue{opacity:1;translate:0 0;pointer-events:auto;transition-delay:3.2s}
.cue-away .d-cue{opacity:0;translate:0 14px;pointer-events:none;transition-delay:0s}
/* the fade: the page's own paper, masked from clear to solid. Taps go through it to the letter. */
.d-fade{position:absolute;left:0;right:0;bottom:0;z-index:5;height:150px;pointer-events:none;opacity:0;
  background:var(--paper) 0 0/var(--tile) var(--tile) repeat,var(--paper-base);
  -webkit-mask-image:linear-gradient(to bottom,transparent,rgba(0,0,0,.93) 52%,#000);mask-image:linear-gradient(to bottom,transparent,rgba(0,0,0,.93) 52%,#000);
  transition:opacity .9s ease}
.go .d-fade{opacity:1;transition-delay:3.2s}
.cue-away .d-fade{opacity:0;transition-delay:0s}
/* only once the letter has moved: the first screen has nothing under the cue to hide, and on a phone held
   sideways the fade would wash out the bottom of the envelope */
.pv-d:not(.scrolled) .d-fade{opacity:0}
.d-cue:focus-visible{outline:2px solid #A9606C;outline-offset:4px;border-radius:14px}
.cue{display:none;justify-items:center;gap:10px}
.pv-d[data-cue="fly"] .cue-fly{display:grid}
/* butterfly: flies in to land after the reveal, flaps in bursts, flies off on scroll.
   Wings are HTML so they can turn in real 3D around the body. */
.cue-fly{gap:6px}
/* a quarter bigger than before. zoom, not scale, so it takes its room in the layout, as the seal does. zoom
   multiplies translate too, so the flight distances are the old ones divided by 1.25 (110,70 and 90,-170). */
.cue-fly .bf{position:relative;display:block;width:64px;height:48px;perspective:240px;zoom:1.25;translate:88px 56px;rotate:-28deg;transition:translate 2.8s cubic-bezier(.22,.8,.3,1),rotate 2.8s cubic-bezier(.22,.8,.3,1)}
.go .cue-fly .bf{translate:0 0;rotate:0deg;transition-delay:3s}
.cue-away .cue-fly .bf{translate:72px -136px;rotate:32deg;transition:translate 1.1s cubic-bezier(.55,0,.8,.4),rotate 1.1s ease-in;transition-delay:0s}
/* the arrow under "Scroll" nudges down and back */
.cue-arrow{width:26px;height:14px;margin-top:4px;overflow:visible;fill:none;stroke:#A9606C;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;animation:cue-nudge 1.8s ease-in-out infinite}
@keyframes cue-nudge{0%,100%{translate:0 0;opacity:.75}50%{translate:0 6px;opacity:1}}
.bf-tilt{position:absolute;inset:0;transform:rotateX(36deg);transform-style:preserve-3d;animation:bf-bob 3.4s ease-in-out infinite}
.bf-w{position:absolute;top:4px;width:32px;height:41px;transform-style:preserve-3d}
.bf-w svg{display:block;width:100%;height:100%;overflow:visible}
.bf-w.r{left:32px;transform-origin:0 50%;animation:bf-flap-r 2.8s ease-in-out infinite}
.bf-w.l{left:0;transform-origin:100% 50%;animation:bf-flap-l 2.8s ease-in-out infinite}
.bf-w.l svg{scale:-1 1}
.bf-bd{position:absolute;left:26px;top:8px;width:12px;height:34px;overflow:visible}
/* bursts of quick beats, then a slow open rest, like a butterfly settling */
@keyframes bf-flap-r{0%,44%,100%{transform:rotateY(0deg)}7%{transform:rotateY(-70deg)}14%{transform:rotateY(-6deg)}21%{transform:rotateY(-64deg)}28%{transform:rotateY(-4deg)}36%{transform:rotateY(-56deg)}68%{transform:rotateY(-16deg)}}
@keyframes bf-flap-l{0%,44%,100%{transform:rotateY(0deg)}7%{transform:rotateY(70deg)}14%{transform:rotateY(6deg)}21%{transform:rotateY(64deg)}28%{transform:rotateY(4deg)}36%{transform:rotateY(56deg)}68%{transform:rotateY(16deg)}}
@keyframes bf-bob{0%,100%{translate:0 0}50%{translate:0 -4px}}
/* envelope seal: a live butterfly perched on the flap tip, or a wax seal pressed with one */
.env-bf{left:50%;top:60%;width:64px;height:48px;margin:-30px 0 0 -32px;z-index:5;filter:drop-shadow(0 7px 6px rgba(120,50,70,.28))}
.env-bf .bf{position:relative;display:block;width:64px;height:48px;perspective:240px;scale:1.5}
/* perched: slow, lazy wing beats that invite a tap */
.env-bf .bf-w.r{animation:bf-rest-r 3.6s ease-in-out infinite}
.env-bf .bf-w.l{animation:bf-rest-l 3.6s ease-in-out infinite}
@keyframes bf-rest-r{0%,40%,100%{transform:rotateY(-10deg)}20%{transform:rotateY(-58deg)}60%{transform:rotateY(-22deg)}}
@keyframes bf-rest-l{0%,40%,100%{transform:rotateY(10deg)}20%{transform:rotateY(58deg)}60%{transform:rotateY(22deg)}}
/* tapped: quick wingbeats and away up and to the right, as the flap lifts */
/* one steady heading, up and gently to the right: the climb and the drift are separate eases,
   so the path curves smoothly but never reverses */
.open .env-bf{animation:env-bf-up 2.6s cubic-bezier(.45,0,.55,1) forwards}
.open .env-bf .bf{animation:env-bf-drift 2.6s cubic-bezier(.6,0,.8,.7) forwards}
.open .env-bf .bf-tilt{animation:none}
.open .env-bf .bf-w.r{animation:bf-fly-r .34s ease-in-out infinite}
.open .env-bf .bf-w.l{animation:bf-fly-l .34s ease-in-out infinite}
@keyframes env-bf-up{0%{translate:0 0;rotate:0deg;opacity:1}65%{opacity:1}100%{translate:0 -420px;rotate:14deg;opacity:0}}
@keyframes env-bf-drift{from{translate:0 0}to{translate:170px 0}}
@keyframes bf-fly-r{0%,100%{transform:rotateY(-6deg)}50%{transform:rotateY(-74deg)}}
@keyframes bf-fly-l{0%,100%{transform:rotateY(6deg)}50%{transform:rotateY(74deg)}}
/* Round 6: a slower, more deliberate reveal. Each stage lets the last one land:
   the butterfly lifts off, the flap opens, the letter rises and holds, then the scene crossfades to the card. */
.pv-d .env-flap{transition:transform 1.1s cubic-bezier(.65,0,.35,1) .45s,z-index 0s linear 1s}
.pv-d .env-hint{transition:opacity .6s ease}
.pv-d .d-card{transition:opacity 1.6s ease .2s,translate 2.4s cubic-bezier(.16,1,.3,1) .2s,scale 2.4s cubic-bezier(.16,1,.3,1) .2s}
.pv-d .d-card .rv > span{transition-duration:1.7s}
.pv-d .d-btn{transition:opacity 1.4s ease 1.9s,translate 1.8s cubic-bezier(.16,1,.3,1) 1.9s}
.pv-d .d-by{transition:opacity 1.4s ease 2.2s}
/* r21: the details come in as quickly as the first lines: each line sharpens and rises a touch over about a second,
   the next a beat behind, and the reply follows half a second in rather than two */
.pv-d .d-invite .d-card .rv > span{translate:0 10px;transition:opacity 1s ease var(--d,0s),filter 1.1s cubic-bezier(.22,1,.36,1) var(--d,0s),translate 1.2s cubic-bezier(.22,1,.36,1) var(--d,0s)}
.pv-d .d-invite .d-card.in .rv > span{translate:0 0}
.pv-d .d-invite .d-btn{transition:opacity 1s ease .45s,translate 1.2s cubic-bezier(.16,1,.3,1) .45s}
.pv-d .d-invite .d-by{transition:opacity 1s ease .6s}
.cue b{font:500 14px/1 "Manrope";letter-spacing:.08em;text-indent:.08em;color:#8E6470}
.d-btn{margin-top:26px;font:500 14px/1 "Manrope";letter-spacing:.1em;text-indent:.1em;color:#fff;padding:17px 48px;border-radius:999px;border:0;cursor:pointer;background:linear-gradient(135deg,#C4808A,#A9606C);box-shadow:0 14px 28px -12px rgba(150,70,90,.6),inset 0 1px 0 rgba(255,255,255,.3);opacity:0;translate:0 14px;transition:opacity 1s ease 1.2s,translate 1.2s cubic-bezier(.19,1,.22,1) 1.2s,transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s}
/* r32: the lift only where there is a real hover; on a phone a tapped button would otherwise stay lifted */
@media (hover:hover){.d-btn:hover{transform:translateY(-2px);box-shadow:0 20px 34px -12px rgba(150,70,90,.7),inset 0 1px 0 rgba(255,255,255,.3)}
}
.d-by{margin-top:12px !important;font:400 13px/1.4 "Manrope";color:var(--c-mauve);opacity:0;transition:opacity 1s ease 1.4s}
.go .d-btn{opacity:1;translate:0 0}
.go .d-by{opacity:1}
/* envelope, recoloured into C's palette */
.pv-d .env-back{background:#ECC6CC}
.pv-d .env-front{background:linear-gradient(170deg,#FBE7E8,#F2CCD2)}
.pv-d .env-flap{background:linear-gradient(180deg,#F7DADD,#EBBDC5)}
.pv-d .env-hint{font:400 clamp(16px,calc(4.2 * var(--cq)),18px)/1 "Manrope";letter-spacing:.01em;text-indent:0;text-transform:none;color:#8E6470}
.pv-d .c-end{padding:0 24px var(--s-sec)}
/* r18/r19: the family photo, above "With love", locked as a print: white-bordered, tilted a little and held by a strip
   of blush tape, like the strip and the scan in the envelope. Its borders are sized from the print's own width. */
.pv-d .fam{--fw:clamp(220px,calc(48 * var(--cq)),300px);position:relative;width:var(--fw);margin:0 auto var(--s-head);
  padding:calc(var(--fw)*.045) calc(var(--fw)*.045) calc(var(--fw)*.17);background:#FEFDFB;rotate:-2.5deg;
  box-shadow:0 0 0 .5px rgba(80,70,60,.14),0 2px 3px rgba(80,60,60,.14),0 22px 30px -16px rgba(90,40,55,.42)}
.fam-photo{display:block;width:100%;height:auto;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.2)}
/* The dog, cut out, stepping off the print's bottom-right corner. Turned against the print's tilt so she stands
   level, and sized from the print's width like its borders. */
.pv-d .fam-dog{position:absolute;z-index:2;right:calc(var(--fw)*-.12);bottom:calc(var(--fw)*-.04);width:calc(var(--fw)*.4);
  height:auto;rotate:2.5deg;filter:drop-shadow(0 6px 5px rgba(90,40,55,.3));pointer-events:none}
.fam-tape{position:absolute;z-index:1;left:50%;top:-13px;width:36%;height:26px;translate:-50% 0;rotate:4deg;
  background:repeating-linear-gradient(-45deg,rgba(238,170,188,.72) 0 5px,rgba(255,247,249,.72) 5px 10px);box-shadow:0 1px 2px rgba(110,50,60,.12);
  clip-path:polygon(0 8%,3% 0,6% 9%,9% 0,12% 8%,100% 0,100% 92%,97% 100%,94% 91%,91% 100%,88% 92%,0 100%)}
/* sign-off: a quiet lead-in, then the family in Bodoni */
.pv-d .d-love{font:400 15px/1.4 "Manrope";letter-spacing:.01em;color:var(--c-mauve)}
/* r16: what to expect, as part of the letter. Centred like the rest of it, in its two faces, with room around each
   thing; each illustration pops in above its lines as it scrolls into view, with a soft blush glow under it. */
.d-expect{padding:0 24px var(--s-sec);text-align:center}
.x-head{margin:0 0 var(--s-head);font:italic 400 clamp(36px,calc(7.4 * var(--cq)),54px)/1.05 "Bodoni Moda";font-variation-settings:"opsz" 40;color:var(--c-ink)}
.x-item{display:flex;flex-direction:column;align-items:center;max-width:30em;margin:0 auto}
.x-item + .x-item{margin-top:var(--s-blk)}
/* the gift note closes the section like an aside in the letter */
.x-gift{max-width:24em;margin:var(--s-blk) auto 0;text-wrap:balance;font:italic 400 clamp(20px,calc(4.4 * var(--cq)),24px)/1.55 "Bodoni Moda";font-variation-settings:"opsz" 24;color:var(--c-ink)}
.x-title{margin:clamp(20px,calc(3.8 * var(--cq)),28px) 0 0;font:italic 500 clamp(26px,calc(5.4 * var(--cq)),32px)/1.2 "Bodoni Moda";font-variation-settings:"opsz" 28;color:var(--c-ink)}
.x-text{margin:8px 0 0;text-wrap:balance;font:400 clamp(16px,calc(3.4 * var(--cq)),18px)/1.55 "Manrope";color:var(--c-mauve)}
.pv-d .d-sign{margin-top:10px;text-wrap:balance;font:italic 400 clamp(28px,calc(5 * var(--cq)),40px)/1.2 "Bodoni Moda";font-variation-settings:"opsz" 32;color:var(--c-ink)}
/* ---------- Round 7: paper. The whole page is one sheet, and the letter from the envelope grows into it ----------
   --paper is a seamless tile drawn in JS. It holds only light and shade, so the same tile textures
   every surface over that surface's own color: the sheet, the backdrop, the letter, the envelope. */
.pv-d{--tile:560px;--paper:none;--paper-base:#F2ECE4;--paper-back:#F1EEEA;
  --paper-light:radial-gradient(110% 80% at 15% 0%,rgba(255,255,255,.5),rgba(255,255,255,0) 60%),radial-gradient(150% 120% at 50% 40%,rgba(80,70,60,0) 55%,rgba(80,70,60,.06) 100%)}
/* Round 14: every page paper is a warm ivory a few shades off white, so the pink envelope and the white keepsakes stand out */
.pv-d .pv-scroll{background:var(--paper) 0 0/var(--tile) var(--tile) repeat local,var(--paper-base);scrollbar-color:rgba(90,80,70,.28) transparent}
.pv-d .d-hero,.pv-d .c-end{background:none}
/* soft light falling across the sheet */
.d-light{position:absolute;inset:0;pointer-events:none;background:var(--paper-light)}
/* the writing is printed on the sheet: it no longer tilts or drifts on its own, and it inks in instead of sliding up */
.pv-d .d-card{background:none;-webkit-backdrop-filter:none;backdrop-filter:none;border:0;border-radius:0;box-shadow:none;opacity:1;translate:none;scale:none}
.pv-d .d-card::after{display:none}
.pv-d .d-card .rv{overflow:visible}
.pv-d .d-card .rv > span{transform:none;opacity:0;filter:blur(6px);text-shadow:0 1px 0 rgba(255,255,255,.55);transition:opacity 1.8s ease var(--d,0s),filter 2.2s cubic-bezier(.22,1,.36,1) var(--d,0s)}
/* activity cards: plain white cards resting on the paper */
/* envelope and backdrop in the same paper */
.pv-d .env-back{background:var(--card-paper,none) 0 0/var(--tile) var(--tile),#E7B8C0;box-shadow:inset 0 1.5px 0 rgba(255,255,255,.45),0 0 0 .5px rgba(110,50,60,.18),0 1px 2px rgba(110,50,60,.14),0 18px 30px -18px rgba(110,50,60,.4)}
/* clip-path cuts off drop shadows, so the folds read through slightly stronger facet tints instead */
.pv-d .env-front::before{background:rgba(158,79,99,.1)}
.pv-d .env-front::after{background:rgba(158,79,99,.075)}
.pv-d .env-front{background:linear-gradient(170deg,#FAE4E6,#F0C8CE)}
.pv-d .env-flap{background:linear-gradient(180deg,#F6D7DB,#E9B9C1)}
/* ---------- Round 8: the open envelope. No more growing letter: the envelope stays as the opening scene ----------
   --ew is the envelope's width; everything in the scene is sized from it so the composition holds at any width. */
.pv-d{--ew0:round(min(calc(90 * var(--cq)),480px,var(--pvh)*.6),2px);--ew:var(--ew0);--liner-img:none;--liner-bg:#FFFCF7}
/* nothing to scroll to until the envelope is open */
.pv-d:not(.go) .pv-scroll{overflow-y:hidden}
/* Round 28: the first screen holds the scene and, under it, the start of the letter. The two are centred together;
   --head is the height kept for the letter's first lines and --gap the space above them. r33: --head grows with the
   width, to fit the name large with the title's second line under it (tallest in Ink and page: 147px on a phone, 200 wide). */
.pv-d .d-hero{--gap:28px;--head:clamp(150px,calc(18.4 * var(--cq)),202px);display:flex;flex-direction:column;align-items:center;justify-content:center}
/* the stage reserves headroom above the envelope for what rises out of it. While closed it sits a little high,
   so the envelope itself is centred; as it opens the whole scene settles down into frame. */
/* while closed, the stage shifts so the envelope itself sits in the middle of the screen; open, it rises to make room
   for the letter's first lines underneath */
.d-stage{position:relative;z-index:3;flex:none;width:var(--ew);height:round(calc(var(--ew)*1.067),2px);translate:0 round(calc((var(--gap) + var(--head))/2 - var(--ew)*.2),1px);transition:translate 2.4s cubic-bezier(.65,0,.35,1) .6s}
.d-stage.open{translate:0 0}
/* r10: as it opens, the camera pulls back a little and pans. The open layout is the final picture at real size: the
   scene at --zo of the envelope width (.875 keeps it on whole pixels at the usual widths), the column re-centred around
   it, and a little more space above the letter's first lines. The flowers keep their full-size box and are scaled to
   match, so the switch doesn't re-lay out thousands of shapes.
   r11: the move into it is a FLIP (see the open handler). The scene and the lines jump to the open layout, start
   transformed back to where they were, and ease to no transform at all. Only transform animates, so the compositor
   runs it at full frame rate whatever else the page is doing, and it ends unscaled, drawn sharp. */
.pv-d{--zo:.875;--zf:1}
.pv-d .d-stage{--ew:calc(var(--ew0)*var(--zf));height:round(calc(var(--ew)*1.067),1px)}
.pv-d .d-stage.open{--zf:var(--zo)}
.pv-d .d-stage.open ~ .d-head{margin-top:calc(var(--gap) + 12px)}
.pv-d .d-stage,.pv-d .d-head{transition:transform 2.4s cubic-bezier(.65,0,.35,1) .6s}
/* the scene's variables are inherited; resetting them under each flower layer keeps a change from restyling every one
   of the thousands of shapes inside */
.d-garden > *{--ew0:initial;--ew:initial;--zf:initial;--zo:initial;--cq:initial}
/* while the scene moves and the flowers grow, each flower layer is its own composited layer; once they have settled
   it goes back to a plain layer, redrawn sharp at its final size */
.pv-d .d-garden{will-change:transform}
.pv-d .d-garden.settled{will-change:auto}
@media (max-width:560px){
.pv-d .pv-scroll{--ew0:round(min(calc(86 * var(--cq)),480px,var(--pvh)*.6),2px);--ew:var(--ew0)}
}
.pv-d .a-env{position:absolute;left:0;bottom:0;width:100%;aspect-ratio:1.5;perspective:none}
.pv-d .open .a-env{cursor:default}
.pv-d .env-hint{position:absolute;left:0;right:0;top:calc(100% + 24px);text-align:center}
/* r31: the password gate, under the envelope where the hint was. "under" asks straight away; "bf" keeps the hint and
   asks once the butterfly is tapped. The right password fades it out and the envelope opens by itself. */
.d-gate{position:absolute;left:0;right:0;top:calc(100% + 18px);z-index:6;display:flex;flex-direction:column;align-items:center;margin:0;
  transition:opacity .45s ease,translate .45s ease,visibility 0s linear 0s}
.pv-d[data-gate="off"] .d-gate{display:none}
.pv-d[data-gate="under"] .env-hint{display:none}
.pv-d.unlocked .d-gate{opacity:0;translate:0 10px;visibility:hidden;pointer-events:none;
  transition:opacity .45s ease,translate .45s ease,visibility 0s linear .45s}
.pv-d .gt-label{margin:0;text-align:center;text-wrap:balance;font:400 var(--t-meta)/1.4 var(--f-cap);color:var(--c-mauve)}
.pv-d .d-gate .gt-pw{width:min(240px,calc(66 * var(--cq)));margin-top:2px}
.pv-d .d-stage .d-gate .d-btn{margin-top:18px;padding:15px 46px;font-size:14px;opacity:1;translate:0 0;transition:transform .2s ease,box-shadow .2s ease}
.d-gate.wrong .gt-label{display:none}
/* the review chip would sit on the Open button on a phone; it waits until the password is in */
.pv-d .gt-msg{order:-1;margin:0;max-width:19em;text-align:center;text-wrap:balance;font:400 var(--t-meta)/1.45 var(--f-cap);color:var(--c-mauve)}
.pv-d .gt-msg:empty{display:none}
.d-gate.nope .gt-pw{animation:gt-nope .42s cubic-bezier(.36,.07,.19,.97)}
@keyframes gt-nope{20%{translate:-7px 0}40%{translate:6px 0}60%{translate:-4px 0}80%{translate:2px 0}}
/* r34: while the password shows under the envelope, the envelope and the password are centred together, not the
   envelope alone (with the password under it, the pair sat low). --gh is the password block's height with its gap.
   The jump back on opening is absorbed by the FLIP; "Butterfly first" eases up when the password appears. */
.pv-d{--gh:156px}
.pv-d:not(.land)[data-gate="under"] .d-stage:not(.open){translate:0 round(calc((var(--gap) + var(--head))/2 - var(--ew)*.2 - var(--gh)/2),1px)}
/* ---------- r32: phones ---------- */
/* phones don't enlarge the text on their own when turned sideways; no grey flash on tap; a press you can feel;
   fields at least 48px tall so they're easy to hit with a thumb */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.pv-d :is(.a-env,.d-btn,.d-cue,.rs-name){-webkit-tap-highlight-color:transparent}
.pv-d .d-btn:active{scale:.97}
.pv-d .rs-name{min-height:48px}
/* clear of the home bar and the rounded corners on phones that have them */
@media (max-width:560px){
/* on phones the cue sits a little higher, so the fade is a little taller */
.pv-d .d-cue{bottom:calc(22px + env(safe-area-inset-bottom,0px))}
.pv-d .d-fade{height:calc(170px + env(safe-area-inset-bottom,0px))}
}
/* Phone flowers, Fit the screen: on a phone the scene pulls back to .625 as it opens, so the flower box fits */
@media (max-width:560px){
.pv-d[data-fit="fit"] .pv-scroll{--zo:.625}
}
/* a phone held sideways is too short for the envelope with the letter under it, so they sit side by side: the
   envelope on the left, the password (level with the envelope's middle) and then the letter's first lines on the
   right. The script sets .land from a media query: landscape and at most 500px tall. */
.pv-d.land .d-hero{--gap:0px;--head:0px;--lgap:clamp(56px,calc(10 * var(--cq)),96px);flex-direction:row;column-gap:var(--lgap)}
.pv-d.land .pv-scroll{--ew0:round(min(calc(40 * var(--cq)),var(--pvh)*.74,480px),2px);--ew:var(--ew0)}
.pv-d.land .d-head,.pv-d.land .d-stage.open ~ .d-head{width:min(calc(44 * var(--cq)),330px);height:auto;margin-top:0}
.pv-d.land .d-hero .d-head .d-name > span{font-size:calc(clamp(34px,calc(7 * var(--cq)),52px)*var(--ds,1))}
.pv-d.land .d-hero .d-head .d-name .d-bs{font-size:calc(clamp(24px,calc(4.6 * var(--cq)),32px)*var(--cs,1))}
.pv-d.land .d-head .d-name .d-bs{white-space:nowrap}
/* sideways the screen is short and the cue lands between the envelope and the title: the butterfly keeps its
   old size there, so it clears the flowers */
.pv-d.land .cue-fly .bf{zoom:1}
.pv-d.land :is(.d-gate,.env-hint){left:calc(100% + var(--lgap));right:auto;top:calc(100% - var(--ew)/3);width:min(calc(44 * var(--cq)),330px);translate:0 -50%}
.pv-d.land.unlocked .d-gate{translate:0 calc(-50% + 10px)}
/* the lining: one sheet of butterfly wallpaper glued inside the back and up into the flap. The pocket's tiles start at
   the fold and the flap's tiles end at it, so the pattern runs on unbroken across the fold. */
.pv-d .env-back::before{content:"";position:absolute;inset:0;border-radius:inherit;clip-path:inset(0 3.5% 5% 3.5%);
  background:linear-gradient(180deg,rgba(255,255,255,.45) 0 1.5px,rgba(255,255,255,0) 1.5px),linear-gradient(180deg,rgba(110,50,60,0) 20%,rgba(110,50,60,.14)),var(--liner-img) 50% 0/calc(var(--ew)*.21) calc(var(--ew)*.21) repeat var(--liner-bg)}
/* the flap has two faces: pink outside, lined inside. It folds over by flipping upside down about its top edge,
   and the faces swap at the moment it passes edge-on. Plain 2D transforms only: a 3D flap is drawn as a separate
   layer that the browser renders soft, which blurred the whole envelope. */
.pv-d .env-flap{background:none;clip-path:none;filter:none}
.pv-d .env-flap > i{position:absolute;inset:0}
.pv-d .open .env-flap{transform:scaleY(-1)}
/* the closed flap's top corners follow the envelope's rounded corners; the clip reaches below so its shadow still falls on the front */
.pv-d .flap-out{clip-path:inset(0 0 -24px 0 round 3px 3px 0 0)}
.pv-d .open .flap-out{opacity:0;transition:opacity 0s linear 1s}
.pv-d .open .flap-in{opacity:1;transition:opacity 0s linear 1s}
/* turned upside down inside the flap, so once the flap flips over it reads the right way up */
.pv-d .flap-in{transform:scaleY(-1);opacity:0}
/* Round 11: a standard envelope. Shapes, seams and cut edges are drawn in the SVGs, with a slight card grain
   (--card-paper, a gentler paper tile). Four flap designs; only the chosen one is drawn.
   The front clips to the envelope's rounded corners,
   and its folded outer edges get a hairline of light on the left and a touch of shade on the right and bottom. */
.pv-d .env-art{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible}
.pv-d .env-back,.pv-d .env-front{border-radius:3px}
.pv-d .env-front{background:none;clip-path:none;overflow:hidden}
.pv-d .env-front::before{content:none}
.pv-d .env-front::after{content:"";background:none;clip-path:none;border-radius:inherit;pointer-events:none;
  box-shadow:inset 1px 0 0 rgba(255,255,255,.5),inset -1px 0 0 rgba(120,50,62,.1),inset 0 -1px 0 rgba(120,50,62,.12)}
.pv-d .env-art [class^="v-"]{display:none}
.pv-d[data-env="pointed"] .env-art .v-pointed{display:inline}
/* the seal sits on each flap's tip or edge */
.pv-d[data-env="pointed"] :is(.env-seal,.env-bf){top:58%}
/* what rises out. The pocket clips them at its bottom edge, so they can start deep inside without poking out below. */
.pv-d .env-items{inset:0;z-index:1;clip-path:inset(-160% -60% 1.5% -60%);text-transform:none;letter-spacing:normal}
/* the live butterfly, scaled up to suit the bigger envelope */
.pv-d .env-bf .bf{scale:none;zoom:1.8;margin:-10.67px 0 0 -14.22px}
.pv-d .open .env-bf .bf{animation-name:env-bf-drift-z}
@keyframes env-bf-drift-z{from{translate:0 0}to{translate:94px 0}}
.pv-d .ks{position:absolute;display:block;transform-origin:50% 100%;transform:translateY(var(--rise)) rotate(calc(var(--r)*.2));
  transition:transform 2.1s cubic-bezier(.22,1,.36,1) var(--rd)}
.pv-d .open .ks{transform:translateY(0) rotate(var(--r))}
.pv-d .ks svg{display:block;width:100%;height:auto;overflow:visible}
.pv-d .ks-strip{--r:5deg;--rd:1.3s;--rise:calc(var(--ew)*.66);left:59%;top:calc(var(--ew)*-.38);width:calc(var(--ew)*.29);
  background:#FEFDFB;
  box-shadow:0 0 0 .5px rgba(80,70,60,.14),0 2px 3px rgba(80,60,60,.14),0 18px 26px -14px rgba(90,40,55,.42);
  translate:calc(var(--px,0)*-3px) calc(var(--py,0)*-2px)}
.pv-d .ks-heart{--r:-12deg;--rd:1.42s;--rise:calc(var(--ew)*.3);left:11%;top:calc(var(--ew)*-.22);width:calc(var(--ew)*.5);
  filter:drop-shadow(0 2px 2px rgba(90,30,45,.22)) drop-shadow(0 16px 18px rgba(110,40,60,.3));
  translate:calc(var(--px,0)*6px) calc(var(--py,0)*4px)}
/* The keepsake is the photo in a card mount. It comes out with the strip, a beat behind it, and stays tucked
   into the pocket: its bottom edge sits below the mouth, behind the strip, so it never floats over the lining. It starts
   deep enough that none of it shows until it rises. */
.pv-d .ks-heart{--r:3deg;--rise:calc(var(--ew)*.52);left:14%;top:calc(var(--ew)*-.17);width:calc(var(--ew)*.5)}
/* The scan stands in front, a little left of centre, its bottom tucked into the pocket; the strip peeks up behind it
   on the right (locked r8). r10: both 10% larger. The scan grew about its bottom edge, so it tucks in the same way; the
   strip grew about its top, so the scene is no taller. */
.pv-d[data-scan="front"] .ks-heart{--r:-2deg;--rise:calc(var(--ew)*.56);left:19%;top:calc(var(--ew)*-.167);width:calc(var(--ew)*.55);z-index:1}
.pv-d[data-scan="front"] .ks-strip{--r:7deg;--rise:calc(var(--ew)*.78);left:56%;top:calc(var(--ew)*-.42);width:calc(var(--ew)*.32)}
/* Grounded (locked r9): soft shadows like the photos', so the flowers sit on the paper instead of over it. */
.pv-d[data-bloom="grounded"] .d-garden{filter:drop-shadow(0 1.5px 1.2px rgba(90,40,50,.22)) drop-shadow(0 7px 9px rgba(110,50,60,.16))}
/* the real strip brings its own paper border, so it fills the strip edge to edge */
.pv-d .ks-photo{display:block;width:100%;height:auto}
/* The scan lies under the card mount and shows through its window (36,36, 288 by 206, in the card's 360 by 340),
   reaching one unit under the card on every side so no sliver of the page shows at the edge. The card is drawn
   over it. */
.pv-d .ks-scan{position:absolute;left:9.7222%;top:10.2941%;width:80.5556%;height:61.1765%;object-fit:cover;background:#0A0A0A}
.pv-d .ks-heart svg{position:relative}
/* Round 29: flowers out of the envelope. Both layers sit inside it with the keepsakes (the bunches behind them, a few
   flowers in front), so the pocket hides the stems and clips them at its bottom edge, and a third layer fans out from
   behind the envelope. One box, 1000 units to an envelope width, lined up with the stage. Each plant rises out of the
   pocket from nearly upright and leans out to its place, turning about the point where its bunch is gathered, and its
   flowers open as they come out. Once the last one has opened the garden is "settled": its animations are dropped and
   it stays a still picture. Nothing in it moves forever, because every moving part makes the browser redraw the
   whole garden on every frame. */
.pv-d .d-garden{position:absolute;left:calc(var(--ew)*-.45);top:calc(var(--ew)*-.4);width:calc(var(--ew0)*1.9);height:calc(var(--ew0)*1.1);transform-origin:0 0;scale:var(--zf);overflow:visible;pointer-events:none}
.pv-d .d-stage > .d-garden{top:0;z-index:0}
.pv-d .d-stage > .d-garden.g-front{z-index:2}
.pv-d .a-env{z-index:1}
.d-garden *{transform-box:view-box;transform-origin:0 0}
.d-garden .gs{fill:none;stroke:#9DAD8C;stroke-linecap:round}
.d-garden .gr,.d-garden .fh{opacity:0}
.deco-in .gr{animation:g-out 2.1s cubic-bezier(.3,1.1,.45,1) var(--od,0s) both}
.deco-in .fh{animation:g-bloom 2s cubic-bezier(.3,1.3,.6,1) var(--dl,0s) both}
.d-garden.settled .gr,.d-garden.settled .fh{animation:none;opacity:1}
@keyframes g-out{from{opacity:0;translate:0 var(--oy,200px);rotate:var(--or,0deg)}18%{opacity:1}to{opacity:1;translate:0 0;rotate:0deg}}
/* a flower opens with a little twist, like petals unfurling */
@keyframes g-bloom{from{opacity:0;scale:.1;rotate:-30deg}35%{opacity:1}to{opacity:1;scale:1;rotate:0deg}}
/* petals start once the scene has settled */
.pv-d .d-petals{transition:opacity 2s ease}
.pv-d:not(.go) .d-petals{opacity:0}
/* the cue arrives sooner now, since there is no long letter reveal before it. r36: sooner again: it fades
   in as scrolling opens and flies straight in, landing about 2s sooner than before */
.pv-d.go:not(.cue-away) :is(.d-cue,.d-fade){transition-delay:.2s}
.pv-d.go:not(.cue-away) .cue-fly .bf{transition-delay:0s;transition-duration:2s}
/* r15: after a pause further down, it comes straight back from where it flew off, a little quicker than its first landing */
.pv-d.go.cue-back:not(.cue-away) :is(.d-cue,.d-fade){transition-delay:.1s}
.pv-d.go.cue-back:not(.cue-away) .cue-fly .bf{transition-duration:1.4s;transition-delay:0s}
/* the invitation, printed on the sheet below the envelope. It inks in when it scrolls into view, not on open. */
.d-invite{display:grid;place-items:center;min-height:calc(var(--pvh)*.92);padding:56px 0}
/* Round 28: the letter's first lines sit under the envelope on the first screen and ink in as it finishes opening.
   The rest of the letter carries straight on below, printed on the same sheet. */
.pv-d .d-head{flex:none;width:auto;height:var(--head);margin-top:var(--gap);padding:0;display:flex;flex-direction:column;align-items:center}
.pv-d .d-card.d-head .rv > span{opacity:0;filter:blur(6px)}
/* r29: the name and the second line share one line, the second in rose; it scales to stay on one line on phones */
.pv-d .d-head .d-name > span{font-size:clamp(46px,calc(11 * var(--cq)),72px);white-space:nowrap}
/* r33: the name large in the script, the second line on its own line underneath in the pairing's text face (Bodoni
   upright for the Bodoni pairing). Still one h1, so it reads as one title. */
.pv-d .d-hero .d-head .d-name .d-bs{display:block;padding:.1em 0 0;font:400 calc(clamp(26px,calc(6.4 * var(--cq)),38px)*var(--cs,1))/1.15 var(--f-cap);
  font-style:normal;font-variation-settings:normal;letter-spacing:.01em;color:#A9606C}
/* r20: the first lines come in with the envelope, not after it: from just as the flap is opening, quicker, each
   rising a touch as it sharpens, while the scene glides into place */
.pv-d .d-card.d-head .rv > span{translate:0 10px;transition:opacity 1s ease var(--d,0s),filter 1.1s cubic-bezier(.22,1,.36,1) var(--d,0s),translate 1.2s cubic-bezier(.22,1,.36,1) var(--d,0s)}
.pv-d.lines .d-card.d-head .rv > span{opacity:.95;filter:blur(0);translate:0 0}
/* r17: the letter's spacing scale */
.pv-d{--s-sec:clamp(88px,calc(12 * var(--cq)),120px);--s-blk:clamp(44px,calc(6.5 * var(--cq)),60px);--s-head:clamp(28px,calc(4.5 * var(--cq)),40px)}
.pv-d .d-invite{min-height:0;padding:0 0 var(--s-sec)}
.pv-d .d-invite .d-card{padding-top:12px;padding-bottom:0}
/* r13: the details as a letter. One block per style; the Details switcher shows one. All in the letter's own two
   faces, Bodoni Moda and Manrope, centred, much larger than before. */
/* r22: the image above the date, a polaroid print. 2026-11-19: a real photo now, where the posy drawing was. */
/* the same margin below balances the space the first screen leaves above */
.pv-d .vg{margin:8px auto 45px}
/* r23: every image is a polaroid print like the family photo: a white border, deeper at the bottom, a soft blush
   backdrop behind the drawing, each tilted its own way. What holds it on varies from print to print, in two sets
   (r24: striped tape over both top corners on every one). All sizes come from the print's width, --pw. */
.pol{--pw:clamp(168px,calc(32 * var(--cq)),212px);position:relative;display:block;width:var(--pw);margin:0 auto;
  padding:calc(var(--pw)*.065) calc(var(--pw)*.065) calc(var(--pw)*.2);background:#FEFDFB;rotate:var(--tilt,-2deg);
  box-shadow:0 0 0 .5px rgba(80,70,60,.14),0 2px 3px rgba(80,60,60,.14),0 22px 30px -16px rgba(90,40,55,.42)}
/* 2026-11-19: bigger now it's a photo, about the width of the text under it. The svh cap keeps it on screen with
   the phone sideways. */
.pv-d .vg.pol{--pw:clamp(200px,min(calc(56 * var(--cq)),60svh),250px)}
.pol-win{display:grid;place-items:center;aspect-ratio:1;overflow:hidden;
  background:radial-gradient(120% 100% at 50% 32%,#FFFAF8 0%,#F8E9E8 55%,#EFD8DB 100%);
  box-shadow:inset 0 0 0 .5px rgba(80,40,50,.14),inset 0 10px 18px -12px rgba(90,40,55,.22)}
/* each print holds a real photo, edge to edge in its window */
.pol-win > .pol-photo{display:block;width:100%;height:100%;object-fit:cover}
.att{position:absolute;inset:0;z-index:2;pointer-events:none;filter:drop-shadow(0 1px 1.5px rgba(110,50,60,.2))}
/* r24 (locked): striped blush washi tape over both top corners, the same on every print. Torn ends. */
.att i{position:absolute;display:block;top:calc(var(--pw)*.02);width:36%;height:calc(var(--pw)*.12);opacity:.95;
  background:repeating-linear-gradient(-45deg,rgba(238,170,188,.72) 0 5px,rgba(255,247,249,.72) 5px 10px);
  clip-path:polygon(0 8%,3% 0,6% 9%,9% 0,12% 8%,100% 0,100% 92%,97% 100%,94% 91%,91% 100%,88% 92%,0 100%)}
.att i:first-child{left:calc(var(--pw)*-.09);rotate:-42deg}
.att i:last-child{right:calc(var(--pw)*-.09);rotate:42deg}
/* r25: the three in What to expect have one strip, centred across the top */
.att.att-c i{left:50%;right:auto;top:calc(var(--pw)*-.06);width:42%;translate:-50% 0;rotate:3deg}
/* r26: the RSVP. One line to write your name on, the RSVP button under it, and a thank-you in its place once sent. */
.d-rsvp{display:flex;flex-direction:column;align-items:center;margin-top:30px}
.rs-name{width:min(300px,calc(80 * var(--cq)));padding:10px 4px 9px;border:0;border-bottom:1px solid rgba(183,110,121,.55);border-radius:0;background:none;
  text-align:center;font:400 17px/1.3 var(--f-body,"Manrope");color:var(--c-ink);outline:none;transition:border-color .2s}
.rs-name::placeholder{color:rgba(142,100,112,.62)}
.rs-name:focus{border-bottom-color:#A9606C}
.rs-hp{position:absolute;left:-9999px;opacity:0;pointer-events:none}
.pv-d .d-rsvp .d-btn{margin-top:22px}
.rs-msg{margin:12px 0 0;min-height:1.4em;font:400 14px/1.5 "Manrope";color:var(--c-mauve)}
.rs-msg:empty{display:none}
.d-rsvp.sent .rs-name,.d-rsvp.sent .d-btn{display:none}
/* 2026-11-19: a sent RSVP slides across (the steps are in showThanks in app.js). Out to the left, accelerating;
   the thank-you in from the right, settling; the block's height eases on the letter's own curve. The leaving rule
   outranks the card's slow ink-in transitions on the field and button. */
.pv-d .d-invite .d-rsvp.leaving :is(.rs-name,.d-btn){opacity:0;translate:-48px 0;pointer-events:none;transition:opacity .4s ease,translate .45s cubic-bezier(.55,0,.8,.4)}
.d-rsvp.sent .rs-msg{opacity:0;translate:48px 0;transition:opacity .8s ease,translate 1s cubic-bezier(.22,1,.36,1)}
.d-rsvp.thanked .rs-msg{opacity:1;translate:0 0}
.d-rsvp.sizing{transition:height .8s cubic-bezier(.22,1,.36,1)}
.d-rsvp.sent .rs-msg{margin:0;max-width:20em;text-wrap:balance;font:italic 400 clamp(20px,calc(4.4 * var(--cq)),24px)/1.5 "Bodoni Moda";color:var(--c-ink)}
.pv-d .d-invite .rs-name{transition:opacity 1s ease .4s,border-color .2s}
.pv-d .d-card:not(.in) .rs-name{opacity:0}
/* r26: lettering. Each pairing is a script for the big lines and a sans for the small ones (r27: in normal case,
   no spaced capitals). --ds sizes each script so it reads as large as the Bodoni it replaces. Body copy stays plain. */
.pv-d{--f-scr:"Bodoni Moda";--ds:1;--f-cap:"Manrope"}
/* r30: handwritten scripts with modern, bookish serifs. --it sets the time and the reply date in the serif's italic. */
.pv-d[data-letter="soft"]{--f-scr:"Parisienne";--ds:1.1;--f-cap:"Lora";--it:italic}
/* r28: readable type. The script only decorates: the name, the What to expect heading and "With love". Everything a
   guest has to read is in the pairing's text face, on one scale (--t-*), never below 15px, in a mauve dark enough
   to read on the paper (about 6:1). --cs evens out text faces with small letters. */
.pv-d{--c-mauve:#6E5059;--cs:1;--t-meta:calc(clamp(15px,calc(3.2 * var(--cq)),16px)*var(--cs));--t-body:calc(clamp(17px,calc(3.6 * var(--cq)),18px)*var(--cs));
  --t-lead:calc(clamp(19px,calc(4 * var(--cq)),21px)*var(--cs));--t-key:calc(clamp(24px,calc(5.2 * var(--cq)),30px)*var(--cs))}
.pv-d:not([data-letter="bodoni"]) .d-head .d-name span,.pv-d:not([data-letter="bodoni"]) .x-head,.pv-d:not([data-letter="bodoni"]) .d-love{font-family:var(--f-scr);font-style:normal;font-weight:400;font-variation-settings:normal;letter-spacing:0;text-indent:0;text-transform:none}
.pv-d:not([data-letter="bodoni"]) .d-head .d-name > span{font-size:calc(clamp(40px,calc(10 * var(--cq)),62px)*var(--ds));line-height:1}
.pv-d:not([data-letter="bodoni"]) .x-head{font-size:calc(clamp(36px,calc(7.4 * var(--cq)),54px)*var(--ds))}
.pv-d:not([data-letter="bodoni"]) .d-love{font-size:calc(clamp(28px,calc(5.6 * var(--cq)),36px)*var(--ds));line-height:1.1;color:#A9606C}
.pv-d:not([data-letter="bodoni"]) :is(.d-pre,.d-bs,.w-date,.w-time,.w-place,.l-date,.l-time,.l-place,.c-line,.c-addr,.n-body,.d-when,.d-where) span,.pv-d:not([data-letter="bodoni"]) :is(.x-title,.x-text,.x-gift,.d-sign,.d-by,.rs-msg,.rs-name){font-family:var(--f-cap);font-style:normal;font-variation-settings:normal;letter-spacing:.005em;text-indent:0;text-transform:none}
.pv-d:not([data-letter="bodoni"]) .d-pre span{font-size:var(--t-body);font-weight:400;color:var(--c-mauve)}
.pv-d:not([data-letter="bodoni"]) .d-bs span{font-size:var(--t-lead);font-weight:500;line-height:1.3;letter-spacing:.02em;color:#A9606C}
.pv-d:not([data-letter="bodoni"]) .n-body span{font-size:var(--t-lead);line-height:1.6;max-width:22em}
.pv-d:not([data-letter="bodoni"]) .d-by{font-size:var(--t-meta);font-weight:400;color:var(--c-mauve)}
.pv-d:not([data-letter="bodoni"]) .x-title{font-size:clamp(21px,calc(4.4 * var(--cq)),24px);font-weight:500;line-height:1.3;color:var(--c-ink)}
.pv-d:not([data-letter="bodoni"]) .x-text{font-size:var(--t-body);line-height:1.6;max-width:26em;color:var(--c-mauve)}
.pv-d:not([data-letter="bodoni"]) .x-gift{font-size:var(--t-body);line-height:1.7;max-width:30em;color:var(--c-ink)}
/* r35: the gift note's own title, in the script like "What to expect" but a size smaller, since it sits inside that
   section. The paragraph follows it closely. */
.pv-d .x-gift-head{margin:var(--s-blk) 0 calc(var(--s-head)*.55);text-wrap:balance;font:italic 400 clamp(30px,calc(6 * var(--cq)),42px)/1.1 "Bodoni Moda";font-variation-settings:"opsz" 36;color:var(--c-ink)}
.pv-d:not([data-letter="bodoni"]) .x-gift-head{font-family:var(--f-scr);font-style:normal;font-variation-settings:normal;font-size:calc(clamp(30px,calc(6 * var(--cq)),42px)*var(--ds))}
.pv-d .x-gift-head + .x-gift{margin-top:0}
/* the registry link: the title's rose taken a shade deeper so it reads at body size (about 5:1 on the
   paper), with a soft underline so it isn't told apart by colour alone */
.pv-d .x-reg{color:#9A4E5E;font-weight:500;text-decoration:underline;text-decoration-color:rgba(154,78,94,.45);text-decoration-thickness:1px;text-underline-offset:.22em;-webkit-tap-highlight-color:transparent}
/* a bigger target for a thumb without moving the text: padding grows the tappable area, the matching negative margin
   keeps the line as it was */
.pv-d .x-reg{padding:.5em .15em;margin:-.5em -.15em}
@media (hover:hover){.pv-d .x-reg:hover{text-decoration-color:currentColor}
}
.pv-d .x-reg:focus-visible{outline:2px solid #A9606C;outline-offset:3px;border-radius:3px}
.pv-d:not([data-letter="bodoni"]) .d-sign{margin-top:8px;font-size:var(--t-key);font-weight:400;line-height:1.35;color:var(--c-ink)}
.pv-d:not([data-letter="bodoni"]) .rs-name{font-size:var(--t-body)}
.pv-d:not([data-letter="bodoni"]) .d-rsvp.sent .rs-msg{font-size:var(--t-lead);line-height:1.5;color:var(--c-ink)}
/* r30: the serif pairings set the time and the reply date in italic, the bookish touch */
.pv-d:not([data-letter="bodoni"]) .d-by{font-style:var(--it,normal)}
/* the Bodoni pairing gets the same floor: no line under 15px */
.pv-d .dv{display:none}
.pv-d[data-details="note"] .dv[data-dv="note"]{display:block}
.pv-d:not([data-details="asis"]) .d-invite .d-card{width:min(560px,calc(88 * var(--cq)))}
.pv-d .dv .rv > span{font-variation-settings:"opsz" 28}
/* a short note: one sentence, set like a line in a letter */
.n-body span{font:italic 400 clamp(23px,calc(5.2 * var(--cq)),29px)/1.5 "Bodoni Moda";color:var(--c-ink);max-width:19em;margin:0 auto;text-wrap:balance}
/* larger reply, in the rose button; for the letter styles the reply date is in italic */
.pv-d:not([data-details="asis"]) .d-btn{margin-top:36px;font-size:16px;padding:20px 60px}
.pv-d:not([data-details="asis"]) .d-by{margin-top:14px !important;font-size:clamp(15px,calc(3.2 * var(--cq)),16.5px)}
.pv-d .d-card.in .rv > span{opacity:.95;filter:blur(0)}
.pv-d .d-card:not(.in) .d-btn{opacity:0;translate:0 14px}
.pv-d .d-card:not(.in) .d-by{opacity:0}
.pv-d .d-card.in .d-btn{opacity:1;translate:0 0}
.pv-d .d-card.in .d-by{opacity:1}
