/* Tema "Syair": lembut dan puitis. Arah desain dan alasan tiap keputusan ada di DESIGN.md.
   Dimuat setelah invitation.css hanya bila tema = syair. Motif identitas: ranting garis halus + bentuk oval/bulat + tepi bergelombang. */
.theme-syair {
  --bg: #f6f3ec; --bg2: #e3eadf; --ink: #2f433e; --muted: #5a6a63;
  --primary: #3b564e; --deep: #2f433e; --on-primary: #fff; --accent: #c47a57; --card: #fbfaf6;
  --line: rgba(47, 67, 62, .22);
  --accent-text: #9a5436; --sage: #e3eadf; --leaf: #6f8a76; --peach-light: #f0c9ae;
  --script: "Pinyon Script", "Brush Script MT", cursive;
  --serif: "Newsreader", Georgia, serif;
  --wt-sage: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V13C20 0 40 0 60 13S100 26 120 13V26Z' fill='%23e3eadf'/%3E%3C/svg%3E");
  --wt-deep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V13C20 0 40 0 60 13S100 26 120 13V26Z' fill='%232f433e'/%3E%3C/svg%3E");
  --wt-ivory: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26V13C20 0 40 0 60 13S100 26 120 13V26Z' fill='%23f6f3ec'/%3E%3C/svg%3E");
  --wb-sage: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26' preserveAspectRatio='none'%3E%3Cpath d='M0 0V13C20 26 40 26 60 13S100 0 120 13V0Z' fill='%23e3eadf'/%3E%3C/svg%3E");
  font-family: var(--serif); font-size: 17px; line-height: 1.7;
}
.theme-syair .page { box-shadow: none; }

