/*
 * Boho Pampas — muted, airy modern boho: cream linen, sand arches, fluffy pampas plumes,
 * dried palm spears, bunny tails and dried roses (inline SVG from _sprite), photos in woven
 * rattan rings, macramé garlands. Ephesis + Cormorant Garamond + Jost.
 * Colors come from the variant (--inv-primary, --inv-accent, --inv-background, --inv-text,
 * --inv-sand, --inv-pampas, --inv-rust, --inv-deep). --inv-rust is the one clear accent: times, dates,
 * countdown numbers, buttons and the active menu. All template classes start with "bh-".
 */

:root {
    --inv-primary: #866650;
    --inv-accent: #c4876a;
    --inv-background: #f7f1e8;
    --inv-text: #46382e;
    --inv-sand: #e7dac8;
    --inv-pampas: #d9c6ab;
    --inv-rust: #a9532f;
    --inv-deep: #5e4636;
    --inv-radius: 18px;

    --bh-col: 460px;
    --bh-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --bh-script: 'Ephesis', 'Cormorant Garamond', cursive;
    --bh-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bh-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

    /* ornament colors (used inside the SVG sprite) */
    --bh-plume: color-mix(in srgb, var(--inv-pampas) 72%, var(--inv-primary));
    --bh-plume-soft: color-mix(in srgb, var(--inv-pampas) 75%, transparent);
    --bh-stem: color-mix(in srgb, var(--inv-primary) 72%, var(--inv-pampas));
    --bh-palm: color-mix(in srgb, var(--inv-pampas) 62%, var(--inv-accent));
    --bh-bunny: color-mix(in srgb, var(--inv-background) 45%, var(--inv-pampas));
    --bh-bunny-soft: color-mix(in srgb, var(--inv-pampas) 80%, transparent);
    --bh-rose: var(--inv-rust);
    --bh-rose-deep: var(--inv-deep);
    --bh-cord: color-mix(in srgb, var(--inv-primary) 62%, var(--inv-pampas));
    --bh-wood: var(--inv-accent);
    --bh-rattan: color-mix(in srgb, var(--inv-pampas) 72%, var(--inv-primary));
    --bh-rattan-light: color-mix(in srgb, var(--inv-pampas) 45%, var(--inv-background));

    --bh-muted: color-mix(in srgb, var(--inv-text) 82%, var(--inv-background));
    --bh-line: color-mix(in srgb, var(--inv-primary) 32%, transparent);
    --bh-line-strong: color-mix(in srgb, var(--inv-primary) 55%, transparent);
    --bh-card: color-mix(in srgb, #fff 58%, var(--inv-background));
    --bh-linen:
        repeating-linear-gradient(0deg, rgb(90 70 50 / .018) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgb(90 70 50 / .016) 0 1px, transparent 1px 4px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.bh-body {
    margin: 0;
    background: var(--inv-background);
    color: var(--inv-text);
    font: 400 1.12rem/1.65 var(--bh-serif);
    font-variant-numeric: lining-nums;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

/* ---------- wide screens: a sand backdrop with big faded bouquets around the column ---------- */
.bh-backdrop {
    position: fixed; inset: 0; z-index: 0; overflow: hidden;
    background:
        radial-gradient(ellipse 60% 50% at 15% 85%, color-mix(in srgb, var(--inv-pampas) 45%, transparent), transparent 70%),
        radial-gradient(ellipse 55% 45% at 85% 15%, color-mix(in srgb, var(--inv-accent) 22%, transparent), transparent 70%),
        var(--bh-linen),
        var(--inv-sand);
}
.bh-backdrop__bouquet { position: absolute; width: min(42vw, 520px); height: auto; aspect-ratio: 1; opacity: .55; overflow: visible; }
.bh-backdrop__bouquet--l { left: -2vw; bottom: -2vw; }
.bh-backdrop__bouquet--r { right: -2vw; top: -2vw; }
@media (max-width: 760px) { .bh-backdrop__bouquet { display: none; } }

.bh-page {
    position: relative; z-index: 1;
    width: 100%; max-width: var(--bh-col); min-height: 100vh; margin: 0 auto;
    background: var(--bh-linen), var(--inv-background);
    overflow-x: clip;
}
@media (min-width: 520px) {
    .bh-page { box-shadow: 0 0 0 1px var(--bh-line), 0 30px 90px -20px rgb(70 50 35 / .35); }
}

.bh-preview {
    position: fixed; top: 0; left: 50%; z-index: 60; transform: translateX(-50%);
    width: max-content; max-width: calc(100vw - 2rem); padding: .4rem 1rem;
    border-radius: 0 0 12px 12px; background: var(--inv-primary); color: var(--inv-background);
    font: 500 .72rem/1.3 var(--bh-sans); text-align: center;
}

/* ---------- ornaments ---------- */
.bh-corners { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bh-corner { position: absolute; width: 150px; height: 150px; overflow: visible; will-change: transform; }
.bh-corner--bl { bottom: -8px; left: -10px; transform-origin: 0 100%; }
.bh-corner--br { bottom: -8px; right: -10px; transform-origin: 100% 100%; animation-delay: -3s; }
.bh-corner--tl { top: -8px; left: -10px; transform-origin: 0 0; animation-delay: -5s; }
.bh-corner--tr { top: -8px; right: -10px; transform-origin: 100% 0; animation-delay: -2s; }
@keyframes bh-sway { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
.bh-corner { animation: bh-sway 9s ease-in-out infinite; }

.bh-sprig { display: block; width: 10.5rem; height: auto; aspect-ratio: 220 / 40; margin: 0 auto; overflow: visible; }
.bh-macrame { display: block; width: 12rem; height: auto; aspect-ratio: 240 / 72; margin: 0 auto 1.6rem; overflow: visible; }

/* woven rattan ring around a photo */
.bh-ring { position: relative; width: 12rem; aspect-ratio: 1; margin: 0 auto 1.3rem; }
.bh-ring__weave {
    position: absolute; inset: 0; border-radius: 50%;
    background:
        radial-gradient(farthest-side, transparent calc(100% - 7px), color-mix(in srgb, var(--inv-primary) 35%, transparent) calc(100% - 6.5px), transparent calc(100% - 5.5px)),
        repeating-conic-gradient(from 0deg, var(--bh-rattan) 0 2.2deg, var(--bh-rattan-light) 2.2deg 4.4deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 12px), #000 calc(100% - 11.5px));
    box-shadow: 0 14px 30px -18px rgb(70 50 35 / .55);
}
/* a thin outer line, a little apart from the weave */
.bh-ring::before {
    content: ''; position: absolute; inset: -7px; border-radius: 50%;
    border: 1px solid var(--bh-line); pointer-events: none;
}
.bh-ring__img {
    position: absolute; inset: 16px; display: block; width: calc(100% - 32px); height: calc(100% - 32px);
    border-radius: 50%; object-fit: cover;
    box-shadow: 0 0 0 1px var(--bh-line-strong), 0 0 0 4px var(--inv-background);
}
img.bh-ring__img { filter: saturate(.85) sepia(.08); }
.bh-ring__empty {
    display: grid; place-items: center;
    background: radial-gradient(circle at 40% 35%, var(--bh-card), var(--inv-sand));
    font: 400 3.8rem/1 var(--bh-script); color: var(--inv-primary);
}
.bh-ring__tuck { position: absolute; left: -22%; bottom: -16%; width: 60%; height: auto; aspect-ratio: 1; overflow: visible; pointer-events: none; }

/* monogram on a cream disc at the bottom of the cover ring */
.bh-mono {
    display: flex; align-items: center; justify-content: center; gap: .2rem;
    width: 3.9rem; height: 3.9rem; margin: 0 auto; border-radius: 50%;
    background: var(--inv-background); border: 1px solid var(--bh-line-strong);
    box-shadow: 0 0 0 4px var(--inv-background), 0 0 0 5px var(--bh-line), 0 8px 18px -8px rgb(70 50 35 / .4);
    font: 500 1.15rem/1 var(--bh-serif); color: var(--inv-primary); letter-spacing: .02em;
}
.bh-mono__dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--inv-rust); }

/* ---------- cover ---------- */
.bh-cover {
    position: fixed; inset: 0; z-index: 30;
    width: min(100%, var(--bh-col)); margin-inline: auto;
    overflow: hidden; color: var(--inv-text);
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, color-mix(in srgb, var(--inv-sand) 70%, transparent), transparent 70%),
        var(--bh-linen), var(--inv-background);
}
/* a tall sand arch behind the portrait and names */
.bh-cover__arch {
    position: absolute; left: 50%; top: 13%; bottom: 20%; width: min(78%, 330px); transform: translateX(-50%);
    border-radius: 999px 999px 24px 24px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--inv-sand) 85%, transparent), color-mix(in srgb, var(--inv-sand) 35%, transparent));
}
.bh-cover__arch::before {
    content: ''; position: absolute; inset: -9px; border-radius: inherit; border: 1px solid var(--bh-line);
}
.bh-cover .bh-corner { width: 190px; height: 190px; }

