/*
 * Template "Batik Lembut" (Aqiqah & Kelahiran) — a gentle Javanese aqiqah: pastel batik, soft and airy.
 * A cream page, a dusty deep colour (sogan rose by default) and muted gold. Kawung on the cloth (the jarik
 * around the cover photo, the letter band, the ribbon of the rundown, small hems), truntum ("growing love")
 * on the paper and in the prayer frame. Original SVG drawings in sections/_sprite: melati, crown, the
 * jarik knot, the woven bamboo cradle and the besek gift box. Mobile-first, one column (~460px) on a
 * deep backdrop on wide screens.
 *
 * Colours come from the chosen colour variant (template.json → <x-inv.head>):
 *   --inv-primary (dusty rose / indigo / sage / lilac: titles, buttons, the cloth)
 *   --inv-accent (muted gold: lines, rings, the crown; text on it = --inv-deep)
 *   --inv-background (cream)   --inv-text   --inv-deep (dark bands)   --inv-shine (light gold on dark)
 *   --inv-soft (the pastel tint: soft sections, chips, the cloth ground)
 * Everything else is mixed from those, so a new variant only needs these seven colours.
 *
 * Section tones (set on each section in its partial): .bl-tone--light (cream + faint truntum),
 * --soft (pastel tint), --deep (the deep colour + faint kawung), --gold (a muted gold band).
 *
 * Motion only runs with html.inv-anim (set by <x-inv.head> unless the guest prefers reduced motion);
 * without it everything is shown finished.
 *
 * Contents: 1 base · 2 sprite colours · 3 section tones & photo backgrounds · 4 shared pieces (heading,
 *           cloth, jarik, crown, ronce, melati, cradle, chips) · 5 cover · 6 sections in page order ·
 *           7 forms (RSVP, wishes) · 8 shared components · 9 screen sizes · 10 motion
 */

/* ---------- 1. base ---------- */
:root {
    /* defaults = the "Sogan Mawar" variant (the variant's colours override these) */
    --inv-primary: #9b4f5f;
    --inv-accent: #c49a52;
    --inv-background: #fcf6f0;
    --inv-text: #3b2329;
    --inv-deep: #6b3444;
    --inv-shine: #f3d39d;
    --inv-soft: #f4dfdd;
    --inv-radius: 16px;

    --bl-display: 'Gilda Display', 'Cormorant Garamond', Georgia, serif;
    --bl-script: 'Parisienne', 'Segoe Script', cursive;
    --bl-sans: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bl-col: 460px;
    --bl-paper: color-mix(in srgb, #fff 68%, var(--inv-background));
    --bl-title: color-mix(in srgb, var(--inv-primary) 55%, var(--inv-deep));
    --bl-muted: color-mix(in srgb, var(--inv-text) 80%, var(--inv-background));
    --bl-cream-muted: color-mix(in srgb, var(--inv-background) 86%, transparent);
    --bl-ring: color-mix(in srgb, var(--inv-primary) 20%, transparent);
    --bl-drop: 0 24px 40px -24px color-mix(in srgb, var(--inv-deep) 70%, transparent);
    /* the cloth: a pastel ground of the primary + the soft tint, cream petals, gold centres */
    --bl-cloth: color-mix(in srgb, var(--inv-primary) 46%, var(--inv-soft));
    --bl-cloth-edge: color-mix(in srgb, var(--inv-primary) 72%, var(--inv-deep));
    --bl-petal: color-mix(in srgb, var(--inv-background) 88%, var(--inv-soft));

    /* batik tiles (masks, so they take any colour) */
    --bl-kawung: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cg fill-rule='evenodd'%3E%3Cpath transform='translate(10 10) rotate(45)' d='M-11 0a11 6 0 1 0 22 0a11 6 0 1 0-22 0ZM-7 0a7 1.7 0 1 0 14 0a7 1.7 0 1 0-14 0Z'/%3E%3Cpath transform='translate(30 30) rotate(45)' d='M-11 0a11 6 0 1 0 22 0a11 6 0 1 0-22 0ZM-7 0a7 1.7 0 1 0 14 0a7 1.7 0 1 0-14 0Z'/%3E%3Cpath transform='translate(30 10) rotate(-45)' d='M-11 0a11 6 0 1 0 22 0a11 6 0 1 0-22 0ZM-7 0a7 1.7 0 1 0 14 0a7 1.7 0 1 0-14 0Z'/%3E%3Cpath transform='translate(10 30) rotate(-45)' d='M-11 0a11 6 0 1 0 22 0a11 6 0 1 0-22 0ZM-7 0a7 1.7 0 1 0 14 0a7 1.7 0 1 0-14 0Z'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3Ccircle cx='0' cy='0' r='2'/%3E%3Ccircle cx='40' cy='0' r='2'/%3E%3Ccircle cx='0' cy='40' r='2'/%3E%3Ccircle cx='40' cy='40' r='2'/%3E%3C/svg%3E");
    --bl-truntum: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cg transform='translate(9 9)'%3E%3Ccircle cx='4.40' cy='0.00' r='1.6'/%3E%3Ccircle cx='3.11' cy='3.11' r='1.6'/%3E%3Ccircle cx='0.00' cy='4.40' r='1.6'/%3E%3Ccircle cx='-3.11' cy='3.11' r='1.6'/%3E%3Ccircle cx='-4.40' cy='0.00' r='1.6'/%3E%3Ccircle cx='-3.11' cy='-3.11' r='1.6'/%3E%3Ccircle cx='-0.00' cy='-4.40' r='1.6'/%3E%3Ccircle cx='3.11' cy='-3.11' r='1.6'/%3E%3Ccircle r='1.7'/%3E%3C/g%3E%3Cg transform='translate(27 27)'%3E%3Ccircle cx='4.40' cy='0.00' r='1.6'/%3E%3Ccircle cx='3.11' cy='3.11' r='1.6'/%3E%3Ccircle cx='0.00' cy='4.40' r='1.6'/%3E%3Ccircle cx='-3.11' cy='3.11' r='1.6'/%3E%3Ccircle cx='-4.40' cy='0.00' r='1.6'/%3E%3Ccircle cx='-3.11' cy='-3.11' r='1.6'/%3E%3Ccircle cx='-0.00' cy='-4.40' r='1.6'/%3E%3Ccircle cx='3.11' cy='-3.11' r='1.6'/%3E%3Ccircle r='1.7'/%3E%3C/g%3E%3Ccircle cx='27' cy='9' r='1'/%3E%3Ccircle cx='9' cy='27' r='1'/%3E%3C/svg%3E");
    --bl-lereng: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M-2 14 14-2M10 26 26 10' stroke='black' stroke-width='3.2' fill='none'/%3E%3Cpath d='M-2 19 19-2M5 26 26 5' stroke='black' stroke-width='.9' fill='none'/%3E%3Cpath d='M0-3 3 0 0 3-3 0ZM24-3l3 3-3 3-3-3ZM0 21l3 3-3 3-3-3ZM24 21l3 3-3 3-3-3ZM12 9l3 3-3 3-3-3Z'/%3E%3C/svg%3E");

    /* colours of the shared components: melati-white and pastel petals */
    --inv-ambient-1: #fffaf0;
    --inv-ambient-2: var(--inv-soft);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--inv-background);
    color: var(--inv-text);
    font-family: var(--bl-sans);
    font-size: 15px;
    line-height: 1.65;
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--inv-primary); }

.bl-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.bl-preview {
    position: sticky; top: 0; z-index: 60; padding: .5rem 1rem; text-align: center;
    background: #fff4d6; color: #6b4e00; font-size: .8125rem;
}

/* the one column of the page; every section paints its own full-width background */
.bl-main { max-width: var(--bl-col); margin: 0 auto; }
.bl-branding { max-width: var(--bl-col); margin: 0 auto; }

.bl-section { position: relative; isolation: isolate; overflow: hidden; padding: 4.4rem 1.4rem; text-align: center; }
.bl-section > p { margin: 0 auto 1rem; max-width: 34ch; }

.bl-arabic { font-family: 'Amiri', 'Traditional Arabic', serif; line-height: 1.9; color: var(--inv-primary); }
.bl-amp { font-family: var(--bl-script); font-weight: 400; color: var(--inv-accent); }