/* ---------- Tipografi ---------- */
.theme-syair h1, .theme-syair h2, .theme-syair h3, .theme-syair .cname, .theme-syair .h, .theme-syair .salam,
.theme-syair .to-name, .theme-syair .wishes h3, .theme-syair .event h3 { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.theme-syair .names, .theme-syair .hero-names { font-family: var(--script); font-style: normal; font-weight: 400; letter-spacing: 0; }
.theme-syair .names i, .theme-syair .hero-names i { font: italic 400 1.5rem var(--serif); color: var(--accent-text); }
.theme-syair .eyebrow { text-transform: none; letter-spacing: .03em; font: italic 400 1.05rem var(--serif); color: var(--accent-text); }

/* ---------- Tanaman botani (batang olive, daun bergradasi bertulang, melati) ---------- */
.po-gs1 { stop-color: #9dbb9a; } .po-gs2 { stop-color: #4f7a5a; }
.po-stem { fill: none; stroke: #7f8660; stroke-width: 1.6; stroke-linecap: round; }
.po-stem.thin { stroke-width: 1; }
.po-petiole { fill: none; stroke: #7f8660; stroke-width: 1; stroke-linecap: round; }
.po-lf-body { fill: url(#po-g1); stroke: #3f6a4c; stroke-width: .5; stroke-linejoin: round; }
.po-vein { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: .45; stroke-linecap: round; }
.po-petal { fill: #fffdf7; stroke: #9fb3a2; stroke-width: .6; stroke-linejoin: round; }
.po-core { fill: #e3bd5a; stroke: #b98f2c; stroke-width: .4; }
.po-stamen { fill: #b98f2c; }
.po-calyx { fill: #6f9a72; stroke: #3f6a4c; stroke-width: .4; }
.po-line { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.po-line.thin { stroke-width: .8; opacity: .7; }
.po-fill { fill: rgba(255, 255, 255, .42); }

/* Goyangan pelan: batang bergoyang dari pangkalnya, daun dan bunga bergetar lembut dengan jeda berbeda */
@keyframes po-sway-big { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.8deg); } }
@keyframes po-sway-lf { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4.5deg); } }
@keyframes po-sway-fl { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.po-sw { animation: po-sway-lf 5.6s ease-in-out infinite; transform-origin: 0 0; }
.po-sw.big { animation-name: po-sway-big; animation-duration: 9s; }
.po-sw.fl { animation-name: po-sway-fl; animation-duration: 6.8s; }

/* ---------- Gerak: hanya gerbang dan muncul saat digulir ---------- */
.theme-syair .sky, .theme-syair .orn, .theme-syair .hero-pat { display: none; }
.theme-syair .btn-open { animation: fadeUp 1s cubic-bezier(.2, .7, .2, 1) 1.2s both; }
.theme-syair .countdown [data-cd="s"], .theme-syair .sound-btn.on::after { animation: none; }
.js .theme-syair [data-reveal] { transition-duration: 1.2s; }
.js .theme-syair [data-reveal="left"], .js .theme-syair [data-reveal="right"] { transform: translateY(22px); }

/* ---------- Bingkai oval ---------- */
.theme-syair .arch { position: relative; width: min(84%, 300px); aspect-ratio: 300 / 380; margin: 0 auto 18px; }
.mh-arch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#po-ring, #po-wreath, #po-twig, #po-branch { overflow: visible; }
.theme-syair .arch-in { position: absolute; inset: 17% 13% 14%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.theme-syair .arch-in p { margin: 0 0 .4em; }
.theme-syair .arch-in .names, .theme-syair .arch-in .hero-names { color: var(--primary); margin-bottom: 4px; }

/* ---------- Gerbang ---------- */
.theme-syair .gate { color: var(--ink); }
.theme-syair .door { background: linear-gradient(180deg, #f1f4ec, #dfe8dc); border: 0; box-shadow: none; }
.theme-syair .door .po-door { position: absolute; inset: auto; width: auto; height: 36%; aspect-ratio: 160 / 420; overflow: visible; }
.theme-syair .door-l .po-door.t { top: 0; left: 0; }
.theme-syair .door-l .po-door.b { bottom: 0; left: 0; transform: scaleY(-1); }
.theme-syair .door-r .po-door.t { top: 0; right: 0; transform: scaleX(-1); }
.theme-syair .door-r .po-door.b { bottom: 0; right: 0; transform: scale(-1, -1); }
.theme-syair .gate-content { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 36px 24px 40px; }
.theme-syair .gate-content::-webkit-scrollbar { display: none; }
.theme-syair .gate .arch { width: min(84%, 300px, max(256px, calc((100svh - 340px) * .79))); }
.theme-syair .gate .names { font-size: clamp(2.4rem, 11.5vw, 3.1rem); line-height: 1.15; }
.theme-syair .cover-art { width: 96px; border-radius: 50%; border: 1px solid var(--accent); margin-bottom: 12px; }
.theme-syair .cover-date { color: var(--ink); font-size: 1rem; margin: 0; letter-spacing: .01em; }
.theme-syair .to { border-color: var(--line); margin-bottom: 22px; }
.theme-syair .to-name { font-size: 1.5rem; color: var(--primary); }
.theme-syair .to-note, .theme-syair .sound-note { color: var(--muted); opacity: 1; }
.theme-syair .btn-open {
  border-radius: 999px; padding: 13px 38px; background: var(--primary); color: #fff; letter-spacing: .02em;
}
.theme-syair .btn-open:hover { box-shadow: 0 8px 20px rgba(47, 67, 62, .25); }
.theme-syair .btn-open:focus-visible, .theme-syair .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; box-shadow: none; }

/* ---------- Hero ---------- */
.theme-syair .hero { background: linear-gradient(180deg, var(--bg) 0%, #e9efe5 100%); color: var(--ink); }
.theme-syair .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: var(--wt-ivory) repeat-x 0 100% / 120px 26px; z-index: 2; }
.theme-syair .hero-in { padding: 72px 18px 100px; }
.theme-syair .hero .arch { width: min(94%, 360px); margin-bottom: 0; }
.theme-syair .hero .arch-in { inset: 15% 12% 12%; }
.theme-syair .hero-names { font-size: clamp(2.3rem, 11vw, 3rem); line-height: 1.2; }
.theme-syair .hero-names { margin: 0 0 22px; row-gap: 10px; }
.theme-syair .hero-names i { font-size: 1.3rem; line-height: 1.6; }
.theme-syair .bismillah { color: var(--ink); font-size: 1.2rem; line-height: 1.8; margin-bottom: 2px; }
.theme-syair .hero-date { color: var(--ink); font-size: 1rem; margin: 10px 0 0; opacity: 1; letter-spacing: .01em; }
.theme-syair .scroll-hint { border-color: var(--accent); }
.theme-syair .scroll-hint span { background: var(--accent); }

/* ---------- Bagian umum ---------- */
.theme-syair .sec { padding: 64px 26px; }
.theme-syair .h { font-size: 2.2rem; color: var(--primary); margin-bottom: 26px; line-height: 1.15; }
.theme-syair .salam { font-size: 1.5rem; color: var(--primary); line-height: 1.35; }
.theme-syair .intro { color: var(--muted); }
.theme-syair .divider.po-divider { display: block; max-width: 160px; margin: 0 auto 22px; }
.theme-syair .divider.po-divider::before, .theme-syair .divider.po-divider::after { display: none; }
.theme-syair .divider.po-divider svg { display: block; width: 100%; height: auto; animation: none; }

/* Bagian berlatar embun: tepi atas bergelombang */
.theme-syair .sec.alt { background: var(--sage); }
.theme-syair .sec.alt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; transform: translateY(-97%); background: var(--wt-sage) repeat-x 0 100% / 120px 26px; pointer-events: none; }

/* Mempelai: dua medali bulat bersusun miring */
.theme-syair #mempelai { background: var(--bg); padding-top: 20px; padding-bottom: 0; position: relative; z-index: 2; }
.theme-syair #mempelai::before { display: none; }
.theme-syair .couple { margin-bottom: 0; }
.theme-syair .couple.has-av { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; align-items: start; position: relative; }
.theme-syair .couple.has-av article:nth-of-type(2) { margin-top: 46px; }
.theme-syair .couple.has-av .amp {
  position: absolute; left: calc(50% - 22px); top: 70px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); font: 400 1.7rem/1 var(--script); color: var(--accent-text);
}
.theme-syair .couple:not(.has-av) .amp { font: 400 2.6rem/1 var(--script); color: var(--accent-text); }
.theme-syair .avatar { width: 100%; max-width: 150px; }
.theme-syair .avatar::before { display: none; }
.theme-syair .avatar .avatar-frame {
  width: 100%; height: auto; aspect-ratio: 1; border: 0; border-radius: 50%; background: linear-gradient(180deg, var(--card), var(--sage));
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6.5px var(--accent);
}
.theme-syair .avatar .avatar-frame img { animation: none; object-position: 50% 4%; }
.theme-syair .cname { font-size: 1.2rem; color: var(--primary); line-height: 1.25; margin-top: 4px; }
.theme-syair .parents { font-size: .86rem; }

/* Ayat: bidang embun bertepi gelombang */
.theme-syair .quote { margin: 54px -26px 0; padding: 72px 28px; background: var(--sage); border: 0; border-radius: 0; z-index: 3; }
.theme-syair .quote::before {
  inset: auto; left: 0; right: 0; top: 0; height: 26px; border: 0; border-radius: 0; opacity: 1; transform: translateY(-97%);
  background: var(--wt-sage) repeat-x 0 100% / 120px 26px;
}
.theme-syair .quote::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; transform: translateY(97%); pointer-events: none;
  background: var(--wb-sage) repeat-x 0 0 / 120px 26px;
}
.theme-syair .quote .arab { color: var(--ink); }
.theme-syair .quote .terjemah { color: var(--muted); font-size: 1rem; }
.theme-syair .quote footer { color: var(--accent-text); font-family: var(--serif); font-style: italic; font-weight: 600; }

/* Hitung mundur: empat lingkaran */
.theme-syair .countdown { gap: 8px; max-width: 340px; }
.theme-syair .countdown div { background: none; color: var(--ink); border: 1.5px solid var(--accent); border-radius: 50%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; }
.theme-syair .countdown b { font: 400 1.5rem/1 var(--serif); }
.theme-syair .countdown span { text-transform: none; letter-spacing: 0; font-size: .72rem; opacity: 1; color: var(--muted); }

/* Acara: kartu bulat, tanggal dalam medali yang menempel di tepi atas */
.theme-syair #acara { padding-top: 84px; }
.theme-syair .event.ev-split {
  display: block; margin: 62px 0 0; padding: 0 20px 28px; border: 1px solid var(--line); border-radius: 30px; background: var(--card); box-shadow: none; text-align: center;
}
.theme-syair .event::before { display: none; }
.theme-syair .ev-badge {
  width: 90px; height: 90px; margin: -45px auto 14px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--primary);
}
.theme-syair .ev-badge b { font: 400 2.1rem/1 var(--serif); }
.theme-syair .ev-badge span { font-size: .68rem; line-height: 1.2; color: var(--muted); margin-top: 2px; }
.theme-syair .event h3 { font-size: 1.55rem; color: var(--primary); }
.theme-syair .ev-actions { justify-content: center; }

/* Adab: daun kecil sebagai penanda */
.theme-syair .notes li { border-radius: 22px; padding: 14px 18px 14px 50px; }
.theme-syair .notes li::before {
  content: ""; animation: none; left: 20px; top: 22px; width: 16px; height: 9px; border-radius: 0 100% 0 100%; background: var(--leaf); transform: rotate(-24deg);
}

/* Tanda kasih */
.theme-syair .acc { border: 1.5px dashed var(--accent); border-radius: 26px; box-shadow: none; }
.theme-syair .acc .num { font-family: var(--serif); font-weight: 600; }

/* Formulir */
.theme-syair .rsvp-form input:not([type="radio"]), .theme-syair .rsvp-form select, .theme-syair .rsvp-form textarea { border-radius: 16px; border-color: rgba(47, 67, 62, .4); }
.theme-syair .rsvp-form input:focus, .theme-syair .rsvp-form select:focus, .theme-syair .rsvp-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.theme-syair .radios label { border-radius: 16px; }
.theme-syair .wishes li { border-radius: 20px; }
.theme-syair .wishes h3 { font-size: 1.6rem; color: var(--primary); }

/* Penutup: hijau batu tulis, tepi atas bergelombang */
.theme-syair .closing { background: var(--deep); color: #eef2ea; overflow: visible; padding-top: 88px; }
.theme-syair .closing::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; transform: translateY(-97%); pointer-events: none;
  background: var(--wt-deep) repeat-x 0 100% / 120px 26px;
}
.theme-syair .closing .intro { color: #cfd9d2; }
.theme-syair .closing .doa { color: var(--peach-light); }
.theme-syair .closing .salam { color: #eef2ea; font-size: 1.1rem; }
.theme-syair .closing .names.small { font: 400 2.8rem/1.1 var(--script); color: var(--peach-light); margin: 12px 0 24px; }
.theme-syair .credit { color: #aebcb4; }

/* Navigasi bawah */
.theme-syair .dock a { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.theme-syair .arch-in .hero-date { margin: 22px 0 0; }
