@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@500;600;700&family=Poppins:ital,wght@0,400;0,500;0,600;1,400&display=swap');
@font-face { font-family: Bahagia; src: url('wiwaha/bahagia.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: NewYork; src: url('wiwaha/new-york.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: Photograph; src: url('wiwaha/photograph.ttf') format('truetype'); font-display: swap; }

:root {
    --card: #fffcf3; --bg: var(--card); --ink: #32251d; --muted: #685344;
    --accent: #745237; --gold: #d7bb83; --on-accent: #fff; --line: #dfd3c2;
    --font-body: Poppins, system-ui, sans-serif;
    --font-head: 'Cormorant Infant', Georgia, serif; --font-name: Photograph, cursive;
    --paper-edges: url('wiwaha/jawa-motif-atas.webp') center top / 100% auto no-repeat,
                  url('wiwaha/jawa-motif-bawah.webp') center bottom / 100% auto no-repeat;
    --paper-soft: linear-gradient(rgb(255 252 243 / .90), rgb(255 252 243 / .90)), var(--paper-edges), var(--card);
    --wood: radial-gradient(ellipse at center, #8b5b43, #472a1c 80%);
    --portrait: var(--cover-img, url('wiwaha/jawa-background.webp'));
    --radius: 6px;
}
body { font-size: 14px; background: #472a1c; }
.sheet { max-width: none; display: flex; flex-direction: column; background: url('wiwaha/jawa-background.webp') center bottom / cover fixed; }
body::before, .sheet::before, .ornament, .deco { display: none; }
.wh-desktop { display: none; }
.cover, .wh-desktop {
    color: white; background: linear-gradient(to bottom, #0004, #15201488), var(--portrait) center / cover;
}
.cover { display: flex; justify-content: center; align-items: stretch; padding: 0; }
.cover-inner {
    display: flex; flex-flow: column; align-items: center; width: 100%; max-width: none;
    padding: clamp(3rem, 20svh, 14rem) 5% clamp(2rem, 18svh, 12rem);
}
.cover .eyebrow, .wh-desktop > span { margin: 0; font: 24px Bahagia, cursive; color: white; text-transform: none; letter-spacing: 0; }
.cover .names, .wh-desktop strong { margin: 12px 0; color: white; font: 400 clamp(30px, 7vw, 42px)/1.1 NewYork, Georgia, serif; text-transform: uppercase; }
.cover .to-label { margin: auto 0 0; color: white; font-size: 13px; }
.cover .to-name { margin: 0 0 14px; color: white; font: 700 21px/1.3 var(--font-head); }
.btn { font-size: 13px; }
.cover .btn { padding: 9px 27px; background: var(--gold); border: 0; color: #34281c; }
.cover .btn::before { content: '✉'; margin-right: .4em; }
.cover-inner::after { content: 'Mohon maaf apabila ada kesalahan penulisan nama/gelar.'; max-width: 280px; margin-top: 14px; font: italic 12px/1.4 var(--font-body); }
@media (min-width: 768px) {
    .sheet, .cover { width: 500px; margin-left: auto; margin-right: 0; }
    .cover { left: auto; }
    .wh-desktop {
        position: fixed; inset: 0 500px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: end;
        padding: 8vh 3vw; text-align: center; overflow-wrap: anywhere;
    }
    .wh-desktop p { font: 600 18px var(--font-head); text-transform: uppercase; }
}
.wh-gap { order: -3; display: grid; place-items: center; min-height: 100svh; padding: 1rem; background: url('wiwaha/jawa-fallback.webp') center / cover; }
.wh-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wh-film[data-anim] { opacity: 1; translate: none; scale: none; }
.wh-dedication { position: relative; color: #fff4db; text-shadow: 0 2px 10px #352013; }
.wh-dedication h2 { font: 36px/1.2 NewYork, Georgia, serif; text-transform: uppercase; margin: 0; }
.wh-dedication p { margin: .7em 0 0; font: 600 19px var(--font-head); }
.wh-verse { order: -2; padding: 11% 12%; background: linear-gradient(rgb(84 53 35 / .86), rgb(84 53 35 / .86)),url('wiwaha/jawa-pattern.webp') center / cover,#543523; }
.wh-photo img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; object-position: center 30%; }
.wh-paper { margin: 2rem auto 0; padding: 3rem 1.15rem; border-radius: 14px; background: var(--paper-soft); }
.wh-initials { font: 32px NewYork, Georgia, serif; color: var(--accent); }
.wh-initials i { font: 30px var(--font-name); }
.wh-quote { margin: 0 auto 1rem; font-size: 13px; }
.wh-source { margin: 0; font-weight: 600; }
.intro, #kisah { margin: 24px 4.5%; padding: 4rem 6%; border: 2px solid var(--gold); background: var(--paper-edges), var(--card); border-radius: 140px 140px 170px 170px; }
.intro { order: -1; }
.person { position: relative; isolation: isolate; }
.person:has(img)::before {
    content: ''; position: absolute; z-index: -1; top: 0; left: 0; width: 48%; height: 220px;
    background: url('wiwaha/jawa-gunungan.webp') center / contain no-repeat;
}
.person:nth-of-type(3)::before { left: auto; right: 0; transform: scaleX(-1); }
.person img { width: min(48%,180px); height: auto; aspect-ratio: 4/7; border-radius: 99px; border: 2px solid var(--gold); outline: none; }
.person .wh-nickname, .amp, .title, .wh-save { font: 400 40px/1.18 var(--font-name); color: inherit; margin: .6rem 0; }
.person h3 { font: 600 24px var(--font-head); }
.person p { font-size: 13px; }
.amp { margin: 1.5rem auto; }
.hero { min-height: 70svh; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(transparent 18%,#472a1c 100%),var(--portrait) center 30% / cover; color: white; }
.hero > .names, .hero > .hero-photo, .hero > .eyebrow { display: none; }
.countdown { width: min(100%,340px); margin: .8rem auto 0; }
.countdown div { background: var(--gold); border: 0; border-radius: 5px; }
.countdown span, .countdown b { color: #39291e; }
#acara { order: 1; color: white; background: #472a1c; padding: 1rem 8% 3rem; }
#acara .title { display: none; }
#acara .card { text-align: center; background: transparent; border: 0; border-bottom: 1px solid #d7bb8380; border-radius: 0; padding: 1rem 0 2rem; }
#acara h3 { font: 38px var(--font-name); color: white; }
#acara .map { display: none; }
#acara .btn-ghost { background: var(--gold); color: #372718; }
#galeri, #amplop { background: var(--wood); color: white; }
#galeri { order: 2; padding: 3rem 6%; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 1.5rem; }
.gallery a { margin: 0; }
.gallery img { aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; }
#kisah { order: 3; border-radius: 80px 80px 8px 8px; }
.wh-strip { display: flex; overflow-x: auto; gap: 8px; margin: 1.5rem 0; scrollbar-width: none; }
.wh-strip::-webkit-scrollbar { display: none; }
.wh-strip img { flex: 0 0 32%; width: 32%; min-width: 0; aspect-ratio: 3/4; object-fit: cover; }
.story { text-align: center; padding: 0; border: 0; }
.story li { display: flex; flex-direction: column; margin: 0; padding: 2rem .25rem; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.story h3 { order: -1; font: 600 23px var(--font-head); }
.story-date { margin: .3rem 0 .6rem; font-size: 12px; letter-spacing: 0; text-transform: none; }
.story li::before { display: none; }
.hopes, section:has(> .video), section:has(.qr), #ucapan { background: var(--card); }
.hopes { order: 4; }
section:has(> .video), section:has(.qr) { order: 5; }
#amplop { order: 6; }
#amplop .card { color: var(--ink); background: var(--paper-soft); }
#ucapan { order: 7; }
.closing { order: 8; min-height: 75svh; display: grid; align-content: end; padding: 3rem 8%; background: linear-gradient(transparent,#311e15ee),var(--portrait) center / cover; color: white; }
.closing .lead, .closing .eyebrow, .closing .names { color: inherit; }
.credit { order: 9; background: var(--card); margin: 0; }
.music-toggle { width: 38px; height: 38px; background: #795039; color: white; border: 1px solid var(--gold); }
@media (prefers-reduced-motion: reduce) { .theme-wiwaha [data-anim] { opacity: 1; transition: none; } }
.wh-lightbox { width: min(96vw, 940px); max-height: 96svh; padding: 2.75rem .75rem .5rem; background: #201712; border: 0; color: white; border-radius: 8px; }
.wh-lightbox::backdrop { background: #150d0af2; }
.wh-lightbox img { width: 100%; height: 73svh; object-fit: contain; display: block; }
.wh-lightbox button { background: transparent; border: 0; color: white; padding: 4px 14px; font-size: 28px; cursor: pointer; }
.wh-dismiss { position: absolute; right: 0; top: 0; }
.wh-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; }