.bh-cover__inner {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    padding: clamp(.8rem, 2.5vh, 1.6rem) 1.6rem clamp(1.6rem, 4.5vh, 2.6rem);
    text-align: center;
}
.bh-cover__top, .bh-cover__middle, .bh-cover__bottom { width: 100%; }
.bh-macrame--cover { width: 11rem; margin-bottom: .7rem; }
.bh-cover__kicker { font: 400 .74rem/1.4 var(--bh-sans); letter-spacing: .42em; text-transform: uppercase; color: var(--inv-primary); padding-left: .42em; }

.bh-cover__portrait { position: relative; width: clamp(8.5rem, 25vh, 12rem); margin: 0 auto; }
.bh-ring--cover { width: 100%; margin: 0; }
.bh-ring--cover .bh-ring__tuck { left: -30%; bottom: -12%; width: 62%; }
.bh-cover__portrait .bh-mono { position: absolute; left: 50%; bottom: -.4rem; transform: translate(-50%, 45%); }
.bh-ring--cover:has(.bh-ring__empty) + .bh-mono { bottom: 50%; transform: translate(-50%, 50%); width: 5rem; height: 5rem; font-size: 1.4rem; }

.bh-cover__names {
    display: flex; flex-direction: column; align-items: center;
    margin-top: 2.4rem; color: var(--inv-deep);
    font: 400 clamp(2.9rem, 8vh, 4rem)/1 var(--bh-script);
}
.bh-cover__names > span { padding: 0 .2em; }
.bh-cover__amp { margin: .1rem 0; font: italic 400 1.5rem/1 var(--bh-serif); color: var(--inv-rust); }
.bh-cover__date {
    display: flex; align-items: center; justify-content: center; gap: .7rem;
    margin-top: .9rem; font: 400 .76rem/1.4 var(--bh-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--inv-text);
}
.bh-cover__rule { flex: 0 0 1.6rem; height: 1px; background: var(--bh-line-strong); }
.bh-cover__quote { max-width: 18rem; margin: .6rem auto 0; font-style: italic; font-size: 1rem; line-height: 1.45; color: var(--bh-muted); }

