/*
 * Template "Peach Roses" (Pernikahan): warm coral & peach roses.
 * Colors from the variant (x-inv.head): --inv-primary (deep coral: names, buttons, deep bands), --inv-accent
 * (warm peach: lines, accents), --inv-background (paper), --inv-text, --inv-petal / --inv-blush / --inv-cream
 * (flower tints for washes and fills), --inv-leaf (olive/sage accent), --inv-wash (soft section tint).
 * Painted flowers are images in img/ (see img/CREDITS.md), tinted per variant with --pr-flora-filter.
 */

:root {
    --inv-primary: #a63a2e;
    --inv-accent: #e8895f;
    --inv-background: #fff7f0;
    --inv-text: #3c2420;
    --inv-petal: #f29577;
    --inv-blush: #f8c6b5;
    --inv-cream: #fde3cf;
    --inv-leaf: #5d7a45;
    --inv-wash: #fbd8c4;
    --inv-radius: 16px;

    --pr-col: min(100vw, 460px);
    --pr-script: 'Parisienne', 'Brush Script MT', cursive;
    --pr-serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
    --pr-sans: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pr-soft: color-mix(in srgb, var(--inv-text) 84%, var(--inv-background));
    /* deep coral for the dark bands; a darker shade for gradients */
    --pr-deep: color-mix(in srgb, var(--inv-primary) 82%, #1e0806);
    --pr-deeper: color-mix(in srgb, var(--inv-primary) 52%, #170505);
    /* light peach for small text on the deep bands (≥ 4.5:1) */
    --pr-light: color-mix(in srgb, var(--inv-accent) 42%, #fff);
    --pr-sheet: color-mix(in srgb, var(--inv-background) 30%, #fff);
    --pr-line: linear-gradient(90deg, var(--inv-primary), var(--inv-accent));
    --pr-shadow: 0 20px 40px -26px color-mix(in srgb, var(--inv-primary) 75%, transparent);
    --pr-flora-filter: saturate(1.04);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
p, h1, h2, h3, figure, blockquote, ol, ul { margin: 0; }
a { color: inherit; }

body.pr-body {
    min-height: 100vh;
    background: var(--inv-background);
    color: var(--inv-text);
    font-family: var(--pr-sans);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.pr-preview {
    position: fixed; top: 0; left: 50%; z-index: 60; transform: translateX(-50%);
    padding: .3rem .9rem; border-radius: 0 0 10px 10px; white-space: nowrap;
    background: var(--inv-primary); color: #fff; font-size: .7rem; font-weight: 700;
}

/* ---------- shared bits ---------- */
.pr-amp { font-family: var(--pr-script); color: var(--inv-accent); }
.pr-lead { max-width: 22rem; margin: 0 auto 1.5rem; color: var(--pr-soft); font-size: .93rem; }
.pr-arabic { font-family: 'Amiri', 'Traditional Arabic', serif; font-size: 1.65rem; line-height: 1.8; color: var(--inv-primary); margin-bottom: .7rem; }

/* painted flowers: tinted per variant, a soft shadow, a very gentle sway from their own corner.
   Mirroring uses the `scale` property so the scroll reveal (which animates `transform`) never undoes it. */
.pr-v-coral-rose { --pr-flora-filter: hue-rotate(-8deg) saturate(1.05); }
.pr-v-blush-champagne { --pr-flora-filter: hue-rotate(-16deg) saturate(.86); }
.pr-v-apricot-sage { --pr-flora-filter: hue-rotate(10deg) saturate(.98); }
.pr-flora {
    display: block; position: absolute; z-index: 2; height: auto; pointer-events: none; user-select: none;
    transform-origin: 0 0;
    filter: var(--pr-flora-filter) drop-shadow(0 8px 12px rgb(90 25 15 / .18));
}
.pr-flip { scale: -1 1; transform-origin: 50% 50%; }
.pr-turn { scale: -1 -1; transform-origin: 50% 50%; }
.pr-flora--rose { transform-origin: 50% 100%; }
html.inv-anim .pr-flora { animation: pr-sway 9s ease-in-out infinite alternate; }
html.inv-anim .pr-flora.pr-flip { animation-duration: 10.5s; animation-delay: -4s; }
html.inv-anim .pr-flora.pr-turn { animation-duration: 11s; animation-delay: -2s; }
@keyframes pr-sway { from { rotate: -1.4deg; } to { rotate: 1.6deg; } }

/* five or six petals drift down once when the invitation is opened */
.pr-drift { display: none; position: fixed; top: 0; left: 50%; z-index: 35; width: var(--pr-col); height: 100vh; transform: translateX(-50%); overflow: hidden; pointer-events: none; }
html.inv-anim .pr-drift { display: block; }
.pr-drift i {
    position: absolute; top: -30px; left: var(--x); width: 14px; height: 18px; opacity: 0;
    border-radius: 80% 0 80% 0; background: linear-gradient(135deg, var(--pr-petal, var(--inv-petal)), color-mix(in srgb, var(--pr-petal, var(--inv-petal)) 60%, #fff));
    box-shadow: 0 2px 4px rgb(90 25 15 / .15);
}
.pr-drift.is-go i { animation: pr-petal var(--d) cubic-bezier(.3, .2, .5, 1) var(--delay) forwards; }
.pr-drift i:nth-child(1) { --x: 10%; --d: 4.6s; --delay: .1s; }
.pr-drift i:nth-child(2) { --x: 28%; --d: 5.4s; --delay: .5s; --pr-petal: var(--inv-accent); }
.pr-drift i:nth-child(3) { --x: 46%; --d: 4.2s; --delay: .25s; --pr-petal: var(--inv-primary); }
.pr-drift i:nth-child(4) { --x: 63%; --d: 5s; --delay: .7s; }
.pr-drift i:nth-child(5) { --x: 79%; --d: 4.8s; --delay: .35s; --pr-petal: var(--inv-accent); }
.pr-drift i:nth-child(6) { --x: 91%; --d: 5.6s; --delay: .9s; }
@keyframes pr-petal {
    0% { opacity: 0; transform: translate(0, 0) rotate(0); }
    12% { opacity: .95; }
    85% { opacity: .9; }
    100% { opacity: 0; transform: translate(-40px, 105vh) rotate(320deg); }
}

/* photo in an arch: white mat, a coral line outside, a painted rose spray at its foot */
.pr-frame { position: relative; margin: 0 auto; }
.pr-frame::before {
    content: ''; position: absolute; inset: -10px; border-radius: 999px 999px 28px 28px;
    border: 1.5px solid color-mix(in srgb, var(--inv-primary) 55%, transparent);
}
.pr-frame::after {
    content: ''; position: absolute; inset: -18px -22px; z-index: -1; border-radius: 999px 999px 40px 40px;
    background: radial-gradient(70% 60% at 50% 45%, color-mix(in srgb, var(--inv-petal) 55%, transparent), transparent 72%);
}
.pr-frame__arch {
    position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 20px 20px;
    background: linear-gradient(160deg, var(--inv-cream), var(--inv-petal));
    box-shadow: 0 0 0 5px #fff, 0 26px 44px -22px color-mix(in srgb, var(--inv-primary) 85%, transparent);
}
.pr-frame__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pr-frame__empty { position: absolute; inset: 0; display: grid; place-items: center; font: 3.2rem/1 var(--pr-script); color: #fff; }
.pr-frame__rose { width: 92%; bottom: -16%; z-index: 3; }
.pr-frame--left .pr-frame__rose { left: -44%; }
.pr-frame--right .pr-frame__rose { right: -44%; }

/* ---------- backdrop (wide screens) ---------- */
.pr-backdrop {
    position: fixed; inset: 0; z-index: -1; display: none; overflow: hidden; pointer-events: none;
    background: radial-gradient(circle at 50% 50%, var(--inv-background), color-mix(in srgb, var(--inv-wash) 80%, var(--inv-background)));
}
.pr-backdrop i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(30px); }
.pr-backdrop i:first-child { left: -30vmax; top: -30vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-petal) 55%, transparent), transparent); }
.pr-backdrop i:last-child { right: -30vmax; bottom: -30vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-primary) 30%, transparent), transparent); }

/* ---------- page column ---------- */
.pr-page { position: relative; width: var(--pr-col); min-height: 100vh; margin: 0 auto; overflow: hidden; background: var(--inv-background); }
@media (min-width: 520px) {
    body.pr-body { background: color-mix(in srgb, var(--inv-wash) 60%, var(--inv-background)); }
    .pr-backdrop { display: block; }
    .pr-page { box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 25%, transparent), 0 30px 80px -30px color-mix(in srgb, var(--inv-primary) 55%, transparent); }
}

/* ---------- cover ---------- */
.pr-cover {
    position: fixed; top: 0; bottom: 0; left: 50%; z-index: 30; width: var(--pr-col); transform: translateX(-50%);
    overflow: hidden auto; overscroll-behavior: contain; isolation: isolate;
    background:
        radial-gradient(60% 34% at 50% 30%, rgb(255 255 255 / .8), transparent 75%),
        linear-gradient(176deg, color-mix(in srgb, var(--inv-petal) 45%, var(--inv-wash)) 0%, var(--inv-background) 44%, color-mix(in srgb, var(--inv-petal) 55%, var(--inv-background)) 100%);
}
.pr-cover--leave { transition: opacity .9s ease, transform .9s cubic-bezier(.6, 0, .4, 1); }
.pr-cover--gone { opacity: 0; transform: translateX(-50%) translateY(-5%) scale(1.04); }
/* soft coral glows behind the paper */
.pr-glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(8px); }
.pr-glow--a { width: 130%; aspect-ratio: 1; left: -60%; top: -34%; background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-petal) 85%, transparent), transparent); }
.pr-glow--b { width: 140%; aspect-ratio: 1; right: -66%; bottom: -40%; background: radial-gradient(closest-side, color-mix(in srgb, var(--inv-primary) 55%, transparent), color-mix(in srgb, var(--inv-accent) 25%, transparent) 60%, transparent); }
.pr-cover .pr-flora { z-index: 0; }
.pr-cover__tl { top: -1.4svh; left: -18px; width: clamp(200px, 62%, 280px); }
.pr-cover__br { bottom: -1.6svh; right: -18px; width: clamp(200px, 62%, 280px); }
html.inv-anim .pr-cover .pr-flora { animation: pr-flora-in 1.5s cubic-bezier(.2, .7, .2, 1) both, pr-sway 9s 1.5s ease-in-out infinite alternate; }
html.inv-anim .pr-cover .pr-flora.pr-turn { animation-delay: .2s, 1.7s; }
@keyframes pr-flora-in { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }

.pr-cover__inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100svh; gap: clamp(.4rem, 1.2svh, .8rem);
    padding: clamp(2.6rem, 7.5svh, 3.6rem) 1.5rem calc(clamp(1.8rem, 4.5svh, 3rem) + env(safe-area-inset-bottom));
    text-align: center;
}
.pr-cover__portrait { position: relative; width: min(52vw, 196px, 26svh); margin: 0 0 clamp(1.4rem, 3svh, 1.9rem); }
/* the one opening moment: the photo fades in with a slight zoom */
html.inv-anim .pr-cover__portrait .pr-frame__arch { animation: pr-fade 1.4s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .pr-cover__portrait .pr-frame__img { animation: pr-zoom 2.2s cubic-bezier(.2, .7, .2, 1) .1s both; }
html.inv-anim .pr-cover__portrait .pr-frame__rose { animation: pr-flora-in 1.4s cubic-bezier(.2, .7, .2, 1) .35s both, pr-sway 9s 1.8s ease-in-out infinite alternate; }
html.inv-anim .pr-cover__portrait .pr-seal { animation: pr-fade 1s ease .5s both; }
@keyframes pr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pr-zoom { from { transform: scale(1.12); } to { transform: none; } }
.pr-seal {
    position: absolute; left: 50%; bottom: -24px; z-index: 4; translate: -50% 0;
    display: inline-flex; align-items: center; justify-content: center; gap: .1rem;
    min-width: 54px; height: 54px; padding: 0 .55rem; border-radius: 999px;
    background: linear-gradient(150deg, var(--inv-primary), var(--pr-deeper)); color: #fff;
    font: 600 1.1rem/1 var(--pr-serif); letter-spacing: .02em;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px color-mix(in srgb, var(--inv-accent) 70%, transparent), 0 10px 20px -8px color-mix(in srgb, var(--inv-primary) 80%, transparent);
}
.pr-seal i { font: normal .95rem/1 var(--pr-script); color: var(--pr-light); margin: 0 .05rem; }
.pr-cover__title {
    font-size: .74rem; font-weight: 700; letter-spacing: .34em; padding-left: .34em; text-transform: uppercase; color: var(--inv-primary);
}
.pr-cover__names {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: .45rem;
    font: 400 clamp(2.6rem, 12.5vw, 3.3rem)/1.08 var(--pr-script); color: var(--pr-deep);
    text-shadow: 0 2px 14px rgb(255 255 255 / .9);
}
.pr-cover__names .pr-amp { font-size: .78em; color: var(--inv-accent); }
.pr-cover__date {
    display: flex; align-items: center; gap: .7rem;
    font: 700 1rem/1.3 var(--pr-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--inv-text);
}
.pr-cover__date::before, .pr-cover__date::after { content: ''; width: 1.8rem; height: 1.5px; background: var(--pr-line); }
.pr-cover__date::after { background: linear-gradient(90deg, var(--inv-accent), var(--inv-primary)); }
.pr-cover__quote { max-width: 19rem; font: italic 500 1rem/1.48 var(--pr-serif); color: var(--pr-soft); }
.pr-cover__guest {
    position: relative; width: min(100%, 17.5rem); margin-top: .2rem; padding: .8rem 1.1rem .85rem;
    border-radius: 16px; background: rgb(255 255 255 / .8);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-primary) 35%, transparent), var(--pr-shadow);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pr-cover__guest > p:first-child { font-size: .68rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-primary); }
