/*
 * Template "Bold Lime" (Pernikahan): a bold editorial magazine.
 * Colors from the variant (x-inv.head): --inv-primary (the neon), --inv-accent,
 * --inv-background, --inv-text, --inv-ink (text on the neon).
 * Three kinds of pages give the rhythm: the base (background), "paper" (.bl-paper: background
 * and text swapped) and "neon" (.bl-neon: the neon as the ground, ink as the text). Each one
 * redefines the --inv-* colors locally, so the shared components follow automatically.
 * Photos are black and white or duotone (grayscale × the neon); the neon is the only color.
 * Type: Anton (poster), Space Grotesk (text), Bodoni Moda italic (accent words).
 */

:root {
    --inv-primary: #c8ff1a;
    --inv-accent: #ffffff;
    --inv-background: #0e0e0e;
    --inv-text: #f3f3ee;
    --inv-ink: #0e0e0e;
    --inv-radius: 0px;
    --bl-col: min(100vw, 480px);
    --bl-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
    --bl-sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bl-serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
p, h1, h2, h3, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; }

/* the variant colors, frozen on body so the page kinds can swap them without a cycle */
body.bl-body {
    --bl-bg: var(--inv-background);
    --bl-fg: var(--inv-text);
    --bl-pri: var(--inv-primary);
    --bl-ink: var(--inv-ink);
}
/* derived colors, recomputed on every page kind */
.bl-body, .bl-paper, .bl-neon, .bl-cover {
    --bl-muted: color-mix(in srgb, var(--inv-text) 70%, transparent);
    --bl-line: color-mix(in srgb, var(--inv-text) 22%, transparent);
    --bl-rule: 2px solid var(--inv-text);
    /* the neon used as a text color (headline words, numbers); on paper it falls back to the text */
    --bl-hl: var(--inv-primary);
}
.bl-paper {
    --inv-background: var(--bl-fg);
    --inv-text: var(--bl-bg);
    --bl-hl: var(--inv-text);
    background: var(--inv-background); color: var(--inv-text);
}
.bl-neon {
    --inv-background: var(--bl-pri);
    --inv-text: var(--bl-ink);
    --inv-primary: var(--bl-ink);
    --inv-ink: var(--bl-pri);
    --bl-hl: var(--inv-text);
    background: var(--inv-background); color: var(--inv-text);
}

body.bl-body {
    min-height: 100vh;
    color: var(--inv-text);
    font-family: var(--bl-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* wide screens: a print grid around the magazine column */
    background-color: color-mix(in srgb, var(--inv-background) 90%, var(--inv-text));
    background-image:
        linear-gradient(color-mix(in srgb, var(--inv-text) 8%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--inv-text) 8%, transparent) 1px, transparent 1px);
    background-size: 44px 44px;
}

.bl-preview {
    position: fixed; top: 0; left: 50%; z-index: 60; transform: translateX(-50%);
    padding: .3rem .9rem; background: var(--inv-text); color: var(--inv-background);
    font-size: .7rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}

/* ---------- shared bits ---------- */
.bl-mast__mono { display: inline-flex; gap: 2px; flex: none; }
.bl-mast__mono span {
    display: grid; place-items: center; min-width: 1.55rem; height: 1.55rem; padding: 0 .2rem;
    background: var(--inv-primary); color: var(--inv-ink); font: 400 .95rem/1 var(--bl-display);
}

.bl-sticker, .bl-chip {
    display: inline-block; padding: .3rem .55rem .26rem;
    background: var(--inv-primary); color: var(--inv-ink);
    font: 700 .68rem/1.2 var(--bl-sans); letter-spacing: .14em; text-transform: uppercase;
}
.bl-kicker { margin-bottom: .8rem; color: var(--bl-muted); font: 700 .72rem/1.3 var(--bl-sans); letter-spacing: .18em; text-transform: uppercase; }
.bl-lead { margin-bottom: 1.3rem; font-size: 1.04rem; line-height: 1.65; }

/* black and white photos */
.bl-bw { filter: grayscale(1) contrast(1.12); }

/* duotone: the photo in black and white, multiplied by the neon (black stays black, white turns neon) */
.bl-duo { position: relative; isolation: isolate; overflow: hidden; background: #000; }
.bl-duo::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background: var(--bl-photo) center / cover no-repeat; filter: grayscale(1) contrast(1.15) brightness(1.05);
}
.bl-duo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bl-pri); mix-blend-mode: multiply; }