.bh-guest {
    position: relative; max-width: 16.5rem; margin: 0 auto;
    padding: .75rem 1.2rem .8rem;
    border: 1px solid var(--bh-line-strong); border-radius: 999px;
    background: color-mix(in srgb, var(--bh-card) 85%, transparent);
    box-shadow: 0 10px 24px -16px rgb(70 50 35 / .45);
}
.bh-guest__label { font: 400 .62rem/1.4 var(--bh-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--inv-primary); }
.bh-guest__name { display: block; margin-top: .1rem; font: 600 1.25rem/1.3 var(--bh-serif); color: var(--inv-text); overflow-wrap: anywhere; }

.bh-open { margin-top: 1rem; }

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

/* cover fit: the three blocks share the screen; on shorter phones everything tightens (the quote drops to two
   lines, never vanishes) so "Buka Undangan" stays fully on screen; it can still scroll as a last resort */
.bh-cover { overflow-y: auto; overscroll-behavior: contain; }
.bh-cover__inner { height: auto; min-height: 100%; }
.bh-cover__quote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
@media (max-height: 760px) {
    .bh-macrame--cover { width: 8.5rem; margin-bottom: .4rem; }
    .bh-cover__portrait { width: min(10.5rem, 22svh); }
    .bh-cover__names { margin-top: 1.9rem; font-size: clamp(2.5rem, 7svh, 3.2rem); }
    .bh-cover__amp { font-size: 1.3rem; }
    .bh-cover__date { margin-top: .6rem; }
    .bh-cover__quote { margin-top: .45rem; font-size: .93rem; line-height: 1.4; -webkit-line-clamp: 6; }
    .bh-open { margin-top: .75rem; }
}
@media (max-height: 660px) {
    /* space-between pins "Buka Undangan" to the bottom padding: keep it 2rem clear of the screen's edge */
    .bh-cover__inner { padding-top: .7rem; padding-bottom: 2rem; }
    .bh-guest { padding: .6rem 1.1rem .65rem; }
    .bh-macrame--cover { width: 6.2rem; margin-bottom: .1rem; }
    .bh-cover__portrait { width: min(8.6rem, 20svh); }
    /* the names on one line: "Dimas & Rina" */
    .bh-cover__names { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: .2rem; margin-top: 1.6rem; font-size: clamp(2.2rem, 10vw, 2.5rem); line-height: 1.1; }
    .bh-cover__amp { margin: 0; }
    .bh-guest__name { font-size: 1.12rem; }
    .bh-open { margin-top: .5rem; }
}
@media (max-height: 600px) {
    .bh-macrame--cover { display: none; }
    .bh-cover__portrait { width: 7rem; }
}

/* ---------- buttons ---------- */
.inv-button {
    padding: .85rem 1.5rem; border-radius: 999px;
    background: var(--inv-rust); color: #fff;
    font: 600 .7rem/1.2 var(--bh-sans); letter-spacing: .18em; text-transform: uppercase;
    box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--inv-deep) 80%, transparent);
    transition: background .25s ease, transform .2s ease;
}
.inv-button:hover { background: var(--inv-deep); }
.inv-button svg { flex: none; }
.inv-button--outline {
    background: color-mix(in srgb, var(--bh-card) 80%, transparent); color: var(--inv-deep);
    box-shadow: inset 0 0 0 1.5px var(--inv-deep);
}
.inv-button--outline:hover { background: color-mix(in srgb, var(--inv-primary) 10%, var(--inv-background)); }