.pr-cover__guest-name { display: block; margin-top: .1rem; font: 700 1.3rem/1.25 var(--pr-serif); color: var(--inv-text); overflow-wrap: anywhere; }
.pr-cover__guest-note { margin-top: .25rem; font-size: .72rem; line-height: 1.4; color: var(--pr-soft); }
.pr-open.inv-button { margin-top: .3rem; padding: .85rem 1.7rem; font-size: .9rem; }

/* ---------- hero (top of the page): the cover photo fading into deep coral ---------- */
.pr-hero {
    position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
    min-height: min(92svh, 760px); padding: 0 1.4rem 2.6rem; text-align: center; color: #fff;
    background: radial-gradient(90% 60% at 50% 30%, color-mix(in srgb, var(--inv-accent) 55%, var(--pr-deep)), var(--pr-deep) 70%);
}
.pr-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.pr-hero__photo { position: absolute; left: 0; top: -40px; width: 100%; height: calc(100% + 80px); object-fit: cover; object-position: center 28%; }
.pr-hero--photo { background: var(--pr-deep); }
/* without a photo: a shorter deep coral opening with the names in the middle */
.pr-hero:not(.pr-hero--photo) { min-height: min(66svh, 560px); align-items: center; padding-top: 5rem; }
.pr-hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgb(20 5 4 / .28) 0%, transparent 24%, transparent 52%, color-mix(in srgb, var(--pr-deep) 70%, transparent) 76%, var(--pr-deep) 100%);
}
.pr-hero .pr-flora { z-index: 1; }
.pr-hero__tl { top: -14px; left: -18px; width: clamp(150px, 46%, 220px); }
.pr-hero__tr { top: -14px; right: -18px; width: clamp(120px, 36%, 170px); }
.pr-hero__text { position: relative; z-index: 2; }
.pr-hero__kicker { font-size: .72rem; font-weight: 700; letter-spacing: .34em; padding-left: .34em; text-transform: uppercase; color: var(--pr-light); }
.pr-hero__names { margin: .15rem 0 .2rem; font: 400 clamp(2.9rem, 13.5vw, 3.7rem)/1.1 var(--pr-script); color: #fff; text-shadow: 0 2px 18px rgb(30 5 5 / .45); }
.pr-hero__names .pr-amp { color: var(--pr-light); }
.pr-hero__date { font: 700 1.02rem/1.3 var(--pr-serif); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- the deep reel under the hero: running photos, a big monogram, the date in numbers ---------- */
.pr-reel {
    position: relative; padding: .6rem 0 3rem; text-align: center; color: #fff;
    background: radial-gradient(90% 60% at 50% 100%, color-mix(in srgb, var(--inv-primary) 70%, var(--inv-accent)), transparent 70%), var(--pr-deep);
}
/* a scalloped paper edge at the bottom */
.pr-reel::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 12px;
    background: radial-gradient(circle at 50% 100%, var(--inv-background) 8.5px, transparent 9px) 0 0 / 20px 12px repeat-x;
}
.pr-marquee { --inv-marquee-height: 10rem; margin-bottom: 2rem; }
.pr-marquee .inv-marquee__track img {
    border-radius: 999px 999px 14px 14px; border: 3px solid color-mix(in srgb, var(--pr-light) 80%, #fff);
    box-shadow: 0 12px 22px -12px rgb(20 4 4 / .7);
}
.pr-reel__mono {
    display: flex; align-items: center; justify-content: center; gap: 1.1rem;
    font: 500 clamp(3.6rem, 18vw, 4.6rem)/1 var(--pr-serif); color: #fff;
}
.pr-reel__bar { width: 1.5px; height: 1.1em; background: linear-gradient(180deg, transparent, var(--pr-light), transparent); }
.pr-reel__date { margin-top: 1rem; font: 700 .95rem/1 var(--pr-sans); letter-spacing: .5em; padding-left: .5em; color: var(--pr-light); }

/* ---------- sections ---------- */
.pr-main { position: relative; }
.pr-section { position: relative; isolation: isolate; padding: 3.6rem 1.35rem; text-align: center; scroll-margin-top: .5rem; }
.pr-section > :not(.pr-flora):not(.pr-bgphoto) { position: relative; z-index: 1; }
.pr-section > .pr-flora { z-index: 2; }

/* a warm peach wash */
.pr-wash {
    background:
        radial-gradient(70% 40% at 100% 0%, color-mix(in srgb, var(--inv-petal) 30%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-wash) 55%, var(--inv-background)), color-mix(in srgb, var(--inv-blush) 42%, var(--inv-background)));
}

/* deep coral bands: a client photo under a strong gradient (falls back to the gradient) */
.pr-deep {
    overflow: hidden; color: #fff;
    background: radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--inv-primary) 80%, var(--inv-accent)), transparent 60%), var(--pr-deep);
}
.pr-bgphoto { position: absolute !important; inset: 0; z-index: 0 !important; overflow: hidden; }
.pr-bgphoto img { position: absolute; left: 0; top: -40px; width: 100%; height: calc(100% + 80px); object-fit: cover; opacity: .8; filter: saturate(.9); }
.pr-bgphoto::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--pr-deep) 90%, transparent), color-mix(in srgb, var(--pr-deep) 74%, transparent) 50%, color-mix(in srgb, var(--pr-deeper) 92%, transparent));
}

