/*
 * Batak Ulos Gorga: Batak (North Sumatra) adat. The three sacred colors black, red and white
 * with gold. Gorga ornaments (inline SVG symbols in sections/_defs), woven ulos bands (CSS
 * stripes with fringe), the Rumah Bolon roof, Cinzel serif + Jost sans + Great Vibes names.
 * Sections rotate between black (default tokens), white (.bu-section--white) and red (.bu-section--red).
 * Colors from the variant: --inv-primary, --inv-accent, --inv-background, --inv-text,
 * --inv-surface, --inv-ivory, --inv-ink, --inv-thread, --inv-label. All classes start with "bu-".
 */

:root {
    --inv-primary: #a3171d;
    --inv-accent: #d6a83c;
    --inv-background: #120e0d;
    --inv-text: #f6efe4;
    --inv-surface: #211917;
    --inv-ivory: #f5ede0;
    --inv-ink: #1b1311;
    --inv-thread: #f3ebdf;
    --inv-label: #e0b54e;
    --inv-radius: 14px;

    --bu-w: 460px;
    --bu-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
    --bu-script: 'Great Vibes', 'Brush Script MT', cursive;
    --bu-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bu-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

    /* polished gold, as a background */
    --bu-gold-bg: linear-gradient(120deg, color-mix(in srgb, var(--inv-accent) 62%, #fff) 0%, var(--inv-accent) 30%, color-mix(in srgb, var(--inv-accent) 72%, #3a2200) 55%, color-mix(in srgb, var(--inv-accent) 70%, #fff) 80%, var(--inv-accent) 100%);
    --bu-deep: color-mix(in srgb, var(--inv-background) 84%, #000);
    --bu-red-deep: color-mix(in srgb, var(--inv-primary) 72%, var(--inv-ink));

    /* context tokens: black by default, redefined for white and red sections */
    --bu-bg: var(--inv-background);
    --bu-fg: var(--inv-text);
    --bu-muted: color-mix(in srgb, var(--inv-text) 80%, transparent);
    --bu-gold: var(--inv-label);
    --bu-line: color-mix(in srgb, var(--inv-accent) 55%, transparent);
    --bu-line-soft: color-mix(in srgb, var(--inv-accent) 24%, transparent);
    --bu-btn-bg: var(--bu-gold-bg);
    --bu-btn-fg: var(--inv-ink);
    --bu-card-bg: linear-gradient(170deg, color-mix(in srgb, var(--inv-surface) 96%, #fff 4%), var(--inv-surface));
    --bu-field-bg: color-mix(in srgb, var(--inv-background) 70%, transparent);
}

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

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

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

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

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

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

.bu-backdrop {
    position: fixed; inset: 0; z-index: 0; overflow: hidden;
    background: var(--bu-deep);
}
.bu-backdrop::before {
    content: ''; position: absolute; inset: -60px;
    background: var(--bu-photo, none) center / cover no-repeat;
    filter: blur(26px) saturate(.75) brightness(.5);
}
/* rows of gorga sawtooth over a dark veil */
.bu-backdrop::after {
    content: ''; position: absolute; inset: 0;
    background:
        conic-gradient(from 153.43deg at 50% 0, color-mix(in srgb, var(--inv-primary) 40%, transparent) 53.13deg, transparent 0) 0 0 / 28px 56px,
        conic-gradient(from 153.43deg at 50% 0, color-mix(in srgb, var(--inv-accent) 16%, transparent) 53.13deg, transparent 0) 14px 28px / 28px 56px,
        radial-gradient(ellipse at center, color-mix(in srgb, var(--inv-ink) 55%, transparent) 20%, color-mix(in srgb, var(--inv-ink) 92%, transparent) 100%);
}

.bu-page {
    position: relative; z-index: 1;
    width: min(100%, var(--bu-w)); min-height: 100vh; margin: 0 auto;
    background: var(--inv-background);
    overflow-x: clip;
}

@media (min-width: 520px) {
    .bu-page { box-shadow: 0 0 0 1px var(--bu-line-soft), 0 0 0 7px color-mix(in srgb, var(--inv-ink) 80%, transparent), 0 0 0 8px var(--bu-line-soft), 0 0 90px rgb(0 0 0 / .6); }
}
@media (max-width: 519px) {
    .bu-backdrop { display: none; }
}

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

/* ---------- ornaments: corners, ulos, sawtooth, divider ---------- */

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

@keyframes bu-sway {
    from { transform: rotate(-1.5deg) scale(1); }
    to { transform: rotate(1.5deg) scale(1.03); }
}

/* the ulos: woven stripes in black, red, white and gold, a lozenge weave in the middle, the fringe at the ends */
.bu-ulos { position: relative; height: 2.2rem; }
.bu-ulos__cloth {
    position: absolute; inset: 0; overflow: hidden;
    background: linear-gradient(180deg,
        var(--inv-ink) 0 6%, var(--inv-primary) 6% 14%, var(--inv-thread) 14% 17%, var(--inv-primary) 17% 24%,
        var(--inv-accent) 24% 26.5%, var(--inv-ink) 26.5% 32%, transparent 32% 68%, var(--inv-ink) 68% 73.5%,
        var(--inv-accent) 73.5% 76%, var(--inv-primary) 76% 83%, var(--inv-thread) 83% 86%, var(--inv-primary) 86% 94%, var(--inv-ink) 94%);
    box-shadow: 0 6px 14px -8px rgb(0 0 0 / .6);
}
/* the threads: a fine vertical weave over everything */
.bu-ulos__cloth::after {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, rgb(0 0 0 / .2) 0 1px, transparent 1px 3px);
}
.bu-ulos__weave {
    position: absolute; left: 0; right: 0; top: 32%; bottom: 32%;
    background:
        repeating-linear-gradient(45deg, var(--inv-accent) 0 1.4px, transparent 1.4px 7px),
        repeating-linear-gradient(-45deg, var(--inv-thread) 0 1.4px, transparent 1.4px 7px),
        var(--bu-red-deep);
}
.bu-ulos--fringe-top::before, .bu-ulos--fringe-bottom::after {
    content: ''; position: absolute; left: 0; right: 0; height: .85rem;
    background: repeating-linear-gradient(90deg, var(--inv-primary) 0 2px, transparent 2px 4px, var(--inv-thread) 4px 5.5px, transparent 5.5px 7.5px);
}
.bu-ulos--fringe-top::before { bottom: 100%; -webkit-mask: linear-gradient(0deg, #000 35%, transparent); mask: linear-gradient(0deg, #000 35%, transparent); }
.bu-ulos--fringe-bottom::after { top: 100%; -webkit-mask: linear-gradient(180deg, #000 35%, transparent); mask: linear-gradient(180deg, #000 35%, transparent); }

/* the gorga sawtooth: white teeth with a red core on black */
.bu-teeth {
    display: block; height: 12px;
    background:
        conic-gradient(from 153.43deg at 50% 45%, var(--inv-primary) 53.13deg, transparent 0) 0 0 / 12px 12px repeat-x,
        conic-gradient(from 153.43deg at 50% 0, var(--inv-ivory) 53.13deg, transparent 0) 0 0 / 12px 12px repeat-x,
        var(--inv-ink);
}
.bu-teeth--flip { transform: scaleY(-1); }

.bu-divider { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: .8rem auto 0; color: var(--bu-gold); }
.bu-divider__line {
    position: relative; width: 4.6rem; height: 1px;
    background: linear-gradient(90deg, transparent, var(--bu-gold));
}
.bu-divider__line::before {
    content: ''; position: absolute; left: 1.2rem; top: -3px; width: 7px; height: 7px;
    background: var(--inv-primary); box-shadow: 0 0 0 1px var(--bu-gold); transform: rotate(45deg);
}
.bu-divider__line--end { transform: scaleX(-1); }
.bu-divider__curl { width: 3.4rem; height: 1.3rem; overflow: visible; stroke-width: 2.4; }

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

/* ---------- buttons (shared components) ---------- */

.inv-button {
    gap: .55rem; padding: .85rem 1.5rem; border-radius: 6px;
    background: var(--bu-btn-bg); color: var(--bu-btn-fg);
    font: 600 .74rem/1.2 var(--bu-sans); letter-spacing: .18em; text-transform: uppercase;
    box-shadow: 0 10px 22px -12px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .3);
}
.inv-button--outline {
    background: transparent; color: var(--bu-gold);
    box-shadow: inset 0 0 0 1px var(--bu-line);
}
.inv-button--outline:hover { background: color-mix(in srgb, var(--inv-accent) 12%, transparent); }
.inv-button .bu-icon { width: 1.15rem; height: 1.15rem; }

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

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

.bu-cover {
    position: fixed; inset: 0; z-index: 30;
    width: min(100%, var(--bu-w)); margin: 0 auto;
    display: flex; overflow-x: hidden; overflow-y: auto;
    background: var(--inv-background); color: var(--inv-text);
}
.bu-cover__photo { position: absolute; inset: 0; background: var(--bu-photo, none) center 30% / cover no-repeat; }
.bu-cover__photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--inv-background) 88%, transparent) 0%,
        color-mix(in srgb, var(--inv-background) 62%, transparent) 34%,
        color-mix(in srgb, var(--inv-background) 84%, transparent) 60%,
        color-mix(in srgb, var(--inv-background) 97%, transparent) 100%);
}
.bu-cover__frame {
    position: absolute; inset: 12px 12px 2.9rem; z-index: 1; pointer-events: none;
    border: 1px solid var(--bu-line);
}
.bu-cover__frame::after { content: ''; position: absolute; inset: 5px; border: 1px solid var(--bu-line-soft); }
.bu-cover > .bu-corners { z-index: 1; bottom: 2.2rem; }
.bu-cover .bu-corner { width: clamp(100px, 28vw, 130px); }
.bu-cover__inner {
    position: relative; z-index: 2;
    width: 100%; margin: auto; padding: 1.6rem 1.8rem 4.8rem;
    display: flex; flex-direction: column; align-items: center; gap: .7rem;
    text-align: center;
}
.bu-cover__roof {
    display: block; width: min(80%, 300px); aspect-ratio: 320 / 146; margin-bottom: .2rem; overflow: visible;
    filter: drop-shadow(0 10px 14px rgb(0 0 0 / .45));
}
.bu-cover__ulos { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; }
.bu-cover__ulos .bu-ulos { height: 2.2rem; }

/* the monogram in a carved lozenge: gold rim, red field */
.bu-mono {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    width: 7.6rem; height: 4.6rem;
    font: 600 1.4rem/1 var(--bu-display); color: var(--inv-ivory);
    filter: drop-shadow(0 10px 14px rgb(0 0 0 / .4));
}
.bu-mono::before, .bu-mono::after { content: ''; position: absolute; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.bu-mono::before { inset: 0; background: var(--bu-gold-bg); }
.bu-mono::after {
    inset: 3px;
    background:
        conic-gradient(from 153.43deg at 50% 78%, color-mix(in srgb, var(--inv-ivory) 18%, transparent) 53.13deg, transparent 0) 0 0 / 10px 100% repeat-x,
        radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--inv-primary) 92%, #fff 8%), var(--bu-red-deep) 80%);
}
.bu-mono__letter, .bu-mono__sep { position: relative; z-index: 1; }
.bu-mono__sep { width: 1px; height: 1.3rem; background: var(--inv-accent); transform: rotate(22deg); }

.bu-cover__names {
    display: flex; flex-direction: column; align-items: center;
    font: 400 clamp(3rem, 14.5vw, 4rem)/1.1 var(--bu-script); color: var(--bu-gold);
    text-shadow: 0 2px 14px color-mix(in srgb, var(--inv-background) 80%, transparent);
}
.bu-cover__amp { font: 500 .42em/1.4 var(--bu-display); color: var(--inv-text); }

.bu-cover__date {
    display: flex; align-items: center; gap: .7rem;
    font: 500 .76rem/1.4 var(--bu-sans); letter-spacing: .22em; text-transform: uppercase;
}
.bu-cover__date::before, .bu-cover__date::after {
    content: ''; width: 7px; height: 7px; background: var(--inv-primary);
    box-shadow: 0 0 0 1px var(--inv-accent); transform: rotate(45deg);
}

.bu-cover__quote { max-width: 21rem; font: italic 400 .95rem/1.55 var(--bu-sans); color: var(--bu-muted); }

.bu-guest {
    position: relative; width: min(100%, 19rem); margin-top: .3rem; padding: 1rem 1.2rem .95rem;
    border: 1px solid var(--bu-line);
    outline: 1px solid var(--bu-line-soft); outline-offset: -6px;
    background: color-mix(in srgb, var(--inv-background) 70%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
/* red lozenges pinned to the box's top corners */
.bu-guest::before, .bu-guest::after {
    content: ''; position: absolute; top: -5px; width: 9px; height: 9px;
    background: var(--inv-primary); box-shadow: 0 0 0 1px var(--inv-accent); transform: rotate(45deg);
}
.bu-guest::before { left: -5px; }
.bu-guest::after { right: -5px; }
.bu-guest__label { font: 500 .66rem/1.4 var(--bu-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--bu-gold); }
.bu-guest__name { margin-top: .35rem; font: 600 1.2rem/1.3 var(--bu-display); overflow-wrap: anywhere; }
.bu-guest__note { margin-top: .4rem; font: 400 .84rem/1.5 var(--bu-sans); color: var(--bu-muted); }

.bu-open { margin-top: .4rem; }

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

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

.bu-hero {
    position: relative; overflow: hidden;
    min-height: min(100vh, 900px); min-height: min(100svh, 900px); padding: 4.5rem 1.5rem 3.5rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    background:
        radial-gradient(90% 55% at 50% 42%, color-mix(in srgb, var(--inv-primary) 26%, transparent), transparent 75%),
        linear-gradient(180deg, var(--inv-background), var(--bu-deep));
}

/* the house: a Rumah Bolon roof over the photo in a gold frame */
.bu-house { position: relative; z-index: 2; width: min(66%, 250px); margin: 1.4rem auto 1.4rem; }
.bu-house__roof {
    position: relative; z-index: 2; display: block;
    width: 132%; margin: 0 -16% -6px; aspect-ratio: 320 / 146; overflow: visible;
    filter: drop-shadow(0 8px 10px rgb(0 0 0 / .45));
}
.bu-house__photo {
    position: relative; display: grid; place-items: center; aspect-ratio: 4 / 4.6;
    border: 3px solid transparent;
    background:
        var(--bu-photo, none) center 25% / cover no-repeat padding-box,
        linear-gradient(160deg, var(--inv-primary), var(--inv-ink)) padding-box,
        var(--bu-gold-bg) border-box;
    box-shadow: 0 0 0 6px var(--bu-bg), 0 0 0 7px var(--bu-line), 0 28px 50px -24px rgb(0 0 0 / .75);
}
/* the house posts under the photo */
.bu-house__photo::after {
    content: ''; position: absolute; left: 10%; right: 10%; top: 100%; height: 1.1rem; margin-top: 9px;
    background: repeating-linear-gradient(90deg, var(--bu-line) 0 2px, transparent 2px 22%);
}
.bu-house__mono { display: flex; gap: .3rem; font: 400 4rem/1 var(--bu-script); color: var(--inv-ivory); }

.bu-hero .bu-kicker { margin-bottom: .4rem; }
.bu-hero__names {
    position: relative; z-index: 2; margin-top: 1.4rem;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .45rem;
    font: 400 clamp(2.7rem, 12.5vw, 3.4rem)/1.2 var(--bu-script); color: var(--bu-gold);
}
.bu-hero__amp { font: 500 .45em/1 var(--bu-display); color: var(--inv-text); }
.bu-hero__date {
    position: relative; z-index: 2; margin-top: .3rem;
    font: 500 .76rem/1.4 var(--bu-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--bu-muted);
}

.bu-scroll { position: relative; z-index: 2; width: 1px; height: 3rem; margin-top: 1.6rem; background: var(--bu-line-soft); overflow: hidden; }
.bu-scroll span { position: absolute; left: 0; top: -1rem; width: 1px; height: 1rem; background: var(--inv-accent); animation: bu-drip 2.2s ease-in-out infinite; }
@keyframes bu-drip { to { transform: translateY(4rem); } }

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

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

/* black: a faint woven texture over a deep gradient */
.bu-section {
    position: relative; overflow: hidden;
    padding: 4.5rem 1.5rem;
    text-align: center; color: var(--bu-fg);
    background:
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--inv-text) 2.5%, transparent) 0 1px, transparent 1px 5px),
        radial-gradient(110% 55% at 50% 0%, color-mix(in srgb, var(--inv-primary) 16%, transparent), transparent 72%),
        linear-gradient(180deg, var(--inv-background), var(--bu-deep));
}
/* white: the sacred white, ivory cloth */
.bu-section--white {
    --bu-bg: var(--inv-ivory);
    --bu-fg: var(--inv-ink);
    --bu-muted: color-mix(in srgb, var(--inv-ink) 80%, transparent);
    --bu-gold: color-mix(in srgb, var(--inv-label) 62%, var(--inv-ink));
    --bu-line: color-mix(in srgb, color-mix(in srgb, var(--inv-accent) 65%, var(--inv-ink)) 50%, transparent);
    --bu-line-soft: color-mix(in srgb, color-mix(in srgb, var(--inv-accent) 65%, var(--inv-ink)) 22%, transparent);
    --bu-btn-bg: linear-gradient(135deg, color-mix(in srgb, var(--inv-primary) 92%, #fff 8%), var(--bu-red-deep));
    --bu-btn-fg: #fff;
    --bu-card-bg: linear-gradient(170deg, #fff, color-mix(in srgb, #fff 70%, var(--inv-ivory)));
    --bu-field-bg: #fff;
    background:
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--inv-ink) 2.5%, transparent) 0 1px, transparent 1px 5px),
        linear-gradient(180deg, var(--inv-ivory), color-mix(in srgb, var(--inv-ivory) 90%, var(--inv-accent)));
}
/* red: a carved lozenge lattice pressed into deep red */
.bu-section--red {
    --bu-bg: var(--inv-primary);
    --bu-fg: var(--inv-ivory);
    --bu-muted: color-mix(in srgb, var(--inv-ivory) 88%, transparent);
    --bu-gold: color-mix(in srgb, var(--inv-accent) 55%, #fff);
    --bu-line: color-mix(in srgb, color-mix(in srgb, var(--inv-accent) 60%, #fff) 60%, transparent);
    --bu-line-soft: color-mix(in srgb, color-mix(in srgb, var(--inv-accent) 60%, #fff) 26%, transparent);
    --bu-btn-bg: linear-gradient(135deg, color-mix(in srgb, var(--inv-ink) 88%, #fff 8%), var(--inv-ink));
    --bu-btn-fg: color-mix(in srgb, var(--inv-accent) 55%, #fff);
    --bu-card-bg: linear-gradient(170deg, color-mix(in srgb, var(--inv-ink) 80%, transparent), color-mix(in srgb, var(--inv-ink) 62%, transparent));
    --bu-field-bg: color-mix(in srgb, var(--inv-ink) 45%, transparent);
    background:
        repeating-linear-gradient(45deg, rgb(0 0 0 / .08) 0 1px, transparent 1px 16px),
        repeating-linear-gradient(-45deg, rgb(0 0 0 / .08) 0 1px, transparent 1px 16px),
        radial-gradient(110% 60% at 50% 0%, color-mix(in srgb, var(--inv-primary) 85%, #fff 8%), transparent 75%),
        linear-gradient(180deg, var(--inv-primary), var(--bu-red-deep));
}
.bu-section--red .bu-divider__line::before { background: var(--inv-ink); }

.bu-section > * { position: relative; z-index: 1; }
.bu-section > .bu-corners { position: absolute; z-index: 0; }
.bu-section > .bu-corners .bu-corner { width: clamp(100px, 28vw, 128px); opacity: .9; }
/* an ulos band across the top of a section */
.bu-section > .bu-ulos { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 1.9rem; }
.bu-section:has(> .bu-ulos) { padding-top: 6rem; }
.bu-section:has(> .bu-ulos) > .bu-corners { top: 1.9rem; }

.bu-heading { margin-bottom: 2.2rem; }
.bu-heading__label { font: 500 .7rem/1.4 var(--bu-sans); letter-spacing: .38em; text-transform: uppercase; color: var(--bu-gold); }
.bu-heading__title { margin-top: .45rem; font: 600 clamp(1.55rem, 7vw, 1.9rem)/1.2 var(--bu-display); letter-spacing: .04em; color: var(--bu-fg); }

.bu-lead { max-width: 24rem; margin: -.6rem auto 1.6rem; color: var(--bu-muted); font-size: .98rem; }

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

/* opening */
.bu-arabic { font: 400 1.75rem/1.8 'Amiri', serif; color: var(--bu-gold); margin-bottom: .6rem; }
.bu-opening__curl { display: block; width: 4.4rem; height: 1.65rem; margin: 0 auto 1rem; color: var(--inv-primary); stroke-width: 2.2; overflow: visible; }
.bu-opening__greeting { font: 600 1.15rem/1.45 var(--bu-display); color: var(--bu-fg); }
.bu-opening__message { max-width: 24rem; margin: 1rem auto 0; color: var(--bu-muted); }
.bu-quote {
    position: relative; max-width: 24rem; margin: 2.8rem auto 0; padding: 0;
    background: #fff; border: 1px solid var(--bu-line-soft);
    box-shadow: 0 22px 40px -30px rgb(0 0 0 / .55);
}
.bu-quote__badge {
    position: absolute; left: 50%; top: -1.1rem; width: 2.2rem; height: 2.2rem; transform: translateX(-50%);
    overflow: visible; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .25));
}
.bu-quote blockquote { margin: 0; padding: 2rem 1.5rem .3rem; font: italic 400 1rem/1.7 var(--bu-sans); color: var(--bu-fg); }
.bu-quote figcaption { padding: .6rem 1.5rem 1.6rem; font: 600 .68rem/1.4 var(--bu-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--inv-primary); }
.bu-quote > .bu-teeth:last-child { margin-top: 0; }
.bu-quote:not(:has(figcaption)) blockquote { padding-bottom: 1.6rem; }

/* couple */
.bu-person { display: flex; flex-direction: column; align-items: center; }
/* a house-shaped gold frame: gable on top */
.bu-person__frame {
    position: relative; width: min(58%, 210px); aspect-ratio: 3 / 4; padding: 3px;
    background: var(--bu-gold-bg);
    clip-path: polygon(50% 0, 100% 19%, 100% 100%, 0 100%, 0 19%);
    filter: drop-shadow(0 20px 26px rgb(0 0 0 / .6));
}
.bu-person__photo {
    display: block; width: 100%; height: 100%; object-fit: cover;
    clip-path: polygon(50% 0, 100% 19%, 100% 100%, 0 100%, 0 19%);
}
.bu-person__photo--empty {
    display: grid; place-items: center;
    background: linear-gradient(160deg, var(--inv-primary), var(--inv-ink));
    font: 400 4.5rem/1 var(--bu-script); color: var(--inv-ivory);
}
.bu-person__frame::after {
    content: ''; position: absolute; left: 3px; right: 3px; bottom: 3px; height: 12px;
    background:
        conic-gradient(from 153.43deg at 50% 45%, var(--inv-primary) 53.13deg, transparent 0) 0 0 / 12px 12px repeat-x,
        conic-gradient(from 153.43deg at 50% 0, var(--inv-ivory) 53.13deg, transparent 0) 0 0 / 12px 12px repeat-x,
        var(--inv-ink);
}
.bu-person__role { margin-top: 1.4rem; font: 500 .66rem/1.4 var(--bu-sans); letter-spacing: .34em; text-transform: uppercase; color: var(--bu-muted); }
.bu-person__nick { margin-top: .1rem; font: 400 2.9rem/1.25 var(--bu-script); color: var(--bu-gold); }
.bu-person__name { margin-top: .1rem; font: 600 1.08rem/1.4 var(--bu-display); letter-spacing: .05em; }
.bu-person__parents { margin-top: .6rem; font-size: .95rem; color: var(--bu-muted); }
.bu-person__parents strong { color: var(--bu-fg); font-weight: 600; }

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

/* countdown: carved black tiles on red */
.bu-countdown__date { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; font: 600 .78rem/1.4 var(--bu-sans); letter-spacing: .12em; text-transform: uppercase; }
.bu-countdown__date .bu-icon { color: var(--bu-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.25rem;
    border-radius: 8px; color: var(--inv-ivory);
    background: linear-gradient(170deg, color-mix(in srgb, var(--inv-ink) 90%, #fff 6%), var(--inv-ink));
    border: 1px solid color-mix(in srgb, var(--inv-accent) 70%, transparent);
    box-shadow: inset 0 0 0 3px var(--inv-ink), inset 0 0 0 4px color-mix(in srgb, var(--inv-accent) 28%, transparent), 0 14px 24px -14px rgb(0 0 0 / .65);
}
/* a sawtooth hem at the tile's foot */
.inv-countdown__item::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
    background: conic-gradient(from 153.43deg at 50% 0, var(--inv-primary) 53.13deg, transparent 0) 0 0 / 7px 7px repeat-x;
}
.inv-countdown__value { font: 600 1.8rem/1.1 var(--bu-display); color: color-mix(in srgb, var(--inv-accent) 55%, #fff); }
.inv-countdown__label { margin-top: .25rem; font: 500 .58rem/1.2 var(--bu-sans); letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.inv-countdown__done { font-style: italic; color: var(--bu-muted); }
.inv-countdown__actions { margin-top: 1.5rem; }
.inv-countdown__actions .inv-button { padding: .7rem 1rem; font-size: .62rem; letter-spacing: .1em; }

/* events: carved cards on white */
.bu-events__list { display: grid; gap: 1.6rem; max-width: 24rem; margin: 0 auto; }
.bu-event {
    overflow: hidden;
    background: var(--bu-card-bg);
    border: 1px solid var(--bu-line-soft); border-radius: 16px;
    box-shadow: 0 24px 44px -30px rgb(0 0 0 / .55);
}
.bu-event__photo {
    aspect-ratio: 16 / 9;
    background: var(--bu-photo) center 30% / cover no-repeat;
}
.bu-event__body { padding: 0 1.2rem 1.5rem; }
.bu-event__lozenge { position: relative; display: block; width: 2.1rem; height: 2.1rem; margin: -1.05rem auto .7rem; overflow: visible; filter: drop-shadow(0 3px 5px rgb(0 0 0 / .3)); }
.bu-event__name { font: 700 1.25rem/1.3 var(--bu-display); letter-spacing: .04em; color: var(--inv-primary); overflow-wrap: anywhere; }
.bu-event__rows {
    display: grid; gap: .6rem; max-width: 19rem; margin: 1rem auto 1.2rem; padding: 1rem 0 0; list-style: none; text-align: left;
    border-top: 1.5px dotted var(--bu-line);
}
.bu-event__rows li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; line-height: 1.45; }
.bu-event__rows .bu-icon { width: 1.15rem; height: 1.15rem; margin-top: .1rem; color: var(--inv-primary); }
.bu-event__rows li > span { min-width: 0; overflow-wrap: anywhere; }
.bu-event__venue { display: block; font-weight: 600; }
.bu-event__address { display: block; font-size: .86rem; color: var(--bu-muted); }
.bu-event .inv-maps .inv-button { padding: .7rem 1.2rem; font-size: .66rem; }

/* ---------- love story: zig-zag timeline (R1) ----------
   Default: text left (aligned right, toward the line), meta right. .is-flip swaps the sides. */
.bu-story { padding-left: 1rem; padding-right: 1rem; }
.bu-zig { position: relative; margin: 0; padding: 0; list-style: none; }
.bu-zig::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--bu-gold) 6%, var(--bu-gold) 94%, transparent);
    opacity: .7;
}
.bu-zig__item {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) 1.5rem minmax(0, 1fr); column-gap: .6rem; align-items: start;
    grid-template-areas: "text dot meta";
}
.bu-zig__item + .bu-zig__item { margin-top: 2.4rem; }
.bu-zig__item.is-flip { grid-template-areas: "meta dot text"; }

.bu-zig__dot {
    grid-area: dot; justify-self: center; width: 1.5rem; height: 1.5rem; margin-top: .05rem; overflow: visible;
    filter: drop-shadow(0 0 0 var(--bu-bg)) drop-shadow(0 4px 6px rgb(0 0 0 / .45));
}

.bu-zig__text { grid-area: text; min-width: 0; text-align: right; }
.is-flip .bu-zig__text { text-align: left; }
.bu-zig__title { font: 600 1.02rem/1.3 var(--bu-display); color: var(--bu-fg); overflow-wrap: anywhere; }
.bu-zig__rule {
    display: block; width: 70%; margin: .45rem 0 .55rem auto;
    border-top: 2px dotted var(--bu-line);
}
.is-flip .bu-zig__rule { margin-left: 0; margin-right: auto; }
.bu-zig__story { font-size: .86rem; line-height: 1.55; color: var(--bu-muted); overflow-wrap: anywhere; }

.bu-zig__meta { grid-area: meta; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; text-align: left; }
.is-flip .bu-zig__meta { align-items: flex-end; text-align: right; }
.bu-zig__date { font: 700 1.3rem/1.2 var(--bu-display); color: var(--bu-gold); overflow-wrap: anywhere; }
.bu-zig__photo {
    display: block; width: min(6rem, 100%); aspect-ratio: 1; object-fit: cover;
    border: 2.5px solid transparent; border-radius: 6px;
    background: var(--bu-gold-bg) border-box;
    box-shadow: 0 0 0 4px var(--bu-bg), 0 0 0 5px var(--bu-line-soft), 0 14px 24px -14px rgb(0 0 0 / .6);
}
/* no date and no photo: a small curl keeps the empty side from looking unfinished */
.bu-zig__item--bare .bu-zig__meta::before {
    content: ''; width: 2.6rem; height: 1rem; opacity: .7;
    background: radial-gradient(circle, var(--bu-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: 10px;
    box-shadow: 0 0 0 1px var(--bu-line), 0 16px 26px -20px rgb(0 0 0 / .8);
}
.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-ink) 70%, transparent); color: var(--inv-ivory); }

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

/* gift: accounts as red-black bank cards with an ulos stripe, 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.25rem;
    border-radius: 16px; text-align: left; color: var(--inv-ivory);
    background:
        linear-gradient(118deg, transparent 22%, rgb(255 255 255 / .1) 36%, transparent 50%),
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--inv-primary) 80%, transparent), transparent 70%),
        linear-gradient(150deg, var(--bu-red-deep), var(--inv-ink) 75%);
    box-shadow: 0 18px 30px -18px rgb(0 0 0 / .8), 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, #f6e6c4, #c9a160 55%, #ead3a2);
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2);
}
/* the ulos stripe woven along the card's foot */
.inv-gift__account::after {
    content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: .6rem;
    background:
        repeating-linear-gradient(90deg, rgb(0 0 0 / .25) 0 1px, transparent 1px 3px),
        linear-gradient(180deg, var(--inv-accent) 0 18%, var(--inv-primary) 18% 45%, var(--inv-thread) 45% 58%, var(--inv-primary) 58% 82%, var(--inv-ink) 82%);
}
.inv-gift__bank {
    grid-area: bank; justify-self: end; min-width: 0; max-width: 100%; margin: 0;
    font: 600 .66rem/1.2 var(--bu-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(--bu-mono); letter-spacing: .03em; color: var(--inv-ivory);
    overflow-wrap: anywhere;
}
.inv-gift__holder { grid-area: holder; margin: 0; font: 600 .58rem/1.35 var(--bu-sans); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--inv-ivory) 85%, transparent); 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: color-mix(in srgb, var(--inv-accent) 55%, #fff); background: rgb(255 255 255 / .06);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 60%, 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(--bu-fg);
    background: var(--bu-card-bg);
    box-shadow: inset 0 0 0 1px var(--bu-line-soft), 0 20px 40px -28px rgb(0 0 0 / .8);
}
.inv-gift__address::before, .inv-gift__address::after { content: none; }
.inv-gift__address .inv-gift__bank { justify-self: auto; text-align: center; font: 500 .68rem/1.4 var(--bu-sans); letter-spacing: .3em; color: var(--bu-gold); }
.inv-gift__address .inv-gift__holder { margin: .6rem 0 .2rem; font: 600 1.05rem/1.3 var(--bu-display); letter-spacing: .02em; text-transform: none; color: var(--bu-fg); }
.inv-gift__address p:not([class]) { color: var(--bu-muted); }
.inv-gift__address .inv-button {
    margin-top: 1rem; color: var(--bu-gold); background: transparent;
    box-shadow: inset 0 0 0 1px var(--bu-line);
}

/* rsvp & wishes forms */
.bu-form { max-width: 24rem; margin: 0 auto; padding: 0 1.25rem 1.5rem; text-align: left; }
.bu-form > .bu-teeth { margin: 0 -1.25rem 1.4rem; }
.inv-form { gap: .9rem; }
.inv-form label, .inv-form__choices legend { font: 500 .78rem/1.4 var(--bu-sans); letter-spacing: .04em; color: var(--bu-muted); }
.inv-form input:not([type=radio]):not([type=checkbox]), .inv-form select, .inv-form textarea {
    padding: .7rem .85rem; border-radius: 8px;
    border: 1px solid var(--bu-line);
    background: var(--bu-field-bg); color: var(--bu-fg);
    font: 400 1rem/1.4 var(--bu-sans);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.inv-form input::placeholder, .inv-form textarea::placeholder { color: color-mix(in srgb, var(--bu-fg) 45%, transparent); }
.inv-form input:focus, .inv-form select:focus, .inv-form textarea:focus {
    outline: none; border-color: var(--bu-gold);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-accent) 25%, transparent);
}
.inv-form option { background: #fff; color: var(--inv-ink); }
.inv-form input[type=radio], .inv-form input[type=checkbox] { accent-color: var(--inv-primary); }
.inv-form__choices label { color: var(--bu-fg); font-size: .92rem; }
.inv-form__notice { color: var(--bu-fg); background: color-mix(in srgb, var(--inv-accent) 16%, transparent); border: 1px solid var(--bu-line-soft); }
.inv-form .inv-button { justify-self: stretch; margin-top: .3rem; }
.inv-rsvp__deadline { font-style: italic; color: var(--bu-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: 10px;
    background: color-mix(in srgb, var(--bu-deep) 40%, transparent);
    box-shadow: inset 0 0 0 1px var(--bu-line-soft), inset 0 -14px 16px -14px rgb(0 0 0 / .5);
    scrollbar-color: color-mix(in srgb, var(--inv-accent) 50%, transparent) transparent;
}
.inv-wishes__empty { text-align: center; font-style: italic; }
.inv-wish {
    padding: .65rem .8rem; border-radius: 8px;
    background: color-mix(in srgb, var(--inv-background) 55%, transparent);
    border: 1px solid var(--bu-line-soft); border-left: 3px solid var(--inv-primary);
}
.inv-wish__name { font: 600 .88rem/1.3 var(--bu-display); color: var(--bu-gold); }
.inv-wish__message { font-size: .88rem; line-height: 1.5; }
.inv-wish__time { margin-top: .25rem; font: 400 .68rem/1.3 var(--bu-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(--bu-gold); }

/* closing */
.bu-closing { padding-top: 4rem; padding-bottom: 4rem; }
.bu-house--closing { width: min(60%, 225px); margin: .4rem auto 2.6rem; }
.bu-closing__label { font: 500 .7rem/1.4 var(--bu-sans); letter-spacing: .4em; text-transform: uppercase; color: var(--bu-gold); }
.bu-closing__thanks { margin-top: .1rem; font: 400 3.1rem/1.2 var(--bu-script); color: var(--bu-fg); }
.bu-closing__message { max-width: 24rem; margin: .8rem auto 0; color: var(--bu-muted); }
.bu-closing__sign { margin-top: 1.6rem; font: 600 .7rem/1.4 var(--bu-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--bu-gold); }
.bu-closing__names { margin-top: .3rem; font: 400 clamp(2.5rem, 11.5vw, 3.1rem)/1.25 var(--bu-script); color: var(--bu-fg); }
.bu-closing__names span { font: 500 .45em/1 var(--bu-display); color: var(--bu-gold); }
.bu-closing .bu-divider { margin-top: 1.4rem; }

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

.inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--inv-ink) 93%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-ivory) 78%, transparent);
    --inv-nav-active: linear-gradient(160deg, color-mix(in srgb, var(--inv-primary) 92%, #fff 8%), var(--bu-red-deep));
    border-color: color-mix(in srgb, var(--inv-accent) 40%, transparent);
    box-shadow: 0 14px 34px -12px rgb(0 0 0 / .7), inset 0 -2px 0 color-mix(in srgb, var(--inv-primary) 70%, transparent);
    font-family: var(--bu-sans);
}
.inv-nav__item.is-active { color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-accent) 55%, transparent); }

.inv-music { right: max(1rem, calc((100vw - var(--bu-w)) / 2 + 1rem)); }
.inv-music__button { background: var(--bu-gold-bg); color: var(--inv-ink); box-shadow: 0 8px 22px -8px rgb(0 0 0 / .7), 0 0 0 3px color-mix(in srgb, var(--inv-ink) 55%, transparent); }

.inv-to-top {
    left: max(1rem, calc((100vw - var(--bu-w)) / 2 + 1rem));
    background: var(--inv-ink); color: color-mix(in srgb, var(--inv-accent) 60%, #fff);
    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);
}

.bu-page > .bu-ulos { height: 1.9rem; margin-top: .9rem; }
.bu-branding { position: relative; z-index: 1; color: var(--inv-text); font-family: var(--bu-sans); background: var(--bu-deep); }

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

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

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

/* ---------- cover fit: everything up to "Buka Undangan" on one phone screen, above the ulos band ---------- */
/* the blocks share the screen height; the bottom padding reserves the ulos band + its fringe so nothing slides under it */
.bu-cover__inner {
    min-height: 100%; margin: 0; justify-content: space-evenly; gap: .55rem;
    padding: clamp(1rem, 3.5svh, 1.6rem) 1.8rem calc(2.2rem + .85rem + clamp(.9rem, 3svh, 1.6rem));
}
.bu-cover__roof { width: min(80%, 300px, 36svh); }
.bu-cover__quote, .bu-guest__note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }

@media (max-height: 760px) {
    .bu-cover__inner { gap: .4rem; }
    .bu-cover__roof { width: min(72%, 32svh); margin-bottom: 0; }
    .bu-mono { width: 6.2rem; height: 3.8rem; font-size: 1.2rem; }
    .bu-cover__names { font-size: clamp(2.5rem, 12vw, 3.2rem); line-height: 1; }
    .bu-cover__quote { font-size: .88rem; line-height: 1.45; -webkit-line-clamp: 6; }
    .bu-guest { padding: .75rem 1rem .7rem; }
    .bu-guest__note { font-size: .78rem; -webkit-line-clamp: 6; }
    .bu-open { margin-top: .15rem; }
}
@media (max-height: 660px) {
    .bu-cover__roof { width: min(64%, 28svh); }
    .bu-mono { width: 5.4rem; height: 3.3rem; font-size: 1.05rem; }
    /* the names on one line: "Dimas & Rina" */
    .bu-cover__names { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .45rem; font-size: clamp(2.3rem, 11vw, 2.7rem); line-height: 1.1; }
    .bu-cover__amp { font-size: .5em; }
    .bu-guest__note { display: none; }
}

/* ---------- page end: the closing names, then the ulos band (its fringe over the red), then the nav's space ---------- */
.bu-closing { padding-bottom: 2.4rem; }
.bu-page > .bu-ulos { margin-top: 0; }
/* the music player leaves 4.5rem under the page for the nav; without it, the page keeps that room itself */
body:not(:has(.inv-music__space)) .bu-page { padding-bottom: 4.5rem; }