/* ---------- 2. sprite colours (patterns and symbols in sections/_sprite) ---------- */
.bl-pf-cloth { fill: var(--bl-cloth); }
.bl-pf-petal { fill: var(--bl-petal); }
.bl-pf-line { fill: var(--bl-cloth-edge); opacity: .55; }
.bl-pf-dot { fill: var(--inv-accent); }
.bl-pf-deep { fill: color-mix(in srgb, var(--inv-primary) 60%, var(--inv-deep)); }
.bl-pf-star { fill: color-mix(in srgb, var(--inv-background) 80%, var(--inv-soft)); opacity: .78; }
.bl-gs-gold-1 { stop-color: color-mix(in srgb, var(--inv-shine) 75%, #fff); }
.bl-gs-gold-2 { stop-color: var(--inv-accent); }
.bl-gs-gold-3 { stop-color: color-mix(in srgb, var(--inv-accent) 70%, var(--inv-deep)); }
.bl-gs-petal { stop-color: color-mix(in srgb, var(--inv-soft) 70%, #fff); }

.bl-melati__back path { fill: url(#bl-g-petal); stroke: color-mix(in srgb, var(--inv-primary) 22%, transparent); stroke-width: .9; }
.bl-melati__back { opacity: .92; }
.bl-melati__front path { fill: url(#bl-g-petal); stroke: color-mix(in srgb, var(--inv-primary) 28%, transparent); stroke-width: .9; }
.bl-melati__front .bl-melati__vein { fill: none; stroke: color-mix(in srgb, var(--inv-primary) 14%, transparent); stroke-width: 1.2; stroke-linecap: round; }
.bl-bud__body { stroke: color-mix(in srgb, var(--inv-primary) 26%, transparent); stroke-width: .8; }
.bl-bud__fold { fill: none; stroke: color-mix(in srgb, var(--inv-primary) 16%, transparent); stroke-width: .9; stroke-linecap: round; }

.bl-crown__body, .bl-crown__band { stroke: color-mix(in srgb, var(--inv-accent) 55%, var(--inv-deep)); stroke-width: 1.4; stroke-linejoin: round; }
.bl-crown__line { fill: none; stroke: color-mix(in srgb, var(--inv-accent) 45%, var(--inv-deep)); stroke-width: 1.3; stroke-linecap: round; opacity: .7; }
.bl-crown__leaf { fill: color-mix(in srgb, var(--inv-shine) 55%, #fff); stroke: color-mix(in srgb, var(--inv-accent) 55%, var(--inv-deep)); stroke-width: 1.1; }
.bl-crown__pearl circle { fill: #fffaf0; stroke: color-mix(in srgb, var(--inv-accent) 60%, var(--inv-deep)); stroke-width: .9; }

.bl-knot__edge path { fill: none; stroke: var(--bl-cloth-edge); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; opacity: .75; }
.bl-knot__core { fill: url(#bl-g-fold); stroke: var(--bl-cloth-edge); stroke-width: 1.6; }
.bl-knot__hem { fill: none; stroke: var(--inv-accent); stroke-width: 3.2; stroke-linecap: round; }

.bl-cradle__rope path { fill: none; stroke: #9a7442; stroke-width: 2; stroke-linecap: round; }
.bl-cradle__ring { fill: none; stroke: var(--inv-accent); stroke-width: 3; }
.bl-cradle__band { fill: none; stroke: #a87d45; stroke-width: 2.4; stroke-linecap: round; opacity: .7; }
.bl-cradle__blanket { stroke: var(--bl-cloth-edge); stroke-width: 1.4; stroke-linejoin: round; }
.bl-cradle__rim { fill: none; stroke: #d8b57a; stroke-width: 6.5; }
.bl-besek__rim { fill: none; stroke: #a47a42; stroke-width: 2; stroke-linecap: round; opacity: .8; }
.bl-besek__edge, .bl-besek__bow { stroke: var(--bl-cloth-edge); stroke-width: 1.3; fill-opacity: 1; }
.bl-besek__edge { fill: none; }

/* ---------- 3. section tones & photo backgrounds ---------- */

/* light: cream with a pastel glow and the faint truntum print */
.bl-tone--light {
    background:
        radial-gradient(70% 30% at 100% 0%, color-mix(in srgb, var(--inv-soft) 85%, transparent), transparent 75%),
        radial-gradient(60% 26% at 0% 100%, color-mix(in srgb, var(--inv-accent) 12%, transparent), transparent 75%),
        var(--inv-background);
}
/* soft: a pastel wash of the soft tint */
.bl-tone--soft {
    background:
        radial-gradient(80% 40% at 50% 0%, color-mix(in srgb, #fff 50%, transparent), transparent 75%),
        linear-gradient(180deg, var(--inv-soft), color-mix(in srgb, var(--inv-soft) 55%, var(--inv-background)));
}
.bl-tone--light::before, .bl-tone--soft::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-primary); opacity: .06;
    -webkit-mask: var(--bl-truntum) center top / 36px 36px repeat; mask: var(--bl-truntum) center top / 36px 36px repeat;
}

/* deep: the dusty deep colour with a glow of the primary and a little gold, a faint kawung print */
.bl-tone--deep {
    color: var(--inv-background);
    background:
        radial-gradient(90% 45% at 12% 0%, color-mix(in srgb, var(--inv-primary) 90%, transparent), transparent 75%),
        radial-gradient(60% 34% at 100% 100%, color-mix(in srgb, var(--inv-accent) 20%, transparent), transparent 75%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-primary) 45%, var(--inv-deep)), var(--inv-deep));
}
.bl-tone--deep::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--inv-soft); opacity: .07;
    -webkit-mask: var(--bl-kawung) center top / 44px 44px repeat; mask: var(--bl-kawung) center top / 44px 44px repeat;
}
.bl-tone--deep a:not(.inv-button) { color: var(--inv-shine); }
.bl-tone--deep .bl-arabic { color: var(--inv-shine); }

/* gold: a muted gold band */
.bl-tone--gold {
    color: var(--inv-deep);
    background:
        radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, #fff 40%, transparent), transparent 75%),
        linear-gradient(160deg, color-mix(in srgb, var(--inv-accent) 62%, #fff), color-mix(in srgb, var(--inv-accent) 88%, #fff));
}
.bl-tone--gold::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: #fff; opacity: .17;
    -webkit-mask: var(--bl-kawung) center top / 44px 44px repeat; mask: var(--bl-kawung) center top / 44px 44px repeat;
}

/* a client photo behind a section, under a strong gradient of the section's own tone */
.bl-bgphoto { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bl-bgphoto img { display: block; width: 100%; height: calc(100% + 80px); margin-top: -40px; object-fit: cover; object-position: center 40%; --inv-parallax: 40px; }
.bl-bgphoto::after { content: ''; position: absolute; inset: 0; }
.bl-tone--light .bl-bgphoto::after, .bl-tone--soft .bl-bgphoto::after {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--inv-background) 90%, transparent),
        color-mix(in srgb, var(--inv-background) 78%, transparent) 45%,
        color-mix(in srgb, var(--inv-background) 94%, transparent));
}
.bl-tone--deep .bl-bgphoto::after {
    background:
        radial-gradient(90% 50% at 20% 10%, color-mix(in srgb, var(--inv-primary) 45%, transparent), transparent),
        linear-gradient(180deg,
            color-mix(in srgb, var(--inv-deep) 86%, transparent),
            color-mix(in srgb, var(--inv-deep) 70%, transparent) 45%,
            color-mix(in srgb, var(--inv-deep) 92%, transparent));
}

/* ---------- 4. shared pieces ---------- */

/* section heading: a Javanese label between two small kawung flowers, a Gilda title, the last word in the script */
.bl-heading { margin: 0 0 2rem; }
.bl-heading--left { text-align: left; }
.bl-heading__label {
    display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .55rem;
    font-size: .68rem; font-weight: 800; line-height: 1.2; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-primary);
}
.bl-heading__label::before, .bl-heading__label::after {
    content: ''; width: 14px; height: 14px; flex: none; background: var(--inv-accent);
    -webkit-mask: var(--bl-kawung) center / 18px 18px; mask: var(--bl-kawung) center / 18px 18px;
}
.bl-heading--left .bl-heading__label::before { display: none; }
.bl-heading__title {
    margin: 0; font-family: var(--bl-display); font-size: 2.25rem; font-weight: 400; line-height: 1.12;
    letter-spacing: -.005em; color: var(--bl-title);
}
.bl-heading__title em {
    display: inline-block; padding: 0 .08em; font-family: var(--bl-script); font-style: normal; font-size: 1.22em; font-weight: 400;
    line-height: .9; color: var(--inv-primary);
}
.bl-tone--deep .bl-heading__label { color: var(--inv-shine); }
.bl-tone--deep .bl-heading__title { color: #fff; }
.bl-tone--deep .bl-heading__title em { color: var(--inv-shine); }
.bl-tone--gold .bl-heading__label, .bl-tone--gold .bl-heading__title, .bl-tone--gold .bl-heading__title em { color: var(--inv-deep); }
.bl-tone--gold .bl-heading__label::before, .bl-tone--gold .bl-heading__label::after { background: var(--inv-deep); opacity: .6; }

/* a small divider: a gold line with a kawung flower in the middle */
.bl-divider {
    display: block; width: 7.5rem; height: 16px; margin: 1.1rem auto;
    background:
        linear-gradient(var(--inv-accent), var(--inv-accent)) left center / 2.9rem 1px no-repeat,
        linear-gradient(var(--inv-accent), var(--inv-accent)) right center / 2.9rem 1px no-repeat;
    position: relative;
}
.bl-divider::after {
    content: ''; position: absolute; left: 50%; top: 0; width: 16px; height: 16px; margin-left: -8px; background: var(--inv-accent);
    -webkit-mask: var(--bl-kawung) center / 20px 20px; mask: var(--bl-kawung) center / 20px 20px;
}

/* icons */
.bl-icon { width: 1.15rem; height: 1.15rem; flex: none; }

/* chips */
.bl-chip {
    display: inline-block; padding: .22rem .7rem; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .08em;
    color: var(--bl-title); background: var(--inv-soft); box-shadow: inset 0 0 0 1px var(--bl-ring);
}
.bl-chip--deep { color: #fff; background: var(--inv-primary); box-shadow: none; }

/* the cloth (kawung batik) on plain elements: a pastel ground with gold centres (background), cream petals
   (::before, a mask) and a soft fold shading (::after) */
.bl-jarik__cloth, .bl-letter__band, .bl-message__strip, .bl-event::before, .bl-stream__card::before {
    background:
        radial-gradient(circle, var(--inv-accent) 1.3px, transparent 1.9px) 0 0 / 22px 22px,
        radial-gradient(circle, var(--inv-accent) 1.3px, transparent 1.9px) 11px 11px / 22px 22px,
        var(--bl-cloth);
}
.bl-jarik__cloth::before, .bl-letter__band::before, .bl-message__strip::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--bl-petal); opacity: .9;
    -webkit-mask: var(--bl-kawung) 11px 11px / 22px 22px repeat; mask: var(--bl-kawung) 11px 11px / 22px 22px repeat;
}
.bl-jarik__cloth::after, .bl-letter__band::after, .bl-message__strip::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(112deg, rgb(255 255 255 / .22) 0 8%, transparent 22%, rgb(0 0 0 / .07) 36%, transparent 48%, rgb(255 255 255 / .16) 62%, transparent 76%, rgb(0 0 0 / .08) 92%);
}

/* the jarik around a photo (sections/_jarik): an arch of cloth, a cream seret line along its outer edge, a
   gold line along the photo; --jw sets the size, --jpos the photo crop */
.bl-jarik {
    --jw: 12rem; --jpos: center 45%; --jb: calc(var(--jw) * .085); --jr: calc(var(--jw) / 2);
    position: relative; isolation: isolate; width: var(--jw); aspect-ratio: .74; margin: 0; flex: none;
}
.bl-jarik__cloth {
    position: absolute; inset: 0; border-radius: var(--jr) var(--jr) 22px 22px;
    box-shadow:
        inset 0 0 0 2.5px var(--bl-cloth-edge),
        inset 0 0 0 4px color-mix(in srgb, var(--inv-background) 80%, transparent),
        inset 0 0 0 5px var(--bl-cloth-edge),
        0 26px 40px -22px color-mix(in srgb, var(--inv-deep) 65%, transparent);
}
.bl-jarik__window {
    position: absolute; inset: var(--jb); overflow: hidden; border-radius: calc(var(--jr) - var(--jb)) calc(var(--jr) - var(--jb)) 14px 14px;
    background: var(--inv-soft);
    box-shadow: 0 0 0 2px var(--inv-accent), 0 0 0 4.5px color-mix(in srgb, var(--inv-background) 75%, transparent);
}
.bl-jarik__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--jpos); }
.bl-jarik__empty {
    position: absolute; inset: 0; display: grid; place-items: center;
    background:
        radial-gradient(80% 50% at 50% 28%, color-mix(in srgb, #fff 55%, transparent), transparent 70%),
        linear-gradient(175deg, var(--inv-soft), color-mix(in srgb, var(--inv-primary) 62%, var(--inv-soft)));
}
.bl-jarik__empty::before {
    content: ''; position: absolute; inset: 0; background: #fff; opacity: .16;
    -webkit-mask: var(--bl-truntum) center / 30px 30px repeat; mask: var(--bl-truntum) center / 30px 30px repeat;
}
.bl-jarik__cradle { position: absolute; left: 50%; top: 14%; width: 64%; transform: translateX(-50%); }
.bl-jarik__initial {
    position: relative; margin-top: 46%; font-family: var(--bl-script); line-height: 1;
    font-size: calc(var(--jw) * .4); color: #fff; text-shadow: 0 4px 16px color-mix(in srgb, var(--inv-deep) 45%, transparent);
}
.bl-jarik__initial--many { font-size: calc(var(--jw) * .2); white-space: nowrap; }
.bl-jarik__knot {
    position: absolute; z-index: 2; width: calc(var(--jw) * .34); right: calc(var(--jw) * -.15); top: calc(var(--jw) * -.015);
    overflow: visible; transform: rotate(-12deg); transform-origin: 50% 30%;
    filter: drop-shadow(0 6px 6px color-mix(in srgb, var(--inv-deep) 30%, transparent));
}
.bl-jarik__crown {
    position: absolute; z-index: 2; left: 50%; top: calc(var(--jw) * -.155); width: calc(var(--jw) * .3); margin-left: calc(var(--jw) * -.15);
    filter: drop-shadow(0 4px 4px color-mix(in srgb, var(--inv-deep) 28%, transparent));
}

.bl-crown { display: block; overflow: visible; }
.bl-cradle { display: block; overflow: visible; }
.bl-besek { display: block; overflow: visible; }
.bl-melati { display: block; overflow: visible; filter: drop-shadow(0 5px 6px color-mix(in srgb, var(--inv-deep) 22%, transparent)); }

/* the ronce melati (sections/_ronce) */
.bl-ronce { display: block; overflow: visible; transform-origin: 50% 0; filter: drop-shadow(0 3px 3px color-mix(in srgb, var(--inv-deep) 30%, transparent)); }
.bl-ronce__thread { fill: none; stroke: var(--inv-accent); stroke-width: 1.4; }
.bl-ronce .bl-bud__body { stroke: color-mix(in srgb, var(--inv-primary) 45%, transparent); stroke-width: 1; }
.bl-ronce__bead { fill: var(--inv-accent); }

/* ---------- 5. cover ---------- */
.bl-cover {
    --jw-cover: min(62vw, 15.25rem, calc(44svh * .74));
    position: fixed; inset: 0; z-index: 30; overflow-x: hidden; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center;
    min-height: 100svh; padding: 2.4rem 1.3rem 2rem;
    isolation: isolate; color: var(--inv-text);
    background:
        radial-gradient(closest-side at 50% 38%, color-mix(in srgb, #fff 55%, transparent), transparent),
        radial-gradient(70% 30% at 100% 100%, color-mix(in srgb, var(--inv-accent) 14%, transparent), transparent 75%),
        linear-gradient(180deg, var(--inv-soft) 0%, color-mix(in srgb, var(--inv-soft) 55%, var(--inv-background)) 55%, var(--inv-background) 100%);
    transition: opacity .9s ease;
}
/* the faint truntum print + a lereng hem along the top and the foot, like the edge of a jarik */
.bl-cover::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07; background: var(--inv-primary);
    -webkit-mask: var(--bl-truntum) center top / 36px 36px repeat; mask: var(--bl-truntum) center top / 36px 36px repeat;
}
.bl-cover::after {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bl-cloth); opacity: .85;
    -webkit-mask: var(--bl-lereng) left top / 14px 14px repeat-x, var(--bl-lereng) left bottom / 14px 14px repeat-x;
    mask: var(--bl-lereng) left top / 14px 14px repeat-x, var(--bl-lereng) left bottom / 14px 14px repeat-x;
}
.bl-cover__inner { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; text-align: center; transition: transform .9s cubic-bezier(.5, 0, .3, 1); }

.bl-cover__title {
    display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 calc(var(--jw-cover) * .19);
    font-size: .7rem; font-weight: 800; line-height: 1.2; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-primary);
}
.bl-cover__title::before, .bl-cover__title::after {
    content: ''; width: 14px; height: 14px; flex: none; background: var(--inv-accent);
    -webkit-mask: var(--bl-kawung) center / 18px 18px; mask: var(--bl-kawung) center / 18px 18px;
}

.bl-cover__art { position: relative; width: var(--jw-cover); }
.bl-jarik--cover { --jw: var(--jw-cover); --jpos: 52% 52%; }
/* two strings of melati hanging from the top edge of the screen, at the sides */
.bl-cover__ronce { position: fixed; top: 0; width: 2.35rem; z-index: 1; }
.bl-cover__ronce--left { left: max(3%, calc(50% - 12.75rem)); }
.bl-cover__ronce--right { right: max(3%, calc(50% - 12.75rem)); width: 2.1rem; }
/* the melati spray at the lower left corner of the cloth (outside the photo) */
.bl-cover__spray { position: absolute; z-index: 3; width: calc(var(--jw-cover) * .4); left: calc(var(--jw-cover) * -.25); bottom: calc(var(--jw-cover) * -.12); }

.bl-cover__text { display: flex; flex-direction: column; align-items: center; margin-top: .55rem; }
.bl-cover__name {
    margin: 0; padding: 0 .2em; font-family: var(--bl-script); font-size: 3.7rem; font-weight: 400; line-height: 1.15;
    color: var(--bl-title); overflow-wrap: anywhere;
}
.bl-cover--many .bl-cover__name { font-size: 2.7rem; }
.bl-cover__date {
    display: inline-flex; align-items: center; gap: .6rem; margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
    color: var(--inv-primary);
}
.bl-cover__date::before, .bl-cover__date::after { content: ''; width: 1.3rem; height: 1px; background: var(--inv-accent); }
.bl-cover__quote {
    max-width: 30ch; margin: .45rem 0 0; font-family: var(--bl-display); font-size: 1rem; line-height: 1.42; color: var(--bl-muted);
}
.bl-cover__guest {
    position: relative; width: min(100%, 19rem); margin: .9rem 0 0; padding: .5rem 1rem .6rem; border-radius: 14px; background: var(--bl-paper);
    box-shadow: inset 0 0 0 1px var(--bl-ring), inset 0 0 0 4px var(--bl-paper), inset 0 0 0 5px color-mix(in srgb, var(--inv-accent) 45%, transparent),
        0 10px 22px -16px color-mix(in srgb, var(--inv-deep) 60%, transparent);
}
.bl-cover__guest p { margin: 0; font-size: .62rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); }
.bl-cover__guest-name { display: block; font-family: var(--bl-display); font-size: 1.2rem; line-height: 1.25; color: var(--inv-text); overflow-wrap: anywhere; }
.bl-cover__open {
    margin-top: 1rem; min-height: 3rem; padding: .7rem 1.9rem; font-weight: 700; letter-spacing: .03em;
    background: var(--inv-primary); color: #fff;
    box-shadow: 0 0 0 3px var(--inv-background), 0 0 0 4.5px color-mix(in srgb, var(--inv-accent) 85%, transparent), 0 14px 24px -12px color-mix(in srgb, var(--inv-primary) 80%, transparent);
}

/* opening: the cover fades and lifts away (never blocks: .9s) */
.bl-cover--leave { transition: opacity .9s ease .1s; }
.bl-cover--gone { opacity: 0; }
.bl-cover--gone .bl-cover__inner { transform: translateY(-2.5rem); }

/* ---------- 6. sections ---------- */

/* opening: the cradle hangs from the top on a cord, the welcome, the basmalah, the greeting, the sentence */
.bl-opening { padding: 0 1.6rem 4.8rem; }
.bl-opening__hang { display: flex; flex-direction: column; align-items: center; margin: 0 auto 1.1rem; }
.bl-opening__cord { display: block; width: 1.5px; height: 2.6rem; background: linear-gradient(transparent, var(--inv-accent)); }
.bl-opening__cradle { width: 8.6rem; margin-top: -.2rem; transform-origin: 50% 0; filter: drop-shadow(0 14px 14px rgb(0 0 0 / .25)); }
.bl-opening__label { margin: 0 0 .7rem !important; font-size: .7rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--inv-shine); }
.bl-opening__basmalah { margin: 0 auto .5rem !important; font-size: 1.9rem; }
.bl-opening__greeting { margin: 0 auto !important; max-width: 20ch !important; font-family: var(--bl-display); font-size: 1.55rem; line-height: 1.3; color: #fff; }
.bl-opening__message { max-width: 31ch !important; color: var(--bl-cream-muted); }
.bl-opening__spray { position: absolute; right: -2.2rem; bottom: -1.2rem; width: 9rem; opacity: .95; }

/* baby: the birth letter on batik paper */
.bl-babies { padding-bottom: 3.6rem; }
.bl-letter {
    position: relative; margin: 1.4rem 0 0; padding: 0 1.3rem 1.6rem; border-radius: 6px 6px 18px 18px; text-align: center;
    color: var(--inv-text);
    background:
        radial-gradient(120% 60% at 50% 0%, #fff, transparent 70%),
        color-mix(in srgb, #fff 45%, var(--inv-background));
    box-shadow: 0 0 0 1px var(--bl-ring), 0 30px 46px -28px color-mix(in srgb, var(--inv-deep) 70%, transparent);
}
/* the truntum watermark of the paper */
.bl-letter::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--inv-primary); opacity: .07;
    -webkit-mask: var(--bl-truntum) center / 30px 30px repeat; mask: var(--bl-truntum) center / 30px 30px repeat;
}
.bl-letter--tilt { transform: rotate(1.2deg); }
.bl-letter--many:not(.bl-letter--tilt) { transform: rotate(-1deg); }
/* the band of cloth along the top, a scalloped lower edge */
.bl-letter__band {
    position: relative; display: block; height: 2.3rem; margin: 0 -1.3rem; border-radius: 6px 6px 0 0;
    -webkit-mask: radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) center bottom / 14px 100% repeat-x;
    mask: radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) center bottom / 14px 100% repeat-x;
}
.bl-letter__head { position: relative; padding-top: 1.35rem; }
.bl-letter__crown { width: 3.4rem; margin: 0 auto .35rem; }
.bl-letter__kicker { margin: 0; font-size: .64rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--inv-primary); }
.bl-letter__title { margin: .1rem 0 0; font-family: var(--bl-display); font-size: 1.85rem; line-height: 1.15; color: var(--bl-title); }
.bl-letter__title::after { content: ''; display: block; width: 4.5rem; height: 1px; margin: .55rem auto 0; background: var(--inv-accent); }

.bl-letter__who { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.1rem; margin-top: 1.5rem; text-align: left; }
.bl-jarik--baby { --jw: 7.6rem; --jpos: 50% 30%; }
.bl-letter--many .bl-jarik--baby { --jw: 6.6rem; }
.bl-letter__nickname { margin: 0; font-family: var(--bl-script); font-size: 3.2rem; line-height: 1.05; color: var(--bl-title); overflow-wrap: anywhere; }
.bl-letter__chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 0; }
.bl-letter__name {
    margin: 1.3rem 0 0; font-family: var(--bl-display); font-size: 1.12rem; font-weight: 400; line-height: 1.35; letter-spacing: .14em; text-transform: uppercase;
    color: var(--inv-text);
}
.bl-letter__lines { margin: 1rem 0 0; text-align: left; }
.bl-letter__lines > div { display: flex; align-items: baseline; gap: .5rem; padding: .35rem 0; }
.bl-letter__lines dt { flex: none; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--inv-primary); }
/* the dotted leader between the label and the value */
.bl-letter__lines dd {
    flex: 1; margin: 0; padding-left: .5rem; font-family: var(--bl-display); font-size: 1.02rem; line-height: 1.35; text-align: right; color: var(--inv-text);
    background: radial-gradient(circle, color-mix(in srgb, var(--inv-primary) 45%, transparent) .8px, transparent 1.2px) left calc(100% - .2rem) / 6px 4px repeat-x;
}
.bl-letter__lines dd { background-clip: padding-box; }
.bl-letter__medals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin: 1.3rem 0 0; }
.bl-medal {
    display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%; padding: .3rem;
    background:
        radial-gradient(circle, #fff 58%, transparent 59%),
        var(--bl-cloth);
    box-shadow: 0 0 0 1.5px var(--inv-accent), inset 0 0 0 1.5px var(--inv-accent), 0 10px 18px -12px color-mix(in srgb, var(--inv-deep) 60%, transparent);
}
.bl-medal dt { order: 2; font-size: .58rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--inv-primary); }
.bl-medal dd { order: 1; display: flex; align-items: baseline; gap: .12rem; margin: 0; }
.bl-medal__num { font-family: var(--bl-display); font-size: 1.55rem; line-height: 1; color: var(--bl-title); font-variant-numeric: lining-nums tabular-nums; }
.bl-medal__unit { font-size: .7rem; font-weight: 700; color: var(--bl-muted); }
/* the gold seal, pressed at the lower right corner */
.bl-seal { position: absolute; right: -.7rem; bottom: -1.5rem; width: 4.9rem; transform: rotate(-14deg); filter: drop-shadow(0 8px 10px color-mix(in srgb, var(--inv-deep) 30%, transparent)); }
.bl-seal__disc { fill: url(#bl-g-gold); }
.bl-seal__ring { fill: none; stroke: color-mix(in srgb, var(--inv-accent) 45%, var(--inv-deep)); stroke-width: 1.2; opacity: .7; }
.bl-seal__text { font: 800 8.4px var(--bl-sans); letter-spacing: 1.6px; fill: color-mix(in srgb, var(--inv-accent) 35%, var(--inv-deep)); }

/* the name meaning: a soft panel with truntum corners */
.bl-meaning { position: relative; margin: 2.4rem 0 0; padding: 1.5rem 1.3rem 1.4rem; border-radius: 18px; background: var(--inv-soft); }
.bl-meaning::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--inv-primary); opacity: .4;
    -webkit-mask: var(--bl-truntum) left top / 36px 36px no-repeat, var(--bl-truntum) right bottom / 36px 36px no-repeat;
    mask: var(--bl-truntum) left top / 36px 36px no-repeat, var(--bl-truntum) right bottom / 36px 36px no-repeat;
}
.bl-meaning figcaption { font-size: .66rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--inv-primary); }
.bl-meaning figcaption span { display: block; margin-top: -.1rem; font-family: var(--bl-script); font-size: 2rem; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.2; color: var(--bl-title); }
.bl-meaning blockquote { margin: .5rem 0 0; font-family: var(--bl-display); font-size: 1.08rem; line-height: 1.55; color: var(--inv-text); }

/* parents: a deep block with the cradle */
.bl-parents {
    position: relative; margin: 2.6rem 0 0; padding: 1.4rem 1.3rem 1.6rem; border-radius: 22px; color: var(--inv-background);
    background:
        radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--inv-primary) 80%, transparent), transparent 75%),
        var(--inv-deep);
    box-shadow: var(--bl-drop);
}
.bl-parents::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--inv-soft); opacity: .08;
    -webkit-mask: var(--bl-kawung) center / 36px 36px repeat; mask: var(--bl-kawung) center / 36px 36px repeat;
}
.bl-parents__cradle { width: 5.6rem; margin: 0 auto .6rem; }
.bl-parents__label { margin: 0; font-size: .66rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--inv-shine); }
.bl-parents__names { display: flex; flex-direction: column; align-items: center; margin: .4rem 0 0; font-family: var(--bl-display); font-size: 1.35rem; line-height: 1.3; color: #fff; }
.bl-parents__names .bl-amp { font-size: 1.7rem; line-height: 1.1; color: var(--inv-shine); }
.bl-parents__address { display: flex; justify-content: center; gap: .45rem; margin: 1rem 0 0; font-size: .86rem; color: var(--bl-cream-muted); }
.bl-parents__address .bl-icon { margin-top: .2rem; color: var(--inv-shine); }

/* message: a cloth strip down the left edge, a melati spray at the top right, big Gilda words */
.bl-message { padding-left: 2.6rem; text-align: left; }
.bl-message__strip { position: absolute; left: 0; top: 0; bottom: 0; width: 1.05rem; box-shadow: inset -2px 0 0 var(--inv-accent); }
.bl-message__spray { position: absolute; right: -1.6rem; top: -1.4rem; width: 8.5rem; }
.bl-message__quote { position: relative; margin: 0; }
.bl-message__mark { width: 2.6rem; fill: var(--inv-accent); }
.bl-message__quote p { margin: .5rem 0 0; font-family: var(--bl-display); font-size: 1.25rem; line-height: 1.55; color: #fff; }
.bl-message__quote cite { display: block; margin-top: .8rem; font-family: var(--bl-script); font-style: normal; font-size: 2.2rem; line-height: 1.1; color: var(--inv-shine); }

/* events: a paper card hemmed with cloth on one side, an arch-topped photo, a date medallion */
.bl-event { position: relative; margin: 0 0 1.8rem; padding: 0 0 1.4rem 1rem; border-radius: 22px; text-align: left; background: var(--bl-paper); box-shadow: 0 0 0 1px var(--bl-ring), var(--bl-drop); overflow: hidden; }
.bl-event:last-child { margin-bottom: 0; }
.bl-event::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1rem; box-shadow: inset -2px 0 0 var(--inv-accent); }
.bl-event--flip { padding: 0 1rem 1.4rem 0; }
.bl-event--flip::before { left: auto; right: 0; box-shadow: inset 2px 0 0 var(--inv-accent); }
.bl-event__media { height: 11.5rem; margin: .8rem .8rem 0; overflow: hidden; border-radius: 999px 999px 14px 14px / 160px 160px 14px 14px; box-shadow: 0 0 0 2px var(--inv-accent); }
.bl-event__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.bl-event__body { position: relative; padding: 0 1.2rem; }
.bl-event__date {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 6rem; height: 6rem; margin: -3rem 0 .6rem; border-radius: 50%; text-align: center; color: #fff;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--inv-primary) 80%, #fff), var(--inv-primary) 55%, color-mix(in srgb, var(--inv-primary) 60%, var(--inv-deep)));
    box-shadow: 0 0 0 3px var(--bl-paper), 0 0 0 4.5px var(--inv-accent), 0 14px 22px -12px color-mix(in srgb, var(--inv-deep) 80%, transparent);
}
.bl-event--flip .bl-event__date { margin-left: auto; }
.bl-event--nophoto .bl-event__date { margin-top: 1.4rem; }
.bl-event__weekday { font-size: .58rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--inv-shine); }
.bl-event__day { font-family: var(--bl-display); font-size: 2.2rem; line-height: 1; }
.bl-event__month { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bl-event__name { margin: 0; font-family: var(--bl-display); font-size: 1.6rem; font-weight: 400; line-height: 1.2; color: var(--bl-title); }
.bl-event__full { margin: .15rem 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--inv-primary); }
.bl-event__rows { display: grid; gap: .55rem; margin: 1rem 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px dashed var(--bl-ring); }
.bl-event__rows li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: start; gap: .6rem; font-size: .92rem; }
.bl-event__rows .bl-icon { width: 2rem; height: 2rem; padding: .4rem; border-radius: 50%; color: var(--inv-primary); background: var(--inv-soft); }
.bl-event__rows li > span { padding-top: .3rem; }
.bl-event__venue { display: block; font-weight: 700; }
.bl-event__address { display: block; font-size: .85rem; color: var(--bl-muted); }
.bl-event .inv-maps { margin: 1.1rem 0 0; text-align: center; }
.bl-event .inv-maps .inv-button { width: 100%; font-weight: 700; }
.bl-event .inv-maps__frame { height: 190px; border-radius: 16px; }