/* print crop marks at the corners of a photo */
.bl-crop { position: absolute; inset: 9px; z-index: 2; pointer-events: none; color: #ffffff; filter: drop-shadow(0 0 2px rgb(0 0 0 / .5)); }
.bl-crop i { position: absolute; width: 16px; height: 16px; border: 0 solid currentColor; }
.bl-crop i:nth-child(1) { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.bl-crop i:nth-child(2) { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.bl-crop i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.bl-crop i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

/* poster type stretched to the width by js/fit.js (CSS size without it) */
.bl-fit {
    display: block; font: 400 clamp(3rem, 19vw, 6.5rem)/.86 var(--bl-display);
    text-transform: uppercase; letter-spacing: -.005em; overflow-wrap: anywhere;
}
.bl-js .bl-fit > span { display: inline-block; white-space: nowrap; }
.bl-js .bl-fit.bl-fit--wrap > span { display: inline; white-space: normal; }

/* the neon seal: a disc with the date running round it */
.bl-seal { display: block; overflow: visible; }
.bl-seal__disc { fill: var(--inv-primary); }
.bl-seal__ring { fill: none; stroke: var(--inv-ink); stroke-width: .8; }
.bl-seal text { fill: var(--inv-ink); font: 700 8.4px/1 var(--bl-sans); letter-spacing: .06em; }
.bl-seal .bl-seal__amp { font: italic 400 30px/1 var(--bl-serif); letter-spacing: 0; }
.bl-seal__spin { transform-origin: 50px 50px; }

/* a neon sun (a big disc) behind a heading */
.bl-sun { position: absolute; z-index: -1; border-radius: 50%; background: var(--bl-pri); pointer-events: none; }

/* ---------- cover (the magazine cover) ---------- */
.bl-cover {
    position: fixed; top: 0; bottom: 0; left: 50%; z-index: 30; width: var(--bl-col); transform: translateX(-50%);
    display: flex; flex-direction: column;
    padding: calc(.9rem + env(safe-area-inset-top)) 1.1rem 0;
    background: var(--inv-background); color: var(--inv-text); overflow: hidden; isolation: isolate;
}
.bl-cover__bg { position: absolute; inset: 0 0 18% 0; z-index: -2; overflow: hidden; }
/* the photo melts into the background toward the bottom */
.bl-cover__bg::before {
    content: ''; position: absolute; inset: 0;
    background: var(--bl-photo) center 22% / cover no-repeat;
    filter: grayscale(1) contrast(1.14) brightness(.98);
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 46%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 0, #000 46%, transparent 92%);
}
/* a neon wash rising from the lower left, multiplied into the photo */
.bl-cover__bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(85% 55% at 100% 18%, var(--inv-primary) 0, color-mix(in srgb, var(--inv-primary) 45%, transparent) 40%, transparent 72%);
    mix-blend-mode: multiply;
}
.bl-cover__bg--empty::before {
    background: radial-gradient(color-mix(in srgb, var(--inv-text) 22%, transparent) 1.1px, transparent 1.6px) 0 0 / 7px 7px;
    filter: none;
}
.bl-cover__bg--empty::after { mix-blend-mode: normal; opacity: .55; }
/* a dark band behind the masthead row, and a soft shade behind the names */
.bl-cover::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(to bottom, color-mix(in srgb, var(--inv-background) 72%, transparent), transparent 7rem),
        linear-gradient(to bottom, transparent 30%, color-mix(in srgb, var(--inv-background) 42%, transparent) 50%, color-mix(in srgb, var(--inv-background) 30%, transparent) 70%, transparent 82%);
}
.bl-cover__crop { inset: calc(.45rem + env(safe-area-inset-top)) .45rem calc(.45rem + env(safe-area-inset-bottom)); opacity: .8; }
.bl-cover__crop i { width: 13px; height: 13px; }

.bl-cover__top, .bl-mast {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding-bottom: .6rem; border-bottom: 2px solid var(--inv-text);
    font: 700 .7rem/1 var(--bl-sans); letter-spacing: .16em; text-transform: uppercase;
}
.bl-cover__top { border-bottom-color: color-mix(in srgb, var(--inv-text) 70%, transparent); }
.bl-cover__title, .bl-mast__title { flex: 1; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-cover__no, .bl-mast__issue { flex: none; }

.bl-cover__stage { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; padding-top: 1rem; }
.bl-cover__seal { position: absolute; top: .9rem; right: -.1rem; width: clamp(4.6rem, 11svh, 6rem); filter: drop-shadow(0 6px 16px rgb(0 0 0 / .35)); }

.bl-cover__kicker { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .45rem; margin-bottom: .55rem; }
.bl-cover__kicker em {
    font: italic 400 clamp(2rem, 9vw, 2.6rem)/1 var(--bl-serif); color: var(--inv-text);
    text-shadow: 0 1px 3px color-mix(in srgb, var(--inv-background) 60%, transparent), 0 2px 18px color-mix(in srgb, var(--inv-background) 85%, transparent);
}
.bl-cover__label {
    padding: .14rem .42rem .04rem; background: var(--inv-primary); color: var(--inv-ink);
    font: 400 clamp(1.7rem, 8vw, 2.25rem)/1 var(--bl-display); text-transform: uppercase;
}

.bl-cover__names { display: grid; gap: .05rem; margin: 0; font-weight: 400; }
.bl-cover__names .bl-fit:first-child { text-shadow: 0 3px 30px color-mix(in srgb, var(--inv-background) 45%, transparent); }
.bl-cover__names .bl-fit:last-child { padding-bottom: .12em; }
.bl-cover__names .bl-fit:last-child { color: var(--bl-hl); }
.bl-cover__amp, .bl-couple__amp, .bl-closing__amp {
    display: flex; align-items: center; gap: .7rem; color: var(--bl-hl);
}
.bl-cover__amp em, .bl-closing__amp em { font: italic 400 2rem/.9 var(--bl-serif); }
.bl-cover__amp i, .bl-couple__amp i, .bl-closing__amp i { flex: 1; height: 2px; background: currentColor; }
.bl-cover__amp i:first-child { background: var(--inv-text); }

.bl-cover__panel {
    display: grid; gap: .7rem; margin-top: .8rem;
    padding: .85rem 0 calc(1.6rem + env(safe-area-inset-bottom));
    border-top: 2px solid var(--inv-text);
    /* the breathing ring of "Buka" in the neon (the pulse itself is switched off below) */
    --inv-accent: var(--inv-primary);
}
.bl-cover__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bl-cover__date { display: flex; align-items: center; gap: .5rem; flex: none; padding: .4rem .55rem .32rem; background: var(--inv-primary); color: var(--inv-ink); }
.bl-cover__dm { font: 400 2.5rem/.86 var(--bl-display); letter-spacing: -.01em; }
.bl-cover__year { font: 700 .62rem/1.3 var(--bl-sans); letter-spacing: .14em; text-transform: uppercase; }
.bl-cover__guest { min-width: 0; text-align: right; }
.bl-cover__guest > span:first-child { display: block; color: var(--bl-muted); font: 700 .6rem/1.3 var(--bl-sans); letter-spacing: .18em; text-transform: uppercase; }
.bl-cover__guest-name { display: block; margin-top: .15rem; font: 700 1.02rem/1.22 var(--bl-sans); overflow-wrap: anywhere; }
.bl-cover__quote {
    font: italic 400 .95rem/1.45 var(--bl-serif); color: color-mix(in srgb, var(--inv-text) 88%, transparent);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
}
.bl-body .inv-button.bl-open {
    width: 100%; justify-content: space-between; padding: .82rem 1.1rem .76rem;
    background: var(--inv-primary); color: var(--inv-ink); box-shadow: none;
    font: 400 1.45rem/1 var(--bl-display); letter-spacing: .06em; text-transform: uppercase;
}
html.inv-anim .bl-body .inv-button.bl-open { animation: none; }
.bl-cover--leave { transition: transform .65s cubic-bezier(.7, 0, .3, 1); }
.bl-cover--gone { transform: translateX(-50%) translateY(-100%); }

/* the opening moment: the photo fades in with a slight zoom, the seal turns once (≤ 2.3s) */
@keyframes bl-cover-photo { from { opacity: 0; transform: scale(1.09); } to { opacity: 1; transform: none; } }
@keyframes bl-seal-in { from { opacity: 0; transform: rotate(-140deg) scale(.6); } to { opacity: 1; transform: none; } }
html.inv-anim .bl-cover__bg { animation: bl-cover-photo 2.2s cubic-bezier(.2, .7, .2, 1) both; }
html.inv-anim .bl-cover__seal { animation: bl-seal-in 1.6s cubic-bezier(.2, .8, .2, 1) .5s both; }

/* ---------- page ---------- */
.bl-page {
    position: relative; width: var(--bl-col); min-height: 100vh; margin: 0 auto;
    background: var(--inv-background); overflow-x: clip;
}
@media (min-width: 481px) {
    .bl-page { box-shadow: 0 0 0 2px var(--inv-text), 16px 16px 0 2px var(--inv-primary); }
}
.bl-mast { padding: calc(1rem + env(safe-area-inset-top)) 1.1rem .65rem; margin: 0; }

/* marquee strip */
.bl-marquee {
    overflow: hidden; padding: .5rem 0 .4rem;
    background: var(--inv-primary); color: var(--inv-ink);
}
.bl-marquee__track { display: flex; width: max-content; animation: bl-marquee 34s linear infinite; }
.bl-marquee__half { display: flex; align-items: center; gap: .9rem; padding-right: .9rem; }
.bl-marquee__half span { font: 400 1.45rem/1 var(--bl-display); text-transform: uppercase; white-space: nowrap; }
.bl-marquee__half i { font-style: normal; font-size: 1rem; }
@keyframes bl-marquee { to { transform: translateX(-50%); } }
.bl-marquee--tilt { margin: 1.3rem -1rem 2.2rem; transform: rotate(-2.5deg); }
.bl-marquee--invert { background: var(--inv-text); color: var(--inv-background); }
.bl-marquee--invert .bl-marquee__track { animation-direction: reverse; }

/* ---------- sections ---------- */
.bl-main { counter-reset: bl-sec; padding: 0; }
.bl-sec {
    counter-increment: bl-sec; position: relative; isolation: isolate; overflow: hidden;
    padding: 1.1rem 1.1rem 3.6rem;
}
/* two base pages in a row are parted by a rule */
.bl-sec:not(.bl-paper):not(.bl-neon):not(.bl-photosec) + .bl-sec:not(.bl-paper):not(.bl-neon):not(.bl-photosec) { box-shadow: inset 0 2px 0 var(--bl-line); }

.bl-head { position: relative; margin-bottom: 1.6rem; }
.bl-head__row {
    display: flex; align-items: center; gap: .7rem;
    font: 700 .7rem/1.2 var(--bl-sans); letter-spacing: .18em; text-transform: uppercase;
}
.bl-num { padding: .2rem .42rem .12rem; background: var(--inv-primary); color: var(--inv-ink); font: 400 1.05rem/1 var(--bl-display); letter-spacing: .04em; }
.bl-num::before { content: counter(bl-sec, decimal-leading-zero); }
.bl-head__rule { flex: 1; height: 2px; background: var(--inv-text); }
.bl-head__label { color: var(--bl-muted); text-align: right; }
/* the oversized outlined number in the corner */
.bl-head::after {
    content: counter(bl-sec, decimal-leading-zero); position: absolute; right: -.2rem; top: 1.55rem; z-index: -1;
    font: 400 7.2rem/1 var(--bl-display); color: transparent;
    -webkit-text-stroke: 1.5px color-mix(in srgb, var(--bl-hl) 34%, transparent);
}
.bl-head__title {
    position: relative; margin-top: 1.4rem; padding-right: 1rem;
    font: 400 clamp(2.5rem, 12.5vw, 3.8rem)/.94 var(--bl-display); text-transform: uppercase; letter-spacing: -.005em;
}
.bl-head__title em {
    display: inline-block; max-width: 100%; margin-top: .08em; padding: .02em .2em .1em .12em;
    font: italic 400 .88em/1 var(--bl-serif); text-transform: none; letter-spacing: -.01em; color: var(--inv-ink);
    background: linear-gradient(var(--inv-primary), var(--inv-primary)) no-repeat 0 0 / 100% 100%;
}
/* the color block wipes in behind the words */
html.inv-anim .bl-head__title em { background-size: 0% 100%; color: var(--inv-text); transition: background-size .8s cubic-bezier(.6, 0, .2, 1) .35s, color .3s ease .5s; }
html.inv-anim .bl-head.is-revealed .bl-head__title em { background-size: 100% 100%; color: var(--inv-ink); }

/* photo sections: a photo behind the top of the section that melts into the ground */
.bl-photosec > .bl-photosec__bg { position: absolute; inset: 0 0 auto; z-index: -1; height: min(34rem, 92%); overflow: hidden; isolation: isolate; background: var(--inv-background); }
.bl-photosec__bg img {
    position: absolute; left: 0; top: -48px; width: 100%; height: calc(100% + 96px); max-width: none;
    object-fit: cover; object-position: center 35%;
    filter: grayscale(1) contrast(1.15);
}
/* duotone glow: the neon multiplied into the photo, strongest at the upper right */
.bl-photosec__bg::before {
    content: ''; position: absolute; inset: 0; z-index: 1; mix-blend-mode: multiply;
    background: linear-gradient(200deg, var(--bl-pri) 0%, color-mix(in srgb, var(--bl-pri) 70%, #ffffff) 45%, #ffffff 80%);
}
.bl-photosec__bg::after {
    content: ''; position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(to bottom,
        color-mix(in srgb, var(--inv-background) 50%, transparent) 0%,
        color-mix(in srgb, var(--inv-background) 18%, transparent) 24%,
        color-mix(in srgb, var(--inv-background) 45%, transparent) 50%,
        color-mix(in srgb, var(--inv-background) 90%, transparent) 78%,
        var(--inv-background) 100%);
}
.bl-photosec--empty > .bl-photosec__bg::before { display: none; }
.bl-photosec--empty > .bl-photosec__bg {
    background:
        radial-gradient(color-mix(in srgb, var(--bl-pri) 55%, transparent) 1.1px, transparent 1.6px) 0 0 / 8px 8px,
        radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--bl-pri) 70%, transparent), transparent 70%);
}
.bl-photosec .bl-head__row, .bl-photosec .bl-head__title, .bl-photosec > .bl-lead { text-shadow: 0 1px 14px color-mix(in srgb, var(--inv-background) 85%, transparent); }

/* opening (paper) */
.bl-opening__sun { width: 13rem; height: 13rem; top: 2.6rem; right: -4.5rem; }
/* a faint grayscale photo under a paper wash (behind the neon sun); without a photo only the gradient shows */
.bl-opening__bg {
    position: absolute; inset: 0; z-index: -2; overflow: hidden;
    background:
        radial-gradient(90% 40% at 0% 100%, color-mix(in srgb, var(--bl-pri) 20%, transparent), transparent 70%),
        linear-gradient(180deg, var(--inv-background), color-mix(in srgb, var(--inv-background) 90%, var(--inv-text)));
}
.bl-opening__bg img {
    position: absolute; left: 0; top: -48px; width: 100%; height: calc(100% + 96px); max-width: none;
    object-fit: cover; object-position: center 35%; opacity: .34; filter: grayscale(1) contrast(1.1);
}
.bl-opening__bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(100% 40% at 50% 46%, color-mix(in srgb, var(--inv-background) 72%, transparent), transparent 100%),
        linear-gradient(180deg, color-mix(in srgb, var(--inv-background) 20%, transparent) 0%, color-mix(in srgb, var(--inv-background) 55%, transparent) 30%, color-mix(in srgb, var(--inv-background) 40%, transparent) 70%, color-mix(in srgb, var(--inv-background) 15%, transparent) 100%);
}
.bl-opening .bl-head::after { display: none; }
.bl-arabic { margin: 1.3rem 0 1.5rem; font-family: 'Amiri', 'Traditional Arabic', serif; font-size: 1.9rem; line-height: 1.8; text-align: center; }
.bl-opening__greeting { margin: 0 0 1.1rem; font: 400 clamp(2.1rem, 10vw, 2.6rem)/.98 var(--bl-display); text-transform: uppercase; }
.bl-dropcap::first-letter {
    float: left; margin: .32rem .55rem 0 0; padding: .3rem .45rem .2rem;
    background: var(--inv-text); color: var(--bl-pri); font: 400 3.4rem/.82 var(--bl-display);
}
.bl-quote {
    position: relative; margin-top: 2.2rem; padding: 1.6rem 1.25rem 1.35rem 1.4rem;
    background: var(--inv-text); color: var(--inv-background);
    box-shadow: 10px 10px 0 var(--bl-pri);
}
.bl-quote__mark { display: block; height: 2.3rem; margin: -.4rem 0 .2rem -.1rem; color: var(--bl-pri); font: italic 400 4.6rem/1 var(--bl-serif); }
.bl-quote blockquote { margin: 0; font: italic 400 1.14rem/1.55 var(--bl-serif); }
.bl-quote figcaption { margin-top: 1rem; font: 700 .72rem/1.3 var(--bl-sans); letter-spacing: .16em; text-transform: uppercase; }
.bl-quote figcaption::before { content: ''; display: inline-block; width: 1.4rem; height: 2px; margin-right: .55rem; background: var(--bl-pri); vertical-align: middle; }

