/*
 * Template "Floral Pastel Tanpa Foto" (Pernikahan): an airy pastel watercolor-floral invitation without photos.
 * Colors from the variant (x-inv.head): --inv-primary (names, titles, buttons), --inv-accent (soft gold hairlines,
 * stamens, card chip), --inv-background (warm white paper), --inv-text, and the watercolor pigments
 * --inv-blush, --inv-peach, --inv-lilac, --inv-mint and --inv-leaf (flowers, washes, eucalyptus).
 * The flowers are SVG symbols drawn in currentColor; the .fp-c-* classes give each one its pigment.
 */

:root {
    --inv-primary: #a8566f;
    --inv-accent: #c79a6b;
    --inv-background: #fffaf7;
    --inv-text: #4a383f;
    --inv-blush: #e897aa;
    --inv-peach: #f2ad86;
    --inv-lilac: #b49ad8;
    --inv-mint: #8ec9ac;
    --inv-leaf: #6f9a82;
    --inv-radius: 14px;

    --fp-col: min(100vw, 460px);
    --fp-script: 'Great Vibes', 'Brush Script MT', cursive;
    --fp-serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --fp-label: 'Josefin Sans', 'Segoe UI', sans-serif;
    --fp-text: 'Lora', Georgia, serif;
    --fp-mono: 'DM Mono', ui-monospace, 'Courier New', monospace;
    --fp-arabic: 'Amiri', 'Traditional Arabic', serif;

    --fp-muted: color-mix(in srgb, var(--inv-text) 78%, var(--inv-background));
    --fp-line: color-mix(in srgb, var(--inv-accent) 55%, transparent);
    --fp-paper: color-mix(in srgb, #fff 70%, var(--inv-background));
    --fp-shadow: 0 18px 40px -26px color-mix(in srgb, var(--inv-primary) 55%, transparent);
    /* watercolor washes used on panels */
    --fp-washes:
        radial-gradient(42% 30% at 12% 8%, color-mix(in srgb, var(--inv-blush) 26%, transparent), transparent 70%),
        radial-gradient(40% 26% at 92% 30%, color-mix(in srgb, var(--inv-lilac) 22%, transparent), transparent 70%),
        radial-gradient(46% 28% at 10% 70%, color-mix(in srgb, var(--inv-mint) 22%, transparent), transparent 70%),
        radial-gradient(40% 30% at 88% 94%, color-mix(in srgb, var(--inv-peach) 26%, transparent), transparent 70%);
}

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

body.fp-body {
    min-height: 100vh;
    color: var(--inv-text);
    font-family: var(--fp-text);
    font-size: 15px;
    line-height: 1.7;
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(40vw 40vh at 8% 12%, color-mix(in srgb, var(--inv-blush) 30%, transparent), transparent 70%),
        radial-gradient(36vw 40vh at 94% 20%, color-mix(in srgb, var(--inv-lilac) 28%, transparent), transparent 70%),
        radial-gradient(40vw 40vh at 6% 88%, color-mix(in srgb, var(--inv-mint) 28%, transparent), transparent 70%),
        radial-gradient(40vw 40vh at 92% 86%, color-mix(in srgb, var(--inv-peach) 30%, transparent), transparent 70%),
        color-mix(in srgb, var(--inv-background) 88%, var(--inv-blush));
    background-attachment: fixed;
}

.fp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* the pigments */
.fp-c-blush { color: var(--inv-blush); }
.fp-c-peach { color: var(--inv-peach); }
.fp-c-lilac { color: var(--inv-lilac); }
.fp-c-mint { color: var(--inv-mint); }
.fp-c-leaf { color: var(--inv-leaf); }
.fp-gold { fill: var(--inv-accent); }
.fp-leafc { fill: var(--inv-leaf); fill-opacity: .65; }
.fp-floret { fill: #fffdf9; stroke: currentColor; stroke-opacity: .7; stroke-width: .6; }

.fp-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: 600 .7rem/1.4 var(--fp-text);
}

/* big bouquets on the backdrop, beside the column (wide screens only) */
.fp-backdrop { display: none; }
@media (min-width: 900px) {
    .fp-backdrop { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
    .fp-backdrop__bouquet { position: absolute; width: min(30vw, 26rem); height: auto; opacity: .85; }
    .fp-backdrop__bouquet--left { top: -2rem; left: -2rem; }
    .fp-backdrop__bouquet--right { bottom: -2rem; right: -2rem; scale: -1 -1; }
}

/* ---------- shared pieces ---------- */
.fp-kicker {
    font-family: var(--fp-label); font-size: .7rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
    color: color-mix(in srgb, var(--inv-primary) 80%, var(--inv-text));
}
.fp-script { font-family: var(--fp-script); font-weight: 400; line-height: 1.1; color: var(--inv-primary); }
.fp-icon { display: block; width: 1.1rem; height: 1.1rem; flex: none; }

.fp-divider { display: flex; align-items: center; justify-content: center; gap: .5rem; max-width: 15rem; margin: 1.5rem auto; }
.fp-divider__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--fp-line), transparent); }
.fp-divider__mark { flex: none; width: 4.8rem; height: 1.45rem; overflow: visible; }
.fp-divider--title { margin: .35rem auto 0; max-width: 13rem; }