/* countdown: the four numbers as cream kawung petals with a gold ring; the calendar card well below */
.bl-countdown .inv-countdown { gap: clamp(.45rem, 2.4vw, .8rem); }
.bl-countdown .inv-countdown__item {
    display: grid; place-content: center; width: clamp(3.9rem, 18vw, 4.6rem); min-width: 0; aspect-ratio: 4 / 5; padding: 0;
    border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; color: var(--inv-text); background: var(--bl-paper);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-accent) 70%, transparent), 0 0 0 3px color-mix(in srgb, var(--inv-deep) 50%, transparent), 0 0 0 4.5px var(--inv-accent), 0 18px 26px -12px rgb(0 0 0 / .5);
}
.bl-countdown .inv-countdown__value { font-variant-numeric: lining-nums tabular-nums; font-family: var(--bl-display); font-size: 1.75rem; line-height: 1.05; color: var(--bl-title); }
.bl-countdown .inv-countdown__label { margin-top: .1rem; font-size: .54rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--bl-muted); }
.bl-countdown .inv-countdown__done { font-family: var(--bl-script); font-size: 2rem; color: var(--inv-shine); }
.bl-countdown .inv-countdown__actions { flex-direction: column; align-items: center; gap: .6rem; margin-top: 2rem; }
.bl-countdown .inv-countdown__actions .inv-button {
    width: min(100%, 17rem); min-height: 2.75rem; padding: .6rem 1rem; font-size: .84rem; font-weight: 700;
    color: var(--inv-background); background: color-mix(in srgb, var(--inv-background) 10%, transparent);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-background) 55%, transparent);
}
.bl-countdown .inv-countdown__actions .inv-button:first-child { color: var(--inv-deep); background: var(--inv-shine); box-shadow: none; }
.bl-countdown .inv-cal {
    --inv-cal-bg: var(--bl-paper); --inv-cal-mark: var(--inv-primary);
    max-width: 19rem; margin: 2.8rem auto 0; border-radius: 22px; border-top: 14px solid var(--bl-cloth);
    box-shadow: 0 0 0 1.5px var(--inv-accent), 0 22px 40px -24px rgb(0 0 0 / .6);
}
.bl-countdown .inv-cal__month { font-family: var(--bl-script); font-size: 1.9rem; font-weight: 400; color: var(--inv-primary); }

