/* =========================================================================
   Honey Blush — mawar kuning, bingkai emas tipis, cat air peach.
   Video 5 slide (portrait 9:16), tiap slide jadi adegan satu section.
   Warna: honey (utama), gold (garis), peach (latar), cocoa (teks).
   Huruf: Parisienne (nama), Marcellus (judul), Quicksand (teks).
   ========================================================================= */

:root {
    --c-paper: #FFFDFA;
    --c-ink: #4A3428;
    --c-accent: #9C6423;
    --hb-gold: #C9A24B;
    --hb-peach: #F9D9C0;
    --hb-leaf: #9C8A74;
    --hb-rose: #EEC24E;
    --hb-rose-line: #B4832A;

    --c-muted: color-mix(in srgb, var(--c-ink) 68%, var(--c-paper));
    --c-rule: color-mix(in srgb, var(--c-ink) 13%, var(--c-paper));
    --c-sunk: color-mix(in srgb, var(--hb-peach) 35%, var(--c-paper));
    --c-action: var(--c-accent);
    --hb-line: color-mix(in srgb, var(--hb-gold) 75%, var(--c-paper));
    --hb-card: color-mix(in srgb, #fff 72%, transparent);
    /* nama variabel tema sebelumnya yang dipakai blok isi */
    --sp-line: var(--hb-line); --sp-card: var(--hb-card); --sp-gold: var(--hb-gold); --sp-leaf: var(--hb-leaf);

    --f-display: 'Marcellus', Georgia, serif;
    --f-names: 'Parisienne', 'Great Vibes', cursive;
    --f-body: 'Quicksand', system-ui, sans-serif;
    --f-script: var(--f-names);
    --ease: cubic-bezier(.22, .8, .3, 1);
}

body.inv.hb { background: var(--c-paper); color: var(--c-ink); font-family: var(--f-body); line-height: 1.75; }
.hb-amp { font-family: var(--f-names); color: var(--hb-gold); }
.hb-rose { display: block; margin: 0 auto 1rem; overflow: visible; }

/* ---------------------------------------------- adegan video (poster+video) */

.hb-scene { position: relative; }
.hb-poster, .hb-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-video { opacity: 0; transition: opacity .45s ease; }
.is-playing .hb-video, .hb-scene.is-playing .hb-video { opacity: 1; }

/* teks di dalam bingkai emas slide 1 (bingkai ±10–90% × 6–94%) */
.hb-stage { position: relative; container-type: inline-size; width: min(100%, calc(100dvh * 9 / 16)); aspect-ratio: 9 / 16; margin-inline: auto; }
.hb-stage > .hb-scene { position: absolute; inset: 0; }
.hb-frametext {
    position: absolute; left: 15%; right: 15%; top: 22%; height: 46%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw; text-align: center;
    transition: opacity .5s ease;
}
.hb-label { margin: 0; font: 400 4.2cqw/1.3 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.hb-names { display: grid; margin: 0; font-family: var(--f-names); font-weight: 400; color: var(--c-accent); }
.hb-names--stack { font-size: 12.5cqw; line-height: 1.04; }
.hb-names .hb-amp { font-size: .56em; line-height: 1.1; }
.hb-date { margin: 0; font: 400 4.4cqw/1.3 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink); }
[data-hb-panel]:not([data-scene="1"]) .hb-frametext { opacity: 0; }

/* -------------------------------------------------------------- sampul */

.hb .inv-cover.hb-cover { padding: 0; overflow: hidden; background: var(--c-paper); }
.hb-cover .hb-stage { position: absolute; inset: 0; width: 100%; max-width: none; aspect-ratio: auto; }
.hb-cover__text { animation: hb-rise 1s .5s var(--ease) both; top: 21%; height: 49%; gap: 1.4cqw; }
@keyframes hb-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hb-cover__to { margin-top: 1.4cqw; }
.hb-cover__to p { margin: 0; font-size: 3.3cqw; color: var(--c-muted); }
.hb-cover .hb-cover__guest { margin-top: .1rem; font: 400 5.6cqw/1.3 var(--f-display); color: var(--c-ink); }

.hb-open {
    margin-top: 1.4cqw; padding: .8rem 1.8rem; border: 1px solid var(--hb-gold); border-radius: 2px;
    background: var(--c-accent); color: #fff; font: 600 .82rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hb-gold) 22%, transparent), 0 8px 18px -8px var(--c-accent);
    transition: background .25s ease, color .25s ease;
}
.hb-open::before { content: '\2740'; margin-right: .6em; color: var(--hb-rose); }
.hb-open:hover { background: #fff; color: var(--c-accent); }
.hb-open:focus-visible { outline: 2px solid var(--hb-gold); outline-offset: 4px; }

/* ----------------------------------------------------------------- isi */

.hb .inv__main { position: relative; max-width: 34rem; padding-inline: 1.5rem; }
.hb .inv-section { padding-block: clamp(3.5rem, 12vw, 5.5rem); border-bottom: 0; text-align: center; }

.hb-head { margin-bottom: 2.5rem; text-align: center; }
.hb-head__title { margin: 0; font: 500 clamp(2.1rem, 9vw, 2.7rem)/1.1 var(--f-display); color: var(--c-ink); }
.hb-head__lead { max-width: 25rem; margin: .9rem auto 0; color: var(--c-muted); }

.hb-opening { padding-top: 2.5rem !important; }
.hb-verse { margin: 0 0 2.25rem; }
.hb-verse__text { margin: 0; font: italic 400 1.3rem/1.6 var(--f-display); color: var(--c-ink); }
.hb-verse__source { margin-top: .8rem; font-size: .85rem; color: var(--hb-gold); }
.hb-lede { max-width: 26rem; margin: 0 auto; color: var(--c-muted); }

/* Mempelai: foto dalam gapura ganda (meniru gapura di video) */
.hb-couple__grid { display: grid; gap: .5rem; }
.hb-couple__amp { margin: .5rem 0; font: 400 2.8rem/1 var(--f-names); color: var(--hb-gold); }
.hb-person { display: grid; justify-items: center; }
.hb-photo {
    position: relative; width: 11.5rem; aspect-ratio: 3 / 4; margin-bottom: 1.5rem; padding: 7px;
    border: 1.5px solid var(--hb-gold); border-radius: 999px 999px .5rem .5rem;
    box-shadow: 0 0 0 5px var(--c-paper), 0 0 0 6px var(--hb-line), 0 14px 26px -16px var(--c-accent);
}
.hb-photo img, .hb-photo__initial { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px .3rem .3rem; }
.hb-photo__initial { display: grid; place-items: center; background: var(--c-sunk); font: 400 3.6rem/1 var(--f-names); color: var(--c-accent); }
.hb-person__name { margin: 0; font: 400 2.1rem/1.3 var(--f-names); color: var(--c-accent); }
.hb-person__family { margin: .5rem 0 0; font-size: .9rem; color: var(--c-muted); }
.hb-person__bio { max-width: 22rem; margin: .7rem 0 0; font-size: .92rem; color: var(--c-muted); }
.hb-person__ig { margin-top: .7rem; color: var(--c-accent); font-size: .85rem; text-decoration: none; border-bottom: 1px solid var(--hb-line); }

/* Hitung mundur: ubin berbentuk gapura mungil */
.hb-countdown { display: flex; justify-content: center; gap: .6rem; margin: 0 auto 2.5rem; }
.hb .hb-countdown .inv-countdown__cell {
    display: grid; place-content: center; gap: .1rem; width: 4rem; aspect-ratio: 3 / 4; min-width: 0; padding: 0;
    border: 1px solid var(--hb-line); border-radius: 999px 999px .6rem .6rem; background: var(--hb-card);
}
.hb .hb-countdown b { font: 500 1.7rem/1 var(--f-display); color: var(--c-accent); }
.hb .hb-countdown span { font-size: .66rem; text-transform: none; letter-spacing: .03em; color: var(--c-muted); }

/* Acara: kartu gapura dengan garis emas ganda */
.hb-events__list { display: grid; gap: 1.5rem; }
.hb-event { position: relative; padding: 2.5rem 1.5rem 1.75rem; border: 1px solid var(--hb-line); border-radius: 12rem 12rem 1rem 1rem; background: var(--hb-card); }
.hb-event::before { content: ''; position: absolute; inset: 6px; border: 1px solid color-mix(in srgb, var(--hb-gold) 35%, transparent); border-radius: 12rem 12rem .7rem .7rem; pointer-events: none; }
.hb-event.is-past { opacity: .55; }
.hb-event__title { margin: 0 0 .5rem; font: 600 1.8rem/1.15 var(--f-display); color: var(--c-accent); }
.hb-event__date { margin: 0; font-weight: 500; }
.hb-event__time { margin: 0; color: var(--c-muted); }
.hb-event__venue { margin: 1rem 0 0; font: 500 1.25rem/1.3 var(--f-display); }
.hb-event__address { margin: .2rem 0 0; font-size: .9rem; color: var(--c-muted); }
.hb-event__meta { margin: .45rem 0 0; font-size: .85rem; color: var(--c-muted); }
.hb-event__actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.hb-event__actions .inv-btn { flex: 1 1 9rem; text-align: center; }

.hb .inv-btn { border-radius: 999px; padding: .7rem 1.3rem; font: 500 .82rem/1.2 var(--f-body); letter-spacing: .02em; text-transform: none; }
.hb .inv-btn--solid { background: var(--c-accent); border-color: var(--c-accent); color: #fff; box-shadow: none; }
.hb .inv-btn--ghost { background: transparent; border-color: var(--hb-line); color: var(--c-ink); }
.hb .inv-btn:hover { filter: none; background: var(--hb-gold); border-color: var(--hb-gold); color: #fff; }

/* Cerita: garis putus-putus dengan permata belah ketupat */
.hb-story__list { display: grid; gap: 2.75rem; margin: 0; padding: 0; list-style: none; }
.hb-story__item { display: grid; justify-items: center; position: relative; }
.hb-story__item + .hb-story__item::before { content: ''; width: 0; height: 2.4rem; margin: -1.2rem 0 1.4rem; border-left: 1.5px dotted var(--hb-gold); }
.hb-story__item + .hb-story__item::after { content: ''; position: absolute; top: .9rem; width: .5rem; height: .5rem; background: var(--hb-gold); transform: rotate(45deg); }
.hb-story__period { margin: 0; font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--hb-gold); }
.hb-story__title { margin: .2rem 0 0; font: 500 1.6rem/1.2 var(--f-display); color: var(--c-ink); }
.hb-story__img { width: 100%; aspect-ratio: 4 / 3; margin-top: .9rem; object-fit: cover; border-radius: 999px 999px 1rem 1rem / 4rem 4rem 1rem 1rem; }
.hb-story__text { max-width: 26rem; margin: .6rem 0 0; font-size: .92rem; color: var(--c-muted); }

/* Galeri, video, form, hadiah (markup _base) */
.hb .inv-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.hb .inv-gallery__cell { padding: 0; border: 0; border-radius: .75rem; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-sunk); cursor: zoom-in; }
.hb .inv-gallery__cell:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; border-radius: 12rem 12rem .75rem .75rem; }
.hb .inv-gallery__cell img { width: 100%; height: 100%; object-fit: cover; }
.hb .inv-video { padding: 0; border: 0; border-radius: 1rem; overflow: hidden; background: #000; }
.hb .inv-video iframe { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

.hb .inv-form { gap: 1.4rem; text-align: left; }
.hb .inv-label { font-size: .85rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--c-ink); }
.hb .inv-input { padding: .8rem 1rem; border: 1px solid var(--c-rule); border-radius: .85rem; background: #fff; font-size: .95rem; }
.hb .inv-input:focus, .hb .inv-input:focus-visible { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 16%, transparent); }
.hb .inv-choice { border-color: var(--c-rule); border-radius: .85rem; background: #fff; }
.hb .inv-choice:has(:checked) { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 7%, #fff); color: var(--c-accent); }
.hb .inv-choice input { accent-color: var(--c-accent); }
.hb .inv-form .inv-btn--solid { width: 100%; padding-block: .95rem; }
.hb .inv-tally div { border: 1px solid var(--hb-line); border-radius: .85rem; background: var(--hb-card); }
.hb .inv-tally dd { font-family: var(--f-display); font-size: 2rem; color: var(--c-accent); }
.hb .inv-wish { padding: 1rem 1.1rem; border: 0; border-radius: .85rem; background: var(--hb-card); box-shadow: inset 3px 0 0 var(--hb-leaf); }
.hb .inv-wish__name { font-weight: 500; }

/* Hadiah: kartu plum dengan garis emas */
.hb .inv-gifts { display: grid; gap: 1rem; }
.hb .inv-gift {
    padding: 1.75rem 1.5rem; border: 0; border-radius: 1rem 1rem 1rem 6rem; text-align: left;
    background: linear-gradient(150deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 66%, #1a0a14));
    color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hb-gold) 60%, transparent);
}
.hb .inv-gift__logo { max-height: 1.6rem; filter: brightness(0) invert(1); opacity: .9; }
.hb .inv-gift__label { font-size: .85rem; letter-spacing: .03em; text-transform: none; color: color-mix(in srgb, var(--hb-gold) 70%, #fff); }
.hb .inv-gift__account { font: 500 1.8rem/1.3 var(--f-display); letter-spacing: .06em; color: #fff; }
.hb .inv-gift__holder, .hb .inv-gift__address { color: rgb(255 255 255 / .82); }
.hb .inv-gift .inv-btn--ghost { margin-top: 1rem; border-color: rgb(255 255 255 / .5); color: #fff; }
.hb .inv-gift__qr { display: block; max-width: 12rem; margin: .75rem auto 0; padding: .5rem; background: #fff; border-radius: .5rem; }

/* Penutup: pengantin duduk di kursi, memudar ke atas */
.hb-closing { padding-bottom: 0 !important; }
.hb-closing__text { max-width: 24rem; margin: 0 auto; color: var(--c-muted); }
.hb-closing__salutation { margin: 2rem 0; font-size: .9rem; color: var(--hb-gold); letter-spacing: .06em; }
.hb-closing__names { display: grid; margin: .3rem 0 0; font: 400 clamp(2.4rem, 10vw, 3rem)/1.25 var(--f-names); color: var(--c-accent); }
.hb-closing__names .hb-amp { font-size: .55em; }
.hb-closing__script { margin: .6rem 0 0; font: italic 400 1.2rem/1.3 var(--f-display); color: var(--c-muted); }
.hb-closing__tag { margin: .8rem 0 0; font-size: .88rem; color: var(--c-muted); }
.hb .hb-footer { margin-inline: -1.5rem; padding: 1rem; background: var(--c-accent); color: rgb(255 255 255 / .78); font-size: .75rem; text-align: center; }
.hb .hb-footer a { color: #fff; }

.hb .inv-music { background: var(--c-accent); }
.hb .inv-checkin-btn { background: var(--c-accent); color: #fff; }


/* ------------------- isi mengalir; potongan video hanya di awal & akhir */

.hb-frame { position: relative; }
.hb-panel { display: none; }
.hb .inv__main { max-width: 34rem; margin-inline: auto; padding-inline: 0; }
.hb .inv-section { position: relative; z-index: 1; padding: 3.25rem 1.5rem; }

/* potongan adegan: hanya sebagian slide yang tampil, memudar ke arah isi */
.hb-edge { position: relative; overflow: hidden; aspect-ratio: 720 / 470; pointer-events: none; }
.hb-edge .hb-scene { position: absolute; left: 0; width: 100%; aspect-ratio: 720 / 1280; }
.hb-edge--top { margin-bottom: -2.5rem; -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent); mask-image: linear-gradient(to bottom, #000 58%, transparent); }
.hb-edge--top .hb-scene { top: 0; }
.hb-edge--bottom { margin-top: -2.5rem; -webkit-mask-image: linear-gradient(to top, #000 58%, transparent); mask-image: linear-gradient(to top, #000 58%, transparent); }
.hb-edge--bottom .hb-scene { bottom: 0; }

/* ------------------------------------------- bentuk: persegi, garis emas tipis */

.hb-head__title { font-family: var(--f-display); font-weight: 400; letter-spacing: .02em; font-size: clamp(1.7rem, 7.4vw, 2.2rem); white-space: nowrap; }
.hb-head { margin-bottom: 2rem; }
.hb-verse__text { font-family: var(--f-display); font-style: normal; font-size: 1.15rem; }
.hb-photo { width: 11rem; aspect-ratio: 3 / 4; margin: .4rem 0 1.75rem; padding: 6px; border: 1px solid var(--hb-gold); border-radius: 0; background: var(--hb-card); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-paper) 85%, transparent), 0 0 0 6px var(--hb-line), 0 16px 26px -18px var(--c-accent); }
.hb-photo img, .hb-photo__initial { border-radius: 0; }
.hb-photo__initial { background: var(--c-sunk); }
.hb-person__name { font-size: 2.2rem; }
.hb-couple__amp { font-size: 2.4rem; }
.hb-person__bio, .hb-person__family, .hb-lede, .hb-closing__text { color: var(--c-ink); opacity: .82; }

.hb .hb-countdown { gap: .5rem; }
.hb .hb-countdown .inv-countdown__cell { width: 3.9rem; aspect-ratio: 1; border: 1px solid var(--hb-line); border-radius: 0; background: var(--hb-card); }
.hb .hb-countdown b { font-family: var(--f-display); font-weight: 400; }

.hb-event { padding: 2.4rem 1.25rem 1.6rem; border: 1px solid var(--hb-line); border-radius: 0; background: var(--hb-card); box-shadow: 0 18px 30px -24px var(--c-accent); backdrop-filter: blur(2px); }
.hb-event::before { inset: 5px; border-radius: 0; border-color: color-mix(in srgb, var(--hb-gold) 40%, transparent); }
.hb-event__rose { position: absolute; top: -.8rem; left: 50%; margin: 0; transform: translateX(-50%); padding-inline: .5rem; background: var(--c-paper); box-sizing: content-box; }
.hb-event__title { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; }
.hb-event__venue { font-family: var(--f-display); font-weight: 400; }

.hb .inv-btn { border-radius: 2px; letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; }
.hb .inv-btn--ghost { background: var(--hb-card); }
.hb-story__item + .hb-story__item::before { border-left-style: solid; border-left-color: var(--hb-line); }
.hb-story__item + .hb-story__item::after { border-radius: 50%; transform: none; background: var(--hb-rose); box-shadow: 0 0 0 3px var(--c-paper), 0 0 0 4px var(--hb-rose-line); }
.hb-story__img { border-radius: 0; border: 1px solid var(--hb-line); padding: 5px; background: var(--hb-card); aspect-ratio: 4 / 3; }
.hb .inv-gallery__cell, .hb .inv-gallery__cell:first-child { border-radius: 0; }
.hb .inv-gift { border-radius: 4px; }
.hb .inv-input, .hb .inv-choice { border-radius: 2px; }
.hb .inv-wish { border-radius: 2px; box-shadow: inset 3px 0 0 var(--hb-rose-line); }
.hb-closing { padding-bottom: 1rem !important; }
.hb-closing__names { font-size: clamp(2.6rem, 11vw, 3.2rem); }
.hb .hb-footer { position: relative; z-index: 1; padding: 1rem; background: var(--c-accent); color: rgb(255 255 255 / .8); font-size: .75rem; text-align: center; }
.hb .hb-footer a { color: #fff; }
.hb .inv-music { background: var(--c-accent); }
.hb .inv-checkin-btn { background: var(--c-accent); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .hb-cover__text { animation: none; }
    .hb-open, .hb-video, .hb-frametext { transition: none; }
}

/* ------------------------------------------------------------ layar lebar */

@media (min-width: 960px) {
    .hb { --hb-col: 520px; }

    .hb-panel { position: fixed; inset: 0 var(--hb-col) 0 0; z-index: 1; display: grid; place-items: center; background: var(--c-paper); border-right: 1px solid var(--c-rule); }
    .hb-panel .hb-stage { width: auto; height: 100dvh; max-width: 100%; }

    /* Kolom kanan: latar polos; adegan dipegang panel kiri. */
    .hb .inv__main { margin-left: calc(100% - var(--hb-col)); width: var(--hb-col); max-width: none; background: linear-gradient(var(--c-paper), color-mix(in srgb, var(--hb-peach) 22%, var(--c-paper))); }
    .hb-edge { display: none; }
    .hb .inv-section { padding: 3.5rem 2.5rem; }
    .hb .inv-section:first-of-type { padding-top: 5rem; }

    /* Sampul menutup kolom kanan saja. */
    .hb .inv-cover.hb-cover { left: auto; right: 0; width: var(--hb-col); border-left: 1px solid var(--c-rule); background: radial-gradient(90% 40% at 100% 0, var(--hb-peach), transparent 70%), radial-gradient(80% 40% at 0 100%, var(--hb-peach), transparent 70%), var(--c-paper); }
    .hb-cover .hb-stage { display: grid; place-items: center; padding: 2rem 2.5rem; container-type: normal; }
    .hb-cover .hb-scene { display: none; }
    .hb-cover .hb-frametext { position: static; width: 100%; height: auto; gap: .75rem; }
    .hb-cover .hb-label { font-size: .9rem; }
    .hb-cover .hb-names--stack { font-size: 3.7rem; }
    .hb-cover .hb-date { font-size: 1rem; }
    .hb-cover .hb-cover__to { margin-top: .6rem; }
    .hb-cover .hb-cover__to p { font-size: .84rem; }
    .hb-cover .hb-cover__to .hb-cover__guest { font-size: 1.35rem; }
    .hb-open { margin-top: .6rem; }
    .hb .inv-music, .hb .inv-checkin-btn { right: 1.25rem; }
}
