/* =========================================================================
   Tema Arunika — mawar cat air merah muda & krem, membentuk diagonal.

   Titik tolaknya video: kertas krem hangat dengan bayang bunga samar,
   rangkaian mawar merah muda, krem & kuncup hijau tumbuh dari sudut kanan
   atas dan kiri bawah.

   Gagasan utama: DIAGONAL MAWAR membingkai seluruh halaman. Rangkaian
   kanan atas (potongan video) di kartu paling atas, rangkaian kiri bawah
   di kartu penutup — seperti sudut-sudut video, direntangkan sepanjang isi.
   Warna: merah mawar (utama), hijau daun, biru-abu, krem.
   Huruf: Tangerine (nama & judul), Castoro (sub judul, ayat),
   Hanken Grotesk (teks).
   ========================================================================= */

:root {
    --c-paper: #FCF8F1;
    --c-ink: #5A3A3C;
    --c-accent: #C4646B;

    --c-muted: color-mix(in srgb, var(--c-ink) 70%, var(--c-paper));
    --c-rule: color-mix(in srgb, var(--c-accent) 26%, var(--c-paper));
    --c-sunk: color-mix(in srgb, var(--c-accent) 8%, var(--c-paper));
    --c-action: var(--c-accent);

    --f-names: 'Tangerine', 'Great Vibes', cursive;
    --f-display: 'Castoro', Georgia, serif;
    --f-body: 'Hanken Grotesk', system-ui, sans-serif;
    --f-script: var(--f-names);

    --aru-leaf: #8DAE8A;
    --aru-slate: #7E98A6;
    --aru-card: #FFFDF9;
}

body.inv.aru {
    background:
        radial-gradient(ellipse 70% 40% at 100% 0%, rgb(237 149 146 / .12), transparent 70%),
        radial-gradient(ellipse 70% 40% at 0% 100%, rgb(141 174 138 / .12), transparent 70%),
        var(--c-paper);
    background-attachment: fixed;
    color: var(--c-ink); font-family: var(--f-body); font-size: .95rem; line-height: 1.75;
    font-feature-settings: 'lnum' 1;
}

.aru-amp { font-family: var(--f-names); color: var(--aru-leaf); }

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

.aru .inv-cover.aru-cover { padding: 0; display: block; overflow: hidden; background: var(--c-paper); }

/* Panggung 9:16 selalu MENUTUPI layar — teks (cqw/%) tetap di ruang
   kosong tengah video pada ukuran layar apa pun. */
.aru-stage {
    position: absolute; left: 50%; top: 50%;
    width: max(100vw, 100dvh * 9 / 16); aspect-ratio: 9 / 16;
    transform: translate(-50%, -50%);
    container-type: inline-size;
}
.aru-stage__poster, .aru-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aru-stage.is-playing .aru-stage__poster { opacity: 0; }

/* Ruang kosong video: mawar kanan atas turun sampai ±40% di tepi kanan,
   mawar kiri bawah naik dari ±58% di tepi kiri. Teks di 23–75%, tengah;
   nama dikecilkan otomatis bila tidak muat lebar ATAU tinggi (theme.js). */
.aru-cover__text {
    position: absolute; top: 23%; bottom: 25%; left: 14cqw; right: 14cqw;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 1.4cqw;
    text-align: center;
    animation: aru-rise 1.2s var(--ease) both;
}
.aru-cover__foot { margin-top: 3cqw; }
.aru-stage.is-playing .aru-cover__text { animation-delay: 3s; }
@keyframes aru-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.aru-cover__label { margin: 0; font: italic 400 4.6cqw/1.2 var(--f-display); color: var(--c-muted); }
.aru-cover__names {
    display: grid; justify-items: center; width: 100%; margin: 0;
    font: 700 19cqw/.95 var(--f-names); color: var(--c-accent); text-wrap: balance;
}
.aru-cover__names .aru-amp { font-size: .55em; line-height: 1; }
.aru-cover__date {
    display: flex; align-items: center; gap: 2.5cqw; margin: 1.5cqw 0 0;
    font: 400 4.6cqw/1.2 var(--f-display); color: var(--c-ink);
}
.aru-cover__date::before, .aru-cover__date::after { content: ''; width: 6cqw; height: 1px; background: var(--aru-leaf); }
.aru-cover__to { margin: 0; font-size: 3.2cqw; line-height: 1.3; color: var(--c-muted); }
.aru-cover__guest { margin: .6cqw 0 0; font: 400 5.4cqw/1.2 var(--f-display); color: var(--c-ink); overflow-wrap: anywhere; }

