/* Tema "Awan Lembayung": langit petang yang lembut. Arah desain dan alasan tiap keputusan ada di DESIGN.md.
   Dimuat setelah invitation.css hanya bila tema = awan. Putih susu, merah muda pucat, lila debu, teks plum redup.
   Motif: gumpalan awan membulat dan bulan sabit tipis. Bidang datar tanpa bayangan; gradien hanya untuk langit. */
.theme-awan {
  --bg: #faf6f4; --bg2: #e8e0ed; --ink: #473a52; --muted: #66556f;
  --primary: #6d5880; --deep: #473a52; --on-primary: #fff; --accent: #6d5880; --card: #fffdfc;
  --line: rgba(109, 88, 128, .2);
  --susu: #faf6f4; --pipi: #f1e0e0; --lila: #e8e0ed; --debu: #9a8aa8; --plum: #473a52;
  --serif: "Alice", "Lora", Georgia, serif;
  --r: 14px; --r-kartu: 28px; /* 14 untuk yang diklik, 28 untuk bidang diam */
  --langit: linear-gradient(180deg, #ddd2e7 0%, #eedcdf 58%, #f7ecea 100%);
  /* Dua lapis gumpalan awan di kaki langit */
  --gumpal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='120' viewBox='0 0 360 120'%3E%3Cpath fill='%23f3e2e3' d='M0 120V70a38 38 0 0 1 60-22a46 46 0 0 1 82 4a34 34 0 0 1 56 8a52 52 0 0 1 96-6a40 40 0 0 1 66 16V120z'/%3E%3Cpath fill='%23faf6f4' d='M0 120V96a32 32 0 0 1 52-12a44 44 0 0 1 80 6a30 30 0 0 1 50 4a48 48 0 0 1 88-8a34 34 0 0 1 56 4a22 22 0 0 1 34 6V120z'/%3E%3C/svg%3E");
  /* Tepi awan untuk sambungan antarbagian */
  --tepi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='22' viewBox='0 0 360 22'%3E%3Cpath d='M0 22V14a20 20 0 0 1 36-6a26 26 0 0 1 48 2a18 18 0 0 1 32 2a28 28 0 0 1 52-3a20 20 0 0 1 36 1a24 24 0 0 1 44 4a18 18 0 0 1 30-2a26 26 0 0 1 46 4a22 22 0 0 1 36-2V22z'/%3E%3C/svg%3E");
  /* Tepi awan tegak untuk belahan gerbang */
  --sibak: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='360' viewBox='0 0 26 360'%3E%3Cpath d='M0 0H12a22 22 0 0 1 4 44a30 30 0 0 1-2 56a20 20 0 0 1 2 36a34 34 0 0 1-4 62a24 24 0 0 1 4 44a30 30 0 0 1-3 54a22 22 0 0 1-1 40a14 14 0 0 1 0 24H0z'/%3E%3C/svg%3E");
  --sabit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M30 5a20 20 0 1 0 13 31A18 18 0 0 1 30 5z'/%3E%3C/svg%3E");
}
.theme-awan .page { box-shadow: 0 0 30px rgba(71, 58, 82, .08); }

/* ---------- Tipografi: Alice hanya punya satu ketebalan ---------- */
.theme-awan h1, .theme-awan h2, .theme-awan h3, .theme-awan .cname, .theme-awan .names, .theme-awan .hero-names,
.theme-awan .h, .theme-awan .salam, .theme-awan .to-name, .theme-awan .wishes h3 {
  font-family: var(--serif); font-style: normal; font-weight: 400;
}
.theme-awan .eyebrow { text-transform: none; letter-spacing: .02em; font-size: .98rem; color: var(--muted); }

/* ---------- Gerak: gerbang, muncul saat digulir, dan gumpalan cahaya di latar (ambient.css) ---------- */
.theme-awan .sky, .theme-awan .hero-pat { display: none; }
.theme-awan .btn-open { animation: fadeUp 1s ease 1.2s both; }
.theme-awan .countdown [data-cd="s"], .theme-awan .sound-btn.on::after, .theme-awan .scroll-hint span { animation: none; }
.js .theme-awan [data-reveal] { transform: translateY(16px); transition-duration: 1.2s; }
.js .theme-awan [data-reveal="fade"] { transform: none; }
.js .theme-awan [data-reveal].in { transform: none; }

/* Bulan sabit dan pembatas */
.aw-moon { display: block; width: 44px; height: 44px; margin: 0 auto 12px; background: var(--debu); -webkit-mask: var(--sabit) center / contain no-repeat; mask: var(--sabit) center / contain no-repeat; }
.theme-awan .aw-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 22px; }
.theme-awan .aw-divider::before, .theme-awan .aw-divider::after { content: ""; flex: none; width: 46px; height: 1px; background: var(--debu); transform: none; }
.theme-awan .aw-divider::after { order: 2; }
.theme-awan .aw-divider .aw-moon { width: 26px; height: 26px; margin: 0; order: 1; }