/* couple: two spreads */
.bl-person { display: grid; gap: .55rem; }
.bl-person__frame { position: relative; margin: 0 1.6rem 1rem 0; }
.bl-person--bride .bl-person__frame { margin: 0 0 1rem 1.6rem; }
/* the offset neon block behind the portrait */
.bl-person__frame::before { content: ''; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; background: var(--inv-primary); }
.bl-person--bride .bl-person__frame::before { inset: 1.1rem 1.1rem -1.1rem -1.1rem; }
.bl-person__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: color-mix(in srgb, var(--inv-text) 12%, var(--inv-background)); }
.bl-person__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-person__initial { display: grid; place-items: center; height: 100%; color: var(--bl-hl); font: 400 9rem/1 var(--bl-display); }
.bl-person__no {
    position: absolute; z-index: 3; bottom: -1.1rem; left: 0; padding: .3rem .5rem .2rem;
    background: var(--inv-text); color: var(--inv-background); font: 400 1.6rem/1 var(--bl-display);
}
.bl-person--bride .bl-person__no { left: auto; right: 0; }
.bl-person__role { margin-top: .5rem; color: var(--bl-hl); font: italic 400 1.35rem/1.1 var(--bl-serif); }
.bl-person--bride { text-align: right; }
.bl-person--bride .bl-person__nick { color: var(--bl-hl); }
.bl-person__name { font: 700 1.15rem/1.3 var(--bl-sans); }
.bl-person__parents { padding-top: .6rem; border-top: 1px solid var(--bl-line); font-size: .95rem; }
.bl-person__parents span { display: block; color: var(--bl-muted); font-size: .85rem; }
.bl-person__parents strong { display: block; font-weight: 700; }
.bl-person__ig {
    justify-self: start; padding: .5rem .85rem; box-shadow: inset 0 0 0 2px var(--inv-text);
    font: 700 .85rem/1 var(--bl-sans); text-decoration: none;
}
.bl-person--bride .bl-person__ig { justify-self: end; }
.bl-person__ig:hover { background: var(--inv-primary); color: var(--inv-ink); box-shadow: inset 0 0 0 2px var(--inv-primary); }
.bl-couple__amp { margin: 2.6rem 0 2.4rem; }
.bl-couple__amp span {
    display: grid; place-items: center; flex: none; width: 5.2rem; height: 5.2rem; border-radius: 50%;
    background: var(--inv-primary); color: var(--inv-ink); font: italic 400 3.2rem/1 var(--bl-serif); padding-bottom: .3rem;
}
.bl-couple__amp i { background: var(--inv-text); }