/* prayer: a truntum cloth frame with a gold line, an arch-topped cream panel inside, a melati on the arch */
.bl-prayer { padding-top: 5rem; }
.bl-prayer__frame {
    position: relative; max-width: 23rem; margin: 0 auto; padding: 1.5rem; border-radius: 11rem 11rem 24px 24px;
    box-shadow: 0 0 0 1.5px var(--inv-accent), var(--bl-drop);
}
.bl-prayer__cloth { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.bl-prayer__panel {
    position: relative; padding: 3.4rem 1.3rem 2rem; border-radius: 10rem 10rem 14px 14px; color: var(--inv-text);
    background: radial-gradient(100% 50% at 50% 0%, #fff, transparent 80%), var(--bl-paper);
    box-shadow: 0 0 0 2px var(--inv-accent), 0 0 0 5px color-mix(in srgb, var(--inv-background) 40%, transparent);
}
.bl-prayer__melati { position: absolute; left: 50%; top: -2.1rem; width: 3.6rem; margin-left: -1.8rem; filter: drop-shadow(0 6px 6px rgb(0 0 0 / .2)); }
.bl-prayer__label { margin: 0 0 .8rem; font-size: .68rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--inv-primary); }
.bl-prayer__arabic { margin: 0 0 1rem; font-size: 1.55rem; }
.bl-prayer__text { margin: 0; }
.bl-prayer__text p { margin: 0; font-family: var(--bl-display); font-size: 1.08rem; line-height: 1.55; }
.bl-prayer__text cite {
    display: inline-block; margin-top: 1rem; padding: .28rem .85rem; border-radius: 999px; font-style: normal; font-size: .7rem; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase; color: var(--inv-deep); background: color-mix(in srgb, var(--inv-accent) 55%, #fff);
}

/* rundown: a batik ribbon down the left; each piece shaded the other way round, the times on cream tags */
.bl-rundown__list { position: relative; margin: 0; padding: 0; list-style: none; text-align: left; }
.bl-rundown__item { position: relative; display: grid; grid-template-columns: 4.9rem minmax(0, 1fr); align-items: start; column-gap: .9rem; padding: 0 0 1rem; }
.bl-rundown__item:last-child { padding-bottom: 0; }
.bl-rundown__item::before, .bl-rundown__item::after {
    content: ''; position: absolute; left: calc(2.45rem - 13px); top: 0; bottom: 0; width: 26px; transform-origin: top;
}
.bl-rundown__item::before {
    background:
        radial-gradient(circle, var(--inv-accent) 1.3px, transparent 1.9px) 2px 2px / 22px 22px,
        var(--bl-cloth);
    box-shadow: inset 2px 0 0 color-mix(in srgb, var(--inv-accent) 80%, transparent), inset -2px 0 0 color-mix(in srgb, var(--inv-accent) 80%, transparent);
}
/* petals + the turn of the ribbon (light on one side, then on the other) */
.bl-rundown__item::after {
    background: linear-gradient(90deg, rgb(255 255 255 / .28), transparent 45%, rgb(0 0 0 / .18)), var(--bl-petal);
    -webkit-mask: var(--bl-kawung) 2px 2px / 22px 22px repeat-y; mask: var(--bl-kawung) 2px 2px / 22px 22px repeat-y;
    opacity: .9;
}
.bl-rundown__item:nth-child(even)::after { background: linear-gradient(270deg, rgb(255 255 255 / .28), transparent 45%, rgb(0 0 0 / .18)), var(--bl-petal); }
.bl-rundown__item:first-child::before, .bl-rundown__item:first-child::after { top: .7rem; border-radius: 4px 4px 0 0; }
.bl-rundown__item:last-child::before, .bl-rundown__item:last-child::after { bottom: auto; height: 2.2rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.bl-rundown__time {
    position: relative; z-index: 1; justify-self: center; margin-top: .55rem; padding: .3rem .6rem; border-radius: 8px; font-family: var(--bl-display);
    font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--bl-title); background: var(--bl-paper);
    box-shadow: 0 0 0 1.5px var(--inv-accent), 0 8px 12px -6px rgb(0 0 0 / .45);
}
.bl-rundown__body { padding: .75rem 1rem .8rem; border-radius: 16px; background: color-mix(in srgb, var(--inv-background) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--inv-background) 16%, transparent); }
.bl-rundown__body h3 { margin: 0; font-family: var(--bl-display); font-size: 1.12rem; font-weight: 400; line-height: 1.3; color: #fff; }
.bl-rundown__body p { margin: .15rem 0 0; font-size: .86rem; color: var(--bl-cream-muted); }

/* story: a melati vine down the middle, small jarik arches beside the text, alternating */
.bl-story__list { position: relative; display: grid; gap: 2.2rem; margin: 0; padding: 0; list-style: none; text-align: left; }
.bl-story__list::before {
    content: ''; position: absolute; left: 50%; top: .5rem; bottom: .5rem; width: 2px; margin-left: -1px;
    background: radial-gradient(circle, var(--inv-accent) 1px, transparent 1.4px) center top / 2px 7px repeat-y;
}
.bl-story__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1.6rem; }
.bl-story__node { position: absolute; left: 50%; top: 50%; width: 1.9rem; margin: -.95rem 0 0 -.95rem; z-index: 1; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .15)); }
.bl-jarik--story { --jw: 100%; --jb: .55rem; --jr: 6rem; --jpos: center 40%; justify-self: center; max-width: 9.5rem; }
.bl-story__item--flip .bl-jarik--story { order: 2; }
.bl-story__when { display: block; font-family: var(--bl-script); font-size: 1.55rem; line-height: 1.1; color: var(--inv-primary); }
.bl-story__body h3 { margin: .2rem 0 0; font-family: var(--bl-display); font-size: 1.22rem; font-weight: 400; line-height: 1.25; color: var(--bl-title); }
.bl-story__body p { margin: .4rem 0 0; font-size: .86rem; line-height: 1.55; color: var(--bl-muted); }
.bl-story__item--text { grid-template-columns: 1fr; padding: 1.3rem 1.3rem 1.2rem; border-radius: 20px; text-align: center; background: var(--inv-soft); box-shadow: 0 0 0 1px var(--bl-ring); }
.bl-story__item--text .bl-story__node { position: static; margin: -2.4rem auto 0; width: 2.2rem; }

