/* Pearl Garden: pearl white paper, garden rose, soft lilac and champagne gold. Every picture is the painted art in media/. */
:root {
  --script: 'Pinyon Script', 'Great Vibes', cursive; --display: 'Marcellus', 'Cormorant Garamond', Georgia, serif; --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Mulish', system-ui, sans-serif;
  --ink: #7a2f45; --text: #4a3940; --soft: #6d5560; --gold: #8a6a2a; --line: #d9c39a; --blush: #f6dfe1; --page: #fbf7f2; --bless-color: #7a2f45;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body { margin: 0; color: var(--text); font: 500 19px/1.5 var(--serif); background: var(--page) var(--paper) center / 380px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; height: 100svh; touch-action: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
.only-wide { display: none; }
@media (min-width: 900px) { .only-wide { display: block; } .only-narrow { display: none; } }
.content { position: relative; overflow: clip; }
section { position: relative; }
.wrap { width: min(760px, 100% - 40px); margin: 0 auto; }
.h2 { font: 400 34px/1.2 var(--display); color: var(--ink); text-align: center; letter-spacing: .01em; }
@media (min-width: 900px) { .h2 { font-size: 46px; } }
.garland { display: flex; justify-content: center; width: 100%; overflow: hidden; pointer-events: none; user-select: none; }
.garland img { flex: none; width: 620px; max-width: none; margin: 0 -26px; } .garland .gs { scale: -1 1; }
@media (min-width: 900px) { .garland img { width: 1100px; margin: 0 -60px; } }
.corner { position: absolute; width: 168px; pointer-events: none; user-select: none; z-index: 1; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); mask-image: linear-gradient(180deg, transparent, #000 22%); }
.c-tl { left: 0; top: 0; } .c-tr { right: 0; top: 0; scale: -1 1; } .c-br { right: 0; bottom: 0; rotate: 180deg; } .c-bl { left: 0; bottom: 0; scale: 1 -1; }
@media (min-width: 900px) { .corner { width: 320px; } }

/* ---------- button: a pearl capsule ---------- */
.btn-pearl { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 30px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: 600 16px/1 var(--sans); letter-spacing: .02em; cursor: pointer; transition: transform .25s, opacity .4s, background .25s; }
.btn-pearl::before { content: ''; position: absolute; inset: 3px; border: 1px solid rgba(255, 255, 255, .5); border-radius: inherit; pointer-events: none; }
.btn-pearl:active { transform: scale(.96); } .btn-pearl:focus-visible { outline: 3px solid #c98aa0; outline-offset: 3px; } .btn-pearl.wide { width: 100%; }

/* ---------- stage ---------- */
.stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #e9e6ee; }
.hero, .hero-art, .gate, .house, .mist, .pg-scene, .fly, .wipe { position: absolute; inset: 0; }
.hero-art, .house { will-change: transform; } .house { transform-origin: 50% 54%; } .hero-art { transform-origin: 50% 62%; }
@media (min-width: 900px) { .house { transform-origin: 50% 60%; } }
.pg-scene { overflow: hidden; } .pg-box { position: absolute; }
.pg-img, .pg-live { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.pg-live { opacity: 0; transition: opacity .6s; } .pg-live.on { opacity: 1; }
.gate .pg-scene { overflow: visible; }
/* while the living doorway is drawn, the still one behind it would show through its edges */
.gate .pg-box:has(.pg-live.on) .pg-img { visibility: hidden; }
.mist { width: 100%; height: 100%; }
.leaves { position: absolute; left: 15.3%; top: 8.97%; width: 69.3%; height: 78.85%; perspective: 1500px; z-index: 0; }
.leaf { position: absolute; top: 0; width: 50.1%; height: 100%; background: url("media/pg-leaf.webp?v=1") 0 0 / 200% 100% no-repeat; will-change: transform; }
.leaf.l { left: 0; transform-origin: 0 50%; } .leaf.r { right: 0; transform-origin: 100% 50%; background-position: 100% 0; }
.leaf i { position: absolute; inset: 0; opacity: var(--shade, 0); background: linear-gradient(90deg, rgba(70, 45, 40, 0), rgba(70, 45, 40, .6)); -webkit-mask: url("media/pg-leaf.webp?v=1") 0 0 / 200% 100% no-repeat; mask: url("media/pg-leaf.webp?v=1") 0 0 / 200% 100% no-repeat; }
.leaf.r i { background: linear-gradient(270deg, rgba(70, 45, 40, 0), rgba(70, 45, 40, .6)); -webkit-mask-position: 100% 0; mask-position: 100% 0; }
@media (min-width: 900px) {
  .leaves { left: 38.9%; top: 29.55%; width: 22.15%; height: 53.4%; }
  .leaf { background-image: url("media/pg-leaf-wide.webp?v=1"); } .leaf i { -webkit-mask-image: url("media/pg-leaf-wide.webp?v=1"); mask-image: url("media/pg-leaf-wide.webp?v=1"); }
}
.gate .pg-img, .gate .pg-live { z-index: 1; pointer-events: none; }
.wipe { z-index: 2; touch-action: none; cursor: pointer; }
/* a fingertip shows the guest that the glass can be cleared */
.wipe-hand { position: absolute; left: 50%; top: 34%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .95); background: rgba(255, 255, 255, .35); box-shadow: 0 2px 14px rgba(90, 60, 80, .25); animation: wipeHand 3.4s ease-in-out infinite; }
.wipe.used .wipe-hand, .gate.opening .wipe-hand { opacity: 0; animation: none; transition: opacity .3s; }
@keyframes wipeHand { 0%, 12% { transform: translate(-70px, -26px) scale(.8); opacity: 0; } 22% { opacity: 1; } 45% { transform: translate(64px, -10px); } 68% { transform: translate(-50px, 26px); opacity: 1; } 84%, 100% { transform: translate(48px, 44px) scale(.8); opacity: 0; } }
@media (min-width: 900px) { .wipe-hand { top: 50%; } }
.gate-card { position: absolute; z-index: 5; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(340px, 100% - 44px); padding: 16px 20px 18px; text-align: center; background: #fffdfa var(--paper) center / 320px; border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 0 0 5px #fffdfa, 0 0 0 6px var(--line), 0 18px 40px rgba(70, 40, 60, .25); }
.gate-card .sym { width: auto; height: 62px; margin: 0 auto 6px; } .gate-card .sym-rings { height: 46px; } .gate-card .sym-cross { height: 74px; }
.gate-card .ganesha.bless { display: block; width: 54px; aspect-ratio: 1; margin: 0 auto 6px; background: var(--bless-color); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.gate-card .om { font: 400 40px/1 'Tiro Devanagari Hindi', serif; color: var(--ink); margin-bottom: 4px; }
.mantra { font: 400 29px/1.12 var(--script); color: var(--ink); overflow-wrap: anywhere; }
.intro { margin: 8px auto 14px; max-width: 290px; font: 500 17px/1.35 var(--serif); color: var(--text); }
@media (max-height: 700px) { .gate-card { padding: 12px 18px 14px; } .mantra { font-size: 25px; } .intro { margin: 6px auto 10px; font-size: 16px; } .gate-card .sym { height: 46px; } .gate-card .sym-rings { height: 36px; } }
@media (min-width: 900px) { .gate-card { width: 430px; bottom: 34px; padding: 18px 28px 22px; } .mantra { font-size: 34px; } .intro { max-width: 350px; font-size: 18px; } }
@media (min-width: 900px) and (max-height: 800px) { .gate-card { bottom: 16px; padding: 12px 26px 16px; } .gate-card .sym { height: 48px; } .mantra { font-size: 30px; } .intro { margin: 4px auto 10px; } }
.hero-copy { position: absolute; left: 0; right: 0; top: 9.5%; padding: 0 20px; text-align: center; opacity: 0; transform: translateY(26px); filter: blur(9px); transition: opacity 1.7s ease, transform 1.7s ease, filter 1.7s ease; }
body.opened .hero-copy { opacity: 1; transform: none; filter: none; }
.hero-names { display: flex; flex-direction: column; align-items: center; font: 400 calc(clamp(52px, 15.4vw, 84px) * var(--fs, 1))/1.06 var(--script); color: var(--ink); text-shadow: 0 1px 14px rgba(255, 255, 255, .85), 0 0 2px rgba(255, 255, 255, .7); white-space: nowrap; }
.hero-names .amp { font-size: .58em; line-height: 1.15; }
.hero-line { margin: 10px auto 0; max-width: 290px; font: italic 500 19px/1.35 var(--serif); color: #5d3a46; text-shadow: 0 0 10px rgba(255, 255, 255, .95), 0 0 4px rgba(255, 255, 255, .9); }
@media (min-width: 900px) { .hero-copy { top: 9%; } .hero-names { flex-direction: row; justify-content: center; align-items: baseline; gap: .28em; width: max-content; margin: 0 auto; font-size: calc(clamp(76px, 7.6vw, 124px) * var(--fs, 1)); line-height: 1.1; } .hero-names .amp { font-size: .62em; } .hero-line { max-width: 620px; font-size: 25px; margin-top: 4px; } }

/* ---------- what flies ---------- */
.fly { z-index: 3; pointer-events: none; overflow: hidden; perspective: 1400px; }
.bf { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; opacity: 0; }
.bf b { position: absolute; width: 55px; height: 82px; top: -38px; background-size: 110px 82px; }
.bf b.x { left: -55px; transform-origin: 100% 50%; } .bf b.y { left: 0; transform-origin: 0 50%; background-position: 100% 0; }
.dv { position: absolute; left: 0; top: 0; width: 240px; height: 240px; background-size: 1920px 240px; transform-origin: 0 0; will-change: transform; }
.mailbag { position: absolute; left: 189px; top: 127px; width: 88px; max-width: none; transform-origin: 32% 4%; margin-left: -28px; }
.pt { position: absolute; left: 0; top: 0; width: 24px; opacity: .9; will-change: transform; }
.is-off .fly { display: none; }
.petals { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.petals i { position: absolute; top: -40px; width: 22px; height: 20px; background: center / contain no-repeat; animation: petalFall linear forwards; }
@keyframes petalFall { to { transform: translate3d(var(--x), 110vh, 0) rotate(var(--r)); } }

/* ---------- families ---------- */
.families { padding: 0 0 70px; } .families .garland { margin: 0 0 18px; }
.families .wrap { display: grid; gap: 46px; justify-items: center; }
.fam { position: relative; width: min(360px, 100%); aspect-ratio: 976 / 1266; perspective: 1100px; container-type: inline-size; cursor: pointer; }
.fam-shade { position: absolute; inset: 0.2% 0.15%; border-radius: 2.6%; box-shadow: 0 14px 28px rgba(80, 50, 60, .17), 0 2px 6px rgba(80, 50, 60, .08); }
@media (min-width: 900px) { .fam { width: 460px; } .families .wrap { gap: 64px; } .families { padding-bottom: 100px; } }
.fam-in { position: absolute; inset: 0; display: grid; place-items: center; background: url("media/pg-card-in.webp?v=1") center / 100% 100% no-repeat; }
.fam-text { --k: 1; width: 66%; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity .9s ease 1.05s, transform .9s ease 1.05s; }
.fam.open .fam-text { opacity: 1; transform: none; }
.fam h3 { font: 400 calc(13cqw * var(--k) * var(--fs, 1))/1.1 var(--script); color: var(--ink); white-space: nowrap; }
.fam .rel { margin-top: calc(3.4cqw * var(--k)); font: 600 max(14px, calc(4cqw * var(--k)))/1.3 var(--sans); color: var(--gold); letter-spacing: .02em; }
.fam .who { margin-top: 2px; font: 600 max(15px, calc(5.2cqw * var(--k)))/1.28 var(--serif); color: var(--text); overflow-wrap: anywhere; } .fam .and { color: var(--gold); }
.fam-flap { position: absolute; top: 0; width: 50.05%; height: 100%; perspective: 1000px; transition: opacity .5s ease 1.95s; }
.fam-flap.l { left: 0; perspective-origin: 100% 50%; } .fam-flap.r { right: 0; perspective-origin: 0 50%; }
/* a door swings in two halves: its painted front turns until it is edge-on, then its plain paper back carries on outward
   (no hidden-back-face tricks, so every browser draws it the same) */
.fam-flap i { position: absolute; inset: 0; will-change: transform; }
.fam-flap.l i { transform-origin: 0 50%; } .fam-flap.r i { transform-origin: 100% 50%; }
.fam-flap .ff { background: url("media/pg-card.webp?v=1") 0 0 / 200% 100% no-repeat; transition: transform .72s cubic-bezier(.55, .05, .9, .45) .45s, opacity 0s linear 1.17s; } .fam-flap.r .ff { background-position: 100% 0; }
.fam-flap .fb { opacity: 0; background: #fbf5ea var(--paper) center / 260px; box-shadow: inset 0 0 0 1px #e6d2a8, inset 0 0 0 5px #fbf5ea, inset 0 0 0 6px #d9bf86; transition: transform .8s cubic-bezier(.1, .55, .45, 1) 1.17s, opacity 0s linear 1.17s; }
.fam-flap.l .fb { transform: rotateY(-90deg); border-radius: 2.6% 0 0 2.6%; background-image: linear-gradient(270deg, rgba(120, 80, 60, .2), rgba(120, 80, 60, 0) 45%), var(--paper); }
.fam-flap.r .fb { transform: rotateY(90deg); border-radius: 0 2.6% 2.6% 0; background-image: linear-gradient(90deg, rgba(120, 80, 60, .2), rgba(120, 80, 60, 0) 45%), var(--paper); }
.fam.open .fam-flap.l .ff { transform: rotateY(-90deg); opacity: 0; } .fam.open .fam-flap.r .ff { transform: rotateY(90deg); opacity: 0; }
.fam.open .fam-flap .fb { opacity: 1; } .fam.open .fam-flap.l .fb { transform: rotateY(-162deg); } .fam.open .fam-flap.r .fb { transform: rotateY(162deg); }
.fam.open .fam-flap { opacity: 0; }
.fam-ribbon { position: absolute; z-index: 2; left: 0; top: 50%; width: 100%; max-width: none; transform: translateY(-50%); transition: transform .8s cubic-bezier(.45, 0, .65, .3), opacity .45s ease .3s; }
.fam.open .fam-ribbon { transform: translateY(40%) rotate(-5deg) scale(1.04); opacity: 0; }
.fam.quick * { transition: none !important; }

/* ---------- the date ---------- */
.date { padding: 96px 0 100px; background: linear-gradient(180deg, rgba(246, 223, 225, 0), rgba(246, 223, 225, .55) 30%, rgba(236, 229, 247, .55) 70%, rgba(236, 229, 247, 0)); }
.date-center { position: relative; z-index: 2; width: min(640px, 100% - 24px); margin: 0 auto; text-align: center; }
.plaques { position: relative; display: flex; justify-content: center; gap: 4px; padding-bottom: 30px; }
/* the plaque is the round flower itself (the scratch foil follows its shape); its label hangs below it */
.plaque { position: relative; width: min(32%, 196px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; }
.plaque > img, .plaque > .v { grid-area: 1 / 1; }
.pb { width: 100%; opacity: 0; transform: scale(.82); transition: opacity .55s ease, transform .9s cubic-bezier(.2, .8, .2, 1); object-fit: contain; }
.pb1 { width: 50%; } .pb2 { width: 56%; } .pb3 { width: 70%; } .pb4 { width: 86%; } .pb5 { width: 104%; max-width: none; }
.plaque .pb1 { opacity: 1; transform: none; }
.s2 .pb1, .s3 .pb2, .s4 .pb3, .s5 .pb4 { opacity: 0 !important; } .s2 .pb2, .s3 .pb3, .s4 .pb4, .s5 .pb5 { opacity: 1; transform: none; }
.plate { width: 66%; border-radius: 50%; opacity: 0; transform: scale(.3); transition: opacity .6s ease, transform 1s cubic-bezier(.2, 1.1, .3, 1); box-shadow: 0 6px 14px rgba(90, 60, 80, .26); }
.plaque .v { position: relative; z-index: 2; opacity: 0; transform: translateY(16px); filter: blur(5px); transition: opacity .8s ease .35s, transform .9s cubic-bezier(.2, 1, .3, 1) .35s, filter .8s ease .35s; font: 400 clamp(22px, 6.6vw, 40px)/1 var(--display); color: var(--ink); }
.lit .plate { opacity: 1; transform: none; } .lit .v { opacity: 1; transform: none; filter: none; }
/* scratch card (the couple's choice): the finished flower, plate and date wait under the gold */
#date.gov-scratch .plaque .pb1, #date.gov-scratch .plaque .pb2, #date.gov-scratch .plaque .pb3, #date.gov-scratch .plaque .pb4 { opacity: 0 !important; }
#date.gov-scratch .plaque .pb5, #date.gov-scratch .plaque .plate { opacity: 1; transform: none; transition: none; }
#date.gov-scratch .plaque .tab { z-index: 4; }
#date.gov-scratch .reveal-slot > #revealBtn { position: absolute; }   /* hidden in scratch mode: it takes no room, so the hint sits close under the coins */
.plaque .tab { position: absolute; left: 0; right: 0; top: calc(100% + 2px); font: 600 15px/1.3 var(--sans); color: var(--gold); }
.reveal-slot { position: relative; min-height: 64px; margin-top: 26px; display: grid; place-items: center; } .reveal-slot > * { grid-area: 1 / 1; }
.btn-pearl.used { opacity: 0; pointer-events: none; transform: scale(.94); }
.after { font: 400 clamp(30px, 8vw, 44px)/1.2 var(--script); color: var(--ink); opacity: 0; transform: translateY(10px); transition: opacity 1s, transform 1s; pointer-events: none; } .after.show { opacity: 1; transform: none; pointer-events: auto; }
.reveal-slot > #revealBtn { position: relative; z-index: 2; } .reveal-slot > .gov-scratch-hint { grid-area: 2 / 1; margin-top: 12px; }
.gov-scratch .reveal-slot { min-height: 80px; }
@media (min-width: 900px) { .date { padding: 130px 0 140px; } .date-center { width: 760px; } .plaques { gap: 18px; padding-bottom: 34px; } .plaque { width: 226px; } .plaque .tab { font-size: 17px; } }

/* ---------- photos ---------- */
.gallery { padding: 20px 0 30px; }
.gal-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.wall { position: relative; margin-top: 18px; overflow: hidden; }
.rail { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 130px; pointer-events: none; } .rail .garland { position: absolute; left: 0; right: 0; top: -2px; }
.track { position: relative; overflow: hidden; padding: 66px 0 22px; }
.track-inner { display: flex; align-items: flex-start; gap: 26px; width: max-content; padding: 0 11vw; will-change: transform; }
.frame3d { --hang: 30px; position: relative; flex: none; width: 66vw; max-width: 290px; margin: var(--drop) 0 0; transform-origin: 50% calc(-1 * (var(--drop) + var(--hang))); }
.frame3d .swing { transform: rotate(var(--tilt)); transform-origin: 50% calc(-1 * (var(--drop) + var(--hang))); }
/* each frame's satin ribbon runs on up into the garland, where it is tied (the frame swings from there) */
.pf::before { content: ''; position: absolute; z-index: 2; left: 44.64%; width: 10.71%; bottom: calc(100% - 2px); height: calc(var(--drop) + var(--hang) + 4px); background: url("media/pg-ribbon-strip.webp?v=1") 0 0 / 100% 100%; }
.f-round .pf::before { left: 45.8%; width: 9.35%; }
@media (min-width: 900px) { .frame3d { --hang: 50px; } }
.pf { position: relative; }
.pf-frame { -webkit-filter: drop-shadow(0 10px 12px rgba(80, 50, 60, .22)); filter: drop-shadow(0 10px 12px rgba(80, 50, 60, .22)); }
.pf-frame { position: relative; z-index: 2; width: 100%; pointer-events: none; }
.pf-photo { position: absolute; z-index: 1; overflow: hidden; background: #f3ece6; } .pf-photo img { width: 100%; height: 100%; object-fit: cover; }
.f-oval .pf-photo { left: 7.4%; top: 25.8%; width: 85%; height: 69.6%; border-radius: 50%; } .f-rect .pf-photo { left: 6.9%; top: 26.6%; width: 86%; height: 69.2%; border-radius: 7%; } .f-round .pf-photo { left: 6.8%; top: 34.4%; width: 86.8%; height: 61.2%; border-radius: 50%; }
.f-round { width: 76vw; max-width: 350px; }
.ph { position: relative; height: 100%; } .ph span { position: absolute; left: 50%; bottom: 12%; translate: -50% 0; white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font: 600 14px/1.2 var(--sans); }
.frame3d figcaption { margin-top: 10px; text-align: center; font: 400 26px/1.15 var(--script); color: var(--ink); overflow-wrap: anywhere; }
.story { width: 70vw; max-width: 310px; padding-top: 74px; }
.story blockquote { font: italic 500 21px/1.4 var(--serif); color: var(--text); }
.frame-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
.frame-nav button { width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #fffdfa; color: var(--ink); display: grid; place-items: center; cursor: pointer; } .frame-nav svg { width: 22px; height: 22px; } .frame-nav button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.gal-progress { width: 120px; height: 3px; border-radius: 3px; background: #ead9cf; overflow: hidden; } .gal-progress i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: inherit; }
.gal-swipe .gal-stage { position: relative; height: auto; min-height: 0; padding: 60px 0 40px; } .gal-swipe .track { cursor: grab; user-select: none; -webkit-user-select: none; } .gal-swipe .track:active { cursor: grabbing; }
@media (min-width: 900px) { .track { padding-top: 110px; } .track-inner { gap: 54px; padding: 0 12vw; } .frame3d { width: 290px; } .f-round { width: 350px; } }

/* ---------- ceremonies ---------- */
.ceremonies { padding: 0 20px 80px; } .ceremonies .garland { width: calc(100% + 40px); margin: 0 -20px 18px; }
.cere-grid { display: grid; gap: 30px; width: min(430px, 100%); margin: 32px auto 0; }
.cere { background: #fffdfa; border: 1px solid #ead9c4; border-radius: 22px; overflow: hidden; box-shadow: 0 16px 34px rgba(80, 50, 60, .12); text-align: center; }
.cere-art { margin: 10px 10px 0; aspect-ratio: 3 / 2; border-radius: 15px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); } .cere-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out; } .cere.is-in .cere-art img, .cere:hover .cere-art img { transform: scale(1.05); }
.cere-body { padding: 20px 20px 22px; }
.cere h3 { font: 400 28px/1.2 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.when { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; margin-top: 10px; font: 600 19px/1.35 var(--serif); color: var(--text); } .when .t { color: var(--gold); }
.where { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid #eedfcd; } .venue { font: 500 18px/1.35 var(--serif); color: var(--text); overflow-wrap: anywhere; }
.pin { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ink); } .pin svg { width: 22px; height: 22px; } .pin:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (min-width: 900px) { .cere-grid { width: min(1200px, 100%); grid-template-columns: repeat(6, 1fr); gap: 34px; } .cere { grid-column: span 2; } .cere:nth-last-child(2):nth-child(3n + 1) { grid-column: 2 / span 2; } .cere:last-child:nth-child(3n + 1) { grid-column: 3 / span 2; } .ceremonies { padding-bottom: 110px; } }

/* ---------- compliments, notes, links ---------- */
.after-cere { padding: 60px 0 90px; } .after-cere .wrap { position: relative; z-index: 2; display: grid; gap: 36px; justify-items: center; }
.note-card { position: relative; width: min(380px, 100%); aspect-ratio: 998 / 1332; text-align: center; }
.nc-shade { position: absolute; left: 4.9%; right: 2.45%; top: 2.1%; bottom: 2%; border-radius: 3%; box-shadow: 0 12px 26px rgba(80, 50, 60, .15), 0 2px 5px rgba(80, 50, 60, .08); }
.nc-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.nc-text { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 17% 14% 19%; }
.note-card.small { width: 100%; aspect-ratio: 998 / 1332; }
.note-card h3 { font: 400 27px/1.2 var(--display); color: var(--ink); } .note-card ul { list-style: none; padding: 0; margin: 14px 0 0; } .note-card li, .note-card .who { font: 600 20px/1.45 var(--serif); color: var(--text); overflow-wrap: anywhere; } .note-card .who { margin-top: 14px; font-weight: 500; }
@media (min-width: 900px) { .note-card:not(.small) { width: 470px; } .note-card h3 { font-size: 32px; } .note-card li, .note-card .who { font-size: 23px; } }
.badges { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; margin-top: 44px; padding: 0 16px; }
.badge { display: grid; justify-items: center; gap: 8px; min-width: 92px; padding: 0; border: 0; background: none; color: var(--ink); text-decoration: none; cursor: pointer; font: 600 15px/1.3 var(--sans); }
.medal { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: #fffdfa; box-shadow: 0 0 0 1px var(--line), 0 0 0 5px #fffdfa, 0 0 0 6px var(--line); } .medal svg { width: 26px; height: 26px; } .badge:focus-visible .medal { outline: 2px solid var(--ink); outline-offset: 8px; }

/* ---------- the evening ---------- */
.outro { height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: #d9b6df; }
.outro-art { position: absolute; inset: 0; } .outro-copy { position: absolute; left: 0; right: 0; top: 12%; padding: 0 28px; text-align: center; }
.farewell { font: 500 24px/1.3 var(--serif); color: #43172f; text-shadow: 0 0 14px rgba(255, 236, 246, .75); } .couple-sm { margin-top: 8px; font: 400 calc(clamp(46px, 13vw, 66px) * var(--fs, 1))/1.1 var(--script); color: #55152f; text-shadow: 0 0 16px rgba(255, 238, 246, .85); white-space: nowrap; } .tag { margin-top: 8px; font: 600 17px/1.3 var(--sans); color: #43172f; text-shadow: 0 0 12px rgba(255, 236, 246, .8); }
@media (min-width: 900px) { .outro-copy { top: 10%; } .farewell { font-size: 32px; } .couple-sm { font-size: calc(88px * var(--fs, 1)); } }
.outro::before, .outro::after { content: ''; position: absolute; z-index: 2; left: 0; right: 0; height: 44px; pointer-events: none; } .outro::before { top: -1px; background: linear-gradient(var(--page), rgba(251, 247, 242, 0)); } .outro::after { bottom: -1px; background: linear-gradient(rgba(251, 247, 242, 0), var(--page)); }

/* ---------- RSVP ---------- */
.rsvp { padding: 70px 16px 40px; }
.rsvp-card { width: min(600px, 100%); margin: 0 auto; padding: 34px 22px 30px; background: #fffdfa; border-radius: 26px; box-shadow: 0 0 0 1px var(--line), 0 0 0 6px #fffdfa, 0 0 0 7px var(--line), 0 24px 50px rgba(80, 50, 60, .12); }
.rsvp .sub { margin: 8px auto 22px; max-width: 400px; text-align: center; font-size: 19px; color: var(--text); }
.rsvp .two { display: grid; gap: 14px; } .field { display: block; } .field > span, .field-title, .count-q { display: block; margin-bottom: 6px; font: 600 15px/1.35 var(--sans); color: var(--ink); }
.rsvp input:not([type=radio]), .rsvp textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #d8c3b4; border-radius: 14px; background: #fff; color: #33262c; font: 500 17px/1.4 var(--sans); } .rsvp input:focus, .rsvp textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.count-box { margin: 18px 0; padding: 16px; border-radius: 16px; background: #fbf3f0; text-align: center; } .stepper { display: inline-flex; align-items: center; gap: 18px; margin: 4px 0 6px; } .stepper button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: 400 24px/1 var(--sans); cursor: pointer; } .stepper output { min-width: 32px; font: 400 30px/1 var(--display); color: var(--ink); } .count-box small { display: block; font: 500 14px/1.4 var(--sans); color: var(--soft); }
.ev-list { display: grid; gap: 12px; margin-bottom: 18px; } .rsvp-ev { margin: 0; padding: 14px 16px 16px; border: 1px solid #e6d5c6; border-radius: 16px; background: #fff; min-width: 0; } .rsvp-ev legend { padding: 0; float: left; width: 100%; margin-bottom: 10px; font: 400 21px/1.25 var(--display); color: var(--ink); } .rsvp-ev legend small { display: block; font: 600 15px/1.4 var(--sans); color: var(--gold); }
.opts { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .opts label { position: relative; } .opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; } .opts span { display: grid; place-items: center; min-height: 46px; border-radius: 999px; border: 1px solid #d8c3b4; font: 600 16px/1 var(--sans); color: var(--ink); background: #fff; } .opts input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; } .opts input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.rsvp .hint { margin: 12px 0 0; text-align: center; font: 500 14px/1.45 var(--sans); color: var(--soft); } .rsvp form > .field { margin-bottom: 16px; }
.status { margin: 10px 0 0; text-align: center; font: 600 17px/1.4 var(--sans); } .status.err { color: #a3142c; } .status.ok { color: #2c6a3f; } .status.ok strong { display: block; font: 400 38px/1.15 var(--script); color: var(--ink); }
.cal-offer { margin-top: 14px; text-align: center; } .cal-note { margin: 10px 0 0; font: 500 14px/1.5 var(--sans); } .cal-note a { font-weight: 700; color: var(--ink); text-decoration: underline; }
@media (min-width: 700px) { .rsvp-card { padding: 44px 44px 40px; } .rsvp .two { grid-template-columns: 1fr 1fr; } }

/* ---------- music, footer, reveal ---------- */
.music-btn { position: fixed; z-index: 60; right: 14px; top: calc(14px + env(safe-area-inset-top)); width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 253, 250, .9); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 4px 14px rgba(70, 40, 60, .18); cursor: pointer; } .music-btn svg { width: 24px; height: 24px; fill: currentColor; } .music-btn .ic-on { display: none; } .music-btn.on .ic-on { display: block; } .music-btn.on .ic-off { display: none; } .music-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.music-btn.on .w1, .music-btn.on .w2 { animation: mwave 1.6s ease-in-out infinite; } .music-btn.on .w2 { animation-delay: .3s; } @keyframes mwave { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
body.locked .music-btn { opacity: 0; pointer-events: none; } .music-btn { transition: opacity .5s; }
.site-foot { position: relative; padding: 30px 16px 96px; text-align: center; color: var(--soft); font: 500 15px/1.5 var(--sans); } .site-foot a { color: var(--ink); } .site-foot .credit { display: inline-block; max-width: 100%; margin: 0 auto; } html body .site-foot .credit .cr-2 { font-size: 14px; letter-spacing: 0; text-transform: none; opacity: 1; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1); } [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal], .hero-copy, .fam *, .pb, .plate, .plaque .v { transition: none !important; } .wipe-hand { animation: none; } }

/* the text card on the photo wall hangs on two satin cords from a pearl */
.story .swing { position: relative; }
/* the cords meet on the garland itself (its pearl is tucked among the flowers), and the card swings from that point */
.frame3d.story { transform-origin: 50% -40px; } .story .swing { transform-origin: 50% -114px; }
.story .cord { position: absolute; left: 0; top: -114px; width: 100%; height: 124px; overflow: visible; pointer-events: none; }
.story .cord path { fill: none; stroke: #e2a2ae; stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.story .cord .hi { stroke: #fbe3e8; stroke-width: 1.2; stroke-dasharray: 5 7; }
.story .bead { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #fff 0 22%, #f3ece6 45%, #d9cfc6 80%, #b9ada3 100%); box-shadow: 0 1px 2px rgba(80, 50, 60, .35); }
.story .b0 { left: 50%; top: -112px; width: 14px; height: 14px; margin: -7px 0 0 -7px; } .story .b1 { left: 22%; top: 8px; } .story .b2 { left: 78%; top: 8px; }

/* family cards: the guest unties the ribbon */
.fam { touch-action: pan-y; -webkit-tap-highlight-color: transparent; outline: none; }
.fam:focus-visible .fam-shade { outline: 3px solid var(--ink); outline-offset: 6px; }
.fam:not(.open) { cursor: grab; } .fam.pulling { cursor: grabbing; }
.fam.pulling .fam-ribbon { transition: none; }
.fam.open .fam-ribbon { transform: translate(calc(var(--dir, 0) * 70%), -20%) rotate(calc(var(--dir, 0) * 12deg)) scale(1.02); opacity: 0; }
.fam.nudge:not(.open):not(.pulling) .fam-ribbon { animation: ribbonNudge 3.6s ease-in-out 1s infinite; }
@keyframes ribbonNudge { 0%, 72%, 100% { translate: 0 0; } 78% { translate: 9px 0; } 84% { translate: -6px 0; } 90% { translate: 3px 0; } }
.fam-hint { margin: -28px 0 0; font: 600 15px/1.3 var(--sans); color: var(--soft); text-align: center; transition: opacity .6s; }
.fam.open + .fam-hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .fam.nudge .fam-ribbon { animation: none; } }

/* compliments and things to note: the same tied card, their words set as a message rather than a name */
.fam.tc h3 { font: 400 calc(7.4cqw * var(--k) * var(--fs, 1))/1.2 var(--display); white-space: normal; text-wrap: balance; }
.fam.tc ul { list-style: none; margin: calc(4cqw * var(--k)) 0 0; padding: 0; }
.fam.tc li { font: 600 max(15px, calc(5.4cqw * var(--k)))/1.42 var(--serif); color: var(--text); overflow-wrap: anywhere; }
.fam.tc .who { margin-top: calc(4cqw * var(--k)); font-weight: 500; font-size: max(15px, calc(5.4cqw * var(--k))); line-height: 1.45; }
.after-cere .wrap { gap: 46px; } .after-cere .fam-hint { margin-top: -28px; }
/* Safari draws a filtered, swinging picture in its own box, which showed as a pale rectangle over the paper texture.
   The frames' shadow is now a soft painted shadow under each frame instead of a filter. */
.pf-frame { -webkit-filter: none; filter: none; }
.pf::after { content: ''; position: absolute; z-index: 1; left: 10%; right: 10%; bottom: -2.5%; height: 9%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(80, 50, 60, .26), rgba(80, 50, 60, .1) 60%, transparent); }