/* countdown: the date, oversized, on a photo */
.bl-bigdate { display: flex; align-items: flex-end; gap: .9rem; margin: .4rem 0 1.8rem; }
.bl-bigdate__day { color: var(--bl-hl); font: 400 clamp(8rem, 44vw, 12.5rem)/.78 var(--bl-display); letter-spacing: -.02em; text-shadow: 0 6px 40px rgb(0 0 0 / .3); }
.bl-bigdate__side { display: grid; gap: .2rem; min-width: 0; padding-bottom: .15rem; }
.bl-bigdate__month, .bl-bigdate__year { font: 400 clamp(1.9rem, 10vw, 2.6rem)/.9 var(--bl-display); text-transform: uppercase; overflow-wrap: anywhere; }
.bl-bigdate__year { -webkit-text-stroke: 1.5px var(--inv-text); color: transparent; }
.bl-bigdate__weekday { margin-top: .35rem; font: 700 .72rem/1.3 var(--bl-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bl-muted); }
.bl-countdown__box { padding: 1rem 1rem 1.1rem; background: color-mix(in srgb, var(--inv-background) 88%, transparent); border-top: 6px solid var(--inv-primary); box-shadow: inset 0 0 0 2px var(--bl-line); }
.bl-body .inv-countdown { gap: 0; }
.bl-body .inv-countdown__item { flex: 1; min-width: 0; padding: .2rem .15rem; border-radius: 0; background: none; border-right: 2px solid var(--bl-line); }
.bl-body .inv-countdown__item:last-child { border-right: 0; }
.bl-body .inv-countdown__item:hover { transform: none; }
.bl-body .inv-countdown__value { font: 400 2.7rem/1 var(--bl-display); }
.bl-body .inv-countdown__item:first-child .inv-countdown__value { color: var(--bl-hl); }
.bl-body .inv-countdown__label { margin-top: .2rem; font: 700 .6rem/1.2 var(--bl-sans); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.bl-body .inv-countdown__actions { margin-top: 1.1rem; }

/* buttons: square, neon, a hard offset shadow */
.bl-body .inv-button {
    border-radius: 0; padding: .9rem 1.2rem .85rem;
    background: var(--inv-primary); color: var(--inv-ink);
    box-shadow: 4px 4px 0 var(--inv-text);
    font: 700 .8rem/1.1 var(--bl-sans); letter-spacing: .1em; text-transform: uppercase;
}
.bl-body .inv-button:hover { filter: none; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--inv-text); }
.bl-body .inv-button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--inv-text); }
.bl-body .inv-button--outline { background: transparent; color: var(--inv-text); box-shadow: inset 0 0 0 2px var(--inv-text); }
.bl-body .inv-button--outline:hover { box-shadow: inset 0 0 0 2px var(--inv-text), 4px 4px 0 var(--inv-primary); }
.bl-body .inv-button:focus-visible { outline: 3px solid var(--inv-primary); outline-offset: 3px; }

