/* Tema SURAT — amplop bersegel lilin yang terbuka, kertas krem, perangko. */
.tema-surat {
  --latar-dasar: #efe6d6; --kertas: #fbf7ef; --teks: #4a3a2e; --teks-lembut: #8a7766; --aksen: #8c4a3c; --aksen-muda: #ecdccf; --garis: #dccdb6;
  --huruf-badan: "Cormorant Garamond", Georgia, serif; --huruf-label: "Cormorant Garamond", Georgia, serif;
  --tekstur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.tema-surat .bingkai, .tema-surat .bagian { background-image: var(--tekstur); }
.tema-surat .label { letter-spacing: .32em; }

/* Sampul & amplop */
.tema-surat .sampul { background: var(--tekstur), radial-gradient(120% 80% at 50% 10%, #f7efe2, #e9dcc6); }
.tema-surat .sampul .judul { font-size: 52px; margin: 8px 0 2px; }
.tema-surat .tgl-sampul { letter-spacing: .3em; font-size: 14px; }
.amplop { position: relative; width: 272px; height: 178px; margin: 26px auto 4px; perspective: 900px; animation: amplop-melayang 4.5s ease-in-out infinite; }
@keyframes amplop-melayang { 50% { transform: translateY(-7px) rotate(-.6deg); } }
.amplop-belakang { position: absolute; inset: 0; background: linear-gradient(#cdb38f, #d9c3a3); border-radius: 6px; box-shadow: 0 18px 40px rgba(74, 58, 46, .28); }
.kertas-surat { position: absolute; z-index: 1; left: 14px; right: 14px; top: 10px; height: 150px; border-radius: 4px; background: #fffaf2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1) .75s; }
.kertas-surat b { font-family: var(--huruf-judul), cursive; font-weight: 400; font-size: 30px; color: var(--aksen); line-height: 1.1; }
.kertas-surat span { font-size: 12px; letter-spacing: .2em; color: var(--teks-lembut); }
.amplop-depan { position: absolute; z-index: 2; inset: 0; border-radius: 6px; background: linear-gradient(160deg, #ead8bb, #dfc9a6);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); }
.amplop-tutup { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 62%; background: linear-gradient(#e3cfae, #d6bd97); clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top; transition: transform .8s cubic-bezier(.5, 0, .3, 1) .25s, z-index 0s .65s; }
.segel { position: absolute; z-index: 4; left: 50%; top: 56%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 30%, #c06a5b, #8a3329 60%, #6d241d); color: #f6dccf; font: italic 600 21px/1 "Cormorant Garamond", serif; letter-spacing: .04em;
  box-shadow: 0 0 0 5px rgba(138, 51, 41, .35), 0 6px 14px rgba(70, 20, 14, .35), inset 0 -3px 6px rgba(0, 0, 0, .25); transition: transform .45s, opacity .45s; animation: segel-denyut 2.6s ease-in-out infinite; }
@keyframes segel-denyut { 50% { box-shadow: 0 0 0 9px rgba(138, 51, 41, .18), 0 6px 14px rgba(70, 20, 14, .35), inset 0 -3px 6px rgba(0, 0, 0, .25); } }
.tema-surat .sampul.membuka .segel { transform: scale(1.6) rotate(20deg); opacity: 0; animation: none; }
.tema-surat .sampul.membuka .amplop-tutup { transform: rotateX(180deg); z-index: 0; }
.tema-surat .sampul.membuka .kertas-surat { transform: translateY(-118px) scale(1.06); }
.tema-surat .sampul.membuka .amplop { animation: none; }
.tema-surat .sampul.membuka .kotak-tamu, .tema-surat .sampul.membuka .tombol-buka, .tema-surat .sampul.membuka > .sampul-isi > .judul,
.tema-surat .sampul.membuka > .sampul-isi > .label, .tema-surat .sampul.membuka > .sampul-isi > .tgl-sampul { opacity: 0; transition: opacity .4s; }
.tema-surat .info-tamu span { background: #fffaf2; border: 1px solid var(--garis); color: var(--aksen); }
.tema-surat .tombol-buka { background: var(--aksen); color: #fbefe6; border-radius: 4px; letter-spacing: .14em; font-size: 14px; }
.tema-surat .kotak-tamu { margin-top: 14px; }

/* Hero: foto berbingkai perangko */
.tema-surat .hero { background: transparent; flex-direction: column; }
.tema-surat .hero[style] .hero-isi::before { content: ""; display: block; width: 214px; height: 270px; margin: 0 auto 26px; padding: 11px; transform: rotate(-3deg);
  background: var(--foto) center/cover content-box, radial-gradient(circle, transparent 4.2px, #fffaf2 4.8px) -6px -6px/12px 12px;
  filter: drop-shadow(0 10px 18px rgba(74, 58, 46, .25)); }
.tema-surat .hero::after { content: ""; position: absolute; right: 26px; top: 70px; width: 92px; height: 92px; border-radius: 50%; border: 2px solid rgba(140, 74, 60, .45); opacity: .7;
  background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(140, 74, 60, .4) 9px 11px) center/150px 40px no-repeat; transform: rotate(-14deg); }
.tema-surat .hero .judul { font-size: 58px; margin: 10px 0; }
.tema-surat .hitung div { background: #fffaf2; border: 1px solid var(--garis); color: var(--aksen); border-radius: 4px; }
.tema-surat .judul-bagian { font-size: 48px; }

/* Kartu seperti kertas surat bertepi */
.tema-surat .kartu-acara, .tema-surat .form-rsvp, .tema-surat .kartu-bank, .tema-surat .ucapan li { background: #fffaf2; border-radius: 3px; border: 1px solid var(--garis);
  box-shadow: 0 1px 0 #fff inset, 0 10px 24px rgba(74, 58, 46, .1); position: relative; }
.tema-surat .kartu-acara::before { content: ""; position: absolute; top: 14px; right: 14px; width: 42px; height: 50px; background: radial-gradient(circle, transparent 2.6px, #e9d6c4 3px) -4px -4px/8px 8px;
  border: 4px solid #e9d6c4; box-shadow: inset 0 0 0 3px #fffaf2, inset 0 0 0 30px #c98b78; opacity: .8; transform: rotate(4deg); }
.tema-surat .kutipan { background: transparent; }
.tema-surat .kutipan .isi-kutipan::before { content: "“"; display: block; font-size: 70px; line-height: .6; color: var(--aksen); opacity: .4; }
.tema-surat .foto-orang { width: 180px; height: 230px; padding: 9px; background: #fffaf2; box-shadow: 0 8px 20px rgba(74, 58, 46, .18); transform: rotate(-2deg); }
.tema-surat .orang:nth-of-type(3) .foto-orang { transform: rotate(2deg); }
.tema-surat .foto-galeri { border-radius: 2px; border: 7px solid #fffaf2; box-shadow: 0 6px 16px rgba(74, 58, 46, .16); }
.tema-surat .penutup { background-color: #e7d9c2; }
.tema-surat .nav-bawah { background: rgba(251, 247, 239, .94); border: 1px solid var(--garis); color: var(--teks-lembut); backdrop-filter: blur(10px); }
.tema-surat .nav-bawah a.aktif { background: var(--aksen); color: #fff; }
.tema-surat .tombol-musik { background: var(--aksen); }
.tema-surat .tombol { border-radius: 4px; }
.tema-surat .js .muncul, .js .tema-surat .muncul { transform: translateY(30px) rotate(-1deg); }
.js .tema-surat .muncul.tampak { transform: none; }