/* ---------- sections ---------- */
.bh-section { position: relative; padding: 4.4rem 1.5rem 4rem; text-align: center; }
/* a soft dotted seam between sections, with a little bunny-tail dot */
.bh-section + .bh-section::before {
    content: ''; position: absolute; top: 0; left: 50%; width: 9rem; height: 1px; transform: translateX(-50%);
    background: radial-gradient(circle, var(--bh-line-strong) 1px, transparent 1.4px) 0 0 / 7px 1px repeat-x;
}
.bh-section + .bh-section::after {
    content: ''; position: absolute; top: 0; left: 50%; width: 9px; height: 9px; border-radius: 50%;
    transform: translate(-50%, -50%); background: var(--inv-rust); box-shadow: 0 0 0 4px var(--inv-background);
}
.bh-section > * { position: relative; }
.bh-section > .bh-corners { position: absolute; }
/* alternating tones for rhythm: light linen, tinted sand sheets, and the dark band (countdown) */
.bh-couple, .bh-story, .bh-gift, .bh-wishes { background: var(--bh-linen), color-mix(in srgb, var(--inv-sand) 78%, var(--inv-background)); }
.bh-section:is(.bh-couple, .bh-story, .bh-gift, .bh-wishes)::after { box-shadow: 0 0 0 4px color-mix(in srgb, var(--inv-sand) 78%, var(--inv-background)); }
.bh-band--dark {
    --bh-muted: color-mix(in srgb, var(--inv-background) 78%, var(--inv-deep));
    overflow: hidden; color: var(--inv-background);
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, color-mix(in srgb, var(--inv-rust) 30%, transparent), transparent 70%),
        linear-gradient(160deg, var(--inv-deep), color-mix(in srgb, var(--inv-deep) 75%, #000));
}
.bh-band--dark::after { box-shadow: 0 0 0 4px var(--inv-deep) !important; }
.bh-band--dark .bh-head__label { color: color-mix(in srgb, var(--inv-rust) 45%, #fff); }
.bh-band--dark .bh-head__title { color: var(--inv-background); }
.bh-band--dark .bh-countdown__date { color: var(--inv-background); }
.bh-countdown > .bh-countdown__deco { position: absolute; right: -3.5rem; bottom: -2.5rem; z-index: 0; width: 15rem; opacity: .22; pointer-events: none; }
.bh-countdown__deco svg { display: block; width: 100%; height: auto; overflow: visible; }
.bh-band--dark .inv-countdown__actions .inv-button--outline { background: transparent; color: var(--inv-background); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--inv-background) 80%, transparent); }

.bh-head { margin-bottom: 2rem; }
.bh-head__label { font: 500 .66rem/1.4 var(--bh-sans); letter-spacing: .34em; text-transform: uppercase; color: var(--inv-rust); padding-left: .34em; }
/* the handwritten title settles from wide spacing as it arrives */
html.inv-anim .bh-head__title { transition: letter-spacing 1.3s cubic-bezier(.16, 1, .3, 1) .15s; letter-spacing: .06em; }
html.inv-anim .bh-head.is-revealed .bh-head__title { letter-spacing: 0; }
.bh-head__title { margin: .2rem 0 .4rem; font: 400 2.9rem/1.15 var(--bh-script); word-spacing: .14em; color: var(--inv-deep); text-wrap: balance; }

.bh-text { max-width: 24rem; margin: 0 auto 1rem; color: var(--bh-muted); font-size: 1.1rem; line-height: 1.7; }

/* a soft linen card (quote, live streaming, forms) */
.bh-card {
    position: relative; max-width: 24rem; margin: 0 auto; padding: 1.6rem 1.3rem;
    border-radius: 22px; border: 1px solid var(--bh-line);
    background: var(--bh-linen), var(--bh-card);
    box-shadow: 0 24px 46px -30px rgb(70 50 35 / .5);
    text-align: left;
}
.bh-card--arch { border-radius: 999px 999px 22px 22px; padding-top: 3.2rem; }
.bh-card > * { position: relative; }

/* opening */
.bh-opening { padding-top: 4rem; }
.bh-opening .bh-corner { width: 120px; height: 120px; }
.bh-arabic { margin: 0 0 1rem; font: 400 1.6rem/2 'Amiri', serif; color: var(--inv-primary); }
.bh-opening__greeting { margin-bottom: .9rem; font: italic 500 1.25rem/1.5 var(--bh-serif); color: var(--inv-deep); }
.bh-quote { margin-top: 2.4rem; text-align: center; }
.bh-quote__sprig { display: block; width: 8rem; height: auto; aspect-ratio: 220 / 40; margin: -1.4rem auto .8rem; overflow: visible; }
.bh-quote blockquote { margin: 0; font-style: italic; font-size: 1.12rem; line-height: 1.65; color: var(--inv-text); }
.bh-quote figcaption { margin-top: .9rem; font: 400 .66rem/1.4 var(--bh-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--inv-primary); }

/* couple */
.bh-person { max-width: 22rem; margin: 0 auto; }
.bh-ring--person { width: 12rem; }
.bh-person--bride .bh-ring__tuck { left: auto; right: -22%; transform: scaleX(-1); }
.bh-person__role { margin-top: .4rem; font: 400 .64rem/1.4 var(--bh-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--inv-primary); }
.bh-person__nick { margin: .1rem 0 0; font: 400 3.2rem/1.15 var(--bh-script); color: var(--inv-deep); }
.bh-person__name { font: 600 1.15rem/1.4 var(--bh-serif); letter-spacing: .02em; color: var(--inv-text); }
.bh-person__parents { margin-top: .6rem; font-size: 1.05rem; line-height: 1.5; color: var(--bh-muted); }
.bh-person__parents strong { font-weight: 600; color: var(--inv-text); }
.bh-ig { margin-top: 1rem; padding: .55rem 1.05rem; font-size: .68rem; letter-spacing: .08em; text-transform: none; }
.bh-amp { position: relative; display: grid; place-items: center; margin: 2.4rem 0 2.2rem; }
.bh-amp svg { width: 13rem; height: auto; aspect-ratio: 220 / 40; overflow: visible; opacity: .9; }
.bh-amp b {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -62%);
    display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
    background: var(--inv-background); box-shadow: 0 0 0 1px var(--bh-line-strong);
    font: italic 400 1.7rem/1 var(--bh-serif); color: var(--inv-rust);
}