.fp-title { display: grid; justify-items: center; gap: .15rem; margin-bottom: 2.2rem; }
.fp-title__text { font: 400 2.75rem/1.15 var(--fp-script); color: var(--inv-primary); }

.fp-chip {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem;
    padding: .38rem .9rem; border-radius: 999px; text-decoration: none;
    font: 600 .76rem/1.2 var(--fp-text); color: var(--inv-primary);
    background: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 35%, transparent);
}
.fp-chip .fp-icon { width: .95rem; height: .95rem; }

.fp-card {
    position: relative; padding: 2.6rem 1.25rem 1.6rem; border-radius: 24px; text-align: left;
    background: color-mix(in srgb, #fff 82%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 32%, transparent), var(--fp-shadow);
}
.fp-card__sprig { position: absolute; top: -1.7rem; left: 50%; width: 10rem; height: auto; margin-left: -5rem; overflow: visible; }
.fp-lead { max-width: 31ch; margin: -.6rem auto 1.6rem; color: var(--fp-muted); font-size: .93rem; }

/* bouquets sway gently from their corner */
.fp-bouquet { display: block; overflow: visible; pointer-events: none; will-change: transform; animation: fp-sway 8s ease-in-out infinite alternate; }
@keyframes fp-sway { from { rotate: -1.8deg; } to { rotate: 1.8deg; } }
@keyframes fp-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes fp-pulse { 0%, 100% { opacity: .5; scale: 1; } 50% { opacity: .9; scale: 1.08; } }

/* wreaths */
.fp-wreath { display: block; overflow: visible; }
.fp-wreath__wash { fill: color-mix(in srgb, var(--inv-blush) 12%, #fff); }
.fp-wreath__ring { fill: none; stroke: var(--inv-accent); stroke-width: 1; opacity: .8; }
.fp-wreath__ring--inner { stroke-width: .6; opacity: .45; stroke-dasharray: 1.5 3; }

/* ---------- cover ---------- */
.fp-cover {
    position: fixed; top: 0; bottom: 0; left: 50%; z-index: 30; width: var(--fp-col); transform: translateX(-50%);
    overflow: hidden auto; overscroll-behavior: contain;
    background: var(--inv-background);
    box-shadow: 0 0 80px -20px color-mix(in srgb, var(--inv-primary) 40%, transparent);
}
.fp-cover__washes { position: absolute; inset: 0; pointer-events: none; background: var(--fp-washes); }

.fp-corner { position: absolute; z-index: 1; width: 15.5rem; height: 15.5rem; }
.fp-corner--tl { top: -1.1rem; left: -1.3rem; transform-origin: 20% 20%; }
.fp-corner--br { bottom: -1.8rem; right: -2rem; scale: -1 -1; transform-origin: 50% 50%; animation-delay: -4s; }
.fp-corner--small { width: 9rem; height: 9rem; opacity: .9; }
.fp-corner--tr { top: -1.4rem; right: -1.4rem; scale: -1 1; transform-origin: 50% 50%; animation-delay: -2s; }
.fp-corner--bl { bottom: -1.4rem; left: -1.4rem; scale: 1 -1; transform-origin: 50% 50%; animation-delay: -6s; }

.fp-cover__inner {
    position: relative; z-index: 2; min-height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: calc(4.6rem + env(safe-area-inset-top)) 1.6rem calc(4rem + env(safe-area-inset-bottom));
    text-align: center;
}
.fp-cover__the { font: 600 .74rem/1.5 var(--fp-label); letter-spacing: .34em; text-transform: uppercase; color: var(--fp-muted); }

.fp-crest { position: relative; display: grid; place-items: center; width: 11.5rem; aspect-ratio: 1; margin: .1rem 0 .3rem; }
.fp-crest__wreath { position: absolute; inset: 0; width: 100%; height: 100%; }
.fp-crest__letters {
    position: relative; display: inline-flex; align-items: center; gap: .1rem; margin-top: -.6rem;
    font: 500 2.5rem/1 var(--fp-serif); color: var(--inv-primary); letter-spacing: .02em;
}
.fp-crest__letters i { font: 400 1.9rem/1 var(--fp-script); font-style: normal; color: var(--inv-accent); padding: 0 .1rem; }

.fp-cover__names { display: flex; flex-direction: column; align-items: center; font-size: clamp(2.9rem, 13vw, 3.6rem); line-height: 1.02; }
.fp-cover__amp { font-size: .55em; color: var(--inv-accent); margin: -.05em 0; }
.fp-cover__date {
    margin-top: .6rem; padding: .3rem 0; font: 600 .76rem/1.5 var(--fp-label); letter-spacing: .2em; text-transform: uppercase; color: var(--inv-text);
    border-top: 1px solid var(--fp-line); border-bottom: 1px solid var(--fp-line);
}
.fp-cover__quote { max-width: 28ch; margin-top: .6rem; font: italic 500 1.05rem/1.45 var(--fp-serif); color: var(--fp-muted); }

.fp-guest {
    width: min(100%, 17rem); margin-top: 1.4rem; padding: .8rem 1.1rem .9rem; border-radius: 16px;
    background: color-mix(in srgb, #fff 80%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 45%, transparent), 0 0 0 4px color-mix(in srgb, #fff 55%, transparent), var(--fp-shadow);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.fp-guest__label { font: 600 .64rem/1.4 var(--fp-label); letter-spacing: .26em; text-transform: uppercase; color: var(--fp-muted); }
.fp-guest__name { display: block; margin-top: .15rem; font: 600 1.35rem/1.3 var(--fp-serif); color: var(--inv-text); overflow-wrap: anywhere; }

.fp-open {
    margin-top: 1.3rem; padding: .85rem 1.7rem; gap: .55rem;
    font: 600 .78rem/1 var(--fp-label); letter-spacing: .16em; text-transform: uppercase;
    background: var(--inv-primary); color: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--inv-blush) 30%, transparent), 0 14px 26px -14px var(--inv-primary);
}
.fp-open__icon { width: 1.1rem; height: 1.1rem; }
.fp-open:hover { filter: brightness(1.07); }

.fp-cover--leave { transition: opacity .9s ease, transform 1s cubic-bezier(.6, 0, .3, 1); }
.fp-cover--gone { opacity: 0; transform: translateX(-50%) translateY(-4%) scale(1.03); }

/* ---------- page ---------- */
.fp-page {
    position: relative; display: flex; flex-direction: column; width: var(--fp-col); min-height: 100vh; margin: 0 auto; overflow: hidden;
    background: var(--inv-background);
    box-shadow: 0 0 80px -20px color-mix(in srgb, var(--inv-primary) 40%, transparent);
}
.fp-main { position: relative; }
.fp-section { position: relative; padding: 4.5rem 1.5rem; text-align: center; }
/* soft watercolor bands */
.fp-band { overflow: hidden; background: var(--fp-washes), color-mix(in srgb, var(--inv-blush) 7%, var(--inv-background)); }
.fp-band > * { position: relative; }
.fp-band > .fp-band__bouquet { position: absolute; width: 9.5rem; height: 9.5rem; opacity: .9; }
.fp-band__bouquet--tl { top: -1.6rem; left: -1.6rem; transform-origin: 20% 20%; }
.fp-band__bouquet--br { bottom: -1.6rem; right: -1.6rem; scale: -1 -1; transform-origin: 50% 50%; animation-delay: -3s; }

/* ---------- opening ---------- */
.fp-opening { padding-top: 4rem; background: linear-gradient(180deg, color-mix(in srgb, var(--inv-blush) 10%, var(--inv-background)), var(--inv-background)); }
.fp-opening__sprig { display: block; width: 11rem; height: auto; margin: 0 auto 1rem; overflow: visible; }
.fp-arabic { margin-bottom: .8rem; font-family: var(--fp-arabic); font-size: clamp(1.8rem, 8vw, 2.3rem); line-height: 1.9; color: var(--inv-primary); }
.fp-opening__greeting { font: italic 600 1.3rem/1.4 var(--fp-serif); color: var(--inv-primary); }
.fp-opening__message { max-width: 33ch; margin: 1rem auto 0; color: var(--fp-muted); }

.fp-verse {
    position: relative; margin: 3rem auto 0; padding: 2.6rem 1.7rem 2rem; max-width: 23rem; border-radius: 26px;
    background: color-mix(in srgb, #fff 85%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 35%, transparent), var(--fp-shadow);
}
.fp-verse__bouquet { position: absolute; width: 6.6rem; height: 6.6rem; }
.fp-verse__bouquet--tl { top: -1.9rem; left: -1.6rem; transform-origin: 20% 20%; }
.fp-verse__bouquet--br { bottom: -1.9rem; right: -1.6rem; scale: -1 -1; transform-origin: 50% 50%; animation-delay: -5s; }
.fp-verse__mark { display: block; height: 1.6rem; font: 400 3.6rem/1 var(--fp-serif); color: var(--inv-blush); }
.fp-verse blockquote { position: relative; font: italic 500 1.14rem/1.6 var(--fp-serif); color: var(--inv-text); }
.fp-verse figcaption { position: relative; margin-top: 1rem; font: 600 .7rem/1.4 var(--fp-label); letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); }

/* ---------- couple: zig-zag with wreath medallions ---------- */
.fp-couple { padding-left: 1.1rem; padding-right: 1.1rem; }
.fp-person { display: grid; grid-template-columns: 8.6rem minmax(0, 1fr); align-items: center; gap: .9rem; text-align: left; }
.fp-person--right { grid-template-columns: minmax(0, 1fr) 8.6rem; text-align: right; }
.fp-person--right .fp-medal { order: 2; }
.fp-medal { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; }
.fp-medal__wreath { position: absolute; inset: 0; width: 100%; height: 100%; animation: fp-float 6s ease-in-out infinite; }
.fp-person--right .fp-medal__wreath { scale: -1 1; animation-delay: -3s; }
.fp-medal__initial { position: relative; margin-top: -.5rem; font: 400 3.3rem/1 var(--fp-script); color: var(--inv-primary); }
.fp-person__label { font-size: .6rem; letter-spacing: .22em; }
.fp-person__nick { font-size: 2.6rem; margin-top: .05rem; }
.fp-person__name { margin-top: .1rem; font: 600 1.22rem/1.25 var(--fp-serif); color: var(--inv-text); overflow-wrap: anywhere; }
.fp-person__parents { margin-top: .45rem; font-size: .84rem; line-height: 1.5; color: var(--fp-muted); }
.fp-person__parents span { display: block; font-size: .74rem; font-style: italic; }

.fp-amp { display: flex; align-items: center; gap: .8rem; max-width: 15rem; margin: 1.4rem auto; }
.fp-amp__badge { position: relative; display: grid; place-items: center; width: 4.4rem; height: 4.4rem; flex: none; }
.fp-amp__flowers { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fp-amp__badge .fp-script { position: relative; font-size: 2.6rem; color: var(--inv-primary); padding-top: .4rem; }

/* ---------- countdown ---------- */
.fp-datecard { display: grid; justify-items: center; margin: -.6rem auto 1.8rem; }
.fp-datecard__day, .fp-datecard__month { font: 600 .7rem/1.4 var(--fp-label); letter-spacing: .26em; text-transform: uppercase; color: var(--fp-muted); }
.fp-datecard__num { font: 500 3.6rem/1.05 var(--fp-serif); color: var(--inv-primary); }

.inv-countdown { gap: .55rem; }
.inv-countdown__item {
    position: relative; flex: 1; min-width: 0; max-width: 4.9rem; aspect-ratio: 1; padding: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 47% 53% 50% 50% / 52% 46% 54% 48%;
    background: radial-gradient(circle at 40% 35%, #fff 0 20%, color-mix(in srgb, var(--fp-pig, var(--inv-blush)) 38%, #fff) 75%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fp-pig, var(--inv-blush)) 60%, transparent), 0 10px 20px -14px var(--inv-primary);
}
.inv-countdown__item:nth-child(2) { --fp-pig: var(--inv-peach); border-radius: 52% 48% 46% 54% / 48% 54% 46% 52%; }
.inv-countdown__item:nth-child(3) { --fp-pig: var(--inv-lilac); border-radius: 48% 52% 54% 46% / 50% 46% 54% 50%; }
.inv-countdown__item:nth-child(4) { --fp-pig: var(--inv-mint); border-radius: 54% 46% 50% 50% / 46% 52% 48% 54%; }
.inv-countdown__value { font: 600 1.55rem/1.1 var(--fp-serif); color: var(--inv-text); }
.inv-countdown__label { margin-top: .1rem; font: 600 .56rem/1.2 var(--fp-label); letter-spacing: .14em; text-transform: uppercase; color: var(--fp-muted); }
.inv-countdown__actions { margin-top: 1.6rem; }
.inv-countdown__actions .inv-button { padding: .6rem 1rem; font-size: .76rem; }
.inv-countdown__done { font: italic 500 1.2rem var(--fp-serif); }

/* ---------- buttons ---------- */
.inv-button {
    background: var(--inv-primary); color: #fff; font: 600 .84rem/1.2 var(--fp-text); letter-spacing: .01em;
    box-shadow: 0 10px 20px -14px var(--inv-primary);
}
.inv-button--outline {
    background: #fff; color: var(--inv-primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 40%, transparent);
}

/* ---------- events (centered) ---------- */
.fp-events { background: linear-gradient(180deg, var(--inv-background), color-mix(in srgb, var(--inv-lilac) 9%, var(--inv-background))); }
.fp-events__card { text-align: center; padding-top: 2.8rem; }
.fp-event { display: grid; justify-items: center; gap: .3rem; }
.fp-event__no { font-size: .6rem; }
.fp-event__name { font-size: 2.5rem; margin-bottom: .2rem; }
.fp-event__date, .fp-event__time, .fp-event__dress { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; }
.fp-event__date { font-weight: 600; }
.fp-event__time { font-weight: 600; color: var(--inv-primary); }
.fp-event__date .fp-icon, .fp-event__time .fp-icon, .fp-event__dress .fp-icon, .fp-event__pin { width: 1rem; height: 1rem; color: var(--inv-primary); }
.fp-event__place { display: grid; justify-items: center; gap: .1rem; margin-top: .35rem; }
.fp-event__venue { font: 700 1.25rem/1.3 var(--fp-serif); color: var(--inv-text); }
.fp-event__address { max-width: 30ch; font-size: .86rem; line-height: 1.5; color: var(--fp-muted); }
.fp-event__dress { margin-top: .2rem; padding: .25rem .8rem; border-radius: 999px; font-size: .8rem; background: color-mix(in srgb, var(--inv-mint) 18%, #fff); }
.fp-event__actions { display: flex; justify-content: center; gap: .5rem; width: 100%; margin-top: 1rem; }
.fp-event__actions .inv-button { flex: 1; max-width: 10rem; gap: .4rem; padding: .62rem .6rem; font-size: .76rem; white-space: nowrap; }
.fp-event__actions .fp-icon { width: .95rem; height: .95rem; }
.fp-event__sep { position: relative; display: grid; place-items: center; margin: 1.6rem 0; border-top: 1.5px dashed color-mix(in srgb, var(--inv-accent) 55%, transparent); }
.fp-event__sep svg { position: absolute; width: 1.6rem; height: 1.6rem; padding: .1rem; background: #fff; border-radius: 50%; overflow: visible; }

/* ---------- love story: a dainty timeline ---------- */
.fp-timeline { position: relative; display: grid; gap: 1.2rem; padding: 0 0 0 2.4rem; list-style: none; text-align: left; }
.fp-timeline::before {
    content: ''; position: absolute; top: .6rem; bottom: .6rem; left: 1rem; width: 1px;
    background: linear-gradient(transparent, var(--fp-line) 6%, var(--fp-line) 94%, transparent);
}
.fp-moment { position: relative; }
.fp-moment__dot {
    position: absolute; top: .55rem; left: -2.4rem; display: grid; place-items: center;
    width: 2rem; height: 2rem; border-radius: 50%; background: var(--inv-background);
}
.fp-moment__dot svg { width: 1.6rem; height: 1.6rem; overflow: visible; }
.fp-moment__card {
    padding: .9rem 1rem 1rem; border-radius: 6px 18px 18px 18px;
    background: color-mix(in srgb, #fff 85%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 25%, transparent), 0 12px 26px -22px var(--inv-primary);
}
.fp-moment__date { font: 600 .66rem/1.4 var(--fp-label); letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); }
.fp-moment__title { margin-top: .15rem; font: 700 1.2rem/1.25 var(--fp-serif); color: var(--inv-text); overflow-wrap: anywhere; }
.fp-moment__story { margin-top: .3rem; font-size: .86rem; line-height: 1.55; color: var(--fp-muted); overflow-wrap: anywhere; }

/* ---------- live ---------- */
.fp-live__card { display: grid; justify-items: center; gap: .6rem; text-align: center; }
.fp-live__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: color-mix(in srgb, var(--inv-blush) 25%, #fff); color: var(--inv-primary); }
.fp-live__icon .fp-icon { width: 1.5rem; height: 1.5rem; }
.fp-live__badge { display: inline-flex; align-items: center; gap: .45rem; font: 600 .7rem/1.4 var(--fp-label); letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); }
.fp-live__badge span { width: .5rem; height: .5rem; border-radius: 50%; background: #d64545; box-shadow: 0 0 0 4px color-mix(in srgb, #d64545 22%, transparent); animation: fp-pulse 2s ease-in-out infinite; }
.fp-live__note { font-size: .86rem; color: var(--fp-muted); }

/* ---------- gift: accounts as pastel bank cards ---------- */
.fp-giftbox { display: grid; gap: 1rem; }
.inv-gift__account + .inv-gift__account { margin-top: 0; }
.inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.inv-gift__account:not(.inv-gift__address) {
    position: relative; isolation: isolate; overflow: hidden; min-width: 0; margin: 0;
    display: flex; flex-direction: column; align-items: flex-start;
    padding: .8rem .8rem .85rem; border-radius: 16px; text-align: left; color: var(--inv-text);
    background:
        radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--inv-lilac) 55%, transparent), transparent 70%),
        radial-gradient(80% 70% at 0% 100%, color-mix(in srgb, var(--inv-mint) 40%, transparent), transparent 70%),
        linear-gradient(135deg, color-mix(in srgb, var(--inv-blush) 55%, #fff), color-mix(in srgb, var(--inv-peach) 45%, #fff));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 60%, transparent), 0 16px 28px -20px var(--inv-primary);
}
.inv-gift__account:nth-child(3n+2):not(.inv-gift__address) {
    background:
        radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--inv-mint) 50%, transparent), transparent 70%),
        linear-gradient(135deg, color-mix(in srgb, var(--inv-lilac) 50%, #fff), color-mix(in srgb, var(--inv-blush) 40%, #fff));
}
/* the chip */
.inv-gift__account:not(.inv-gift__address)::before {
    content: ''; display: block; order: 1; width: 1.7rem; height: 1.3rem; margin-top: .55rem; border-radius: 4px;
    background:
        linear-gradient(90deg, transparent 31%, rgb(0 0 0 / .2) 32% 34%, transparent 35% 65%, rgb(0 0 0 / .2) 66% 68%, transparent 69%),
        linear-gradient(transparent 46%, rgb(0 0 0 / .2) 47% 53%, transparent 54%),
        linear-gradient(135deg, #f8e7bd, var(--inv-accent) 60%, color-mix(in srgb, var(--inv-accent) 75%, #000));
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12);
}
/* a faint white blossom on the card */
.inv-gift__account:not(.inv-gift__address)::after {
    content: ''; position: absolute; right: -1.2rem; bottom: -1.4rem; z-index: -1; width: 5.5rem; height: 5.5rem; opacity: .55;
    background:
        radial-gradient(circle at 50% 22%, #fff 0 17%, transparent 18%),
        radial-gradient(circle at 80% 44%, #fff 0 17%, transparent 18%),
        radial-gradient(circle at 68% 78%, #fff 0 17%, transparent 18%),
        radial-gradient(circle at 32% 78%, #fff 0 17%, transparent 18%),
        radial-gradient(circle at 20% 44%, #fff 0 17%, transparent 18%);
}
.inv-gift__account:not(.inv-gift__address) .inv-gift__bank {
    order: 0; margin: 0; min-height: 1.5rem; max-width: 100%; display: flex; align-items: center; overflow-wrap: anywhere;
    font: 600 .68rem/1.2 var(--fp-label); letter-spacing: .12em; text-transform: uppercase; color: var(--inv-text);
}
.inv-gift__account:not(.inv-gift__address) .inv-gift__logo { height: 1.5rem; padding: .2rem .45rem; border-radius: .35rem; background: #fff; }
.inv-gift__account:not(.inv-gift__address) .inv-gift__logo img { max-width: 5.5rem; }
.inv-gift__account:not(.inv-gift__address) .inv-gift__number {
    order: 2; max-width: 100%; margin: .55rem 0 0; font: 500 .98rem/1.3 var(--fp-mono); letter-spacing: .04em; color: var(--inv-text); overflow-wrap: anywhere;
}
.inv-gift__account:not(.inv-gift__address) .inv-gift__holder {
    order: 3; max-width: 100%; margin: .2rem 0 0; font: 600 .6rem/1.35 var(--fp-label); letter-spacing: .1em; text-transform: uppercase;
    color: color-mix(in srgb, var(--inv-text) 85%, transparent); overflow-wrap: anywhere;
}
.inv-gift__account:not(.inv-gift__address) .inv-button {
    order: 4; margin-top: .65rem; padding: .35rem .75rem; font-size: .66rem;
    background: color-mix(in srgb, #fff 75%, transparent); color: var(--inv-primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-primary) 30%, transparent);
}
.inv-gift__address {
    padding: 1.4rem 1.2rem; border-radius: 20px; text-align: center; background: color-mix(in srgb, #fff 88%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 35%, transparent), var(--fp-shadow);
}
.inv-gift__address .inv-gift__bank { margin: 0 0 .4rem; font: 600 .7rem/1.4 var(--fp-label); letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); }
.inv-gift__address .inv-gift__holder { margin: 0 0 .2rem; font: 600 1.15rem/1.3 var(--fp-serif); }
.inv-gift__address p { margin: 0 0 .9rem; font-size: .9rem; color: var(--fp-muted); }

/* ---------- forms & wishes ---------- */
.fp-rsvp { background: linear-gradient(180deg, var(--inv-background), color-mix(in srgb, var(--inv-mint) 9%, var(--inv-background))); }
.fp-wishes { background: linear-gradient(180deg, color-mix(in srgb, var(--inv-mint) 9%, var(--inv-background)), var(--inv-background)); padding-top: 3rem; }
.fp-form .inv-form label, .fp-form .inv-form__choices legend { font-weight: 600; font-size: .85rem; }
.fp-form .inv-form input:not([type=radio]):not([type=checkbox]), .fp-form .inv-form select, .fp-form .inv-form textarea {
    border: 1px solid color-mix(in srgb, var(--inv-primary) 25%, transparent); border-radius: 12px;
    background: color-mix(in srgb, var(--inv-blush) 5%, #fff); color: var(--inv-text); padding: .7rem .85rem;
}
.fp-form .inv-form input:focus, .fp-form .inv-form select:focus, .fp-form .inv-form textarea:focus {
    outline: none; border-color: var(--inv-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-blush) 30%, transparent);
}
.fp-form .inv-form .inv-button[type=submit] { width: 100%; padding: .85rem 1rem; }
.inv-rsvp__deadline { margin: 0 0 .9rem; font-size: .84rem; color: var(--fp-muted); text-align: center; }
.inv-form__notice { background: color-mix(in srgb, var(--inv-mint) 18%, #fff); }
.inv-wishes { --inv-wishes-height: 20rem; }
.inv-wishes:not(.inv-wishes--paged) .inv-wishes__list {
    padding: .5rem .45rem .5rem .35rem; border-radius: 14px;
    background: color-mix(in srgb, var(--inv-blush) 8%, var(--inv-background));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 20%, transparent);
}
.inv-wish {
    padding: .65rem .8rem; background: #fff; border-radius: 4px 14px 14px 14px;
    box-shadow: inset 3px 0 0 var(--inv-blush), inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 22%, transparent);
}
.inv-wish:nth-child(3n+2) { box-shadow: inset 3px 0 0 var(--inv-lilac), inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 22%, transparent); }
.inv-wish:nth-child(3n) { box-shadow: inset 3px 0 0 var(--inv-mint), inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 22%, transparent); }
.inv-wish__name { font: 700 1rem/1.3 var(--fp-serif); color: var(--inv-primary); }
.inv-wish__message { font-size: .88rem; line-height: 1.45; }
.inv-wish__time { font-size: .7rem; }

/* ---------- closing ---------- */
.fp-closing { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.fp-crest--closing { width: min(80%, 16rem); margin: 0 auto 1.2rem; }
.fp-crest__names { position: relative; display: grid; justify-items: center; margin-top: -1rem; font-size: 2.3rem; line-height: 1; }
.fp-crest__names i { font-style: normal; font-size: .6em; color: var(--inv-accent); }
.fp-closing__message { max-width: 32ch; margin: .8rem auto 0; color: var(--fp-muted); }
.fp-closing__sign { margin-bottom: .2rem; }
.fp-closing__names { font-size: clamp(2.5rem, 11vw, 3.1rem); }

/* ---------- footer, nav, music ---------- */
.fp-foot {
    flex: 1; display: grid; align-content: start; justify-items: center; gap: .4rem;
    padding: 1.5rem 1rem calc(5.8rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--inv-blush) 9%, var(--inv-background));
}
.fp-foot__sprig { display: block; width: 8rem; height: auto; overflow: visible; }
.fp-branding { color: var(--fp-muted); opacity: 1; }
.inv-checkin { color: #1a1a1a; }

.fp-nav {
    --inv-nav-bg: color-mix(in srgb, #fff 92%, transparent);
    --inv-nav-text: var(--fp-muted);
    --inv-nav-active: var(--inv-primary);
    border-color: color-mix(in srgb, var(--inv-accent) 35%, transparent);
    font-family: var(--fp-text);
}
.fp-nav .inv-nav__item.is-active { color: #fff; font-weight: 600; }

/* the music button stays inside the column */
.fp-body .inv-music { right: max(1rem, calc(50vw - 230px + 1rem)); }
.inv-music__button { background: #fff; color: var(--inv-primary); box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-primary) 35%, transparent), 0 0 0 4px color-mix(in srgb, var(--inv-blush) 25%, transparent), 0 8px 18px -8px var(--inv-primary); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fp-bouquet, .fp-medal__wreath, .fp-live__badge span { animation: none; }
    .fp-cover--leave { transition: opacity .3s ease; }
}

/* ---------- fit: the whole cover (wreath → "Buka Undangan") on one phone screen ---------- */

.fp-cover__inner { min-height: 100vh; min-height: 100svh; justify-content: space-evenly; }
/* the bouquets follow the screen height, so the bottom ones stay in the corners, behind the guest box */
.fp-corner { width: min(15.5rem, 31svh); height: min(15.5rem, 31svh); }
.fp-corner--small { width: min(9rem, 18svh); height: min(9rem, 18svh); }
.fp-cover__quote { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-height: 760px) {
    .fp-cover__inner { padding-top: calc(3.6rem + env(safe-area-inset-top)); padding-bottom: calc(2.6rem + env(safe-area-inset-bottom)); }
    .fp-crest { width: min(11.5rem, 24svh); }
    .fp-crest__letters { font-size: 2.2rem; }
    .fp-cover__quote { -webkit-line-clamp: 6; max-width: 32ch; font-size: 1rem; }
    .fp-guest { margin-top: .9rem; }
    .fp-open { margin-top: .9rem; }
}
@media (max-height: 660px) {
    .fp-cover__inner { padding-top: calc(2.7rem + env(safe-area-inset-top)); padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
    .fp-crest { width: 22svh; margin: 0 0 .1rem; }
    .fp-crest__letters { font-size: 1.9rem; }
    .fp-crest__letters i { font-size: 1.5rem; }
    .fp-cover__names { font-size: 2.6rem; }
    .fp-cover__date { margin-top: .4rem; font-size: .72rem; }
    .fp-cover__quote { margin-top: .45rem; font-size: .95rem; line-height: 1.4; }
    .fp-guest { margin-top: .7rem; padding: .6rem 1rem .65rem; }
    .fp-guest__name { font-size: 1.25rem; }
    .fp-open { margin-top: .7rem; }
}

/* ---------- fit: the page ends on the sprig, close to the closing names ---------- */

.fp-closing { padding-bottom: 1.3rem; }
.fp-foot { padding: .4rem 1rem 0; }
/* the lower bouquet stays in the corner, beside the names rather than on them */
.fp-closing > .fp-band__bouquet--br { width: 7.5rem; height: 7.5rem; bottom: -2.4rem; right: -2.2rem; }