/* headings: caps kicker, a big serif title with one italic colored word on a peach brush wash, a growing line */
.pr-heading { margin-bottom: 1.7rem; }
.pr-heading__kicker { font-size: .68rem; font-weight: 700; letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; color: var(--inv-primary); }
.pr-heading__title {
    position: relative; display: inline-block; margin-top: .2rem; padding: .1rem .6rem;
    font: 600 clamp(2.1rem, 9.6vw, 2.6rem)/1.12 var(--pr-serif); color: var(--inv-text);
}
.pr-heading__title::before {
    content: ''; position: absolute; z-index: -1; left: -.4rem; right: -.4rem; top: 38%; bottom: 2%;
    border-radius: 60% 40% 55% 45% / 60% 50% 50% 40%; rotate: -1.5deg;
    background: linear-gradient(100deg, color-mix(in srgb, var(--inv-petal) 38%, transparent), color-mix(in srgb, var(--inv-blush) 55%, transparent) 60%, transparent);
}
.pr-heading__title i { font-style: italic; font-weight: 500; color: var(--inv-primary); }
.pr-heading__line { display: block; width: 64px; height: 2px; margin: .8rem auto 0; border-radius: 2px; background: var(--pr-line); }
html.inv-anim .pr-heading__line { transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .35s; }
html.inv-anim .is-revealed .pr-heading__line { transform: none; }
.pr-deep .pr-heading__kicker { color: var(--pr-light); }
.pr-deep .pr-heading__title { color: #fff; }
.pr-deep .pr-heading__title::before { background: linear-gradient(100deg, color-mix(in srgb, var(--inv-accent) 40%, transparent), transparent 80%); }
.pr-deep .pr-heading__title i { color: var(--pr-light); }
.pr-deep .pr-heading__line { background: linear-gradient(90deg, var(--pr-light), var(--inv-accent)); }

/* cards */
.pr-card {
    position: relative; padding: 1.8rem 1.35rem; border-radius: 22px; background: var(--pr-sheet);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-primary) 18%, transparent), var(--pr-shadow);
}
.pr-card--framed::after {
    content: ''; position: absolute; inset: 7px; border-radius: 16px; pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--inv-accent) 60%, transparent);
}
.pr-card__flora { top: -38px; left: -30px; width: 150px; z-index: 3; }
.pr-card__flora--right { left: auto; right: -30px; }

/* ---------- opening ---------- */
.pr-opening {
    padding-top: 4.4rem; padding-bottom: 3.2rem;
    background: radial-gradient(90% 55% at 0% 0%, color-mix(in srgb, var(--inv-petal) 32%, transparent), transparent 70%),
        radial-gradient(80% 50% at 100% 100%, color-mix(in srgb, var(--inv-wash) 80%, transparent), transparent 70%),
        linear-gradient(180deg, var(--inv-background), color-mix(in srgb, var(--inv-blush) 45%, var(--inv-background)));
}
/* light sections: the photo shows faintly, the paper color is strongest behind the card */
.pr-bgphoto--soft img { opacity: .38; filter: saturate(.85) blur(1px); }
.pr-bgphoto--soft::after {
    background: radial-gradient(75% 55% at 50% 52%, color-mix(in srgb, var(--inv-background) 72%, transparent), transparent 100%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-background) 55%, transparent), color-mix(in srgb, var(--inv-background) 15%, transparent) 40%, color-mix(in srgb, var(--inv-blush) 30%, transparent) 100%);
}
.pr-opening .pr-card { background: color-mix(in srgb, var(--pr-sheet) 88%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pr-opening .pr-card { padding-top: 3.2rem; }
.pr-opening__greeting { font: italic 600 1.3rem/1.4 var(--pr-serif); color: var(--inv-primary); margin-bottom: .6rem; }
.pr-opening__message { color: var(--pr-soft); font-size: .94rem; }

/* the quote on a deep band */
.pr-quote { padding: 3.6rem 1.8rem 3.4rem; }
.pr-quote__mark { display: block; font: 600 4.6rem/.6 var(--pr-serif); color: var(--pr-light); margin-bottom: .2rem; }
.pr-quote blockquote { font: italic 500 1.2rem/1.55 var(--pr-serif); color: #fff; }
.pr-quote figcaption { margin-top: .8rem; font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--pr-light); }

/* ---------- couple ---------- */
.pr-couple { padding-top: 5.2rem; background: linear-gradient(180deg, var(--inv-background), color-mix(in srgb, var(--inv-wash) 40%, var(--inv-background)) 50%, var(--inv-background)); }
.pr-couple__flora { top: -10px; right: -18px; width: clamp(140px, 42%, 190px); }
.pr-person { padding-top: .8rem; }
.pr-frame--person { width: min(58vw, 214px); margin-bottom: 2rem; }
.pr-person__nick { font: 400 2.7rem/1.15 var(--pr-script); color: var(--inv-primary); }
.pr-person__name { margin-top: .1rem; font: 700 1.38rem/1.3 var(--pr-serif); color: var(--inv-text); }
.pr-person__parents { margin-top: .5rem; font-size: .9rem; color: var(--pr-soft); }
.pr-person__parents strong { color: var(--inv-text); font-weight: 600; }
.pr-person__ig {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; padding: .48rem 1rem;
    border-radius: 999px; background: rgb(255 255 255 / .75); color: var(--inv-primary); text-decoration: none;
    font-size: .82rem; font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 45%, transparent);
}
.pr-couple__amp {
    display: grid; place-items: center; width: 4.4rem; height: 4.4rem; margin: 2.4rem auto 1.6rem; border-radius: 50%;
    font: 400 2.8rem/1 var(--pr-script); color: #fff; padding-top: .3rem;
    background: linear-gradient(150deg, var(--inv-accent), var(--inv-primary));
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--inv-blush) 60%, transparent), 0 14px 26px -12px color-mix(in srgb, var(--inv-primary) 85%, transparent);
}