/* countdown: four circles with a woven edge */
.bh-countdown__date { margin: -.4rem 0 1.5rem; font: 400 .8rem/1.5 var(--bh-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--inv-primary); }
.inv-countdown { gap: .5rem; }
.inv-countdown__item {
    position: relative; flex: 1 1 0; min-width: 0; max-width: 5.2rem; aspect-ratio: 1;
    display: flex; flex-direction: column; justify-content: center; padding: 0;
    border-radius: 50%; background: var(--bh-card);
    box-shadow: 0 12px 22px -16px rgb(70 50 35 / .55);
}
.inv-countdown__item::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: repeating-conic-gradient(var(--bh-rattan) 0 3deg, var(--bh-rattan-light) 3deg 6deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
}
.inv-countdown__value, .inv-countdown__label { position: relative; z-index: 1; }
.inv-countdown__value { font: 500 1.5rem/1 var(--bh-sans); color: var(--inv-rust); }
.inv-countdown__label { margin-top: .2rem; font: 400 .56rem/1.2 var(--bh-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--bh-muted); opacity: 1; }
.inv-countdown__done { font-style: italic; color: var(--bh-muted); }
.inv-countdown__actions { margin-top: 1.6rem; gap: .6rem; }
.inv-countdown__actions .inv-button { padding: .68rem 1rem; font-size: .62rem; letter-spacing: .12em; }

/* ---------- zig-zag timeline (events and love story) ---------- */
.bh-zz { position: relative; max-width: 26rem; margin: 0 auto; padding: .4rem 0; list-style: none; }
.bh-zz::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%);
    background: repeating-linear-gradient(180deg, var(--bh-line-strong) 0 6px, transparent 6px 11px);
    -webkit-mask: linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
    mask: linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
}
.bh-zz__item {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 1.3rem minmax(0, 1fr);
    align-items: start; column-gap: .55rem; padding-bottom: 2.6rem;
}
.bh-zz__item:last-child { padding-bottom: 0; }
.bh-zz__main { grid-column: 1; grid-row: 1; text-align: right; }
.bh-zz__node { grid-column: 2; grid-row: 1; justify-self: center; }
.bh-zz__side { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; text-align: left; }
.bh-zz__item--flip .bh-zz__main { grid-column: 3; text-align: left; }
.bh-zz__item--flip .bh-zz__side { grid-column: 1; align-items: flex-end; text-align: right; }

/* a woven bead on the line */
.bh-zz__node {
    width: 15px; height: 15px; margin-top: .55rem; border-radius: 50%;
    background: repeating-conic-gradient(var(--bh-rattan) 0 15deg, var(--bh-rattan-light) 15deg 30deg);
    box-shadow: 0 0 0 3px var(--inv-background), 0 0 0 4px var(--bh-line-strong);
}
.bh-zz__node--num {
    display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-top: .2rem;
    background: var(--inv-rust); color: #fff; font: 600 .72rem/1 var(--bh-sans);
    box-shadow: 0 0 0 3px var(--bh-node-ring, var(--inv-background)), 0 0 0 4px var(--bh-line-strong);
}
.bh-story { --bh-node-ring: color-mix(in srgb, var(--inv-sand) 78%, var(--inv-background)); }
.bh-zz__item:has(.bh-zz__node--num) { grid-template-columns: minmax(0, 1fr) 1.6rem minmax(0, 1fr); padding-bottom: 2rem; }
html.inv-anim .bh-zz__node--num { transform: scale(0); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) .4s; }
html.inv-anim .bh-zz__item.is-revealed .bh-zz__node--num { transform: none; }
.bh-zz__rule { display: block; width: 70%; height: 0; margin: .4rem 0 .6rem auto; border-top: 2px dotted var(--bh-line-strong); }
.bh-zz__item--flip .bh-zz__rule { margin-left: 0; margin-right: auto; }

