:root {
  --bg: #11100f; --panel: #191715; --text: #f6f0e7; --muted: #b9afa2;
  --gold: #c8a96a; --line: rgba(200,169,106,.35);
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Manrope", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.8; }
body.locked { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.cover { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 22px; background: radial-gradient(ellipse at 50% 35%, #30291f 0%, #171513 48%, #0d0c0b 100%); transition: opacity .8s ease, visibility .8s ease; }
.cover.closed { opacity: 0; visibility: hidden; pointer-events: none; }
.cover-frame { width: min(100%, 430px); min-height: min(82vh, 720px); border: 1px solid var(--line); outline: 1px solid rgba(200,169,106,.12); outline-offset: 7px; padding: 48px 24px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.eyebrow { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.monogram { font-family: var(--serif); font-size: 52px; line-height: 1.1; color: var(--gold); letter-spacing: .05em; }
.monogram span, h1 i, h2 i { color: var(--gold); font-weight: 400; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 12px 0; }
.cover h1 { font-size: clamp(48px, 13vw, 70px); margin: 18px 0 4px; }
.cover-date, .hero-date { font-size: 10px; letter-spacing: .2em; color: var(--gold); }
.guest-line { margin: 34px 0 20px; color: var(--muted); font-size: 12px; }
.guest-line strong { display: inline-block; margin-top: 4px; color: var(--text); font-weight: 500; }
.button { border: 1px solid var(--gold); padding: 13px 20px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 14px; letter-spacing: .06em; font-size: 10px; text-transform: uppercase; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: #17130d; }
.button-outline { background: transparent; color: var(--gold); }
.tiny-note { color: #8f867b; font-size: 10px; line-height: 1.7; }
.cover .tiny-note { margin-top: 24px; max-width: 240px; }
.topbar { height: 58px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; position: sticky; z-index: 10; top: 0; background: rgba(17,16,15,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { text-decoration: none; color: var(--gold); font: 24px var(--serif); }
.brand span { color: var(--text); }
.music-button { border: 1px solid var(--line); background: transparent; color: var(--text); padding: 7px 11px; font-size: 10px; letter-spacing: .05em; }
.section { padding: 76px 22px; text-align: center; }
.hero { min-height: 88svh; padding: 0; display: grid; place-items: center; position: relative; overflow: hidden; }
.hero-image, .hero-overlay { position: absolute; inset: 0; }
.hero-image { background: linear-gradient(135deg,#4c4032,#191614 58%,#393025); background-size: cover; background-position: center; }
.hero-overlay { background: linear-gradient(0deg,rgba(10,9,8,.88),rgba(10,9,8,.22) 55%,rgba(10,9,8,.42)); }
.hero-content { position: relative; z-index: 1; padding: 70px 24px; max-width: 540px; }
.hero h1 { font-size: clamp(66px, 18vw, 100px); margin: 18px 0; }
.hero-caption { color: #ded4c6; max-width: 300px; margin: 20px auto 30px; }
.text-link { display: inline-block; color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; text-underline-offset: 5px; margin-top: 12px; }
.narrow { max-width: 660px; margin: auto; }
h2 { font-size: clamp(38px, 10vw, 54px); }
.intro p:not(.eyebrow), .closing-section > p:not(.eyebrow) { color: var(--muted); max-width: 520px; margin: 18px auto; }
.gold-text { color: var(--gold); }
.ornament { color: var(--gold); margin-top: 28px; font-size: 12px; letter-spacing: .3em; }
.couple-section { display: grid; gap: 48px; background: #171513; }
.couple-card { max-width: 360px; margin: auto; }
.portrait { width: min(72vw, 280px); aspect-ratio: 4/5; margin: 0 auto 24px; background: linear-gradient(145deg,#6c5a44,#25201b); background-size: cover; background-position: center; }

/* Ukuran nama pengantin */
.couple-card h2 {
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
}

.couple-card p { color: var(--muted); }
.muted { color: #b4aa9d; }
.ampersand { font: 48px var(--serif); color: var(--gold); margin: -28px 0; }
.details-section { background: #0d0c0b; }
.countdown { display: flex; justify-content: center; gap: 10px; margin: 32px 0 46px; }
.countdown div { width: 68px; padding: 13px 4px; border: 1px solid var(--line); }
.countdown strong { display: block; font: 30px var(--serif); color: var(--gold); }
.countdown span { display: block; font-size: 9px; color: var(--muted); text-transform: uppercase; }
.event-grid { display: grid; gap: 14px; max-width: 760px; margin: auto; text-align: left; }
.event-card { border: 1px solid var(--line); padding: 26px 22px; }
.event-card h3 { font-size: 31px; }
.event-card p:not(.eyebrow) { color: var(--muted); margin: 8px 0; font-size: 12px; }
.gallery-section { background: #171513; }
.section-subtitle { color: var(--muted); max-width: 430px; margin: 0 auto 28px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 760px; margin: auto; }
.gallery-item { border: 0; min-height: 200px; background: linear-gradient(135deg,#665643,#29231d); background-size: cover; background-position: center; }
.gallery-a { grid-row: span 2; min-height: 410px; }
.gallery-b { background-image: linear-gradient(135deg,#524638,#25201b); }
.gallery-c { background-image: linear-gradient(135deg,#3d3932,#71604a); }
.rsvp-section { background: #0d0c0b; }
.form-card { display: grid; gap: 9px; max-width: 460px; margin: 28px auto 0; text-align: left; padding: 24px; border: 1px solid var(--line); }
.form-card label { color: var(--muted); font-size: 11px; margin-top: 7px; }
.form-card input, .form-card select, .form-card textarea { width: 100%; border: 1px solid #494139; border-radius: 0; padding: 12px; background: #191715; color: var(--text); outline-color: var(--gold); }
.form-card .button { margin-top: 12px; }
.form-status { color: var(--gold); font-size: 12px; }
.gift-section { background: #171513; }
.gift-card { border: 1px solid var(--line); max-width: 380px; margin: 28px auto 0; padding: 28px 18px; }
.gift-card h3 { font-size: 32px; }
.account-number { font-size: 18px; letter-spacing: .1em; color: var(--gold); }
.gift-card p:not(.eyebrow) { color: var(--muted); }
.closing-section { padding-bottom: 55px; }
.closing-section h2 { margin-top: 26px; }
.signature { font: italic 32px var(--serif); color: var(--gold) !important; }
.footer { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 22px 12px; color: #82796d; font-size: 9px; letter-spacing: .2em; }
@media (min-width: 700px) {
  .section { padding: 110px 34px; }
  .couple-section { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
  .ampersand { margin: 0; }
  .event-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item { min-height: 260px; }
  .gallery-a { min-height: 530px; }
  .hero { min-height: 92vh; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* ===== JAVANESE ROMANTIC MOTION LAYER ===== */
:root { --ivory: #efe4d1; --batik-ink: rgba(200,169,106,.13); }
body { overflow-x: hidden; }
.cover::before, .cover::after { content: ""; position: absolute; pointer-events: none; inset: 14px; border: 1px solid rgba(200,169,106,.22); }
.cover::after { inset: 22px; border-color: rgba(200,169,106,.09); }
.cover-frame { position: relative; animation: frame-arrive 1.2s cubic-bezier(.2,.7,.2,1) both; }
.cover-frame::before, .cover-frame::after { content: "❧"; position: absolute; color: var(--gold); opacity: .65; font: 34px var(--serif); }
.cover-frame::before { top: 10px; left: 14px; transform: rotate(-35deg); }
.cover-frame::after { right: 14px; bottom: 10px; transform: rotate(145deg); }
.cover .monogram, .closing-section .monogram { animation: gold-breathe 4s ease-in-out infinite; }
.button-gold { position: relative; overflow: hidden; isolation: isolate; }
.button-gold::after { content: ""; position: absolute; inset: -40% auto -40% -45%; width: 30%; transform: rotate(22deg); background: rgba(255,255,255,.4); filter: blur(7px); transition: left .65s ease; z-index: -1; }
.button-gold:hover::after { left: 130%; }
.hero-image { transform: scale(1.04); animation: hero-drift 22s ease-in-out infinite alternate; }
.hero-content { animation: hero-arrive 1.2s .2s both; }
.hero::before { content: ""; position: absolute; z-index: 1; pointer-events: none; inset: 18px; border: 1px solid rgba(200,169,106,.3); }
.hero::after { content: "✦"; position: absolute; z-index: 1; bottom: 25px; color: var(--gold); opacity: .75; font-size: 15px; animation: star-glow 3s ease-in-out infinite; }
/* A restrained geometric motif inspired by batik kawung */
.intro, .details-section, .gallery-section, .gift-section, .closing-section { position: relative; isolation: isolate; }
.intro::before, .details-section::before, .gallery-section::before, .gift-section::before, .closing-section::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .42; background-image: radial-gradient(ellipse at center, transparent 0 35%, var(--batik-ink) 36% 38%, transparent 39%), radial-gradient(ellipse at center, transparent 0 35%, var(--batik-ink) 36% 38%, transparent 39%); background-size: 42px 42px; background-position: 0 0, 21px 21px; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.eyebrow.gold-text::before, .eyebrow.gold-text::after { content: "✧"; color: var(--gold); margin: 0 10px; font-size: 10px; }
.ornament { animation: gold-breathe 4.5s ease-in-out infinite; }
.event-card, .gift-card, .form-card { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.event-card:hover, .gift-card:hover { transform: translateY(-4px); border-color: rgba(200,169,106,.7); box-shadow: 0 16px 38px rgba(0,0,0,.18); }
.countdown div { transition: transform .25s ease, background .25s ease; }
.countdown div:hover { transform: translateY(-5px); background: rgba(200,169,106,.08); }
.portrait, .gallery-item { position: relative; overflow: hidden; }
.portrait::after, .gallery-item::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(239,228,209,.4); pointer-events: none; transition: inset .35s ease, border-color .35s ease; }
.portrait:hover::after, .gallery-item:hover::after { inset: 15px; border-color: rgba(200,169,106,.9); }
.gallery-item { transition: transform .4s ease, filter .4s ease; }
.gallery-item:hover { transform: translateY(-4px); filter: brightness(1.12); }
/* Reveal sections as the guest scrolls */
.reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-ready .reveal-delay-1 { transition-delay: .12s; }
.reveal-ready .reveal-delay-2 { transition-delay: .24s; }
.reveal-ready .reveal-delay-3 { transition-delay: .36s; }
.jasmine-layer { position: fixed; z-index: 8; inset: 0; overflow: hidden; pointer-events: none; }
.jasmine-petal { position: absolute; top: -12vh; width: 9px; height: 15px; border-radius: 80% 15% 80% 20%; background: linear-gradient(135deg, #fffdf4, #e8dcc5); opacity: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.15)); animation: petal-fall var(--duration, 13s) linear var(--delay, 0s) infinite; }
.jasmine-petal:nth-child(3n) { width: 7px; height: 12px; }
.jasmine-petal:nth-child(4n) { background: linear-gradient(135deg, #f7edda, #d8c7a7); }
@keyframes frame-arrive { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-drift { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.11) translateY(-1.2%); } }
@keyframes gold-breathe { 0%,100% { text-shadow: 0 0 0 rgba(200,169,106,0); opacity: .88; } 50% { text-shadow: 0 0 18px rgba(200,169,106,.22); opacity: 1; } }
@keyframes star-glow { 0%,100% { opacity: .35; transform: scale(.9); } 50% { opacity: .95; transform: scale(1.12); } }
@keyframes petal-fall { 0% { opacity: 0; transform: translate3d(0,-5vh,0) rotate(0deg); } 10% { opacity: .65; } 80% { opacity: .55; } 100% { opacity: 0; transform: translate3d(var(--drift, 45px),115vh,0) rotate(480deg); } }
@media (max-width: 480px) { .cover-frame { padding-top: 42px; } .jasmine-petal { width: 7px; height: 12px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

.javanese-line { color: var(--ivory); opacity: .82; font-family: var(--serif); font-size: 14px; letter-spacing: .06em; margin: 5px 0 14px; }

/* ===== GAYA TAMBAHAN WAYANG & GUNUNGAN JAWA ===== */

/* Styling Gunungan Emas */
.gunungan-img {
  display: block;
  margin: 0 auto;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(200, 169, 106, 0.25));
  pointer-events: none;
}

.cover-gunungan {
  width: min(100px, 25vw);
  margin-bottom: 12px;
  animation: gold-breathe 4s ease-in-out infinite;
}

.hero-gunungan {
  width: min(80px, 20vw);
  margin-bottom: 16px;
  opacity: 0.9;
}

.section-gunungan {
  width: min(90px, 22vw);
  margin-bottom: 18px;
  opacity: 0.85;
}

.closing-gunungan {
  width: min(95px, 24vw);
  margin-bottom: 14px;
}

/* Styling Pasangan Wayang (Rama & Sinta) */
.wayang-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.wayang-couple-img {
  width: min(160px, 45vw);
  height: auto;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s ease;
}

.wayang-couple-img:hover {
  transform: scale(1.05);
}

@media (min-width: 700px) {
  .wayang-couple-img {
    width: 170px;
  }
}



/* ========================================
   MODERN ROUNDED — ERIN & YOGA WEDDING
   ======================================== */

/* Kartu utama */
.couple-card,
.event-card,
.gift-card,
.info-card {
    border-radius: 24px;
    overflow: hidden;
}

/* Foto pengantin dan galeri */
.couple-card img,
.gallery img,
.gallery-item img {
    border-radius: 24px;
}

/* Tombol */
button,
.btn,
.btn-primary,
.btn-secondary,
.open-invitation,
.copy-button {
    border-radius: 18px;
}

/* Input RSVP */
input,
select,
textarea {
    border-radius: 16px;
}

/* Panel dan section besar */
.section-frame,
.modal-content {
    border-radius: 32px;
    overflow: hidden;
}

/* Efek hover yang halus */
.couple-card,
.event-card,
.gift-card,
.info-card,
button,
.btn {
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.couple-card:hover,
.event-card:hover,
.gift-card:hover,
.info-card:hover {
    transform: translateY(-3px);
}


/* FONT UPDATE — ROMANTIC & ELEGANT */

:root {
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

/* Font nama pada cover */
.cover h1 {
    font-family: "Parisienne", cursive;
    font-weight: 400;
    font-size: clamp(45px, 3.5vw, 45px);
    
}

/* Font nama pada Hero */
.hero-content h1 {
    font-family: "Parisienne", cursive;
    font-weight: 400;
    font-size: clamp(45px, 3.5vw, 45px);
    line-height: 1.15;
    text-align: center;
}

.hero-content h1 i {
    font-family: "Parisienne", cursive;
    font-style: normal;
}

/* Judul utama dan nama pengantin */
h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.2;
}


/* Nama di kartu pasangan */
.couple-card h2 {
    /* font-family: "Parisienne", cursive; */
    font-size: clamp(20px, 3.5vw, 28px);
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
}


/* Teks isi lebih ringan dan nyaman dibaca */
body {
    font-family: var(--sans);
    line-height: 1.85;
}

/* Penutup romantis */
.signature {
    font-family: "Parisienne", cursive;
    font-size: 38px;
    font-weight: 400;
}

/* Proteksi dasar foto */
img,
.gallery-item,
.hero-image,
.couple-card img {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Mencegah interaksi langsung pada foto */
img {
    pointer-events: none;
}

body {
    background-color: #100e0b;
    background-image:
        radial-gradient(
            circle at 50% 20%,
            rgba(184, 146, 74, 0.08),
            transparent 55%
        );
    background-attachment: fixed;
}

/* Background ornamen ukiran Jawa */
body {
    background-color: #100e0b;
    background-image:
        linear-gradient(
            rgba(16, 14, 11, 0.25),
            rgba(16, 14, 11, 0.25)
        ),
        url("assets/ornamen-jawa.png");

    background-position: center top;
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-attachment: fixed;
}

Ornamen Jawa transparan di bagian tengah
#details {
    position: relative;
    background-color: #100e0b;
    /* background-image:
        linear-gradient(
            rgba(16, 14, 11, 0.65),
            rgba(16, 14, 11, 0.65)
        ),
        url("assets/ornamen-tengah.png"); */
    background-position: center top;
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-attachment: scroll;
}

/* Membuat section lebih menyatu dengan background utama */
.couple-section,
#bride,
#groom,
#gift,
.gift-section,
.couple-card,
.gift-card,
.info-card {
    background-color: rgba(16, 14, 11, 0.60);
    border: 1px solid rgba(184, 146, 74, 0.25);
}

/* Our Gallery */
#gallery,
.gallery-section,
.gallery-item {
    background-color: rgba(16, 14, 11, 0.60);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Konfirmasi Kehadiran / RSVP */
#rsvp,
.rsvp-section,
.form-card {
    background-color: rgba(16, 14, 11, 0.60);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Border emas tipis */
.form-card,
.gallery-item {
    border-color: rgba(184, 146, 74, 0.25);
}


/* Ucapan & Doa — tema hitam emas Jawa */
.wishes-section {
  padding: 80px 20px;
}

.wishes-card {
  max-width: 600px;
  margin: 30px auto;
  padding: 28px;
  background: rgba(16, 14, 11, 0.60);
  border: 1px solid rgba(184, 146, 74, 0.30);
  border-radius: 22px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.wishes-card label {
  display: block;
  margin: 16px 0 8px;
  color: #d5b778;
}

.wishes-card input,
.wishes-card textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 15px;
  color: #f5eee2;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 146, 74, 0.30);
  border-radius: 12px;
  font: inherit;
}

.wishes-card textarea {
  resize: vertical;
}

.wishes-card button {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  color: #17120b;
  background: #c6a15b;
  border: none;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
}

#wishStatus {
  color: #d5b778;
  text-align: center;
}

.wishes-list {
  max-width: 600px;
  margin: 40px auto 0;
}

.wishes-list h3 {
  text-align: center;
}

.wish-item {
  margin: 14px 0;
  padding: 18px;
  background: rgba(16, 14, 11, 0.60);
  border: 1px solid rgba(184, 146, 74, 0.22);
  border-radius: 16px;
  overflow-wrap: anywhere;
}

.wish-item strong {
  color: #d5b778;
}

.wish-item p {
  margin-bottom: 0;
  white-space: pre-wrap;
}

.wishes-empty {
  text-align: center;
  opacity: 0.75;
}


/* =====================================
   WEDDING WISHES - SCROLL & AVATAR
===================================== */

#wishesList {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b99a62 transparent;
}

/* Scrollbar Chrome / Edge */
#wishesList::-webkit-scrollbar {
  width: 5px;
}

#wishesList::-webkit-scrollbar-thumb {
  background: #b99a62;
  border-radius: 10px;
}

#wishesList::-webkit-scrollbar-track {
  background: transparent;
}

/* Wish item */
.wish-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 14px;
}

/* Initial Avatar */
.wish-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d5bd8b, #a9874d);
  color: #211a10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Wish content */
.wish-content {
  flex: 1;
  min-width: 0;
}

.wish-content strong {
  display: block;
  margin-bottom: 3px;
}

.wish-content small {
  display: block;
  margin-bottom: 7px;
  opacity: 0.65;
  font-size: 11px;
}

.wish-content p {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}


/* Force wishes content to align left */
#wishesList,
#wishesList .wish-item,
#wishesList .wish-content,
#wishesList .wish-content strong,
#wishesList .wish-content small,
#wishesList .wish-content p {
  text-align: left !important;
}

#wishesList .wish-item {
  justify-content: flex-start;
}

#wishesList .wish-content {
  align-items: flex-start;
}