/* gallery: the first photo a tall arch over two rows with a gold line, the others rounded with a cream line */
.bl-gallery .inv-gallery { gap: .65rem; }
.bl-gallery .inv-gallery__item { border-radius: 16px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--inv-background) 75%, transparent), 0 16px 28px -18px rgb(0 0 0 / .7); }
.bl-gallery .inv-gallery__item:first-child { grid-row: span 2; aspect-ratio: auto; border-radius: 999px 999px 16px 16px; box-shadow: 0 0 0 2.5px var(--inv-accent), 0 16px 28px -18px rgb(0 0 0 / .7); }

/* live streaming: a paper card with a cloth hem on the left */
.bl-stream__card {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .9rem 1rem; max-width: 24rem; margin: 0 auto;
    padding: 1.4rem 1.3rem 1.4rem 2.3rem; border-radius: 22px; text-align: left; overflow: hidden; background: var(--bl-paper);
    box-shadow: 0 0 0 1px var(--bl-ring), var(--bl-drop);
}
.bl-stream__card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1rem; box-shadow: inset -2px 0 0 var(--inv-accent); }
.bl-stream__icon { display: grid; place-items: center; width: 3.3rem; height: 3.3rem; border-radius: 50%; color: #fff; background: var(--inv-primary); box-shadow: 0 0 0 3px var(--bl-paper), 0 0 0 4.5px var(--inv-accent); }
.bl-stream__icon .bl-icon { width: 1.7rem; height: 1.7rem; }
.bl-stream__label { margin: 0; font-size: .62rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--inv-primary); }
.bl-stream__title { margin: .1rem 0 .2rem; font-family: var(--bl-display); font-size: 1.55rem; font-weight: 400; line-height: 1.1; color: var(--bl-title); }
.bl-stream__text p { margin: 0; font-size: .86rem; color: var(--bl-muted); }
.bl-stream__text .bl-stream__label { color: var(--inv-primary); font-size: .62rem; }
.bl-stream__text .bl-stream__note { margin-top: .3rem; font-weight: 700; color: var(--inv-primary); }
.bl-stream__button { grid-column: 1 / -1; min-height: 2.75rem; font-weight: 700; }

