/*
 * Banjar Sasirangan: Banjar (South Kalimantan) adat, colorful yet graceful. Sasirangan tie-dye motifs
 * (inline SVG patterns in sections/_defs: pale resist lines that bleed softly on a dyed ground), the
 * Rumah Bubungan Tinggi roof as a photo frame, a jukung boat divider, kembang goyang & melati sprays.
 * Cormorant Garamond serif + Parisienne script + Mulish sans.
 * Sections alternate cream (default tokens), a dyed wash (.bs-section--wash) and deep dyed cloth (.bs-section--deep).
 * Colors from the variant: --inv-primary, --inv-accent, --inv-background, --inv-text,
 * --inv-secondary, --inv-deep, --inv-surface, --inv-label. All classes start with "bs-".
 */

:root {
    --inv-primary: #8a2766;
    --inv-accent: #e2a62a;
    --inv-background: #fbf5ea;
    --inv-text: #2e1a28;
    --inv-secondary: #17807a;
    --inv-deep: #3a1232;
    --inv-surface: #ffffff;
    --inv-label: #9a6510;
    --inv-radius: 14px;

    --bs-w: 460px;
    --bs-serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
    --bs-script: 'Parisienne', 'Brush Script MT', cursive;
    --bs-sans: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

    /* saffron silk, as a background */
    --bs-saffron: linear-gradient(120deg, color-mix(in srgb, var(--inv-accent) 60%, #fff) 0%, var(--inv-accent) 35%, color-mix(in srgb, var(--inv-accent) 78%, #6a3a00) 60%, color-mix(in srgb, var(--inv-accent) 70%, #fff) 85%, var(--inv-accent) 100%);
    --bs-dye: linear-gradient(135deg, color-mix(in srgb, var(--inv-primary) 88%, #fff 12%), var(--inv-primary) 45%, color-mix(in srgb, var(--inv-primary) 70%, var(--inv-deep)));

    /* context tokens: cream by default, redefined for deep sections */
    --bs-bg: var(--inv-background);
    --bs-fg: var(--inv-text);
    --bs-muted: color-mix(in srgb, var(--inv-text) 80%, transparent);
    --bs-title: var(--inv-primary);
    --bs-gold: var(--inv-label);
    --bs-line: color-mix(in srgb, color-mix(in srgb, var(--inv-accent) 70%, var(--inv-text)) 50%, transparent);
    --bs-line-soft: color-mix(in srgb, color-mix(in srgb, var(--inv-accent) 70%, var(--inv-text)) 22%, transparent);
    --bs-btn-bg: var(--bs-dye);
    --bs-btn-fg: #fff;
    --bs-card-bg: var(--inv-surface);
    --bs-field-bg: #fff;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--inv-deep); scroll-behavior: smooth; }

body.bs-body {
    margin: 0;
    background: var(--inv-deep);
    color: var(--inv-text);
    font: 400 1rem/1.7 var(--bs-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }

.bs-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.bs-icon { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- backdrop (wide screens) and the column ---------- */

.bs-backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--inv-deep); }
.bs-backdrop::before {
    content: ''; position: absolute; inset: -60px;
    background: var(--bs-photo, none) center / cover no-repeat;
    filter: blur(28px) saturate(.8) brightness(.55);
    opacity: .7;
}
/* soft dyed stripes and blots, like a length of sasirangan behind the phone */
.bs-backdrop::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(40% 50% at 8% 20%, color-mix(in srgb, var(--inv-primary) 55%, transparent), transparent 70%),
        radial-gradient(40% 50% at 95% 80%, color-mix(in srgb, var(--inv-secondary) 50%, transparent), transparent 70%),
        radial-gradient(30% 35% at 90% 10%, color-mix(in srgb, var(--inv-accent) 28%, transparent), transparent 70%),
        repeating-linear-gradient(100deg, transparent 0 22px, color-mix(in srgb, var(--inv-background) 8%, transparent) 30px, transparent 38px 64px),
        color-mix(in srgb, var(--inv-deep) 55%, transparent);
}

.bs-page {
    position: relative; z-index: 1;
    width: min(100%, var(--bs-w)); min-height: 100vh; margin: 0 auto;
    background: var(--inv-background);
    overflow-x: clip;
}
@media (min-width: 520px) {
    .bs-page { box-shadow: 0 0 0 1px color-mix(in srgb, var(--inv-accent) 40%, transparent), 0 0 90px rgb(0 0 0 / .55); }
}
@media (max-width: 519px) {
    .bs-backdrop { display: none; }
}

.bs-preview {
    position: fixed; z-index: 60; top: 0; left: 0; right: 0;
    width: min(100%, var(--bs-w)); margin: 0 auto; padding: .35rem .75rem;
    background: var(--bs-saffron); color: var(--inv-deep);
    font: 600 .68rem/1.3 var(--bs-sans); text-align: center; letter-spacing: .03em;
}

/* ---------- ornaments: band, corners, divider, jukung, crown ---------- */

/* a strip of dyed cloth with soft (bleeding) edges */
.bs-band {
    position: relative; height: 36px; overflow: hidden;
    -webkit-mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.bs-band svg { display: block; width: 100%; height: 100%; }

.bs-corners { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bs-corner { position: absolute; width: clamp(110px, 32vw, 150px); aspect-ratio: 1; }
.bs-corner svg {
    display: block; width: 100%; height: 100%; overflow: visible;
    transform-origin: 6% 6%;
    animation: bs-sway 7s ease-in-out infinite alternate;
    will-change: transform;
}
.bs-corner--tl { top: 0; left: 0; }
.bs-corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.bs-corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.bs-corner--br { bottom: 0; right: 0; transform: scale(-1, -1); }
.bs-corner--tr svg { animation-delay: -2.4s; animation-duration: 8s; }
.bs-corner--bl svg { animation-delay: -4s; animation-duration: 7.5s; }
.bs-corner--br svg { animation-delay: -1.3s; animation-duration: 8.5s; }

@keyframes bs-sway {
    from { transform: rotate(-2deg) scale(1); }
    to { transform: rotate(2deg) scale(1.04); }
}

.bs-divider { display: block; width: 8.5rem; height: 1.25rem; margin: .9rem auto 0; overflow: visible; }

.bs-jukung { position: relative; z-index: 1; width: min(62%, 240px); margin: 2.4rem auto 0; opacity: .9; }
.bs-jukung svg { display: block; width: 100%; aspect-ratio: 240 / 64; overflow: visible; }
.bs-jukung svg { animation: bs-drift 9s ease-in-out infinite alternate; will-change: transform; }
@keyframes bs-drift {
    from { transform: translateX(-6px) rotate(-.6deg); }
    to { transform: translateX(6px) rotate(.6deg); }
}

.bs-crown { display: block; width: min(64%, 220px); aspect-ratio: 220 / 92; margin: 0 auto -.6rem; overflow: visible; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .3)); }

/* small-caps label */
.bs-kicker {
    position: relative; z-index: 2;
    font: 600 .72rem/1.4 var(--bs-sans); letter-spacing: .4em; text-transform: uppercase;
    color: var(--bs-gold);
}

/* ---------- buttons ---------- */

.inv-button {
    gap: .55rem; padding: .85rem 1.5rem; border-radius: 999px;
    background: var(--bs-btn-bg); color: var(--bs-btn-fg);
    font: 700 .72rem/1.2 var(--bs-sans); letter-spacing: .16em; text-transform: uppercase;
    box-shadow: 0 12px 24px -14px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .25);
}
.inv-button--outline {
    background: transparent; color: var(--bs-title);
    box-shadow: inset 0 0 0 1px var(--bs-line);
}
.inv-button--outline:hover { background: color-mix(in srgb, var(--inv-accent) 12%, transparent); }
.inv-button .bs-icon { width: 1.1rem; height: 1.1rem; }

.bs-pill {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem; padding: .5rem 1.05rem;
    border-radius: 999px; color: var(--bs-title); text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--bs-line);
    font: 600 .8rem/1 var(--bs-sans); letter-spacing: .03em;
    transition: background .25s ease;
}
.bs-pill:hover { background: color-mix(in srgb, var(--inv-accent) 14%, transparent); }

/* ---------- cover ---------- */

.bs-cover {
    position: fixed; inset: 0; z-index: 30;
    width: min(100%, var(--bs-w)); margin: 0 auto;
    display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto;
    color: var(--inv-text);
    background:
        radial-gradient(70% 40% at 50% 38%, color-mix(in srgb, var(--inv-accent) 14%, transparent), transparent 75%),
        radial-gradient(60% 30% at 0% 100%, color-mix(in srgb, var(--inv-secondary) 14%, transparent), transparent 70%),
        radial-gradient(60% 30% at 100% 100%, color-mix(in srgb, var(--inv-primary) 14%, transparent), transparent 70%),
        var(--inv-background);
}
.bs-cover > .bs-band { flex: none; }
.bs-cover > .bs-corners { top: 22px; }
.bs-cover .bs-corner { width: clamp(100px, 28vw, 128px); }
.bs-cover__inner {
    position: relative; z-index: 2;
    width: 100%; margin: auto; padding: 1.4rem 1.6rem 1rem;
    display: flex; flex-direction: column; align-items: center; gap: .55rem;
    text-align: center;
}
.bs-cover__foot { position: relative; z-index: 1; flex: none; }
.bs-cover__foot .bs-jukung { margin: 0 auto -6px; width: min(52%, 200px); }

/* the house: a Rumah Bubungan Tinggi roof over the photo in a saffron-lined frame */
.bs-house { position: relative; z-index: 2; width: min(56%, 210px); margin: .3rem auto .4rem; }
.bs-house__roof {
    position: relative; z-index: 2; display: block;
    width: 150%; margin: 0 -25% -12px; aspect-ratio: 320 / 170; overflow: visible;
    filter: drop-shadow(0 8px 10px rgb(0 0 0 / .28));
}
.bs-house__photo {
    position: relative; aspect-ratio: 4 / 4.4;
    border: 3px solid transparent; border-radius: 0 0 10px 10px;
    background:
        var(--bs-photo, none) center 25% / cover no-repeat padding-box,
        var(--bs-dye) padding-box,
        var(--bs-saffron) border-box;
    box-shadow: 0 0 0 5px var(--bs-bg), 0 0 0 6px var(--bs-line), 0 26px 44px -24px rgb(0 0 0 / .6);
}
.bs-house--cover { width: min(48%, 180px); }
.bs-house--cover .bs-house__photo { aspect-ratio: 4 / 4; }

/* the monogram on a saffron lozenge, pinned to the foot of the photo */
.bs-mono {
    position: absolute; z-index: 3; left: 50%; bottom: -1.9rem; transform: translateX(-50%);
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    width: 4.6rem; height: 4.6rem;
    font: 600 1.15rem/1 var(--bs-serif); color: var(--inv-deep);
    filter: drop-shadow(0 8px 10px rgb(0 0 0 / .3));
}
.bs-mono::before, .bs-mono::after { content: ''; position: absolute; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.bs-mono::before { inset: 0; background: var(--bs-saffron); }
.bs-mono::after { inset: 3px; background: radial-gradient(circle at 50% 35%, #fffdf6, var(--inv-background) 75%); box-shadow: inset 0 0 0 1px var(--inv-accent); }
.bs-mono > span { position: relative; z-index: 1; }
.bs-mono__sep { width: 1px; height: 1.1rem; background: var(--inv-primary); transform: rotate(22deg); }

.bs-cover__names {
    margin-top: 1.9rem;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .5rem;
    font: 400 clamp(2.6rem, 12vw, 3.3rem)/1.2 var(--bs-script); color: var(--inv-primary);
}
.bs-cover__amp { font: italic 500 .55em/1 var(--bs-serif); color: var(--bs-gold); }

.bs-cover__date {
    display: flex; align-items: center; gap: .7rem;
    font: 600 .74rem/1.4 var(--bs-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bs-muted);
}
.bs-cover__date::before, .bs-cover__date::after { content: ''; width: 1.6rem; height: 1px; background: var(--bs-line); }

.bs-cover__quote { max-width: 21rem; font: italic 500 1.02rem/1.5 var(--bs-serif); color: var(--bs-muted); }

.bs-guest {
    position: relative; width: min(100%, 18.5rem); margin-top: .35rem; padding: .85rem 1.2rem .9rem;
    border-radius: 12px; background: color-mix(in srgb, var(--inv-surface) 82%, transparent);
    border: 1px solid var(--bs-line);
    outline: 1px dashed var(--bs-line-soft); outline-offset: -6px;
    box-shadow: 0 16px 30px -24px rgb(0 0 0 / .5);
}
.bs-guest__label { font: 600 .64rem/1.4 var(--bs-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--bs-gold); }
.bs-guest__name { margin-top: .25rem; font: 700 1.3rem/1.25 var(--bs-serif); color: var(--inv-text); overflow-wrap: anywhere; }

.bs-open { margin-top: .5rem; }

.bs-cover--leave { transition: transform 1.1s cubic-bezier(.7, 0, .3, 1), opacity 1.1s ease; }
.bs-cover--gone { transform: translateY(-100%); opacity: 0; }

/* ---------- hero (top of the page after opening) ---------- */

.bs-hero {
    position: relative; overflow: hidden;
    min-height: min(100vh, 880px); min-height: min(100svh, 880px);
    display: flex; flex-direction: column; justify-content: flex-end;
    background: var(--inv-deep); color: var(--inv-background); text-align: center;
}
.bs-hero__photo { position: absolute; inset: 0; background: var(--bs-photo, none) center 28% / cover no-repeat; }
.bs-hero__photo::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--inv-deep) 25%, transparent) 0%, transparent 25%, color-mix(in srgb, var(--inv-deep) 55%, transparent) 50%, color-mix(in srgb, var(--inv-deep) 94%, transparent) 78%, var(--inv-deep) 100%),
        radial-gradient(70% 40% at 0% 100%, color-mix(in srgb, var(--inv-primary) 45%, transparent), transparent 70%),
        radial-gradient(70% 40% at 100% 100%, color-mix(in srgb, var(--inv-secondary) 40%, transparent), transparent 70%);
}
.bs-hero__inner { position: relative; z-index: 1; padding: 6rem 1.5rem 2.2rem; display: flex; flex-direction: column; align-items: center; }
.bs-hero .bs-kicker { margin-top: 1.1rem; color: color-mix(in srgb, var(--inv-accent) 70%, #fff); }
.bs-medallion {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    width: 4.4rem; height: 4.4rem; border-radius: 50%;
    font: 600 1.15rem/1 var(--bs-serif); color: var(--inv-background);
    background: radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--inv-primary) 85%, #fff 15%), var(--inv-primary) 60%, color-mix(in srgb, var(--inv-primary) 70%, var(--inv-deep)));
    box-shadow: 0 0 0 2px var(--inv-accent), 0 0 0 5px color-mix(in srgb, var(--inv-deep) 70%, transparent), 0 0 0 6px color-mix(in srgb, var(--inv-accent) 50%, transparent);
}
.bs-medallion__sep { width: 1px; height: 1.1rem; background: var(--inv-accent); transform: rotate(22deg); }
.bs-hero__names {
    margin-top: .3rem;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .5rem;
    font: 400 clamp(2.8rem, 13vw, 3.5rem)/1.2 var(--bs-script); color: #fff;
    text-shadow: 0 4px 18px rgb(0 0 0 / .45);
}
.bs-hero__amp { font: italic 500 .5em/1 var(--bs-serif); color: var(--inv-accent); }
.bs-hero__date { margin-top: .4rem; font: 600 .74rem/1.4 var(--bs-sans); letter-spacing: .24em; text-transform: uppercase; color: color-mix(in srgb, #fff 86%, transparent); }
.bs-scroll { position: relative; width: 1px; height: 2.6rem; margin-top: 1.4rem; background: color-mix(in srgb, #fff 25%, transparent); overflow: hidden; }
.bs-scroll span { position: absolute; left: 0; top: -1rem; width: 1px; height: 1rem; background: var(--inv-accent); animation: bs-drip 2.2s ease-in-out infinite; }
@keyframes bs-drip { to { transform: translateY(4rem); } }
.bs-hero > .bs-band { position: relative; z-index: 1; }

/* ---------- sections ---------- */

.bs-main { position: relative; background: var(--inv-background); }

.bs-section {
    position: relative; overflow: hidden;
    padding: 4.5rem 1.5rem;
    text-align: center; color: var(--bs-fg);
    background:
        radial-gradient(90% 40% at 50% 0%, color-mix(in srgb, var(--inv-accent) 9%, transparent), transparent 75%),
        var(--inv-background);
}
/* a light dyed wash: soft blots of the three dyes on cream */
.bs-section--wash {
    background:
        radial-gradient(55% 22% at 0% 30%, color-mix(in srgb, var(--inv-primary) 12%, transparent), transparent 70%),
        radial-gradient(55% 30% at 100% 55%, color-mix(in srgb, var(--inv-secondary) 12%, transparent), transparent 70%),
        radial-gradient(55% 20% at 10% 92%, color-mix(in srgb, var(--inv-accent) 16%, transparent), transparent 70%),
        var(--inv-background);
}
/* deep dyed cloth: blotted dyes and soft resist stripes */
.bs-section--deep {
    --bs-bg: var(--inv-deep);
    --bs-fg: var(--inv-background);
    --bs-muted: color-mix(in srgb, var(--inv-background) 86%, transparent);
    --bs-title: color-mix(in srgb, var(--inv-accent) 72%, #fff);
    --bs-gold: var(--inv-accent);
    --bs-line: color-mix(in srgb, var(--inv-accent) 55%, transparent);
    --bs-line-soft: color-mix(in srgb, var(--inv-accent) 24%, transparent);
    --bs-btn-bg: var(--bs-saffron);
    --bs-btn-fg: var(--inv-deep);
    --bs-card-bg: color-mix(in srgb, var(--inv-background) 7%, transparent);
    --bs-field-bg: color-mix(in srgb, var(--inv-deep) 60%, #000 10%);
    background:
        radial-gradient(60% 30% at 0% 0%, color-mix(in srgb, var(--inv-primary) 60%, transparent), transparent 70%),
        radial-gradient(60% 30% at 100% 100%, color-mix(in srgb, var(--inv-secondary) 45%, transparent), transparent 70%),
        repeating-linear-gradient(115deg, transparent 0 20px, color-mix(in srgb, var(--inv-background) 5%, transparent) 28px, transparent 36px 58px),
        var(--inv-deep);
}

.bs-section > * { position: relative; z-index: 1; }
.bs-section > .bs-corners { position: absolute; z-index: 0; }
.bs-section > .bs-corners .bs-corner { width: clamp(96px, 26vw, 122px); opacity: .9; }

.bs-heading { margin-bottom: 2.2rem; }
.bs-heading__label { font: 700 .68rem/1.4 var(--bs-sans); letter-spacing: .36em; text-transform: uppercase; color: var(--bs-gold); }
.bs-heading__title { margin-top: .35rem; font: 600 clamp(1.8rem, 8vw, 2.15rem)/1.15 var(--bs-serif); color: var(--bs-title); }
.bs-heading__title span { display: block; font: 400 1.15em/1.05 var(--bs-script); color: var(--bs-fg); }
.bs-section--deep .bs-divider { filter: brightness(1.6) saturate(.9); }

.bs-lead { max-width: 24rem; margin: -.8rem auto 1.6rem; color: var(--bs-muted); font-size: .96rem; }

.bs-card {
    position: relative; overflow: hidden;
    background: var(--bs-card-bg);
    border: 1px solid var(--bs-line-soft); border-radius: 18px;
    box-shadow: 0 24px 44px -30px rgb(0 0 0 / .55);
}

/* opening */
.bs-arabic { font: 400 1.75rem/1.8 'Amiri', serif; color: var(--inv-primary); }
.bs-opening .bs-divider { margin: .4rem auto 1.2rem; }
.bs-opening__greeting { font: 600 1.35rem/1.4 var(--bs-serif); color: var(--bs-title); }
.bs-opening__message { max-width: 24rem; margin: .9rem auto 0; color: var(--bs-muted); }
.bs-quote {
    position: relative; max-width: 24rem; margin: 2.6rem auto 0; padding: 0;
    background: var(--inv-surface); border: 1px solid var(--bs-line-soft); border-radius: 18px; overflow: hidden;
    box-shadow: 0 22px 40px -30px rgb(0 0 0 / .5);
}
.bs-quote > .bs-band { -webkit-mask: linear-gradient(180deg, #000 70%, transparent); mask: linear-gradient(180deg, #000 70%, transparent); }
.bs-quote__flower { display: block; width: 2.3rem; height: 2.3rem; margin: -.9rem auto 0; position: relative; overflow: visible; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .2)); }
.bs-quote blockquote { margin: 0; padding: .7rem 1.5rem .3rem; font: italic 500 1.12rem/1.6 var(--bs-serif); color: var(--bs-fg); }
.bs-quote figcaption { padding: .5rem 1.5rem 1.6rem; font: 700 .66rem/1.4 var(--bs-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--inv-primary); }
.bs-quote:not(:has(figcaption)) blockquote { padding-bottom: 1.6rem; }

/* couple: portraits under a steep gable */
.bs-person { display: flex; flex-direction: column; align-items: center; }
.bs-person__frame {
    position: relative; width: min(56%, 200px); aspect-ratio: 3 / 4.2; padding: 3px;
    background: var(--bs-saffron);
    clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%);
    filter: drop-shadow(0 18px 22px rgb(0 0 0 / .3));
}
.bs-person__photo {
    display: block; width: 100%; height: 100%; object-fit: cover;
    clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%);
}
.bs-person__photo--empty {
    display: grid; place-items: center;
    background: var(--bs-dye);
    font: 400 4.4rem/1 var(--bs-script); color: var(--inv-background);
}
/* a sasirangan hem at the portrait's foot */
.bs-person__frame::after {
    content: ''; position: absolute; left: 3px; right: 3px; bottom: 3px; height: 14px;
    background:
        repeating-linear-gradient(90deg, transparent 0 3px, color-mix(in srgb, var(--inv-background) 85%, transparent) 3px 6px) 0 50% / 100% 1.5px no-repeat,
        linear-gradient(90deg, var(--inv-primary), var(--inv-secondary));
    opacity: .92;
}
.bs-person__role { margin-top: 1.3rem; font: 700 .64rem/1.4 var(--bs-sans); letter-spacing: .34em; text-transform: uppercase; color: var(--bs-gold); }
.bs-person__nick { margin-top: .1rem; font: 400 2.8rem/1.25 var(--bs-script); color: var(--inv-primary); }
.bs-person__name { margin-top: .1rem; font: 700 1.3rem/1.35 var(--bs-serif); }
.bs-person__parents { margin-top: .5rem; font-size: .94rem; color: var(--bs-muted); }
.bs-person__parents strong { color: var(--bs-fg); font-weight: 700; }

.bs-amp { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 2rem 0 2.2rem; }
.bs-amp svg { width: 1.4rem; height: 1.4rem; overflow: visible; }
.bs-amp::before, .bs-amp::after { content: ''; order: -1; width: 3rem; height: 1px; background: linear-gradient(90deg, transparent, var(--bs-line)); }
.bs-amp::after { order: 5; transform: scaleX(-1); }
.bs-amp span { font: 400 3.4rem/1 var(--bs-script); color: var(--bs-gold); }

/* countdown */
.bs-countdown__date { display: inline-flex; align-items: center; gap: .5rem; margin: -.6rem 0 1.5rem; font: 700 .76rem/1.4 var(--bs-sans); letter-spacing: .12em; text-transform: uppercase; }
.bs-countdown__date .bs-icon { color: var(--bs-gold); width: 1.2rem; height: 1.2rem; }
.inv-countdown { gap: .55rem; }
.inv-countdown__item {
    position: relative; overflow: hidden;
    flex: 1; max-width: 5rem; min-width: 0; padding: 1rem .25rem 1.3rem;
    border-radius: 14px; color: var(--inv-deep);
    background: linear-gradient(170deg, #fffdf7, var(--inv-background));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 60%, transparent), 0 14px 24px -14px rgb(0 0 0 / .6);
}
/* a dyed hem with basting stitches */
.inv-countdown__item::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
    background:
        repeating-linear-gradient(90deg, transparent 0 3px, rgb(255 255 255 / .8) 3px 6px) 0 50% / 100% 1px no-repeat,
        linear-gradient(90deg, var(--inv-primary), var(--inv-secondary));
}
.inv-countdown__value { font: 700 1.9rem/1.1 var(--bs-serif); color: var(--inv-primary); }
.inv-countdown__label { margin-top: .2rem; font: 700 .58rem/1.2 var(--bs-sans); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--inv-text) 80%, transparent); }
.inv-countdown__done { font-style: italic; color: var(--bs-muted); }
.inv-countdown__actions { margin-top: 1.5rem; }
.inv-countdown__actions .inv-button { padding: .7rem 1rem; font-size: .62rem; letter-spacing: .1em; }
.bs-countdown .bs-jukung { margin-top: 2rem; width: min(54%, 200px); }

/* events (R2): centered, a dashed line with a blossom between them */
.bs-events__list { max-width: 24rem; margin: 0 auto; }
.bs-event { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.bs-event__photo {
    width: min(70%, 240px); aspect-ratio: 4 / 3.4; margin-bottom: .8rem;
    background: var(--bs-photo) center 30% / cover no-repeat;
    clip-path: polygon(50% 0, 100% 26%, 100% 100%, 0 100%, 0 26%);
    border-bottom: 5px solid var(--inv-primary);
    filter: drop-shadow(0 14px 18px rgb(0 0 0 / .25));
}
.bs-event__name { font: 400 2.3rem/1.15 var(--bs-script); color: var(--inv-primary); overflow-wrap: anywhere; }
.bs-event__date, .bs-event__time, .bs-event__dress { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; flex-wrap: wrap; }
.bs-event__date { font: 700 1.15rem/1.35 var(--bs-serif); }
.bs-event__time { font: 700 .95rem/1.4 var(--bs-sans); color: var(--bs-gold); }
.bs-event__dress { font-size: .9rem; color: var(--bs-muted); }
.bs-event .bs-icon { width: 1.1rem; height: 1.1rem; color: var(--inv-primary); }
.bs-event__place { display: flex; flex-direction: column; align-items: center; margin-top: .3rem; max-width: 20rem; }
.bs-event__place .bs-icon { width: 1.4rem; height: 1.4rem; margin-bottom: .2rem; color: var(--inv-secondary); }
.bs-event__venue { font: 700 1.05rem/1.4 var(--bs-sans); overflow-wrap: anywhere; }
.bs-event__address { font-size: .9rem; line-height: 1.5; color: var(--bs-muted); overflow-wrap: anywhere; }
.bs-event__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; width: min(100%, 21rem); margin-top: 1rem; }
.bs-event__actions .inv-button { justify-content: center; padding: .75rem .6rem; font-size: .62rem; letter-spacing: .08em; }
.bs-event__actions .inv-button:only-child { grid-column: 1 / -1; }
.bs-event__sep { position: relative; display: grid; place-items: center; margin: 2.4rem 0; }
.bs-event__sep::before { content: ''; position: absolute; left: 8%; right: 8%; top: 50%; border-top: 1.5px dashed var(--bs-line); }
.bs-event__sep svg { position: relative; width: 1.6rem; height: 1.6rem; padding: 0 .2rem; overflow: visible; background: var(--inv-background); box-shadow: 0 0 0 .5rem var(--inv-background); border-radius: 50%; }

/* ---------- love story: zig-zag timeline (R1) ----------
   Default: text left (aligned right, toward the line), meta right. .is-flip swaps the sides. */
.bs-story { padding-left: 1rem; padding-right: 1rem; }
.bs-zig { position: relative; margin: 0; padding: 0; list-style: none; }
/* the line: a dyed ribbon with basting stitches */
.bs-zig::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%);
    background:
        repeating-linear-gradient(180deg, transparent 0 4px, color-mix(in srgb, var(--inv-background) 80%, transparent) 4px 8px) 50% 0 / 1px 100% no-repeat,
        linear-gradient(180deg, transparent, var(--inv-primary) 6%, var(--inv-secondary) 60%, var(--inv-accent) 94%, transparent);
    border-radius: 4px;
}
.bs-zig__item {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) 1.8rem minmax(0, 1fr); column-gap: .6rem; align-items: start;
    grid-template-areas: "text dot meta";
}
.bs-zig__item + .bs-zig__item { margin-top: 2.4rem; }
.bs-zig__item.is-flip { grid-template-areas: "meta dot text"; }
.bs-zig__dot {
    grid-area: dot; justify-self: center; width: 1.8rem; height: 1.8rem; overflow: visible;
    filter: drop-shadow(0 4px 6px rgb(0 0 0 / .45));
}
.bs-zig__text { grid-area: text; min-width: 0; text-align: right; }
.is-flip .bs-zig__text { text-align: left; }
.bs-zig__title { font: 700 1.2rem/1.25 var(--bs-serif); color: var(--bs-fg); overflow-wrap: anywhere; }
.bs-zig__rule { display: block; width: 70%; margin: .45rem 0 .55rem auto; border-top: 2px dotted var(--bs-line); }
.is-flip .bs-zig__rule { margin-left: 0; margin-right: auto; }
.bs-zig__story { font-size: .86rem; line-height: 1.55; color: var(--bs-muted); overflow-wrap: anywhere; }
.bs-zig__meta { grid-area: meta; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; text-align: left; }
.is-flip .bs-zig__meta { align-items: flex-end; text-align: right; }
.bs-zig__date { font: 400 1.7rem/1.15 var(--bs-script); color: var(--bs-title); overflow-wrap: anywhere; }
.bs-zig__photo {
    display: block; width: min(6.2rem, 100%); aspect-ratio: 1; object-fit: cover;
    border: 2.5px solid transparent; border-radius: 50% 50% 12px 12px;
    background: var(--bs-saffron) border-box;
    box-shadow: 0 14px 24px -14px rgb(0 0 0 / .6);
}
.bs-zig__item--bare .bs-zig__meta::before {
    content: ''; width: 2.6rem; height: 1rem; opacity: .8;
    background: radial-gradient(circle, var(--bs-gold) 0 1.5px, transparent 2px) 0 50% / .65rem 1rem repeat-x;
}

/* gallery: the first photo wide; a lonely last photo is wide too */
.inv-gallery { gap: .55rem; }
.inv-gallery__item { border-radius: 12px; box-shadow: 0 0 0 1px var(--bs-line), 0 16px 26px -20px rgb(0 0 0 / .7); }
.inv-gallery__item:first-child,
.inv-gallery__item:first-child ~ .inv-gallery__item:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.inv-gallery__play { background: color-mix(in srgb, var(--inv-deep) 70%, transparent); color: #fff; }

/* live streaming */
.bs-live__card { max-width: 24rem; margin: 0 auto; padding: 1.7rem 1.4rem; }
.bs-live__badge {
    display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem;
    border-radius: 999px; background: var(--inv-primary); color: #fff;
    font: 700 .66rem/1 var(--bs-sans); letter-spacing: .2em;
}
.bs-live__badge span { width: .45rem; height: .45rem; border-radius: 50%; background: #ffb4c8; animation: bs-blink 1.4s ease-in-out infinite; }
@keyframes bs-blink { 50% { opacity: .25; } }
.bs-live__text { margin: 1rem 0 .5rem; }
.bs-live__note { margin-bottom: 1.2rem; font: italic 600 1.08rem/1.5 var(--bs-serif); color: var(--bs-title); }
.bs-live__card .inv-button { margin-top: .6rem; }

/* gift: accounts as dyed sasirangan bank cards, two per row (a lonely last card spans both) */
.inv-gift { display: grid; gap: .9rem; max-width: 22rem; margin: 0 auto; }
.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 {
    position: relative; overflow: hidden; isolation: isolate; min-width: 0;
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .45rem;
    grid-template-areas: "chip bank" "number number" "holder holder" "button button";
    margin: 0; padding: .8rem .8rem 1.3rem;
    border-radius: 16px; text-align: left; color: #fff;
    background:
        linear-gradient(118deg, transparent 22%, rgb(255 255 255 / .12) 36%, transparent 50%),
        radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--inv-secondary) 75%, transparent), transparent 70%),
        repeating-linear-gradient(120deg, transparent 0 14px, rgb(255 255 255 / .07) 18px, transparent 22px 34px),
        linear-gradient(150deg, var(--inv-primary), color-mix(in srgb, var(--inv-primary) 55%, var(--inv-deep)) 80%);
    box-shadow: 0 18px 30px -18px rgb(0 0 0 / .7), inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 45%, transparent);
}
.inv-gift__account + .inv-gift__account { margin-top: 0; }
.inv-gift__account::before {
    content: ''; grid-area: chip; width: 1.7rem; height: 1.3rem; border-radius: .3rem;
    background:
        linear-gradient(90deg, transparent 31%, rgb(0 0 0 / .25) 31% 33%, transparent 33% 67%, rgb(0 0 0 / .25) 67% 69%, transparent 69%),
        linear-gradient(0deg, transparent 47%, rgb(0 0 0 / .25) 47% 53%, transparent 53%),
        linear-gradient(135deg, #f8e7bf, #d1a148 55%, #f0d69c);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2);
}
/* a gigi haruan hem with stitches along the card's foot */
.inv-gift__account::after {
    content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: .65rem;
    background:
        conic-gradient(from 153.43deg at 50% 0, var(--inv-accent) 53.13deg, transparent 0) 0 0 / 10px 10px repeat-x,
        color-mix(in srgb, var(--inv-deep) 60%, transparent);
}
.inv-gift__bank {
    grid-area: bank; justify-self: end; min-width: 0; max-width: 100%; margin: 0;
    font: 700 .66rem/1.2 var(--bs-sans); letter-spacing: .06em; text-transform: uppercase; text-align: right; overflow-wrap: anywhere;
}
.inv-gift__logo { height: 1.5rem; max-width: 100%; padding: .2rem .45rem; border-radius: .35rem; }
.inv-gift__logo img { max-width: 4.6rem; }
.inv-gift__number { grid-area: number; margin: .75rem 0 .15rem; font: 500 .98rem/1.25 var(--bs-mono); letter-spacing: .03em; color: #fff; overflow-wrap: anywhere; }
.inv-gift__holder { grid-area: holder; margin: 0; font: 700 .58rem/1.35 var(--bs-sans); letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .88); overflow-wrap: anywhere; }
.inv-gift__account .inv-button {
    grid-area: button; justify-self: start; margin-top: .6rem; padding: .35rem .7rem; border-radius: 999px;
    font-size: .6rem; letter-spacing: .06em; color: #fff; background: rgb(255 255 255 / .12);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 70%, transparent);
}

/* the gift address stays a plain card */
.inv-gift__account.inv-gift__address {
    display: block; min-height: 0; padding: 1.5rem 1.3rem; text-align: center; color: var(--bs-fg);
    background: var(--inv-surface);
    box-shadow: inset 0 0 0 1px var(--bs-line-soft), 0 20px 40px -28px rgb(0 0 0 / .5);
}
.inv-gift__address::before, .inv-gift__address::after { content: none; }
.inv-gift__address .inv-gift__bank { justify-self: auto; text-align: center; font: 700 .68rem/1.4 var(--bs-sans); letter-spacing: .3em; color: var(--bs-gold); }
.inv-gift__address .inv-gift__holder { margin: .6rem 0 .2rem; font: 700 1.2rem/1.3 var(--bs-serif); letter-spacing: .01em; text-transform: none; color: var(--bs-fg); }
.inv-gift__address p:not([class]) { color: var(--bs-muted); }
.inv-gift__address .inv-button { margin-top: 1rem; color: var(--bs-title); background: transparent; box-shadow: inset 0 0 0 1px var(--bs-line); }

/* rsvp & wishes forms */
.bs-form { max-width: 24rem; margin: 0 auto; padding: 0 1.25rem 1.5rem; text-align: left; }
.bs-form > .bs-band { margin: 0 -1.25rem 1.3rem; -webkit-mask: linear-gradient(180deg, #000 70%, transparent); mask: linear-gradient(180deg, #000 70%, transparent); }
.bs-section:not(.bs-section--deep) .bs-form { background: var(--inv-surface); }
.inv-form { gap: .9rem; }
.inv-form label, .inv-form__choices legend { font: 600 .78rem/1.4 var(--bs-sans); letter-spacing: .03em; color: var(--bs-muted); }
.inv-form input:not([type=radio]):not([type=checkbox]), .inv-form select, .inv-form textarea {
    padding: .7rem .85rem; border-radius: 10px;
    border: 1px solid var(--bs-line);
    background: var(--bs-field-bg); color: var(--bs-fg);
    font: 400 1rem/1.4 var(--bs-sans);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.inv-form input::placeholder, .inv-form textarea::placeholder { color: color-mix(in srgb, var(--bs-fg) 45%, transparent); }
.inv-form input:focus, .inv-form select:focus, .inv-form textarea:focus {
    outline: none; border-color: var(--bs-gold);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-accent) 25%, transparent);
}
.inv-form option { background: #fff; color: var(--inv-text); }
.inv-form input[type=radio], .inv-form input[type=checkbox] { accent-color: var(--inv-primary); }
.inv-form__choices label { color: var(--bs-fg); font-size: .92rem; }
.inv-form__notice { color: var(--bs-fg); background: color-mix(in srgb, var(--inv-accent) 16%, transparent); border: 1px solid var(--bs-line-soft); }
.inv-form .inv-button { justify-self: stretch; margin-top: .3rem; }
.inv-rsvp__deadline { font-style: italic; color: var(--bs-gold); }

/* wishes: compact cards in a scroll box of about three */
.inv-wishes { --inv-wishes-height: 20rem; }
.inv-wishes__list { gap: .6rem; margin-top: 1.4rem; }
.inv-wishes:not(.inv-wishes--paged) .inv-wishes__list {
    padding: .5rem .45rem .5rem .5rem; border-radius: 12px;
    background: color-mix(in srgb, var(--inv-background) 70%, transparent);
    box-shadow: inset 0 0 0 1px var(--bs-line-soft), inset 0 -14px 16px -14px rgb(0 0 0 / .25);
    scrollbar-color: color-mix(in srgb, var(--inv-primary) 45%, transparent) transparent;
}
.inv-wishes__empty { text-align: center; font-style: italic; }
.inv-wish {
    padding: .65rem .8rem; border-radius: 10px;
    background: var(--inv-surface);
    border: 1px solid var(--bs-line-soft); border-left: 3px solid var(--inv-primary);
}
.inv-wish:nth-child(3n+2) { border-left-color: var(--inv-secondary); }
.inv-wish:nth-child(3n) { border-left-color: var(--inv-accent); }
.inv-wish__name { font: 700 1rem/1.3 var(--bs-serif); color: var(--inv-primary); }
.inv-wish__message { font-size: .88rem; line-height: 1.5; }
.inv-wish__time { margin-top: .25rem; font: 400 .68rem/1.3 var(--bs-sans); letter-spacing: .04em; }
.inv-wish__reply { margin-top: .5rem; padding: .45rem .65rem; background: color-mix(in srgb, var(--inv-accent) 12%, transparent); }
.inv-wish__reply-text { font-size: .85rem; }
.inv-wishes__page-button { color: var(--inv-primary); }

/* closing */
.bs-closing { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.bs-crown--closing { margin-bottom: 1rem; }
.bs-house--closing { width: min(56%, 210px); margin: .4rem auto 2.4rem; }
.bs-closing__label { font: 700 .7rem/1.4 var(--bs-sans); letter-spacing: .4em; text-transform: uppercase; color: var(--bs-gold); }
.bs-closing__thanks { margin-top: .1rem; font: 400 3rem/1.25 var(--bs-script); color: #fff; }
.bs-closing__message { max-width: 24rem; margin: .8rem auto 0; color: var(--bs-muted); }
.bs-closing__sign { margin-top: 1.6rem; font: 700 .7rem/1.4 var(--bs-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--bs-gold); }
.bs-closing__names { margin-top: .3rem; font: 400 clamp(2.4rem, 11vw, 3rem)/1.25 var(--bs-script); color: var(--bs-title); }
.bs-closing__names span { font: italic 500 .5em/1 var(--bs-serif); color: var(--bs-fg); }
.bs-closing .bs-jukung { margin-top: 1.8rem; }

/* ---------- shared components: nav, music, to-top, branding, check-in ---------- */

.inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-deep) 94%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-background) 80%, transparent);
    --inv-nav-active: var(--bs-dye);
    border-color: color-mix(in srgb, var(--inv-accent) 40%, transparent);
    box-shadow: 0 14px 34px -12px rgb(0 0 0 / .6), inset 0 -2px 0 color-mix(in srgb, var(--inv-accent) 60%, transparent);
    font-family: var(--bs-sans);
}
.inv-nav__item.is-active { color: #fff; font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 55%, transparent); }

.inv-music { right: max(1rem, calc((100vw - var(--bs-w)) / 2 + 1rem)); }
.inv-music__button { background: var(--bs-saffron); color: var(--inv-deep); box-shadow: 0 8px 22px -8px rgb(0 0 0 / .6), 0 0 0 3px color-mix(in srgb, var(--inv-deep) 40%, transparent); }

.inv-to-top {
    left: max(1rem, calc((100vw - var(--bs-w)) / 2 + 1rem));
    background: var(--inv-deep); color: var(--inv-accent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 50%, transparent), 0 6px 16px -6px rgb(0 0 0 / .6);
}

.bs-page > .bs-band { margin-top: 0; background: var(--inv-deep); }
.bs-branding { position: relative; z-index: 1; color: var(--inv-background); font-family: var(--bs-sans); background: var(--inv-deep); }
/* room for the bottom menu below the last band */
.bs-page::after { content: ''; display: block; height: 5.5rem; background: var(--inv-deep); }

.inv-checkin { color: var(--inv-text); }
.inv-checkin__title { color: var(--inv-primary); }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bs-corner svg, .bs-jukung svg, .bs-scroll span, .bs-live__badge span { animation: none; }
    .bs-cover--leave { transition: opacity .3s ease; }
    .bs-cover--gone { transform: none; }
}

/* on deep cloth the roof wings and the boatman are drawn in the second dye instead of the (invisible) deep color */
.bs-section--deep, .bs-hero { --bs-ink: color-mix(in srgb, var(--inv-secondary) 80%, #fff 10%); }

/* ---------- cover fit: everything up to "Buka Undangan" on one phone screen, the jukung and band below it ---------- */
/* the inner block takes the height left between the two bands and spreads its blocks over it */
.bs-cover__inner { flex: 1 0 auto; margin: 0; justify-content: space-evenly; padding: clamp(.8rem, 2.5svh, 1.4rem) 1.6rem clamp(.5rem, 1.5svh, 1rem); }
.bs-house--cover { width: min(48%, 180px, 20svh); }
.bs-cover__foot .bs-jukung { width: min(52%, 200px, 22svh); }
.bs-cover__quote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
@media (max-height: 760px) {
    .bs-cover__inner { gap: .4rem; }
    .bs-house--cover { width: min(44%, 17.5svh); }
    .bs-mono { width: 3.9rem; height: 3.9rem; bottom: -1.6rem; font-size: 1rem; }
    .bs-cover__names { margin-top: 1.5rem; font-size: clamp(2.4rem, 11vw, 2.9rem); line-height: 1.15; }
    .bs-cover__quote { font-size: .95rem; line-height: 1.45; -webkit-line-clamp: 6; }
    .bs-guest { margin-top: .15rem; padding: .7rem 1.1rem .75rem; }
    .bs-open { margin-top: .2rem; }
    .bs-cover__foot .bs-jukung { width: min(44%, 19svh); }
}
@media (max-height: 660px) {
    .bs-cover__names { margin-top: 1.4rem; font-size: clamp(2.2rem, 10.5vw, 2.6rem); }
    .bs-guest__name { font-size: 1.15rem; }
    .bs-cover__foot .bs-jukung { width: min(40%, 18svh); }
}

/* ---------- page end: names, the jukung drifting right above the last band, then the nav's room ---------- */
.bs-closing { padding-bottom: 0; }
.bs-closing .bs-jukung { width: min(34%, 124px); margin: .5rem auto -.35rem; }
/* the music player already leaves 4.5rem under the page; reserve the nav's room only when it is absent */
.bs-page::after { height: 0; }
body:not(:has(.inv-music__space)) .bs-page::after { height: 4.5rem; }