.bh-zz__emblem {
    display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: var(--bh-card); border: 1px solid var(--bh-line-strong);
    box-shadow: 0 0 0 3px var(--inv-background), 0 0 0 4px var(--bh-line);
}
.bh-zz__emblem svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: var(--inv-rust); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.bh-zz__photo {
    position: relative; width: min(5.8rem, 100%); margin: .2rem 0 0; padding: 6px; border-radius: 50%;
    background: repeating-conic-gradient(var(--bh-rattan) 0 3deg, var(--bh-rattan-light) 3deg 6deg);
    box-shadow: 0 0 0 4px var(--inv-background), 0 0 0 5px var(--bh-line), 0 10px 22px -12px rgb(70 50 35 / .55);
}
.bh-zz__photo img { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--inv-background); filter: saturate(.85) sepia(.08); }

/* events in the timeline */
.bh-event__name { font: 400 2.05rem/1.05 var(--bh-script); color: var(--inv-deep); overflow-wrap: anywhere; }
.bh-event__list { display: grid; gap: .5rem; margin: 0 0 .85rem; padding: 0; list-style: none; }
.bh-event__list li { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: .4rem; }
.bh-zz__item--flip .bh-event__list li { flex-direction: row; }
.bh-event__list svg {
    flex: none; width: .95rem; height: .95rem; margin-top: .25rem;
    fill: none; stroke: var(--inv-rust); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.bh-event__list li > span { min-width: 0; font-size: .98rem; line-height: 1.4; color: var(--inv-text); overflow-wrap: anywhere; }
.bh-event__venue { display: block; font: 600 1rem/1.3 var(--bh-serif); color: var(--inv-deep); }
.bh-event__address { display: block; margin-top: .1rem; font-size: .94rem; color: var(--bh-muted); }
.bh-event__time { margin: 0; line-height: 1; }
.bh-event__clock { font: 400 1.9rem/1.05 var(--bh-sans); color: var(--inv-rust); letter-spacing: .01em; }
.bh-event__time small {
    display: flex; align-items: center; gap: .3rem; margin-top: .35rem;
    font: 400 .62rem/1.35 var(--bh-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bh-muted);
}
.bh-zz__item--flip .bh-event__time small { justify-content: flex-end; }
.bh-event__time small svg { flex: none; width: .8rem; height: .8rem; fill: none; stroke: var(--inv-rust); stroke-width: 1.8; stroke-linecap: round; }
.bh-zz .inv-maps { text-align: inherit; }
.bh-zz .inv-maps .inv-button { padding: .5rem .8rem; font-size: .58rem; letter-spacing: .1em; }

/* love story in the timeline */
.bh-moment__title { font: 600 1.15rem/1.3 var(--bh-serif); color: var(--inv-deep); overflow-wrap: anywhere; }
.bh-moment__story { font-size: 1rem; line-height: 1.5; color: var(--bh-muted); overflow-wrap: anywhere; }
.bh-moment__date { font: 400 1.75rem/1.1 var(--bh-script); color: var(--inv-rust); overflow-wrap: anywhere; }

/* gallery (slider): rounded thumbnails, rust ring on the active one, an arched stage */
.inv-gallery-slider { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.inv-gallery-slider__thumb { border-radius: 12px; opacity: .6; }
.inv-gallery-slider__thumb.is-active { border-color: var(--inv-rust); opacity: 1; }
.inv-gallery-slider__arrow { background: var(--inv-deep); color: var(--inv-background); box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-pampas) 60%, transparent); }
.inv-gallery-slider__stage { border-radius: 999px 999px 18px 18px / 40% 40% 18px 18px; box-shadow: 0 0 0 6px var(--bh-card), 0 0 0 7px var(--bh-line), 0 26px 44px -26px rgb(70 50 35 / .6); }
.inv-gallery-slider__slide img { filter: saturate(.9) sepia(.05); }
.inv-gallery-slider__count { background: color-mix(in srgb, var(--inv-deep) 80%, transparent); font-family: var(--bh-sans); }
.inv-gallery { gap: 7px; }
.inv-gallery__item { border-radius: 14px; background: var(--inv-sand); }
.inv-gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; border-radius: 999px 999px 14px 14px; }
.inv-gallery__item img { filter: saturate(.88) sepia(.06); }
.inv-gallery__item::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 35%, transparent);
}