/* ---------- countdown: a paper calendar on the deep band, glassy boxes ---------- */
.pr-cal {
    --inv-cal-bg: #fff;
    --inv-cal-text: var(--inv-text);
    --inv-cal-mark: var(--inv-primary);
    position: relative; max-width: 21.5rem; margin: 0 auto 1.7rem; padding: 1.5rem 1.15rem 1rem; text-align: left;
    border-radius: 10px; rotate: .8deg;
    box-shadow: 0 24px 40px -22px rgb(20 4 4 / .7);
}
.pr-cal::before {
    content: ''; position: absolute; top: -.75rem; right: 1.4rem; width: 5.2rem; height: 1.5rem; rotate: 5deg;
    background: color-mix(in srgb, var(--inv-accent) 70%, transparent);
    -webkit-mask: radial-gradient(circle at 3px 50%, transparent 2.5px, #000 3px) -3px 0 / 6px 100% repeat-y, linear-gradient(#000, #000);
}
.pr-cal .inv-cal__month { font: 600 2.1rem/1 var(--pr-serif); font-style: italic; color: var(--inv-primary); }
.pr-cal .inv-cal__year { font: 700 .8rem/1 var(--pr-sans); letter-spacing: .14em; color: var(--pr-soft); opacity: 1; }
.pr-cal .inv-cal__dow { font-family: var(--pr-sans); color: var(--pr-soft); opacity: 1; }
.pr-cal .inv-cal__grid > :nth-child(7n + 1) { color: var(--inv-primary); }
.pr-cal .inv-cal__day { font: 600 1.08rem/1 var(--pr-serif); }
.pr-cal .inv-cal__day--mark { font-weight: 700; }
.pr-cal .inv-cal__circle { color: var(--inv-accent); }
.pr-cal .inv-cal__note { font: italic 600 1.02rem/1.4 var(--pr-serif); color: var(--inv-text); }

.pr-countdown .inv-countdown { gap: .45rem; }
.pr-countdown .inv-countdown__item {
    position: relative; flex: 1; min-width: 0; max-width: 4.6rem; padding: .7rem .25rem .6rem; border-radius: 14px;
    background: rgb(255 255 255 / .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45), 0 12px 22px -14px rgb(20 4 4 / .7);
}
.pr-countdown .inv-countdown__value { font: 700 1.8rem/1.1 var(--pr-serif); color: #fff; }
.pr-countdown .inv-countdown__label { margin-top: .1rem; font-size: .56rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pr-light); opacity: 1; }
.pr-countdown .inv-countdown__done { margin-top: 1rem; font: italic 500 1.05rem/1.5 var(--pr-serif); }
.pr-countdown .inv-countdown__actions { margin-top: 1.3rem; }
.pr-countdown .inv-countdown__actions .inv-button { padding: .6rem 1rem; font-size: .78rem; }
.pr-deep .inv-button--outline { background: rgb(255 255 255 / .1); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .75); }

/* ---------- events ---------- */
/* two rounded photos, playfully offset */
.pr-collage { position: relative; height: 12rem; max-width: 21rem; margin: -.6rem auto 2rem; }
.pr-collage::before {
    content: ''; position: absolute; inset: 2.2rem -1.4rem 1.8rem; border-radius: 999px;
    background: linear-gradient(100deg, color-mix(in srgb, var(--inv-petal) 55%, transparent), color-mix(in srgb, var(--inv-accent) 35%, transparent));
}
.pr-collage img {
    position: absolute; width: 58%; aspect-ratio: 4 / 3; object-fit: cover; border: 4px solid #fff;
    box-shadow: 0 14px 26px -16px color-mix(in srgb, var(--inv-primary) 80%, transparent);
}
.pr-collage__a { left: 0; bottom: 0; border-radius: 0 44px 44px 44px; }
.pr-collage__b { right: 0; top: 0; border-radius: 44px 44px 0 44px; }