/* ---------- Gerbang: dua gumpalan awan yang menyibak ---------- */
.theme-awan .gate { color: var(--ink); background: var(--langit); overflow: clip; }
.js .theme-awan .gate { background: transparent; }
.theme-awan .door { width: 50.2%; border: 0; box-shadow: none; background: var(--gumpal) right bottom / 360px 120px repeat-x, var(--langit); }
.theme-awan .door-r { background-position: left bottom, 0 0; }
.theme-awan .door::after { content: ""; position: absolute; top: 0; bottom: 0; width: 34px; opacity: 0; background: var(--susu); -webkit-mask: var(--sibak) 0 0 / 34px 360px repeat-y; mask: var(--sibak) 0 0 / 34px 360px repeat-y; }
.theme-awan .door-l::after { left: calc(100% - 1px); }
.theme-awan .door-r::after { right: calc(100% - 1px); transform: scaleX(-1); }
.js .theme-awan .door { transition: transform 1.6s cubic-bezier(.6, 0, .25, 1) .3s; }
/* Tepi awan baru muncul saat menyibak, agar gerbang tertutup tampak sebagai satu langit */
.js body.theme-awan.is-opening .door::after { opacity: 1; transition: opacity .3s ease .3s; }
.js body.theme-awan.is-opening .door-l { transform: translateX(-114%); }
.js body.theme-awan.is-opening .door-r { transform: translateX(114%); }
.theme-awan .gate-content { width: min(100%, 400px); padding: 56px 30px; }
.js .theme-awan .gate-content { max-height: 100%; padding-top: 26px; padding-bottom: 26px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.js .theme-awan .gate-content::-webkit-scrollbar { display: none; }
.js body.theme-awan.is-opening .gate-content { transform: translateY(-24px); }
.theme-awan .gate .eyebrow { margin-bottom: 6px; }
.theme-awan .gate .names { font-size: clamp(2.6rem, 13vw, 3.4rem); line-height: 1.14; margin-bottom: 10px; color: var(--plum); }
.theme-awan .names i { font: 400 .55em var(--serif); color: var(--primary); line-height: 1.35; }
.theme-awan .cover-date { color: var(--muted); letter-spacing: .01em; margin-bottom: 18px; }
.theme-awan .to { background: rgba(255, 253, 252, .82); border: 0; border-radius: var(--r-kartu); max-width: 300px; padding: 14px 16px; margin-bottom: 20px; }
.theme-awan .to-note { color: var(--muted); }
/* Catatan suara berada di atas awan: diberi alas agar tetap terbaca */
.theme-awan .sound-note { color: var(--ink); margin-top: 14px; padding: 6px 12px; border-radius: var(--r); background: rgba(255, 253, 252, .82); }
.theme-awan .btn-open { background: var(--primary); color: #fff; border-radius: var(--r); font-weight: 500; letter-spacing: .01em; padding: 13px 38px; transition: background .25s; }
.theme-awan .btn-open:hover { background: #5a476c; box-shadow: none; transform: none; }
.theme-awan .btn-open:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; box-shadow: none; }

/* ---------- Hero: langit dengan sabit di atas dan awan di kaki ---------- */
.theme-awan .hero { color: var(--ink); background: var(--gumpal) center bottom / 360px 120px repeat-x, var(--langit); }
.theme-awan .hero-in { padding: 52px 28px 158px; }
.theme-awan .hero .aw-moon { width: 58px; height: 58px; margin-bottom: 14px; }
.theme-awan .hero .bismillah { color: var(--plum); font-size: 1.55rem; margin-bottom: 18px; }
.theme-awan .hero-names { font-size: clamp(3rem, 15vw, 4.2rem); line-height: 1.14; color: var(--plum); margin: 4px 0 20px; overflow-wrap: anywhere; }
.theme-awan .hero-names i { font: 400 .5em var(--serif); color: var(--primary); line-height: 1.5; }
.theme-awan .hero-date { display: inline-block; margin: 0; padding: 9px 22px; border-radius: 999px; background: var(--card); color: var(--plum); opacity: 1; letter-spacing: .01em; }
.theme-awan .scroll-hint { bottom: 26px; margin-left: -22px; width: 44px; height: 44px; border: 0; border-radius: 50%; }
.theme-awan .scroll-hint span { left: 50%; top: 14px; width: 12px; height: 12px; margin-left: -6px; background: none; border: solid var(--primary); border-width: 0 2px 2px 0; border-radius: 0; rotate: 45deg; }

/* ---------- Bagian umum: bidang susu dan lembayung, disambung tepi awan ---------- */
.theme-awan .sec { padding: 62px 26px; background: var(--susu); }
.theme-awan .sec.alt { background: var(--lila); padding-top: 74px; padding-bottom: 74px; }
.theme-awan #adab { background: var(--pipi); }
.theme-awan .sec.alt::before, .theme-awan .sec.alt::after, .theme-awan .closing::before {
  content: ""; position: absolute; left: 0; right: 0; height: 22px; background: var(--susu); -webkit-mask: var(--tepi) 0 0 / 360px 22px repeat-x; mask: var(--tepi) 0 0 / 360px 22px repeat-x;
}
.theme-awan .sec.alt::before, .theme-awan .closing::before { top: -1px; transform: scaleY(-1); }
.theme-awan .sec.alt::after { bottom: -1px; }
/* Sebelum penutup cukup satu tepi: warna RSVP menggantung ke langit penutup */
.theme-awan #rsvp::after { display: none; }
.theme-awan .closing::before { background: var(--lila); }
.theme-awan .h { color: var(--plum); font-size: 1.95rem; }
.theme-awan .salam { color: var(--plum); font-size: 1.25rem; line-height: 1.6; }
.theme-awan .intro { color: var(--muted); }

/* Mempelai: karakter dalam jendela bulat dengan lingkar tipis */
.theme-awan .couple { gap: 14px; margin-bottom: 38px; }
.theme-awan .amp { font: 400 2.2rem var(--serif); color: var(--primary); }
.theme-awan .avatar { width: 184px; height: 184px; margin: 0 auto 22px; }
.theme-awan .avatar::before { inset: -8px; border: 1px solid var(--debu); border-radius: 50%; animation: none; opacity: 1; }
.theme-awan .avatar .avatar-frame { width: 184px; height: 184px; border: 6px solid var(--card); border-radius: 50%; box-shadow: none; background: var(--pipi); }
.theme-awan .avatar .avatar-frame img { animation: none; }
.theme-awan .cname { color: var(--plum); font-size: 1.45rem; line-height: 1.4; overflow-wrap: anywhere; }
.theme-awan .parents { color: var(--muted); }

.theme-awan .quote { background: var(--card); border: 0; border-radius: var(--r-kartu); padding: 30px 22px; }
.theme-awan .quote::before { content: none; }
.theme-awan .quote .arab { color: var(--plum); }
.theme-awan .quote .terjemah { font-style: normal; }

/* Hitung mundur: empat gelembung */
.theme-awan .countdown { gap: 8px; margin-bottom: 34px; }
.theme-awan .countdown div { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: var(--lila); color: var(--plum); }
.theme-awan .countdown div:nth-child(even) { background: var(--pipi); }
.theme-awan .countdown b { font: 400 1.65rem/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.theme-awan .countdown span { text-transform: none; letter-spacing: 0; font-size: .74rem; opacity: 1; }
.theme-awan .countdown.done { color: var(--plum); }

/* Acara: tanggal dalam lingkaran di puncak kartu */
.theme-awan .event.ev-split { margin-bottom: 20px; padding: 26px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-kartu); box-shadow: none; }
.theme-awan .event::before { display: none; }
.theme-awan .ev-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 114px; height: 114px; margin: 0 auto 16px; border-radius: 50%; background: var(--lila); color: var(--plum); }
.theme-awan .ev-badge b { font: 400 2.8rem/1 var(--serif); }
.theme-awan .ev-badge span { font-size: .72rem; margin-top: 2px; }
.theme-awan .event h3 { color: var(--plum); font-size: 1.45rem; }

/* Adab: butir bertanda sabit */
.theme-awan .notes li { background: var(--card); border: 0; border-radius: var(--r); padding: 14px 16px 14px 46px; }
.theme-awan .notes li::before { content: ""; left: 16px; top: 17px; width: 18px; height: 18px; background: var(--primary); -webkit-mask: var(--sabit) center / contain no-repeat; mask: var(--sabit) center / contain no-repeat; animation: none; }

/* Tanda kasih */
.theme-awan .acc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-kartu); box-shadow: none; padding: 22px 18px; overflow-wrap: anywhere; }
.theme-awan .acc .num { font: 400 1.55rem var(--serif); letter-spacing: .04em; color: var(--plum); }