/* live streaming */
.bh-live__card { text-align: center; }
.bh-live__badge { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem; font: 400 .68rem/1.4 var(--bh-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--inv-primary); }
.bh-live__badge span { width: 8px; height: 8px; border-radius: 50%; background: #d4483f; box-shadow: 0 0 0 0 rgb(212 72 63 / .6); }
@keyframes bh-live { 70% { box-shadow: 0 0 0 8px rgb(212 72 63 / 0); } 100% { box-shadow: 0 0 0 0 rgb(212 72 63 / 0); } }
html.inv-anim .bh-live__badge span { animation: bh-live 2s ease-out infinite; }
.bh-live__note { margin: -.3rem 0 1.2rem; font-style: italic; color: var(--inv-text); }

/* forms */
.inv-form { gap: .9rem; }
.inv-form label, .inv-form__choices legend { font: 400 .76rem/1.4 var(--bh-sans); letter-spacing: .04em; color: var(--bh-muted); }
.inv-form input:not([type=radio]):not([type=checkbox]), .inv-form select, .inv-form textarea {
    padding: .75rem .9rem; border: 1px solid var(--bh-line-strong); border-radius: 14px;
    background: color-mix(in srgb, #fff 70%, var(--inv-background)); color: var(--inv-text);
    font: 500 1.05rem/1.4 var(--bh-serif);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.inv-form input::placeholder, .inv-form textarea::placeholder { color: color-mix(in srgb, var(--inv-text) 45%, transparent); }
.inv-form input:focus, .inv-form select:focus, .inv-form textarea:focus {
    outline: none; border-color: var(--inv-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-primary) 18%, transparent);
}
.inv-form__choices { gap: .5rem .9rem; }
.inv-form__choices label { color: var(--inv-text); font-size: .86rem; }
.inv-form input[type=radio], .inv-form input[type=checkbox] { accent-color: var(--inv-primary); }
.inv-form > .inv-button { width: 100%; margin-top: .3rem; }
.inv-form__notice { border-radius: 12px; border-left: 3px solid var(--inv-rust); background: color-mix(in srgb, var(--inv-rust) 10%, transparent); color: var(--inv-text); font-family: var(--bh-sans); font-size: .82rem; }
.inv-rsvp__deadline { margin-bottom: 1rem; font: 400 .78rem/1.5 var(--bh-sans); letter-spacing: .04em; color: var(--inv-primary); text-align: center; }

/* wishes: soft cards, three per page */
.inv-wishes__list { margin-top: 1.4rem; gap: .55rem; }
.inv-wishes:not(.inv-wishes--paged) { --inv-wishes-height: 20rem; }
.inv-wishes__empty { font-style: italic; color: var(--bh-muted); opacity: 1; text-align: center; }
.inv-wish {
    padding: .7rem .9rem; border-radius: 16px;
    border: 1px solid var(--bh-line);
    background: color-mix(in srgb, #fff 62%, var(--inv-background));
    box-shadow: 0 8px 18px -14px rgb(70 50 35 / .45);
}
.inv-wish__name { font: 600 1rem/1.35 var(--bh-serif); color: var(--inv-deep); }
.inv-wish__message { font-size: .98rem; line-height: 1.45; color: var(--inv-text); }
.inv-wish__time { font: 400 .68rem/1.4 var(--bh-sans); letter-spacing: .03em; color: var(--bh-muted); opacity: .9; }
.inv-wish__reply { border-left-color: var(--inv-rust); background: color-mix(in srgb, var(--inv-sand) 50%, transparent); }
.inv-wish__reply-label { font-family: var(--bh-sans); color: var(--inv-primary); opacity: 1; }
.inv-wishes__pager { gap: .9rem; margin-top: 1rem; }
.inv-wishes__page-button {
    display: grid; place-items: center; width: 2.3rem; height: 2.3rem; padding: 0; border-radius: 50%;
    border: 0; background: var(--bh-card); color: var(--inv-primary); cursor: pointer;
    box-shadow: inset 0 0 0 1px var(--bh-line-strong); font: 500 1.2rem/1 var(--bh-sans);
    transition: background .2s ease, color .2s ease;
}
.inv-wishes__page-button:not(:disabled):hover { background: var(--inv-primary); color: var(--inv-background); }
.inv-wishes__page { font: 400 .76rem/1 var(--bh-sans); letter-spacing: .16em; color: var(--bh-muted); opacity: 1; }

/* gift: accounts as small taupe bank cards, two per row (an odd last one spans the row) */
.inv-gift { display: grid; gap: .9rem; max-width: 24rem; margin: 1.6rem auto 0; text-align: left; }
.inv-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.inv-gift__account:last-child:nth-child(odd) { grid-column: 1 / -1; }
.inv-gift__account + .inv-gift__account { margin-top: 0; }
.inv-gift__account {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
    min-width: 0; padding: .8rem .8rem .75rem;
    border: 0; border-radius: 16px;
    background:
        radial-gradient(ellipse 70% 90% at 110% -10%, color-mix(in srgb, var(--inv-accent) 55%, transparent), transparent 70%),
        radial-gradient(circle at 0% 120%, color-mix(in srgb, var(--inv-pampas) 35%, transparent), transparent 55%),
        linear-gradient(140deg, var(--inv-primary), var(--inv-deep));
    box-shadow: 0 18px 30px -18px rgb(70 50 35 / .7), inset 0 1px 0 rgb(255 255 255 / .18);
    color: var(--inv-background);
}
/* the chip */
.inv-gift__account::before {
    content: ''; order: 1; width: 2.2rem; height: 1.65rem; margin: .6rem 0 .1rem; border-radius: 5px;
    background:
        linear-gradient(90deg, transparent 31%, rgb(0 0 0 / .22) 31% 34%, transparent 34% 66%, rgb(0 0 0 / .22) 66% 69%, transparent 69%),
        linear-gradient(0deg, transparent 46%, rgb(0 0 0 / .22) 46% 54%, transparent 54%),
        linear-gradient(135deg, var(--inv-background), var(--inv-pampas) 55%, var(--inv-accent));
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18);
}
/* a faint woven circle in the corner */
.inv-gift__account::after {
    content: ''; position: absolute; right: -1.6rem; bottom: -1.6rem; width: 5.5rem; height: 5.5rem; border-radius: 50%;
    background: repeating-conic-gradient(rgb(255 255 255 / .16) 0 4deg, transparent 4deg 8deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8.5px));
    pointer-events: none;
}
.inv-gift__bank { order: 0; display: flex; align-items: center; max-width: 100%; min-height: 1.5rem; margin: 0; font: 500 .8rem/1.3 var(--bh-sans); letter-spacing: .04em; color: var(--inv-background); overflow-wrap: anywhere; }
.inv-gift__account .inv-gift__logo { height: 1.5rem; padding: .2rem .45rem; border-radius: .4rem; }
.inv-gift__account .inv-gift__logo img { max-width: 4.6rem; }
.inv-gift__number {
    order: 2; max-width: 100%; margin: .5rem 0 .15rem;
    font: 500 .98rem/1.3 var(--bh-mono); letter-spacing: .05em; color: var(--inv-background);
    overflow-wrap: anywhere;
}
.inv-gift__holder { order: 3; max-width: 100%; margin: 0 0 .65rem; font: 400 .6rem/1.4 var(--bh-sans); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--inv-background) 85%, transparent); overflow-wrap: anywhere; }
.inv-gift__account .inv-button {
    position: relative; z-index: 1; order: 4; margin-top: auto; padding: .4rem .75rem; font-size: .6rem; letter-spacing: .1em;
    background: var(--inv-background); color: var(--inv-deep); box-shadow: none;
}