.pr-event {
    position: relative; overflow: hidden; border-radius: 30px; background: var(--pr-sheet);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-primary) 16%, transparent), var(--pr-shadow);
}
.pr-event + .pr-event { margin-top: 1.6rem; }
.pr-event__band {
    position: relative; overflow: hidden; padding: 1.5rem 1rem 1.3rem; border-radius: 30px 30px 0 0;
    background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--inv-accent) 70%, transparent), transparent 60%), linear-gradient(150deg, var(--inv-primary), var(--pr-deeper));
}
.pr-event__flora { top: -34px; left: -34px; width: 160px; }
.pr-event__name { position: relative; z-index: 3; font: 600 2.1rem/1.15 var(--pr-serif); font-style: italic; color: #fff; }
.pr-event__body { padding: 1.3rem 1.2rem 1.6rem; }
.pr-event__time { font: 700 .9rem/1.4 var(--pr-sans); letter-spacing: .06em; color: var(--inv-primary); }
.pr-event__date { margin-top: .15rem; font: 700 1.22rem/1.3 var(--pr-serif); }
.pr-event__photo {
    width: 70%; aspect-ratio: 4 / 3; margin: 1.1rem auto 0; border-radius: 999px 999px 16px 16px;
    background: var(--pr-photo) center / cover no-repeat;
    box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px color-mix(in srgb, var(--inv-primary) 45%, transparent);
}
.pr-event__place {
    max-width: 20rem; margin: 1.2rem auto 0; padding: .9rem .9rem 1rem; border-radius: 20px;
    background: color-mix(in srgb, var(--inv-wash) 45%, #fff);
}
.pr-event__place svg, .pr-event__dress svg { fill: none; stroke: var(--inv-primary); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pr-event__place svg { display: block; width: 1.4rem; height: 1.4rem; margin: 0 auto .3rem; }
.pr-event__venue { display: block; font: 700 1.15rem/1.3 var(--pr-serif); color: var(--inv-text); }
.pr-event__address { display: block; margin-top: .15rem; font-size: .86rem; line-height: 1.5; color: var(--pr-soft); }
.pr-event__dress { margin-top: .85rem; font-size: .88rem; color: var(--pr-soft); }
.pr-event__dress svg { width: 1.05rem; height: 1.05rem; vertical-align: -.2em; margin-right: .2rem; }
.pr-event .inv-maps { margin-top: 1.1rem; }
.inv-maps .inv-button::before {
    content: ''; width: 15px; height: 15px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-6.5-6.2-6.5-11.2a6.5 6.5 0 0 1 13 0C18.5 14.8 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.8' r='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s-6.5-6.2-6.5-11.2a6.5 6.5 0 0 1 13 0C18.5 14.8 12 21 12 21Z'/%3E%3Ccircle cx='12' cy='9.8' r='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- love story: compact zig-zag on a thin coral centre line ---------- */
.pr-story__list { position: relative; margin: 0; padding: 0; list-style: none; }
.pr-story__list::before {
    content: ''; position: absolute; top: .4rem; bottom: .4rem; left: 50%; width: 1.5px; translate: -50% 0;
    background: linear-gradient(180deg, var(--inv-primary), var(--inv-accent) 85%, transparent);
}
.pr-moment { position: relative; display: grid; grid-template-columns: 1fr 2.3rem 1fr; column-gap: .7rem; align-items: start; }
.pr-moment + .pr-moment { margin-top: 1.7rem; }
.pr-moment__num {
    grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
    background: linear-gradient(150deg, var(--inv-accent), var(--inv-primary)); color: #fff;
    box-shadow: 0 0 0 3px var(--inv-background), 0 6px 14px -6px color-mix(in srgb, var(--inv-primary) 80%, transparent);
    font: 700 .78rem/1 var(--pr-sans);
}
.pr-moment__text { grid-column: 1; grid-row: 1; text-align: right; }
.pr-moment__side { grid-column: 3; grid-row: 1; text-align: left; }
.pr-moment--flip .pr-moment__text { grid-column: 3; text-align: left; }
.pr-moment--flip .pr-moment__side { grid-column: 1; text-align: right; }
.pr-moment__title { padding-bottom: .3rem; font: 700 1.2rem/1.25 var(--pr-serif); color: var(--inv-text); border-bottom: 1.5px dotted color-mix(in srgb, var(--inv-primary) 55%, transparent); }
.pr-moment__story { margin-top: .45rem; font-size: .86rem; line-height: 1.55; color: var(--pr-soft); }
.pr-moment__date { font: italic 600 1.2rem/1.2 var(--pr-serif); color: var(--inv-primary); }
.pr-moment__photo {
    display: inline-block; width: min(100%, 8rem); aspect-ratio: 1; margin-top: .5rem; object-fit: cover; border-radius: 50%;
    border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--inv-accent), var(--pr-shadow);
}

/* ---------- gallery (x-inv.gallery) ---------- */
.pr-gallery { padding-top: 5rem; }
.pr-gallery__flora { top: -14px; left: -18px; width: clamp(130px, 40%, 180px); }
.pr-gallery .inv-gallery { gap: .6rem; }
.pr-gallery .inv-gallery__item {
    border-radius: 16px; background: var(--inv-cream);
    box-shadow: 0 0 0 3px #fff, 0 14px 24px -16px color-mix(in srgb, var(--inv-primary) 85%, transparent);
}
/* the first photo wide; with an even count the last one is wide too, so no tile sits alone */
.pr-gallery .inv-gallery__item:first-child,
.pr-gallery .inv-gallery__item:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

/* ---------- live streaming ---------- */
.pr-live { padding: 3.8rem 1.6rem; }
.pr-live__badge {
    display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .85rem; border-radius: 999px;
    background: #fff; color: var(--inv-primary); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.pr-live__badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--inv-primary); }
html.inv-anim .pr-live__badge span { animation: pr-blink 1.4s ease-in-out infinite; }
@keyframes pr-blink { 50% { opacity: .25; } }
.pr-live__title { margin: .6rem 0 .4rem; font: 600 2.2rem/1.15 var(--pr-serif); color: #fff; }
.pr-live__title i { font-weight: 500; color: var(--pr-light); }
.pr-live__text { font-size: .93rem; color: rgb(255 255 255 / .92); }
.pr-live__note { margin-top: .6rem; font: italic 500 1.02rem/1.5 var(--pr-serif); color: #fff; }
.pr-live .inv-button { margin-top: 1.2rem; }
.inv-button.pr-button--light { background: #fff; color: var(--inv-primary); box-shadow: 0 12px 24px -12px rgb(20 4 4 / .7); }

/* ---------- gift (x-inv.gift): accounts as small coral bank cards, two per row ---------- */
.pr-gift { padding-top: 4.6rem; }
.pr-gift__rose { top: .2rem; right: -72px; width: 150px; }
.pr-gift .inv-gift { display: grid; gap: 1.1rem; }
.pr-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
/* an odd last card takes the whole row */
.pr-gift .inv-gift__accounts > .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pr-gift .inv-gift__account + .inv-gift__account { margin-top: 0; }
.pr-gift .inv-gift__account:not(.inv-gift__address) {
    position: relative; isolation: isolate; overflow: hidden; min-width: 0; padding: .8rem .8rem .85rem; border-radius: 13px;
    display: flex; flex-direction: column; align-items: flex-start;
    text-align: left; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .18);
    background:
        radial-gradient(circle at 105% -10%, rgb(255 255 255 / .3), transparent 42%),
        radial-gradient(circle at -15% 115%, color-mix(in srgb, var(--inv-accent) 60%, transparent), transparent 50%),
        linear-gradient(135deg, var(--inv-primary) 0%, var(--pr-deep) 55%, var(--pr-deeper) 100%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25), 0 18px 32px -20px color-mix(in srgb, var(--inv-primary) 85%, #000);
}
/* the chip */
.pr-gift .inv-gift__account:not(.inv-gift__address)::before {
    content: ''; position: absolute; top: 2.75rem; left: .8rem; width: 2.2rem; height: 1.7rem; border-radius: .32rem;
    background:
        linear-gradient(90deg, transparent 31%, rgb(110 72 28 / .45) 31% 34%, transparent 34% 66%, rgb(110 72 28 / .45) 66% 69%, transparent 69%),
        linear-gradient(0deg, transparent 46%, rgb(110 72 28 / .45) 46% 54%, transparent 54%),
        linear-gradient(135deg, #f8e6bd, #d6ab64 55%, #f3d89f);
    box-shadow: inset 0 0 0 1px rgb(110 72 28 / .35);
}
/* soft rings like a card pattern */
.pr-gift .inv-gift__account:not(.inv-gift__address)::after {
    content: ''; position: absolute; z-index: -1; right: -2.6rem; bottom: -3rem; width: 7.5rem; height: 7.5rem; border-radius: 50%;
    border: 14px solid rgb(255 255 255 / .09); box-shadow: 0 0 0 18px rgb(255 255 255 / .05);
}
.pr-gift .inv-gift__account:not(.inv-gift__address) .inv-gift__bank {
    min-height: 1.5rem; max-width: 100%; margin: 0 0 2.6rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; overflow-wrap: anywhere;
}
.pr-gift .inv-gift__account:not(.inv-gift__address) .inv-gift__logo { height: 1.5rem; padding: .2rem .45rem; border-radius: .35rem; max-width: 100%; }
.pr-gift .inv-gift__account:not(.inv-gift__address) .inv-gift__logo img { max-width: 5rem; }
.pr-gift .inv-gift__account:not(.inv-gift__address) .inv-gift__number {
    max-width: 100%; margin: 0 0 .2rem; font: 700 1rem/1.3 var(--pr-sans); letter-spacing: .08em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.pr-gift .inv-gift__account:not(.inv-gift__address) .inv-gift__holder {
    max-width: 100%; margin: 0 0 .65rem; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35; overflow-wrap: anywhere;
}
.pr-gift .inv-gift__account:not(.inv-gift__address) .inv-button {
    /* auto: buttons stay level when two cards in a row differ in height */
    margin-top: auto; padding: .35rem .7rem; font-size: .65rem; letter-spacing: .02em; text-shadow: none;
    background: rgb(255 255 255 / .14); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .75);
}
.pr-gift .inv-gift__address {
    padding: 1.5rem 1.3rem; border-radius: 18px; background: var(--pr-sheet);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-primary) 18%, transparent), var(--pr-shadow);
}
.pr-gift .inv-gift__address .inv-gift__bank { font: italic 600 1.6rem/1.2 var(--pr-serif); color: var(--inv-primary); }
.pr-gift .inv-gift__address .inv-gift__holder { margin: .3rem 0 .2rem; font-weight: 700; }
.pr-gift .inv-gift__address p { font-size: .9rem; color: var(--pr-soft); }
.pr-gift .inv-gift__address .inv-button { margin-top: .9rem; }

/* ---------- buttons (shared components) ---------- */
.inv-button {
    padding: .75rem 1.4rem; font-family: var(--pr-sans); font-size: .86rem; font-weight: 700; letter-spacing: .03em;
    background: linear-gradient(135deg, color-mix(in srgb, var(--inv-primary) 85%, var(--inv-accent)), var(--pr-deep));
    color: #fff; box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--inv-primary) 90%, transparent);
}
.inv-button--outline {
    background: rgb(255 255 255 / .7); color: var(--inv-primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 60%, transparent);
}
.inv-maps { margin-top: .2rem; }

/* ---------- RSVP & wishes (x-inv.rsvp, x-inv.wishes) ---------- */
.pr-form { text-align: left; }
.pr-form .inv-form { gap: .9rem; }
.pr-form .inv-form label { font-size: .84rem; font-weight: 600; color: var(--inv-text); }
.pr-form .inv-form input:not([type=radio]):not([type=checkbox]), .pr-form .inv-form select, .pr-form .inv-form textarea {
    padding: .7rem .85rem; border: 1px solid color-mix(in srgb, var(--inv-primary) 35%, transparent); border-radius: 12px;
    background: #fff; color: var(--inv-text); font-weight: 500; transition: border-color .2s ease, box-shadow .2s ease;
}
.pr-form .inv-form input:focus, .pr-form .inv-form select:focus, .pr-form .inv-form textarea:focus {
    outline: none; border-color: var(--inv-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-primary) 16%, transparent);
}
.pr-form .inv-form__choices legend { font-weight: 600; color: var(--inv-text); }
.pr-form .inv-form__choices label {
    padding: .45rem .85rem; border-radius: 999px; background: #fff; font-weight: 600; cursor: pointer;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 35%, transparent);
}
.pr-form .inv-form__choices label:has(input:checked) { background: color-mix(in srgb, var(--inv-blush) 50%, #fff); box-shadow: inset 0 0 0 1.5px var(--inv-primary); }
.pr-form .inv-form > .inv-button { width: 100%; }
.pr-form .inv-rsvp__deadline { margin-bottom: .8rem; font-size: .84rem; color: var(--pr-soft); text-align: center; }
.pr-form .inv-form__notice { background: color-mix(in srgb, var(--inv-blush) 40%, #fff); color: var(--inv-text); }

.pr-wishes { padding-top: 3.8rem; }
.pr-wishes .pr-card { padding-top: 2.4rem; }
/* the list: three wishes per page, with pager buttons below */
.pr-wishes .inv-wishes__list { gap: .55rem; margin-top: 1.4rem; }
.pr-wishes .inv-wish {
    padding: .65rem .8rem; border-radius: 12px; background: #fff; border-left: 3px solid var(--inv-accent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-primary) 14%, transparent);
}
.pr-wishes .inv-wish__name { font: 700 1rem/1.3 var(--pr-serif); color: var(--inv-primary); }
.pr-wishes .inv-wish__message { margin-top: .15rem; font-size: .88rem; line-height: 1.45; }
.pr-wishes .inv-wish__time { margin-top: .25rem; font-size: .7rem; color: var(--pr-soft); opacity: 1; }
.pr-wishes .inv-wishes__pager { gap: .9rem; margin-top: 1rem; }
.pr-wishes .inv-wishes__page-button {
    display: grid; place-items: center; width: 2.3rem; height: 2.3rem; padding: 0 0 .15rem;
    font: 600 1.7rem/1 var(--pr-serif); color: var(--inv-primary);
    background: color-mix(in srgb, var(--inv-blush) 35%, #fff); border: 0;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 40%, transparent), 0 6px 14px -8px color-mix(in srgb, var(--inv-primary) 70%, transparent);
    transition: transform .2s ease, background-color .2s ease;
}
.pr-wishes .inv-wishes__page-button:not(:disabled):active { transform: scale(.94); }
.pr-wishes .inv-wishes__page-button:disabled { opacity: .4; }
.pr-wishes .inv-wishes__page { min-width: 4rem; font: 700 .95rem/1 var(--pr-serif); letter-spacing: .12em; color: var(--inv-text); opacity: 1; }
.pr-wishes .inv-wishes__empty { text-align: center; color: var(--pr-soft); opacity: 1; }

/* ---------- closing: the photo full-bleed fading into deep coral, flowers framing the thanks ---------- */
.pr-closing {
    position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #fff;
    padding: 0 1.5rem 2.4rem;
    background: radial-gradient(120% 50% at 50% 100%, color-mix(in srgb, var(--inv-primary) 70%, var(--inv-accent)), transparent 70%), var(--pr-deep);
}
.pr-closing__media { position: relative; height: 22rem; margin: 0 -1.5rem; overflow: hidden; background: linear-gradient(180deg, var(--inv-background), color-mix(in srgb, var(--inv-petal) 60%, var(--pr-deep)) 45%, var(--pr-deep)); }
.pr-closing--photo .pr-closing__media { background: var(--pr-deep); }
.pr-closing__photo { position: absolute; left: 0; top: -40px; width: 100%; height: calc(100% + 80px); object-fit: cover; object-position: center 30%; }
.pr-closing__media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-background) 85%, transparent) 0%, transparent 18%, transparent 46%, color-mix(in srgb, var(--pr-deep) 70%, transparent) 76%, var(--pr-deep) 100%);
}
.pr-closing__tl { top: -12px; left: -20px; width: clamp(150px, 46%, 210px); }
.pr-closing__tr { top: -12px; right: -20px; width: clamp(150px, 46%, 210px); }
.pr-closing__text { position: relative; z-index: 1; margin-top: -3.2rem; }
.pr-closing__rose { top: -3.6rem; width: 132px; z-index: 0; filter: var(--pr-flora-filter) drop-shadow(0 10px 14px rgb(20 4 4 / .45)); }
.pr-closing__rose--left { left: calc(-1.5rem - 62px); }
.pr-closing__rose--right { right: calc(-1.5rem - 62px); }
.pr-closing__kicker { font: 600 2.2rem/1.1 var(--pr-serif); color: #fff; }
.pr-closing__kicker::before { content: ''; display: block; width: 64px; height: 2px; margin: 0 auto .9rem; background: linear-gradient(90deg, var(--pr-light), var(--inv-accent)); }
.pr-closing__message { max-width: 22rem; margin: .8rem auto 0; color: rgb(255 255 255 / .92); font-size: .94rem; }
.pr-closing__sign { margin-top: 1.2rem; font: italic 600 1.08rem/1.4 var(--pr-serif); color: var(--pr-light); }
.pr-closing__names { margin-top: .3rem; font: 400 clamp(2.6rem, 12.5vw, 3.2rem)/1.2 var(--pr-script); color: #fff; }
.pr-closing__names .pr-amp { color: var(--pr-light); }
.pr-closing__line { display: block; width: 120px; height: 1px; margin: .9rem auto 0; background: linear-gradient(90deg, transparent, var(--pr-light), transparent); }

/* ---------- platform bits ---------- */
.pr-branding { position: relative; z-index: 1; margin: 0; padding: 0 1rem 1.2rem; background: var(--pr-deep); color: var(--pr-light); opacity: 1; }
.pr-branding a { color: #fff; }
.inv-checkin { position: relative; z-index: 1; }
.inv-music { right: max(1rem, calc(50vw - 230px + 1rem)); }
.inv-music__button {
    background: linear-gradient(135deg, var(--inv-primary), var(--pr-deeper));
    box-shadow: 0 0 0 2px rgb(255 255 255 / .85), 0 8px 18px -6px color-mix(in srgb, var(--inv-primary) 80%, #000);
}

/* bottom menu (x-inv.nav) */
.inv-nav.pr-nav {
    --inv-nav-bg: rgb(255 255 255 / .9);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 85%, transparent);
    --inv-nav-active: var(--inv-primary);
    border-color: color-mix(in srgb, var(--inv-primary) 30%, transparent);
    box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--inv-primary) 60%, transparent);
    font-family: var(--pr-sans); font-weight: 600;
}

/* the monogram bar grows when revealed */
html.inv-anim .pr-reel__mono .pr-reel__bar { transform: scaleY(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .5s; }
html.inv-anim .pr-reel__mono.is-revealed .pr-reel__bar { transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pr-flora, .pr-live__badge span, .pr-drift i { animation: none !important; }
}

/* ---------- fit: the whole cover (names, date, guest, button) fits one phone screen ---------- */
@media (max-height: 760px) {
    .pr-cover__tl, .pr-cover__br { width: clamp(150px, 44%, 200px); }
    .pr-cover__portrait { width: min(50vw, 190px, 25svh); }
    .pr-cover__names { font-size: clamp(2.35rem, 11vw, 2.85rem); }
    .pr-cover__quote { font-size: .92rem; line-height: 1.42; }
    .pr-cover__guest { padding: .6rem 1rem .65rem; }
    .pr-cover__guest-name { font-size: 1.15rem; }
    .pr-cover__guest-note { margin-top: .15rem; font-size: .68rem; }
}
@media (max-height: 660px) {
    .pr-cover__tl, .pr-cover__br { width: clamp(130px, 38%, 170px); }
    .pr-cover__inner { padding-top: clamp(1.6rem, 5svh, 2.6rem); }
    .pr-cover__portrait { width: min(50vw, 180px, 23svh); margin-bottom: 1.3rem; }
    .pr-cover__names { font-size: clamp(2.1rem, 10vw, 2.5rem); }
    .pr-cover__date { font-size: .9rem; }
    .pr-cover__quote { font-size: .86rem; max-width: 20rem; }
    .pr-cover__guest-note { display: none; }
    .pr-open.inv-button { margin-top: 0; padding: .72rem 1.5rem; }
}
@media (max-height: 600px) {
    .pr-cover__inner { padding-top: 1.9rem; gap: .35rem; }
    .pr-cover__portrait { width: min(44vw, 160px, 22svh); margin-bottom: 1.2rem; }
    .pr-cover__tl, .pr-cover__br { width: clamp(120px, 34%, 150px); }
}