/* events (paper): lettered cards */
.bl-event { position: relative; background: var(--inv-background); box-shadow: 0 0 0 2px var(--inv-text), 8px 8px 0 2px var(--bl-pri); }
.bl-event + .bl-event { margin-top: 2rem; }
.bl-event__head { display: flex; align-items: stretch; border-bottom: var(--bl-rule); }
.bl-event__no {
    display: grid; place-items: center; flex: none; width: 3.6rem; border-right: var(--bl-rule);
    background: var(--inv-text); color: var(--bl-pri); font: 400 2.5rem/1 var(--bl-display);
}
.bl-event__name { align-self: center; min-width: 0; padding: .75rem .9rem .65rem; font: 400 1.95rem/.95 var(--bl-display); text-transform: uppercase; overflow-wrap: anywhere; }
.bl-event__photo { aspect-ratio: 16 / 9; border-bottom: var(--bl-rule); }
.bl-event__cell { padding: .75rem .9rem; border-bottom: 1px solid var(--bl-line); }
.bl-event__cell:last-child { border-bottom: 0; }
.bl-event__cell dt { color: var(--bl-muted); font: 700 .66rem/1.2 var(--bl-sans); letter-spacing: .16em; text-transform: uppercase; }
.bl-event__cell dd { margin-top: .2rem; font-weight: 500; }
.bl-event__time { font: 400 2.5rem/1 var(--bl-display) !important; }
.bl-event__time small { font-size: .55em; }
.bl-event__time em {
    display: inline-block; padding: .25rem .42rem .2rem; vertical-align: middle;
    background: var(--bl-pri); color: var(--bl-ink);
    font: 700 .72rem/1 var(--bl-sans); font-style: normal; letter-spacing: .1em;
}
.bl-event__venue { display: block; font-weight: 700; font-size: 1.08rem; }
.bl-event__address { display: block; margin-top: .2rem; color: var(--bl-muted); font-size: .92rem; }
.bl-event .inv-maps { padding: .3rem .9rem 1.1rem; }
.bl-body .inv-maps .inv-button { width: 100%; }
/* on paper the buttons are dark with a neon shadow */
.bl-paper .inv-button { background: var(--inv-text); color: var(--inv-background); box-shadow: 4px 4px 0 var(--bl-pri); }
.bl-paper .inv-button:hover { box-shadow: 6px 6px 0 var(--bl-pri); }
.bl-paper .inv-button:active { box-shadow: 2px 2px 0 var(--bl-pri); }
.bl-paper .inv-button--outline { background: transparent; color: var(--inv-text); box-shadow: inset 0 0 0 2px var(--inv-text); }