/* RSVP card: cream paper with a band of cloth on top */
.bl-rsvp__card {
    position: relative; overflow: hidden; padding: 2.4rem 1.15rem 1.4rem; border-radius: 22px; color: var(--inv-text); background: var(--bl-paper);
    box-shadow: 0 0 0 1.5px var(--inv-accent), 0 22px 40px -24px rgb(0 0 0 / .6);
}
.bl-rsvp__card::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px;
    background:
        radial-gradient(circle, var(--inv-accent) 1.2px, transparent 1.8px) 0 3px / 14px 14px repeat-x,
        linear-gradient(var(--bl-cloth), var(--bl-cloth));
    box-shadow: inset 0 -2px 0 var(--inv-accent);
}
.bl-rsvp__intro { margin: 0 auto 1.1rem; max-width: 30ch; font-size: .9rem; color: var(--bl-muted); }
.bl-rsvp__sent { margin-bottom: 1rem; }
.bl-rsvp__check { display: block; width: 4.6rem; height: 4.6rem; margin: 0 auto .5rem; overflow: visible; }
.bl-rsvp__check path { fill: none; stroke: var(--inv-primary); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
html.inv-anim .bl-rsvp__sent .bl-rsvp__check { animation: bl-bloom .8s cubic-bezier(.34, 1.56, .64, 1) both; }
html.inv-anim .bl-rsvp__sent .bl-rsvp__check path { animation: bl-draw .45s ease-out .35s both; }
.bl-rsvp__thanks { margin: 0; font-family: var(--bl-script); font-size: 2.2rem; line-height: 1.2; color: var(--inv-primary); }
.bl-rsvp__line { margin: .1rem 0 0; font-size: .9rem; color: var(--bl-muted); }
.bl-rsvp .inv-rsvp__deadline { margin: 0 0 1rem; font-size: .84rem; font-weight: 700; color: var(--inv-primary); }

/* gift: cream cards with a band of cloth along the top and a gold line, two per row; the address below */
.bl-gift__intro { color: var(--bl-cream-muted); }
.bl-gift .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.3rem; }
.bl-gift .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.bl-gift .inv-gift__account,
.bl-gift .inv-gift__address {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; margin: 0; overflow: hidden;
    padding: 1.9rem .75rem 1rem; border-radius: 16px; color: var(--inv-text); background: var(--bl-paper);
    box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--inv-accent) 70%, transparent), 0 18px 30px -20px rgb(0 0 0 / .6);
}
.bl-gift .inv-gift__account::before, .bl-gift .inv-gift__address::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: .9rem;
    background:
        radial-gradient(circle, var(--inv-accent) 1.2px, transparent 1.8px) 0 2px / 14px 14px repeat-x,
        linear-gradient(var(--bl-cloth), var(--bl-cloth));
    box-shadow: inset 0 -2px 0 var(--inv-accent);
}
.bl-gift .inv-gift__account p, .bl-gift .inv-gift__address p { margin: 0; }
.bl-gift .inv-gift__bank { font-weight: 800; font-size: .85rem; color: var(--inv-primary); }
.bl-gift .inv-gift__logo { height: 1.6rem; padding: .2rem .5rem; border-radius: .4rem; background: #fff; }
.bl-gift .inv-gift__logo img { max-width: 5rem; }
.bl-gift .inv-gift__number {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .98rem; font-weight: 700;
    letter-spacing: .03em; line-height: 1.3; overflow-wrap: anywhere; color: var(--inv-text);
}
.bl-gift .inv-gift__holder { font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bl-muted); overflow-wrap: anywhere; }
.bl-gift .inv-button { margin-top: .35rem; min-height: 2.25rem; padding: .35rem .9rem; font-size: .74rem; font-weight: 700; }
.bl-gift .inv-gift__address { margin-top: .75rem; font-size: .875rem; }
.bl-gift .inv-gift__address .inv-gift__holder { font-size: .72rem; }

/* wishlist: gifts in woven bamboo boxes, two per row */
.bl-wishlist__intro { color: var(--bl-muted); font-size: .92rem; }
.bl-wishlist__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.bl-wish-box {
    display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 1rem .8rem 1.1rem; border-radius: 20px; text-align: center;
    background: var(--bl-paper); box-shadow: 0 0 0 1px var(--bl-ring), 0 18px 30px -24px color-mix(in srgb, var(--inv-deep) 70%, transparent);
}
.bl-wish-box:last-child:nth-child(odd) { grid-column: 1 / -1; }
.bl-wish-box__art { position: relative; width: 6.6rem; margin-bottom: .55rem; }
.bl-wish-box__besek { width: 100%; filter: drop-shadow(0 10px 8px color-mix(in srgb, #5a3a12 30%, transparent)); }
.bl-wish-box__tag {
    position: absolute; right: -.7rem; top: .3rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
    font-family: var(--bl-display); font-size: 1rem; color: var(--bl-title); background: var(--bl-paper);
    box-shadow: 0 0 0 1.5px var(--inv-accent), 0 4px 8px -3px rgb(0 0 0 / .3); transform: rotate(8deg);
}
.bl-wish-box--photo .bl-wish-box__photo { display: block; width: 78%; aspect-ratio: 1; margin: 0 auto -1.6rem; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 2px var(--inv-accent); position: relative; z-index: 0; }
.bl-wish-box--photo .bl-wish-box__besek { position: relative; z-index: 1; width: 82%; margin: 0 auto; }
.bl-wish-box p { margin: 0; }
.bl-wish-box__name { font-family: var(--bl-display); font-size: 1.08rem; line-height: 1.3; color: var(--bl-title); overflow-wrap: anywhere; }
.bl-wish-box__note { margin-top: .15rem !important; font-size: .82rem; line-height: 1.45; color: var(--bl-muted); }
.bl-wish-box__shop { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.2rem; margin-top: .3rem; padding: .2rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; text-decoration: none; box-shadow: inset 0 0 0 1px var(--bl-ring); }
.bl-wish-box__shop .bl-icon { width: 1rem; height: 1rem; }

/* co-hosts: names in Gilda on the gold band, split by small melati */
.bl-cohosts__list { display: flex; flex-direction: column; align-items: center; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.bl-cohosts__list li { display: flex; flex-direction: column; align-items: center; gap: .45rem; max-width: 26ch; font-family: var(--bl-display); font-size: 1.18rem; line-height: 1.3; color: var(--inv-deep); }
.bl-cohosts__melati { width: 1.3rem; height: 1.3rem; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .15)); }

/* contacts: paper rows with the initial on a disc of cloth and a WhatsApp button */
.bl-contacts__list { display: grid; gap: .75rem; max-width: 24rem; margin: 0 auto; }
.bl-contact {
    display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .6rem .6rem .6rem .65rem; border-radius: 999px;
    background: var(--bl-paper); text-align: left; box-shadow: 0 0 0 1px var(--bl-ring), 0 12px 22px -18px color-mix(in srgb, var(--inv-deep) 60%, transparent);
}
.bl-contact__avatar {
    position: relative; isolation: isolate; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; overflow: hidden;
    font-family: var(--bl-display); font-size: 1.35rem; color: #fff; background: var(--inv-primary);
    box-shadow: 0 0 0 2px var(--bl-paper), 0 0 0 3.5px var(--inv-accent);
}
.bl-contact__avatar::before {
    content: ''; position: absolute; inset: 0; z-index: -1; background: #fff; opacity: .2;
    -webkit-mask: var(--bl-kawung) center / 20px 20px repeat; mask: var(--bl-kawung) center / 20px 20px repeat;
}
.bl-contact p { margin: 0; }
.bl-contact__name { font-weight: 700; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.bl-contact__role { font-size: .78rem; color: var(--bl-muted); }
.bl-contact__phone { font-size: .85rem; }
.bl-contact__button { min-height: 2.5rem; padding: .45rem .95rem; font-size: .8rem; font-weight: 700; }
.bl-contact__button .bl-icon { width: 1.05rem; height: 1.05rem; }

/* health protocol: cream chips on the soft tint */
.bl-protocol__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.bl-protocol__list li {
    display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px; font-size: .84rem; font-weight: 600;
    background: var(--bl-paper); box-shadow: inset 0 0 0 1px var(--bl-ring);
}
.bl-protocol__list .bl-icon { width: 1rem; height: 1rem; color: var(--inv-primary); }
.bl-protocol__note { font-size: .88rem; color: var(--bl-muted); }

/* vendors: a paper card of rows split by dotted lines */
.bl-vendors__list { max-width: 24rem; margin: 0 auto; padding: .3rem 1.15rem; list-style: none; border-radius: 20px; background: var(--bl-paper); box-shadow: 0 0 0 1px var(--bl-ring), var(--bl-drop); }
.bl-vendor { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 0; text-align: left; border-bottom: 1.5px dotted var(--bl-ring); }
.bl-vendor:last-child { border-bottom: 0; }
.bl-vendor__text { display: flex; flex-direction: column; min-width: 0; }
.bl-vendor__role { font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); }
.bl-vendor__name { font-family: var(--bl-display); font-size: 1.12rem; line-height: 1.25; color: var(--inv-text); overflow-wrap: anywhere; }
.bl-vendor__link {
    display: inline-flex; align-items: center; gap: .3rem; flex: none; min-height: 2.2rem; padding: .3rem .7rem; border-radius: 999px;
    font-size: .74rem; font-weight: 700; text-decoration: none; background: var(--inv-soft); color: var(--inv-deep); box-shadow: inset 0 0 0 1px var(--bl-ring);
}
.bl-vendor__link .bl-icon { width: .95rem; height: .95rem; }

/* closing: the full photo fading into the deep colour, melati strings, the crown, the thanks, the names, the cradle */
.bl-closing { padding: 3.2rem 1.6rem 1.6rem; }
/* the photo fades into plain deep, so the section under it is plain deep too (no seam) */
.bl-closing--photo { background: var(--inv-deep); }
.bl-closing--photo { padding-top: 0; }
.bl-closing__photo { position: relative; z-index: -1; height: min(57svh, 27.5rem); margin: 0 -1.6rem; overflow: hidden; }
.bl-closing__photo img { display: block; width: 100%; height: calc(100% + 60px); margin-top: -30px; object-fit: cover; object-position: center 30%; --inv-parallax: 30px; }
.bl-closing__photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--inv-deep) 55%, transparent) 68%, var(--inv-deep) 97%);
}
.bl-closing--photo::before { display: none; }
.bl-closing__body { position: relative; }
.bl-closing--photo .bl-closing__body { margin-top: -5.6rem; }
.bl-closing__crown { width: 3rem; margin: 0 auto .35rem; filter: drop-shadow(0 4px 6px rgb(0 0 0 / .3)); }
.bl-closing__label { margin: 0 0 .2rem; font-size: .68rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--inv-shine); }
.bl-closing__title { margin: 0 0 .7rem; font-family: var(--bl-display); font-size: clamp(1.75rem, 7.6vw, 2.1rem); font-weight: 400; line-height: 1.1; color: #fff; }
.bl-closing__title em { font-family: var(--bl-script); font-style: normal; font-size: 1.25em; color: var(--inv-shine); }
.bl-closing__message { margin: 0 auto; max-width: 32ch; font-size: .92rem; line-height: 1.6; color: var(--bl-cream-muted); }
.bl-closing__salam { margin: .8rem auto 0; max-width: 26ch; font-family: var(--bl-display); font-size: 1.02rem; line-height: 1.4; color: var(--inv-shine); }
.bl-closing__signature { margin: .7rem auto 0; max-width: 30ch; font-size: .86rem; color: var(--bl-cream-muted); }
.bl-closing__names { margin: .1rem 0 0; font-family: var(--bl-script); font-size: clamp(2.1rem, 9.5vw, 2.6rem); line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.bl-closing__cradle { width: 4.5rem; margin: .9rem auto 0; filter: drop-shadow(0 12px 12px rgb(0 0 0 / .3)); }

/* ---------- 7. forms (shared RSVP + wishes, restyled) ---------- */
.bl-main .inv-form { gap: 1rem; text-align: left; }
.bl-main .inv-form label, .bl-main .inv-form__choices legend { font-size: .82rem; font-weight: 700; color: var(--inv-text); }
.bl-main .inv-form input:not([type=radio]):not([type=checkbox]),
.bl-main .inv-form select,
.bl-main .inv-form textarea {
    width: 100%; min-height: 2.9rem; padding: .7rem .9rem; border: 0; border-radius: 12px;
    font: 400 .95rem/1.4 var(--bl-sans); color: var(--inv-text); background: #fff;
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-primary) 24%, transparent);
    transition: box-shadow .2s ease;
}
.bl-main .inv-form select {
    appearance: none; padding-right: 2.4rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .8rem center / 1.1rem no-repeat;
}
.bl-main .inv-form input:not([type=radio]):focus-visible,
.bl-main .inv-form select:focus-visible,
.bl-main .inv-form textarea:focus-visible {
    outline: none; box-shadow: inset 0 0 0 2px var(--inv-primary), 0 0 0 4px color-mix(in srgb, var(--inv-accent) 40%, transparent);
}
.bl-main .inv-form button[type=submit] { width: 100%; min-height: 3rem; font-weight: 700; box-shadow: 0 12px 22px -12px color-mix(in srgb, var(--inv-primary) 80%, transparent); }
.bl-main .inv-form .inv-button--outline { width: 100%; min-height: 2.75rem; }
.bl-main .inv-form__notice { text-align: center; }