/* the gift address: a plain linen card */
.inv-gift__account.inv-gift__address {
    min-height: 0; padding: 1.3rem; border-radius: 18px; border: 1px solid var(--bh-line);
    background: var(--bh-linen), var(--bh-card); color: var(--inv-text);
    box-shadow: 0 16px 30px -24px rgb(70 50 35 / .5);
}
.inv-gift__account.inv-gift__address::before, .inv-gift__account.inv-gift__address::after { display: none; }
.inv-gift__address .inv-gift__bank { font: 400 .66rem/1.4 var(--bh-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--inv-primary); min-height: 0; }
.inv-gift__address .inv-gift__holder { order: 1; margin: .5rem 0 .2rem; font: 600 1.1rem/1.4 var(--bh-serif); letter-spacing: 0; text-transform: none; color: var(--inv-text); }
.inv-gift__address > p:not([class]) { order: 2; margin-bottom: 1rem; color: var(--bh-muted); line-height: 1.55; }
.inv-gift__address .inv-button { background: var(--inv-primary); color: var(--inv-background); }

/* closing */
.bh-closing { padding-bottom: 5rem; }
.bh-ring--closing { width: 13.5rem; margin-bottom: 2rem; }
.bh-closing .bh-head__label { margin-bottom: .9rem; }
.bh-closing__sign { margin: 1.2rem 0 .1rem; font-style: italic; font-size: 1.08rem; color: var(--bh-muted); }
.bh-closing__names { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 .5rem; margin-bottom: 1.6rem; font: 400 3.1rem/1.25 var(--bh-script); color: var(--inv-deep); }
.bh-closing__amp { font: italic 400 1.5rem/1 var(--bh-serif); color: var(--inv-rust); }
.bh-closing .bh-macrame { margin-bottom: 0; }

/* ---------- shared components in the theme ---------- */
.inv-checkin { color: #2a2a2a; border-radius: 22px; }
.inv-checkin__title { color: var(--inv-primary); }

.bh-branding { font: 400 .74rem/1.5 var(--bh-sans); letter-spacing: .04em; color: var(--bh-muted); opacity: .95; }
.bh-branding a { color: var(--inv-primary); }

/* music button: taupe, inside the column */
.bh-body .inv-music__space { display: none; }
.bh-body .inv-music { right: max(1rem, calc(50vw - var(--bh-col) / 2 + 1rem)); }
.inv-music__button {
    background: var(--inv-primary); color: var(--inv-background);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--inv-background) 80%, transparent), 0 8px 20px -6px rgb(70 50 35 / .55);
}

/* bottom menu with labels */
.inv-nav {
    --inv-nav-bg: color-mix(in srgb, var(--bh-card) 92%, transparent);
    --inv-nav-text: color-mix(in srgb, var(--inv-text) 78%, transparent);
    --inv-nav-active: var(--inv-rust);
    border-color: var(--bh-line);
    box-shadow: 0 14px 34px -14px rgb(70 50 35 / .55);
}
.inv-nav__label { font-family: var(--bh-sans); font-weight: 400; letter-spacing: .03em; }
.inv-nav__item.is-active { color: #fff; }

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

/* ---------- page end: the names, then the nav's room ---------- */
.bh-closing { padding-bottom: 3rem; }