/* love story: a timeline on a rule */
.bl-story__list { display: grid; gap: 2.6rem; margin: 0; padding: 0 0 0 1.3rem; list-style: none; border-left: var(--bl-rule); }
.bl-moment { position: relative; }
.bl-moment::before {
    content: ''; position: absolute; left: calc(-1.3rem - 9px); top: .45rem;
    width: 16px; height: 16px; background: var(--inv-primary); box-shadow: 0 0 0 4px var(--inv-background);
}
.bl-moment__meta { display: flex; align-items: center; gap: .7rem; }
.bl-moment__no { font: 400 2.6rem/.9 var(--bl-display); color: transparent; -webkit-text-stroke: 1.5px var(--inv-text); }
.bl-moment__frame { position: relative; display: block; margin: .9rem .8rem .8rem 0; }
.bl-moment__frame::before { content: ''; position: absolute; inset: .8rem -.8rem -.8rem .8rem; background: var(--inv-primary); }
.bl-moment__photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bl-moment__title { margin: .8rem 0 .4rem; font: 400 1.85rem/1 var(--bl-display); text-transform: uppercase; }
.bl-moment__text { color: color-mix(in srgb, var(--inv-text) 86%, transparent); line-height: 1.6; }

/* gallery (paper): a contact sheet, every third frame wide */
.bl-gallery .bl-head::after { -webkit-text-stroke-color: color-mix(in srgb, var(--inv-text) 25%, transparent); }
.bl-body .inv-gallery { gap: 6px; border-radius: 0; }
.bl-body .inv-gallery__item { border-radius: 0; }
.bl-body .inv-gallery__item:nth-child(3n + 1) { grid-column: span 2; aspect-ratio: 16 / 10; }
.bl-body .inv-gallery__item img, .bl-body .inv-gallery__item video { filter: grayscale(1) contrast(1.12); transition: filter .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.bl-body .inv-gallery__item:hover img, .bl-body .inv-gallery__item:hover video { filter: none; }
.bl-body .inv-gallery__play { border-radius: 0; background: var(--bl-pri); color: var(--bl-ink); }

/* live streaming (neon page) */
.bl-live__box { padding: .4rem 0 0; }
.bl-live__badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .7rem; background: var(--inv-text); color: var(--inv-background); font: 700 .72rem/1 var(--bl-sans); letter-spacing: .2em; text-transform: uppercase; }
.bl-live__badge i { width: .62rem; height: .62rem; border-radius: 50%; background: #ff2a2a; animation: bl-blink 1.2s steps(2, start) infinite; }
@keyframes bl-blink { to { visibility: hidden; } }
.bl-live__title { margin: 1rem 0 .7rem; font: 400 clamp(2.3rem, 11vw, 3rem)/.95 var(--bl-display); text-transform: uppercase; }
.bl-live__note { font-size: .98rem; }
.bl-body .bl-live__button { margin-top: 1.3rem; background: var(--inv-text); color: var(--inv-background); box-shadow: 5px 5px 0 color-mix(in srgb, var(--inv-text) 30%, transparent); }

/* gift: a photo band, then compact cards, two per row (an odd last one spans the row) */
.bl-photosec--band > .bl-photosec__bg { height: 26rem; }
.bl-photosec--band .bl-photosec__bg::before { background: radial-gradient(80% 65% at 100% 0%, var(--bl-pri) 0%, color-mix(in srgb, var(--bl-pri) 45%, #ffffff) 45%, #ffffff 80%); }
.bl-photosec--band .bl-photosec__bg img { filter: grayscale(1) contrast(1.2) brightness(1.15); }
.bl-photosec--band .bl-photosec__bg::after {
    background: linear-gradient(to bottom,
        color-mix(in srgb, var(--inv-background) 30%, transparent) 0%,
        color-mix(in srgb, var(--inv-background) 5%, transparent) 20%,
        color-mix(in srgb, var(--inv-background) 30%, transparent) 42%,
        color-mix(in srgb, var(--inv-background) 88%, transparent) 72%,
        var(--inv-background) 100%);
}
.bl-body .inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.bl-body .inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.bl-body .inv-gift__account { min-width: 0; padding: .8rem; border-radius: 0; background: var(--inv-background); border: 2px solid var(--inv-text); }
.bl-body .inv-gift__accounts .inv-gift__account { display: flex; flex-direction: column; margin: 0; border-top: 6px solid var(--inv-primary); }
.bl-body .inv-gift__account + .inv-gift__account { margin-top: 0; }
.bl-body .inv-gift__accounts + .inv-gift__address { margin-top: .6rem; }
.bl-body .inv-gift__bank { margin: 0 0 .5rem; font: 700 .7rem/1.2 var(--bl-sans); letter-spacing: .12em; text-transform: uppercase; overflow-wrap: anywhere; }
.bl-body .inv-gift__logo { height: 1.5rem; padding: .2rem .45rem; border-radius: 0; }
.bl-body .inv-gift__logo img { max-width: 5rem; }
.bl-body .inv-gift__number { margin: 0; font: 700 1rem/1.25 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .02em; overflow-wrap: anywhere; }
.bl-body .inv-gift__holder { margin: .25rem 0 .7rem; color: var(--bl-muted); font: 700 .6rem/1.3 var(--bl-sans); letter-spacing: .1em; text-transform: uppercase; overflow-wrap: anywhere; }
.bl-body .inv-gift__accounts .inv-button { align-self: flex-start; margin-top: auto; padding: .35rem .7rem; font-size: .65rem; letter-spacing: .08em; box-shadow: 3px 3px 0 var(--inv-text); }
.bl-body .inv-gift__address .inv-gift__holder { font-size: .8rem; letter-spacing: .06em; }
.bl-body .inv-gift__address p { margin: 0 0 .9rem; }

/* forms */
.bl-form .inv-form label, .bl-form .inv-form__choices legend { font: 700 .72rem/1.3 var(--bl-sans); letter-spacing: .12em; text-transform: uppercase; }
.bl-form .inv-form__choices label { font-size: .8rem; letter-spacing: .06em; }
.bl-form .inv-form input:not([type=radio]):not([type=checkbox]), .bl-form .inv-form select, .bl-form .inv-form textarea {
    padding: .8rem .85rem; border: 2px solid var(--inv-text); border-radius: 0;
    background: transparent; color: var(--inv-text);
    font: 500 1rem/1.4 var(--bl-sans); letter-spacing: 0; text-transform: none;
}
.bl-form .inv-form input:focus, .bl-form .inv-form select:focus, .bl-form .inv-form textarea:focus { outline: 3px solid var(--bl-pri); outline-offset: 0; }
.bl-form .inv-form select option { background: #ffffff; color: #111111; }
.bl-form .inv-form__notice { border-radius: 0; background: var(--bl-pri); color: var(--bl-ink); }
.bl-form .inv-form__error { border-radius: 0; }
.bl-form .inv-rsvp__deadline { margin: 0 0 1rem; color: var(--bl-muted); font-size: .9rem; }
.bl-form .inv-form .inv-button { justify-self: start; }
.bl-rsvp .bl-form { position: relative; padding: 1.2rem 1.1rem 1.3rem; box-shadow: 0 0 0 2px var(--inv-text), 8px 8px 0 2px var(--bl-pri); }

/* wishes: compact cards in a scroll box of about three */
.bl-body .inv-wishes { --inv-wishes-height: 20rem; }
.bl-body .inv-wishes__list { gap: .6rem; margin-top: 1.6rem; padding: .6rem .5rem .6rem .6rem; border: 2px solid var(--bl-line); scrollbar-color: var(--inv-primary) transparent; }
.bl-body .inv-wish { padding: .65rem .8rem; border-radius: 0; background: none; border: 2px solid var(--inv-text); border-left: 8px solid var(--inv-primary); }
.bl-body .inv-wish__name { font: 700 .78rem/1.3 var(--bl-sans); letter-spacing: .1em; text-transform: uppercase; }
.bl-body .inv-wish__message { font-size: .88rem; line-height: 1.45; }
.bl-body .inv-wish__time { font-size: .7rem; color: var(--bl-muted); opacity: 1; }
.bl-body .inv-wish__reply { border-radius: 0; border-left-color: var(--inv-primary); background: color-mix(in srgb, var(--inv-primary) 14%, transparent); }

/* closing: a full-bleed photo melting into a neon block, the words in ink on it */
.bl-closing {
    --inv-background: var(--bl-pri); --inv-text: var(--bl-ink); --inv-primary: var(--bl-ink); --inv-ink: var(--bl-pri);
    --bl-muted: color-mix(in srgb, var(--inv-text) 78%, transparent); --bl-line: color-mix(in srgb, var(--inv-text) 25%, transparent);
    --bl-hl: var(--inv-text);
    display: flex; flex-direction: column; min-height: 40rem;
    padding-top: 1rem; background: var(--inv-background); color: var(--inv-text);
}
.bl-closing > .bl-closing__bg { position: absolute; inset: 0 0 auto; z-index: -1; height: 32rem; overflow: hidden; isolation: isolate; background: var(--bl-bg); }
.bl-closing__bg img {
    position: absolute; left: 0; top: -48px; width: 100%; height: calc(100% + 96px); max-width: none;
    object-fit: cover; object-position: center 30%;
    filter: grayscale(1) contrast(1.12);
}
/* the neon multiplied in from the bottom (duotone), then the solid neon */
.bl-closing__bg::before {
    content: ''; position: absolute; inset: 0; z-index: 1; mix-blend-mode: multiply;
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 30%, color-mix(in srgb, var(--bl-pri) 60%, #ffffff) 50%, var(--bl-pri) 70%);
}
.bl-closing__bg::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom, rgb(0 0 0 / .5) 0%, transparent 16%, transparent 62%, color-mix(in srgb, var(--bl-pri) 80%, transparent) 84%, var(--bl-pri) 100%);
}
/* without a photo: the neon block with a halftone and a big outlined "&" */
.bl-closing:not(.bl-closing--photo) > .bl-closing__bg {
    height: 100%; background: radial-gradient(color-mix(in srgb, var(--bl-ink) 16%, transparent) 1.1px, transparent 1.6px) 0 0 / 8px 8px, var(--bl-pri);
}
.bl-closing:not(.bl-closing--photo) > .bl-closing__bg::before, .bl-closing:not(.bl-closing--photo) > .bl-closing__bg::after { display: none; }
.bl-closing__ghost {
    position: absolute; right: -1rem; top: 1rem; font: italic 400 22rem/1 var(--bl-serif);
    color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--bl-ink) 35%, transparent);
}
.bl-closing .bl-head { margin-bottom: 0; }
.bl-closing--photo .bl-head__row { color: #ffffff; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.bl-closing--photo .bl-head__rule { background: #ffffff; }
.bl-closing--photo .bl-head__label { color: #ffffff; }
.bl-closing--photo .bl-num { background: var(--bl-pri); color: var(--bl-ink); }
.bl-closing .bl-head::after { display: none; }
.bl-closing__body { position: relative; margin-top: auto; padding: 1.6rem .2rem .4rem; }
.bl-closing--photo .bl-closing__body { padding-top: 21rem; }
.bl-closing__crop { inset: 3.4rem .7rem 9rem; }
.bl-closing__thanks { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5rem; margin-bottom: 1rem; }
.bl-closing__thanks span { font: 400 clamp(3.2rem, 17vw, 4.6rem)/.88 var(--bl-display); text-transform: uppercase; }
.bl-closing__thanks em {
    padding: 0 .18em .04em .1em; background: var(--inv-text); color: var(--bl-pri);
    font: italic 400 clamp(2.7rem, 14vw, 3.8rem)/1.05 var(--bl-serif);
}
.bl-closing__message { margin-bottom: 1.3rem; font-size: 1.04rem; line-height: 1.6; font-weight: 500; }
.bl-closing__sign { margin: 0 0 .8rem; padding-top: .8rem; border-top: 2px solid var(--inv-text); font: 700 .74rem/1.3 var(--bl-sans); letter-spacing: .18em; text-transform: uppercase; }
.bl-closing__names { display: grid; gap: .1rem; }
.bl-closing__amp i { background: var(--inv-text); }

/* footer, branding, QR, music */
.bl-foot { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
.bl-branding { color: var(--bl-muted); opacity: 1; padding: 1.4rem 1rem .5rem; font-weight: 500; }
.bl-body .inv-checkin { border-radius: 0; border: 3px solid #111111; color: #111111; box-shadow: 8px 8px 0 var(--inv-primary); }
.bl-body .inv-checkin__title { color: #111111; }
/* the music / auto scroll buttons wait until the cover is opened (they would cover "Buka") */
html:not(.inv-opened) .bl-body .inv-music { display: none; }
.bl-body .inv-music { right: max(1rem, calc(50vw - 240px + 1rem)); }
.bl-body .inv-music__button {
    border-radius: 0; background: var(--inv-primary); color: var(--inv-ink);
    box-shadow: 3px 3px 0 var(--inv-text); font-weight: 700;
}
.bl-body .inv-music__button--playing { animation: none; box-shadow: 3px 3px 0 var(--inv-text), 0 0 0 3px var(--inv-background), 0 0 0 5px var(--inv-primary); }

/* ---------- cover fit on short screens ---------- */
@media (max-height: 760px) {
    .bl-cover__panel { gap: .6rem; margin-top: .6rem; padding-top: .7rem; }
    .bl-cover__dm { font-size: 2.2rem; }
    .bl-cover__quote { -webkit-line-clamp: 5; font-size: .9rem; }
    .bl-body .inv-button.bl-open { padding-block: .7rem .64rem; font-size: 1.3rem; }
}
@media (max-height: 660px) {
    .bl-cover { padding-top: calc(.7rem + env(safe-area-inset-top)); }
    .bl-cover__kicker { margin-bottom: .35rem; }
    .bl-cover__kicker em { font-size: 1.8rem; }
    .bl-cover__label { font-size: 1.55rem; }
    .bl-cover__amp em { font-size: 1.6rem; }
    .bl-cover__panel { gap: .5rem; margin-top: .55rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
    .bl-cover__dm { font-size: 1.95rem; }
    .bl-cover__quote { -webkit-line-clamp: 4; }
}
@media (max-height: 580px) {
    .bl-cover__seal { width: 4rem; top: .5rem; }
    .bl-cover__kicker em { font-size: 1.55rem; }
    .bl-cover__label { font-size: 1.35rem; }
    .bl-cover__quote { -webkit-line-clamp: 3; font-size: .86rem; }
}

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

/* ---------- page end: the last marquee, then the room of the music button + "Gulir" pill ---------- */
/* the music player adds its own 4.5rem space under the page; without music the foot keeps a short margin */
.bl-foot { padding-bottom: 3.3rem; }
/* the music player's space continues the page (not the wide-screen backdrop) */
.bl-body .inv-music__space { position: relative; width: var(--bl-col); margin: 0 auto; background: var(--inv-background); }