.aru-open {
    margin-top: 3.2cqw; padding: 2.8cqw 7cqw; border: 1px solid var(--c-accent); border-radius: 999px;
    background: var(--c-accent); color: #fff; font: 500 3.5cqw/1 var(--f-body); letter-spacing: .03em; white-space: nowrap; cursor: pointer;
    box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--c-accent) 80%, transparent);
    transition: background .25s ease, color .25s ease;
}
.aru-open:hover { background: #fff; color: var(--c-accent); }
.aru-open:focus-visible { outline: 2px solid var(--aru-leaf); outline-offset: 4px; }

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

.aru-frame { position: relative; overflow-x: clip; }
.aru .inv__main { position: relative; max-width: 32rem; padding: 3rem 1.25rem 0; }

/* Kartu kertas. Diagonal mawar video hanya di UJUNG halaman: kartu paling
   atas dapat rangkaian kanan atas, kartu penutup rangkaian kiri bawah. */
.aru .inv-section {
    position: relative; isolation: isolate; margin: 0 0 3.25rem; padding: 3rem 1.5rem 2.75rem;
    border: 0; border-radius: 1.25rem; text-align: center;
    background: none;
    box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 22px 44px -30px rgb(90 58 60 / .45);
}
.aru .inv-section:first-of-type::after {
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    width: 9.5rem; aspect-ratio: 340 / 519;
    top: -1.8rem; right: -1.25rem;
    background: url('rose-tr.webp') top right / contain no-repeat;
}
/* Mawar di BELAKANG isi kartu tapi DI ATAS latar kartu: latar kartu di
   lapisan sendiri supaya bunga menempel di tepi, tidak menutup teks. */
.aru .inv-section::before {
    content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: var(--aru-card);
}
.aru .inv-section > * { position: relative; }

.aru-head { margin-bottom: 1.6rem; text-align: center; color: var(--c-accent); }
.aru-head__title { margin: 0; font: 700 clamp(2.9rem, 13vw, 3.5rem)/1 var(--f-names); color: var(--c-accent); }
.aru-head__bud { display: block; margin: .35rem auto 0; color: var(--c-accent); }
.aru-head__lead { max-width: 24rem; margin: .7rem auto 0; color: var(--c-muted); }

/* Pembuka */
.aru-opening { padding-top: 3.5rem !important; }
.aru .inv-bismillah { color: var(--c-accent); }
.aru-verse { margin: 0 0 1.6rem; padding: 1.25rem 1.1rem; border-block: 1px solid var(--c-rule); }
.aru-verse__text { margin: 0; font: italic 400 1.08rem/1.75 var(--f-display); color: var(--c-ink); }
.aru-verse__source { margin-top: .6rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--aru-slate); }
.aru-lede { max-width: 25rem; margin: 0 auto; color: var(--c-muted); }