/* Tombol dan formulir */
.theme-awan .btn, .theme-awan .btn.small { border-radius: var(--r); min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; }
.theme-awan .btn:hover { transform: none; box-shadow: none; }
.theme-awan .btn:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; box-shadow: none; }
.theme-awan .rsvp-form input:not([type="radio"]), .theme-awan .rsvp-form select, .theme-awan .rsvp-form textarea { border: 1px solid #7e6b8c; border-radius: var(--r); background: var(--card); }
.theme-awan .rsvp-form input:focus, .theme-awan .rsvp-form select:focus, .theme-awan .rsvp-form textarea:focus { outline: 3px solid var(--primary); outline-offset: 1px; box-shadow: none; }
.theme-awan .rsvp-form ::placeholder { color: var(--muted); opacity: 1; }
.theme-awan .radios label { border: 1px solid #7e6b8c; border-radius: var(--r); background: var(--card); min-height: 44px; }
.theme-awan .radios label:has(input:checked) { border-color: var(--primary); background: var(--pipi); }
.theme-awan .radios input { accent-color: var(--primary); }
.theme-awan .rsvp-form .btn { background: var(--primary); border-color: var(--primary); color: #fff; padding: 13px; }
.theme-awan .wishes h3 { color: var(--plum); }
.theme-awan .wishes li { border: 0; border-radius: var(--r); background: var(--card); }

/* Penutup: kembali ke langit */
.theme-awan .closing { padding: 74px 26px 150px; background: var(--gumpal) center bottom / 360px 120px repeat-x, var(--langit); }
.theme-awan .closing .intro, .theme-awan .closing .salam { color: var(--ink); }
.theme-awan .closing .salam { font-size: 1.05rem; }
.theme-awan .closing .doa { color: var(--plum); }
.theme-awan .closing .names.small { color: var(--plum); font-size: 2.1rem; line-height: 1.35; }
.theme-awan .closing .credit { color: var(--muted); }

/* Navigasi bawah dan tombol melayang */
.theme-awan .dock { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 8px 22px rgba(71, 58, 82, .16); -webkit-backdrop-filter: none; backdrop-filter: none; }
.theme-awan .dock a { color: var(--muted); border-radius: var(--r); }
.theme-awan .dock a.on { background: var(--lila); color: var(--plum); }
.theme-awan .dock a:focus-visible { outline-color: var(--primary); }
.js .theme-awan .sound-btn, .js .theme-awan .motion-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--primary); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.theme-awan .sound-btn.on::after { display: none; }

@media (min-width: 560px) { .theme-awan .page { border-radius: var(--r-kartu); } }