/* the three answers as cards with icons (the radio dot is hidden but still focusable) */
.bl-rsvp .inv-form__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.bl-rsvp .inv-form__choices legend { margin-bottom: .5rem; padding: 0; }
.bl-rsvp .inv-form__choices label {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .45rem;
    min-height: 5.4rem; padding: .85rem .3rem .75rem; border-radius: 16px; cursor: pointer; text-align: center;
    font-size: .84rem; font-weight: 700; line-height: 1.2; color: var(--inv-text); background: #fff;
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-primary) 22%, transparent);
    transition: background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.bl-rsvp .inv-form__choices input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bl-rsvp .inv-form__choices label::before {
    content: ''; width: 2.1rem; height: 2.1rem; border-radius: 50%; flex: none; background: var(--inv-soft);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease;
}
.bl-rsvp .inv-form__choices label::after {
    content: ''; position: absolute; left: 50%; top: 1.3rem; width: 1.2rem; height: 1.2rem; margin-left: -.6rem;
    background: currentColor; color: var(--inv-primary); pointer-events: none;
    -webkit-mask: var(--bl-choice-icon) center / contain no-repeat; mask: var(--bl-choice-icon) center / contain no-repeat;
}
.bl-rsvp .inv-form__choices label:nth-of-type(1) {
    --bl-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.bl-rsvp .inv-form__choices label:nth-of-type(2) {
    --bl-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E");
}
.bl-rsvp .inv-form__choices label:nth-of-type(3) {
    --bl-choice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M8.5 8.8a3.5 3.5 0 1 1 4.9 3.2c-.9.4-1.4 1.1-1.4 2v.5M12 19h.01'/%3E%3C/svg%3E");
}
.bl-rsvp .inv-form__choices label:has(input:checked) {
    color: #fff; background: var(--inv-primary); transform: translateY(-3px);
    box-shadow: 0 0 0 3px var(--inv-accent), 0 12px 24px -12px color-mix(in srgb, var(--inv-primary) 80%, transparent);
}
.bl-rsvp .inv-form__choices label:has(input:checked)::before { background-color: rgb(255 255 255 / .2); transform: scale(1.1); }
.bl-rsvp .inv-form__choices label:has(input:checked)::after { color: #fff; }
.bl-rsvp .inv-form__choices label:has(input:focus-visible) { outline: 2px solid var(--inv-accent); outline-offset: 3px; }

/* wishes: the form on a paper card with a cloth hem, the wishes in a scroll box of about three */
.bl-wishes .inv-wishes { --inv-wishes-height: 20rem; }
.bl-wishes .inv-form {
    position: relative; overflow: hidden; padding: 1.9rem 1.1rem 1.3rem; border-radius: 20px; background: var(--bl-paper);
    box-shadow: 0 0 0 1px var(--bl-ring), var(--bl-drop);
}
.bl-wishes .inv-form::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: .8rem;
    background:
        radial-gradient(circle, var(--inv-accent) 1.2px, transparent 1.8px) 0 1.5px / 14px 14px repeat-x,
        linear-gradient(var(--bl-cloth), var(--bl-cloth));
    box-shadow: inset 0 -2px 0 var(--inv-accent);
}
.bl-wishes .inv-wishes__list { margin-top: 1.4rem; }
.bl-wishes .inv-wishes:not(.inv-wishes--paged) .inv-wishes__list {
    padding: .55rem; border-radius: 18px; background: color-mix(in srgb, #fff 45%, transparent); box-shadow: inset 0 0 0 1px var(--bl-ring);
}
.bl-wishes .inv-wish { position: relative; padding: .75rem .9rem .75rem 2.3rem; border-radius: 14px; background: #fff; text-align: left; box-shadow: 0 2px 10px rgb(0 0 0 / .05); }
.bl-wishes .inv-wish::before {
    content: ''; position: absolute; left: .7rem; top: .95rem; width: 1rem; height: 1rem; background: var(--inv-accent);
    -webkit-mask: var(--bl-truntum) -1px -1px / 36px 36px no-repeat; mask: var(--bl-truntum) -1px -1px / 36px 36px no-repeat;
}
.bl-wishes .inv-wish__name { font-weight: 700; color: var(--inv-primary); }
.bl-wishes .inv-wish__message { font-size: .88rem; line-height: 1.5; }
.bl-wishes .inv-wish__time { font-size: .72rem; color: var(--bl-muted); }

/* ---------- 8. shared components ---------- */
.bl-main .inv-button { font-weight: 700; }
/* the page always ends on the deep closing: the room under it (menu, music button) continues in that colour
   even when there is no credit line (Eksklusif) to measure it */
body.bl-body .inv-music__space { background: var(--inv-end-bg, var(--inv-deep)); }
body .inv-nav {
    --inv-nav-bg: color-mix(in srgb, #fff 94%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 74%, transparent);
    --inv-nav-active: var(--inv-primary);
    font-family: var(--bl-sans);
}

/* ---------- 9. screen sizes ---------- */

/* short phones: the cover art and type step down so everything fits without scrolling */
@media (max-height: 760px) {
    .bl-cover { --jw-cover: min(58vw, 13.6rem, calc(40svh * .74)); padding-top: 2rem; padding-bottom: 1.6rem; }
    .bl-cover__name { font-size: 3.2rem; }
    .bl-cover__quote { font-size: .94rem; }
    .bl-cover__guest { margin-top: .7rem; }
    .bl-cover__open { margin-top: .85rem; }
}
@media (max-height: 660px) {
    .bl-cover { --jw-cover: min(52vw, calc(35svh * .74)); padding-top: 1.7rem; padding-bottom: 1.3rem; }
    .bl-cover__title { font-size: .64rem; }
    .bl-cover__name { font-size: 2.8rem; line-height: 1.1; }
    .bl-cover--many .bl-cover__name { font-size: 2.2rem; }
    .bl-cover__date { font-size: .68rem; }
    .bl-cover__quote { font-size: .86rem; line-height: 1.35; margin-top: .3rem; }
    .bl-cover__guest { margin-top: .55rem; padding: .4rem .85rem .5rem; }
    .bl-cover__guest-name { font-size: 1.08rem; }
    .bl-cover__open { margin-top: .7rem; min-height: 2.75rem; padding: .6rem 1.6rem; }
    .bl-cover__ronce { width: 1.8rem; }
}
/* very short screens (in-app browsers): a smaller jarik and quote, so everything fits */
@media (max-height: 600px) {
    .bl-cover { --jw-cover: min(46vw, calc(31svh * .74)); padding-top: 1.4rem; }
    .bl-cover__name { font-size: 2.5rem; }
    .bl-cover__quote { font-size: .82rem; line-height: 1.3; }
}

/* wide screens: the phone-width column on a deep backdrop with the kawung print */
@media (min-width: 560px) {
    body.bl-body {
        background:
            radial-gradient(70vw 60vh at 50% 0%, color-mix(in srgb, var(--inv-primary) 60%, transparent), transparent 70%),
            var(--inv-deep);
        background-attachment: fixed;
    }
    body.bl-body::before {
        content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .1; background: var(--inv-soft);
        -webkit-mask: var(--bl-kawung) center / 44px 44px repeat; mask: var(--bl-kawung) center / 44px 44px repeat;
    }
    .bl-main { box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
}

/* ---------- 10. motion ---------- */
@keyframes bl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bl-bloom { 0% { transform: scale(0) rotate(-40deg); } 60% { transform: scale(1.12) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes bl-unwrap { from { clip-path: inset(100% 0 0 0 round 0); } to { clip-path: inset(0 0 0 0 round 0); } }
@keyframes bl-photo-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes bl-settle { 0% { opacity: 0; transform: translateY(-10px) scale(.85); } 70% { opacity: 1; transform: translateY(1px) scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes bl-knot-in { 0% { opacity: 0; transform: rotate(-40deg) scale(.6); } 70% { opacity: 1; transform: rotate(-8deg) scale(1.04); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes bl-sway { 0% { transform: rotate(5deg); } 35% { transform: rotate(-3.5deg); } 65% { transform: rotate(1.8deg); } 100% { transform: rotate(0); } }
@keyframes bl-drop { from { opacity: 0; transform: translateY(-30%); } to { opacity: 1; transform: none; } }
@keyframes bl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bl-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* cover (≤ 2.5 s, once): the cloth unwraps upward (0–.9 s) while the photo fades in from a slight zoom
   (.2–1.3 s); the crown and the knot settle (.8–1.5 s); the melati strings drop in and sway once
   (.3–2.4 s), the spray fades in (1.1 s); the text follows through its inv-enter delays */
html.inv-anim .bl-jarik--cover .bl-jarik__cloth { animation: bl-unwrap .9s cubic-bezier(.3, .7, .2, 1) both; }
html.inv-anim .bl-jarik--cover .bl-jarik__window { animation: bl-fade .6s ease .15s both; }
html.inv-anim .bl-jarik--cover .bl-jarik__photo { animation: bl-photo-in 1.1s cubic-bezier(.2, .7, .2, 1) .2s both; }
html.inv-anim .bl-jarik--cover .bl-jarik__crown { animation: bl-settle .7s cubic-bezier(.3, .8, .3, 1) .8s both; }
html.inv-anim .bl-jarik--cover .bl-jarik__knot { animation: bl-knot-in .7s cubic-bezier(.3, .8, .3, 1) .85s both; }
html.inv-anim .bl-cover__ronce { animation: bl-drop .7s cubic-bezier(.3, .8, .3, 1) .3s both, bl-sway 1.4s ease-in-out 1s both; }
html.inv-anim .bl-cover__spray { animation: bl-fade .8s ease 1.1s both; }

/* the opening cradle swings to rest once when its section is revealed */
html.inv-anim .bl-opening.is-revealed .bl-opening__cradle, html.inv-anim .is-revealed > .bl-opening__hang .bl-opening__cradle { animation: bl-sway 2s ease-in-out .3s both; }

/* scroll-drawn details (the default, without support, is the finished drawing) */
@supports (animation-timeline: view()) {
    html.inv-anim .bl-rundown__list { view-timeline-name: --bl-ribbon; }
    html.inv-anim .bl-rundown__item::before, html.inv-anim .bl-rundown__item::after { animation: bl-grow linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
}

@media (prefers-reduced-motion: reduce) {
    .bl-cover, .bl-cover--leave, .bl-cover__inner { transition: none; }
}

/* ---------- 11. intro scene "Ayunan Jarik Pagi" (scene.json + sections/_scene; the intro lives in <body>) ---------- */
.bl-scene-room { display: block; width: 100%; height: 100%; position: relative; }
.bl-scene-room::before, .bl-scene-room::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.bl-scene-room::before { opacity: .08; background: var(--inv-primary); -webkit-mask: var(--bl-truntum) center top / 36px 36px repeat; mask: var(--bl-truntum) center top / 36px 36px repeat; }
.bl-scene-room::after {
    background: var(--bl-cloth); opacity: .85;
    -webkit-mask: var(--bl-lereng) left top / 14px 14px repeat-x, var(--bl-lereng) left bottom / 14px 14px repeat-x;
    mask: var(--bl-lereng) left top / 14px 14px repeat-x, var(--bl-lereng) left bottom / 14px 14px repeat-x;
}
/* a jarik drawn aside like a curtain and tied with its knot (the right one is mirrored) */
.bl-scene-jarik { position: relative; width: 100%; height: 100%; filter: drop-shadow(5px 0 10px color-mix(in srgb, var(--inv-deep) 30%, transparent)); }
.bl-scene-jarik--right { transform: scaleX(-1); }
.bl-scene-jarik__cloth {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle, var(--inv-accent) 1.3px, transparent 1.9px) 0 0 / 22px 22px,
        radial-gradient(circle, var(--inv-accent) 1.3px, transparent 1.9px) 11px 11px / 22px 22px,
        var(--bl-cloth);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H84C80 20 58 44 31 61C42 72 57 86 64 100H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H84C80 20 58 44 31 61C42 72 57 86 64 100H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.bl-scene-jarik__cloth::before, .bl-scene-jarik__cloth::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.bl-scene-jarik__cloth::before { background: var(--bl-petal); opacity: .9; -webkit-mask: var(--bl-kawung) 11px 11px / 22px 22px repeat; mask: var(--bl-kawung) 11px 11px / 22px 22px repeat; }
/* soft folds gathered toward the knot, and a cream seret line + gold hem along the inner edge */
.bl-scene-jarik__cloth::after {
    background:
        linear-gradient(90deg, transparent 0 calc(100% - 7px), color-mix(in srgb, var(--inv-accent) 80%, transparent) calc(100% - 7px)),
        repeating-linear-gradient(97deg, rgb(255 255 255 / .2) 0 6%, transparent 6% 13%, rgb(0 0 0 / .09) 13% 19%, transparent 19% 26%);
}
.bl-scene-jarik__knot { position: absolute; left: 4%; top: calc(61% - 6vw); width: 52%; overflow: visible; transform: rotate(-8deg); filter: drop-shadow(0 6px 6px color-mix(in srgb, var(--inv-deep) 32%, transparent)); }
/* strings of melati along the top of the screen, each swaying on its own */
.bl-scene-ronce { position: relative; width: 100%; height: 100%; }
.bl-scene-ronce__string { position: absolute; top: 0; width: min(2.1rem, 8.4vw); margin-left: max(-1.05rem, -4.2vw); animation: bl-scene-ronce 4.6s ease-in-out infinite alternate; }
.bl-scene-ronce__string:nth-child(1) { left: 4%; animation-delay: -1s; }
.bl-scene-ronce__string:nth-child(2) { left: 15%; animation-delay: -3s; }
.bl-scene-ronce__string:nth-child(3) { left: 27%; width: min(1.8rem, 7.2vw); animation-delay: -2s; }
.bl-scene-ronce__string:nth-child(4) { left: 73%; width: min(1.8rem, 7.2vw); animation-delay: -.5s; }
.bl-scene-ronce__string:nth-child(5) { left: 85%; animation-delay: -2.5s; }
.bl-scene-ronce__string:nth-child(6) { left: 96%; animation-delay: -4s; }
@keyframes bl-scene-ronce { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.bl-scene-spray { width: 100%; height: auto; }
.bl-scene-spray--right { transform: scaleX(-1); }
/* the ayunan hanging on its cord from the top centre; the cord ends just above the card */
.bl-scene-cradle {
    --w: min(50vw, 27svh, 14rem);
    --cord: max(1.6rem, calc(56svh - 6rem - var(--w) * .89 - 3svh));
    position: relative; width: 100%; height: 100%;
}
.bl-scene-cradle__cord { position: absolute; left: 50%; top: 0; width: 1.5px; height: calc(var(--cord) + 2px); margin-left: -.75px; background: linear-gradient(color-mix(in srgb, var(--inv-accent) 30%, transparent), var(--inv-accent)); }
.bl-scene-cradle__art { position: absolute; left: 50%; top: calc(var(--cord) - var(--w) * .03); width: var(--w); margin-left: calc(var(--w) / -2); filter: drop-shadow(0 16px 14px color-mix(in srgb, var(--inv-deep) 30%, transparent)); }
/* the card: the birth letter — cream batik paper with an arched top like the jarik window, gold double rule */
body.bl-body .inv-intro--scene .inv-scene__card {
    top: 56%; width: min(72vw, 18.5rem); aspect-ratio: auto; padding: 2.4rem 1.2rem 2rem; overflow: hidden;
    -webkit-mask: none; mask: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--inv-text);
    border-radius: 50% 50% 20px 20px / 7.5rem 7.5rem 20px 20px;
    background: radial-gradient(120% 60% at 50% 0%, #fff, transparent 70%), var(--bl-paper);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-accent) 75%, transparent), inset 0 0 0 6px var(--bl-paper),
        inset 0 0 0 7px color-mix(in srgb, var(--inv-primary) 35%, transparent), 0 28px 44px -20px color-mix(in srgb, var(--inv-deep) 60%, transparent);
}
body.bl-body .inv-intro--scene .inv-scene__card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--inv-primary); opacity: .07;
    -webkit-mask: var(--bl-truntum) center / 30px 30px repeat; mask: var(--bl-truntum) center / 30px 30px repeat;
}
body.bl-body .inv-scene__card .inv-intro__label { position: relative; margin-bottom: .4rem; font: 800 clamp(.6rem, 2.8vw, .68rem)/1.4 var(--bl-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--inv-primary); }
body.bl-body .inv-scene__card .inv-intro__names { position: relative; font-family: var(--bl-script) !important; font-size: clamp(2.4rem, 12vw, 3.3rem); font-weight: 400; line-height: 1.1; color: var(--bl-title); overflow-wrap: anywhere; }
body.bl-body .inv-scene__card .inv-intro__rule { position: relative; width: 4.5rem; height: 1px; margin: .7rem auto .6rem; background: var(--inv-accent); }
body.bl-body .inv-scene__card .inv-intro__date { position: relative; font: 800 clamp(.64rem, 3vw, .74rem)/1.45 var(--bl-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); }
body.bl-body .inv-intro--scene .inv-intro__skip { background: color-mix(in srgb, var(--bl-paper) 80%, transparent); border-color: var(--bl-ring); color: var(--bl-title); }
@media (prefers-reduced-motion: reduce) {
    .bl-scene-ronce__string { animation: none; }
}