/* Mempelai: foto oval bertepi mawar tipis */
.aru-couple__grid { display: grid; gap: .5rem; }
.aru-couple__amp { margin: .25rem 0; font: 700 3.6rem/1 var(--f-names); color: var(--aru-leaf); }
.aru-person { display: grid; justify-items: center; }
.aru-photo {
    width: 10rem; aspect-ratio: 4 / 5; margin: 0 0 1.25rem; padding: 5px;
    border: 1px solid var(--c-rule); border-radius: 50%; background: #fff;
}
.aru-photo img, .aru-photo__initial { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.aru-photo__initial { display: grid; place-items: center; background: var(--c-sunk); font: 700 5rem/1 var(--f-names); color: var(--c-accent); }
.aru-person__text { min-width: 0; overflow-wrap: break-word; }
.aru-person__name { margin: 0; font: 700 2.9rem/1 var(--f-names); color: var(--c-accent); }
.aru-person__family { margin: .4rem 0 0; font-size: .88rem; color: var(--c-muted); }
.aru-person__bio { max-width: 22rem; margin: .6rem auto 0; font-size: .88rem; color: var(--c-muted); }
.aru-person__ig { display: inline-block; margin-top: .6rem; color: var(--c-accent); font-size: .84rem; font-weight: 600; text-decoration: none; }

/* Hitung mundur: empat lingkaran kelopak bergantian merah & hijau */
.aru-countdown { display: flex; justify-content: center; gap: .5rem; margin: 0 auto 2rem; }
.aru .aru-countdown .inv-countdown__cell {
    display: grid; place-content: center; gap: .05rem; width: 4.1rem; aspect-ratio: 1; min-width: 0; padding: 0;
    border: 0; border-radius: 50%; background: color-mix(in srgb, var(--c-accent) 12%, #fff);
}
.aru .aru-countdown .inv-countdown__cell:nth-child(even) { background: color-mix(in srgb, var(--aru-leaf) 18%, #fff); }
.aru .aru-countdown b { font: 400 1.45rem/1 var(--f-display); color: var(--c-ink); }
.aru .aru-countdown span { font-size: .66rem; text-transform: none; letter-spacing: .03em; color: var(--c-muted); }

/* Acara */
.aru-events__list { display: grid; gap: 0; }
.aru-event { padding: 1.3rem 0; }
.aru-event + .aru-event { border-top: 1px dashed var(--c-rule); }
.aru-event.is-past { opacity: .55; }
.aru-event__title { margin: 0 0 .2rem; font: 700 2.8rem/1 var(--f-names); color: var(--c-accent); }
.aru-event__date { margin: 0; font: 400 1.08rem/1.4 var(--f-display); }
.aru-event__time { margin: 0; color: var(--c-muted); }
.aru-event__venue { margin: .85rem 0 0; font-weight: 600; }
.aru-event__address { margin: .1rem 0 0; font-size: .88rem; color: var(--c-muted); }
.aru-event__meta { margin: .35rem 0 0; font-size: .84rem; color: var(--c-muted); }
.aru-event__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.aru-event__actions .inv-btn { flex: 1 1 8.5rem; text-align: center; }

/* Tombol */
.aru .inv-btn { border-radius: 999px; padding: .72rem 1.2rem; font: 600 .82rem/1.2 var(--f-body); letter-spacing: .01em; text-transform: none; }
.aru .inv-btn--solid { background: var(--c-accent); border-color: var(--c-accent); color: #fff; box-shadow: none; }
.aru .inv-btn--ghost { background: transparent; border-color: var(--c-rule); color: var(--c-ink); }
.aru .inv-btn:hover { filter: none; background: var(--aru-leaf); border-color: var(--aru-leaf); color: #fff; }

/* Cerita: garis diagonal tipis antar babak */
.aru-story__list { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.aru-story__item { display: grid; justify-items: center; }
.aru-story__item + .aru-story__item::before { content: ''; width: 3rem; height: 1px; margin-bottom: 1.25rem; background: var(--c-rule); transform: rotate(-20deg); }
.aru-story__period { margin: 0; font: 700 1.9rem/1 var(--f-names); color: var(--aru-leaf); }
.aru-story__title { margin: .2rem 0 0; font: 400 1.25rem/1.3 var(--f-display); color: var(--c-ink); }
.aru-story__img { width: 100%; aspect-ratio: 4 / 3; margin-top: .75rem; object-fit: cover; border-radius: .8rem; }
.aru-story__text { max-width: 25rem; margin: .4rem 0 0; font-size: .9rem; color: var(--c-muted); }

/* Galeri (markup _base): pertama oval */
.aru .inv-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.aru .inv-gallery__cell { padding: 0; border: 0; border-radius: .8rem; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-sunk); cursor: zoom-in; }
.aru .inv-gallery__cell:first-child { grid-column: 1 / -1; width: 80%; margin: 0 auto .4rem; aspect-ratio: 4 / 5; border-radius: 50%; }
.aru .inv-gallery__cell img { width: 100%; height: 100%; object-fit: cover; }

/* Video & siaran langsung */
.aru .inv-video { padding: 0; border: 0; border-radius: .8rem; overflow: hidden; background: #000; }
.aru .inv-video iframe { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Form RSVP & ucapan (markup _base) */
.aru .inv-form { gap: 1.3rem; text-align: left; }
.aru .inv-label { font-size: .85rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--c-ink); }
.aru .inv-input { padding: .8rem 1rem; border: 1px solid var(--c-rule); border-radius: .8rem; background: #fff; font-size: .95rem; }
.aru .inv-input:focus, .aru .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); }
.aru .inv-choice { border-color: var(--c-rule); border-radius: .8rem; background: #fff; }
.aru .inv-choice:has(:checked) { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 8%, #fff); color: var(--c-accent); }
.aru .inv-choice input { accent-color: var(--c-accent); }
.aru .inv-form .inv-btn--solid { width: 100%; padding-block: .95rem; }
.aru .inv-tally div { border: 1px solid var(--c-rule); border-radius: .8rem; background: #fff; }
.aru .inv-tally dd { font-family: var(--f-display); font-size: 1.9rem; color: var(--c-accent); }
.aru .inv-wish { padding: .95rem 1.1rem; border: 0; border-radius: .8rem; background: color-mix(in srgb, var(--aru-leaf) 10%, #fff); text-align: left; }
.aru .inv-wish__name { font-weight: 600; color: var(--c-accent); }

/* Hadiah: kartu merah mawar lembut */
.aru .inv-gifts { display: grid; gap: 1rem; }
.aru .inv-gift {
    padding: 1.8rem 1.5rem; border: 0; border-radius: 1rem; text-align: center;
    background: linear-gradient(160deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 70%, var(--aru-leaf)));
    color: #fff;
}
.aru .inv-gift__logo { max-height: 1.6rem; margin-inline: auto; filter: brightness(0) invert(1); opacity: .9; }
.aru .inv-gift__label { font-size: .85rem; letter-spacing: .02em; text-transform: none; color: rgb(255 255 255 / .8); }
.aru .inv-gift__account { font: 400 1.6rem/1.3 var(--f-display); letter-spacing: .05em; color: #fff; }
.aru .inv-gift__holder, .aru .inv-gift__address { color: rgb(255 255 255 / .85); }
.aru .inv-gift .inv-btn--ghost { margin-top: 1rem; border-color: rgb(255 255 255 / .6); color: #fff; }
.aru .inv-gift__qr { display: block; max-width: 12rem; margin: .75rem auto 0; padding: .5rem; background: #fff; border-radius: .5rem; }

/* Penutup: kartu paling bawah, rangkaian kiri bawah — menutup diagonal */
.aru .aru-closing { margin-top: 2rem; margin-bottom: 4rem; padding-block: 4rem 3.5rem; }
.aru-closing__text { max-width: 24rem; margin: 0 auto; color: var(--c-muted); }
.aru-closing__salutation { margin: 1.6rem 0; font: italic 400 1.05rem/1.3 var(--f-display); color: var(--c-muted); }
.aru-closing__names { display: grid; margin: .2rem 0 0; font: 700 clamp(3.4rem, 15vw, 4.2rem)/.95 var(--f-names); color: var(--c-accent); }
.aru-closing__names .aru-amp { font-size: .55em; }
.aru-closing__tag { margin: .8rem 0 0; font-size: .88rem; color: var(--c-muted); }
.aru .aru-closing > .aru-closing-rose {
    position: absolute; z-index: -1; left: -1.25rem; bottom: -1.6rem; width: 11.5rem; height: auto; pointer-events: none;
}
.aru .aru-footer { margin-inline: -1.25rem; padding: 1rem; background: var(--c-ink); color: rgb(255 255 255 / .75); font-size: .75rem; text-align: center; }
.aru .aru-footer a { color: #fff; }

/* Musik, tombol QR, navigasi cepat */
.aru .inv-music { background: var(--c-accent); }
.aru .inv-checkin-btn { background: var(--c-accent); color: #fff; }
.aru { --qn-bg: rgb(255 253 249 / .92); --qn-fg: var(--c-muted); --qn-active: var(--c-accent); }

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

@media (min-width: 900px) {
    body.inv.aru { background-color: color-mix(in srgb, var(--c-accent) 8%, var(--c-paper)); }

    .aru .inv-cover.aru-cover { left: 0; right: 0; width: auto; isolation: isolate; background: color-mix(in srgb, var(--c-accent) 8%, var(--c-paper)); }
    .aru .inv-cover.aru-cover::before {
        content: ''; position: absolute; inset: -40px; z-index: -1;
        background: url('opening-poster.jpg') center / cover; filter: blur(30px); opacity: .6;
    }
    .aru-stage { width: calc(100dvh * 9 / 16); box-shadow: 0 0 60px -20px rgb(90 58 60 / .3); }
    .aru-frame { width: 36rem; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .aru-cover__text { animation: none; }
    .aru-open { transition: none; }
}
