/* Tema Batak (dibikin node web/undangan/tema.mjs, jangan diedit langsung) */
:root {
  --krem: #5A0A0A;
  --krem-tua: #2A0404;
  --kertas: #6E1212;
  --coklat: #FBEFE0;
  --coklat-muda: #E9CFAE;
  --mawar: #F5A623;
  --emas: #F5A623;
  --daun: #C9A227;
  --garis: #8E2A22;
  --hover: #FFE3A6;
  --oval-1: #7A1515;
  --oval-2: #3E0606;
  --kartu-2: #681010;
  --kredit: #2A0404;
  --bayang: 0, 0, 0;
  --script: 'Great Vibes', cursive;
  --serif: 'Playfair Display', Georgia, serif;
}
body { font-size: 17px; }
/* ===== Batak: sampul merah marun + oval, pita ulos, rumah bolon, merak & mawar, bingkai foto bulat emas, animasi zoom & muncul ===== */
body { background: #2A0404; }
.script, .judul-bagian, .kartu-acara h3 { font-weight: 400; }
.judul-bagian { color: #F5A623; font-family: var(--script); font-size: 2.6rem; }
.kecil-kapital { color: #FBEFE0; font-family: 'Playfair Display', Georgia, serif; font-weight: 700; letter-spacing: .04em; text-transform: none; font-size: 1.2rem; }

/* --- sampul --- */
.sampul { background: #2A0404; }
.sampul-isi { background: #4A0707; justify-content: center; padding: 0; }
.sampul .sudut { display: none; }
.bt-lanskap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bt { position: absolute; }
.bt svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bt-latar { inset: 0; transform-origin: 50% 40%; animation: bt-zoom 22s ease-in-out infinite alternate; }
.bt-daun-kiri { top: 2%; left: -10%; width: 32%; height: 34%; transform-origin: 0 20%; animation: bt-goyang 7s ease-in-out infinite; }
.bt-daun-kanan { top: 30%; right: -10%; width: 30%; height: 32%; transform: scaleX(-1); transform-origin: 50% 20%; animation: bt-goyang-kanan 8s ease-in-out -2s infinite; }
.bt-mawar { right: -2%; bottom: -1%; width: 56%; height: 24%; transform-origin: 100% 100%; animation: bt-goyang-mawar 6s ease-in-out infinite; }
@keyframes bt-zoom { from { transform: scale(1); } to { transform: scale(1.16); } }
@keyframes bt-goyang { 50% { transform: rotate(2.4deg); } }
@keyframes bt-goyang-kanan { 50% { transform: scaleX(-1) rotate(2.4deg); } }
@keyframes bt-goyang-mawar { 50% { transform: rotate(-3deg) scale(1.03); } }
.sampul-isi > .bt-lanskap { animation: none; }
.sampul-isi > .bingkai-sampul { position: relative; z-index: 2; width: 100%; padding: 0 22px; text-align: center; display: flex; flex-direction: column; align-items: center; animation: none; }
.bingkai-sampul .kecil-kapital { color: #FFD27A; font-size: 1.05rem; margin-bottom: 4px; }
.bingkai-sampul .foto-sampul { --ukuran: min(190px, 24vh); width: var(--ukuran); height: calc(var(--ukuran) * 1.4); margin: 12px auto 18px; opacity: 0; transform: scale(.6); animation: bt-zoom-masuk 1.3s .5s cubic-bezier(.2, .8, .2, 1) forwards; }
.bingkai-sampul .foto-sampul { filter: drop-shadow(4px 0 0 #FFFFFF) drop-shadow(-4px 0 0 #FFFFFF) drop-shadow(0 4px 0 #FFFFFF) drop-shadow(0 -4px 0 #FFFFFF) drop-shadow(3px 0 0 #7A0D0D) drop-shadow(-3px 0 0 #7A0D0D) drop-shadow(0 3px 0 #7A0D0D) drop-shadow(0 -3px 0 #7A0D0D) drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.bingkai-sampul .foto-sampul img { -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20140'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M12%2030%20A38%2030%200%200%201%2088%2030%20A12%2012%200%200%200%20100%2042%20L100%2098%20A12%2012%200%200%200%2088%20110%20A38%2030%200%200%201%2012%20110%20A12%2012%200%200%200%200%2098%20L0%2042%20A12%2012%200%200%200%2012%2030%20Z'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20140'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M12%2030%20A38%2030%200%200%201%2088%2030%20A12%2012%200%200%200%20100%2042%20L100%2098%20A12%2012%200%200%200%2088%20110%20A38%2030%200%200%201%2012%20110%20A12%2012%200%200%200%200%2098%20L0%2042%20A12%2012%200%200%200%2012%2030%20Z'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; border-radius: 0; box-shadow: none; animation: none; }
.bingkai-sampul .foto-sampul::before, .bingkai-sampul .foto-sampul::after { display: none; }
@keyframes bt-zoom-masuk { to { opacity: 1; transform: none; } }
.bingkai-sampul .script.nama { font-size: 2.5rem; color: #FFFFFF; margin: 6px 0 4px; background: none; -webkit-text-fill-color: #FFFFFF; animation: naik-halus .9s cubic-bezier(.2, .7, .2, 1) 1s both; }
.bingkai-sampul .tanggal { color: #F3E6CE; font-size: .95rem; animation: naik-halus .9s cubic-bezier(.2, .7, .2, 1) 1.15s both; }
.bingkai-sampul .kepada { margin-top: 18px; color: #FBEFE0; font-size: .95rem; animation: naik-halus .9s cubic-bezier(.2, .7, .2, 1) 1.3s both; }
.bingkai-sampul .kepada b { color: #FFFFFF; font-size: 1.3rem; margin-top: 8px; }
.bingkai-sampul .kepada small { color: #E9CFAE; font-style: normal; }
.bingkai-sampul .tombol { margin-top: 20px; background: #FFB81C; color: #3E0606; font-size: .95rem; box-shadow: 0 8px 18px rgba(0, 0, 0, .4); animation: naik-halus .9s cubic-bezier(.2, .7, .2, 1) 1.5s both, bt-denyut 2.4s 3s ease-in-out infinite; }
.bingkai-sampul .tombol:hover { background: #FFC94D; }
@keyframes bt-denyut { 50% { transform: scale(1.05); } }
@media (max-height: 700px) { .bingkai-sampul .foto-sampul { --ukuran: 20vh; } .bingkai-sampul .script.nama { font-size: 2rem; } }

/* --- isi: latar ulos gelap, bagian transparan --- */
.halaman { background: linear-gradient(rgba(42, 4, 4, .66), rgba(42, 4, 4, .66)), url("batak-ulos.svg") 0 0 / 48px 48px, #4A0707; }
section, section:nth-of-type(even) { background: transparent; }
section + section::before { background: linear-gradient(90deg, transparent, #F5A623, transparent); opacity: .5; }
.pembuka .sudut, .penutup .sudut { display: none; }
.pembuka, .penutup { padding-bottom: 270px; }
.pembuka { padding-left: 112px; padding-right: 16px; }
.pembuka::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 100px; right: auto; height: auto; opacity: 1; background: url("batak-pita.svg") 0 0 / 100px auto repeat-y; box-shadow: 4px 0 14px rgba(0, 0, 0, .45); }
.pembuka::after, .penutup::after { content: ""; position: absolute; left: auto; right: 0; bottom: 0; top: auto; width: min(100%, 440px); aspect-ratio: 420 / 260; background: url("batak-hiasan.svg") center bottom / contain no-repeat; pointer-events: none; animation: bt-mengambang 7s ease-in-out infinite; }
.penutup::after { left: 50%; right: auto; transform: translateX(-50%); animation: none; }
@keyframes bt-mengambang { 50% { transform: translateY(-5px); } }
.pembuka .kecil-kapital { font-size: 1.15rem; }
.pembuka .script.nama { font-size: 2.2rem; white-space: nowrap; }
.pembuka .script.nama, .penutup .script.nama { color: #F5A623; font-size: 2.8rem; background: none; -webkit-text-fill-color: #F5A623; }
.pembuka > :has(> .oval) { filter: drop-shadow(4px 0 0 #FFFFFF) drop-shadow(-4px 0 0 #FFFFFF) drop-shadow(0 4px 0 #FFFFFF) drop-shadow(0 -4px 0 #FFFFFF) drop-shadow(3px 0 0 #7A0D0D) drop-shadow(-3px 0 0 #7A0D0D) drop-shadow(0 3px 0 #7A0D0D) drop-shadow(0 -3px 0 #7A0D0D) drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.pembuka .oval { width: min(78%, 210px); aspect-ratio: 100 / 140; border: 0; box-shadow: none; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20140'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M12%2030%20A38%2030%200%200%201%2088%2030%20A12%2012%200%200%200%20100%2042%20L100%2098%20A12%2012%200%200%200%2088%20110%20A38%2030%200%200%201%2012%20110%20A12%2012%200%200%200%200%2098%20L0%2042%20A12%2012%200%200%200%2012%2030%20Z'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%20100%20140'%20preserveAspectRatio%3D'none'%3E%3Cpath%20d%3D'M12%2030%20A38%2030%200%200%201%2088%2030%20A12%2012%200%200%200%20100%2042%20L100%2098%20A12%2012%200%200%200%2088%20110%20A38%2030%200%200%201%2012%20110%20A12%2012%200%200%200%200%2098%20L0%2042%20A12%2012%200%200%200%2012%2030%20Z'%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; border-radius: 0; }
.pembuka p { color: #FBEFE0; }
.hitung div { background: rgba(42, 4, 4, .72); box-shadow: inset 0 0 0 1px #F5A623; border-top: 0; }
.hitung b { color: #FFD27A; } .hitung span { color: #F3E6CE; }
.ayat p, .ayat cite { color: #FBEFE0; } .ayat cite { color: #F5A623; }
.salam-agama, .mempelai .salam { color: #FBEFE0; }
.salam-agama { color: #FFD27A; font-family: 'Playfair Display', Georgia, serif; font-style: italic; }

/* mempelai: foto bulat berbingkai emas, dikelilingi mawar & merak */
.orang { position: relative; }
.orang .oval { width: 230px; aspect-ratio: 1; border-radius: 50%; border: 14px solid transparent;
  background: linear-gradient(#3E0606, #3E0606) padding-box, conic-gradient(from 20deg, #8A5A10, #F7D57A, #C28A1E, #FFE9A8, #9A6A14, #F7D57A, #8A5A10) border-box;
  box-shadow: 0 0 0 3px #2A0404, 0 0 0 5px #FFD27A, 0 18px 36px rgba(0, 0, 0, .55); outline: 3px dotted #F5A623; outline-offset: 9px; }
.orang .oval img { object-position: 50% 20%; }
.orang::before, .orang::after { content: ""; position: absolute; pointer-events: none; z-index: 2; background: center / contain no-repeat; }
.orang::before { top: -6px; left: calc(50% - 168px); width: 112px; height: 100px; background-image: url("batak-mawar.svg"); transform-origin: 80% 80%; animation: bt-goyang-mawar 6s ease-in-out infinite; }
.orang::after { top: 150px; bottom: auto; right: calc(50% - 176px); width: 112px; height: 104px; background-image: url("batak-merak.svg"); transform-origin: 50% 100%; animation: bt-goyang 6.5s ease-in-out infinite; }
.dan + .orang::before { left: auto; right: calc(50% - 168px); transform: scaleX(-1); animation: none; }
.dan + .orang::after { right: auto; left: calc(50% - 176px); transform: scaleX(-1); animation: none; }
.orang .script { color: #F5A623; font-size: 2.8rem; }
.orang .lengkap { color: #FFFFFF; font-family: 'Playfair Display', Georgia, serif; }
.orang .ortu { color: #F3E6CE; }
.orang .ig { color: #FFD27A; }
.orang + .dan { color: #F5A623; }
@media (max-width: 380px) { .orang::before { left: calc(50% - 150px); width: 96px; } .orang::after { right: calc(50% - 150px); width: 96px; } .dan + .orang::before { right: calc(50% - 150px); } .dan + .orang::after { left: calc(50% - 150px); } }

/* kartu acara, tombol, lain-lain */
.kartu-acara, section:nth-of-type(even) .kartu-acara { background: rgba(42, 4, 4, .62); box-shadow: inset 0 0 0 1px #F5A623, 0 12px 28px rgba(0, 0, 0, .35); }
.kartu-acara h3 { color: #F5A623; font-family: var(--script); font-size: 2.4rem; }
.kartu-acara .hari, .kartu-acara .tempat { color: #FFFFFF; } .kartu-acara .jam, .kartu-acara .alamat { color: #F3E6CE; }
.tombol { background: #FFB81C; color: #3E0606; font-family: 'Playfair Display', Georgia, serif; }
.tombol:hover { background: #FFC94D; }
.tombol.garis { background: transparent; color: #FFD27A; box-shadow: inset 0 0 0 1.5px #F5A623; }
.tombol.garis:hover { background: rgba(245, 166, 35, .15); }
.galeri button { box-shadow: 0 0 0 2px #F5A623; }
.daftar-ucapan li { border-left: 3px solid #F5A623; }
.kredit { background: #2A0404; color: #E9CFAE; }
.musik, .gulir { background: #FFB81C; color: #3E0606; border-color: #FFD27A; }

/* animasi muncul saat scroll: mempelai dari kiri/kanan, hitung mundur membesar */
.orang.muncul { transform: translateX(-46px); }
.dan + .orang.muncul { transform: translateX(46px); }
.orang.muncul.tampak, .dan + .orang.muncul.tampak { transform: none; }
.hitung.muncul { transform: scale(.82); }
.hitung.muncul.tampak { transform: none; }
.kartu-acara.muncul { transform: translateY(34px); }
.kartu-acara.muncul.tampak { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .bt, .bt-latar, .foto-sampul, .bingkai-sampul .tombol, .pembuka::after, .orang::before, .orang::after { animation: none !important; }
  .bingkai-sampul .foto-sampul { opacity: 1; transform: none; }
  .orang.muncul, .dan + .orang.muncul, .hitung.muncul, .kartu-acara.muncul { transform: none; }
}
.notif { color: var(--kertas); }
.kredit a { color: var(--kertas); }
