/* Tema Pita Mentega: kuning mentega + garis tangan berwarna aksen (bawaan biru), pita coquette, gingham, bingkai berenda.
   Semua gambar (pita/*.svg) digambar sendiri dan dipakai sebagai CSS mask, jadi ikut warna aksen pilihan pelanggan. */
:root{--page-bg:#f3e6b8;--bg:#fff9e3;--surface:#fffdf4;--butter:#fbe6a2;--ink:#33415f;--muted:#6f7488;--accent:#4a6fc0;--accent-ink:#fff;--line:#eedc9f;--radius:18px;
--pt-pita:url(pita/pita.svg);--pt-kilau:url(pita/kilau.svg);--pt-bintang:url(pita/bintang.svg);--pt-hati:url(pita/hati.svg);
--pt-gelas:url(pita/gelas.svg);--pt-buket:url(pita/buket.svg);--pt-kado:url(pita/kado.svg);--pt-amplop:url(pita/amplop.svg);
--pt-s:10px;--cover-bg:var(--bg)}

/* Kertas gingham tipis + taburan kilau yang berkelip */
.theme-pita .nk-main,.theme-pita .nk-cover{background-color:var(--bg);background-image:
 repeating-linear-gradient(90deg,color-mix(in srgb,var(--accent) 7%,transparent) 0 14px,transparent 14px 28px),
 repeating-linear-gradient(0deg,color-mix(in srgb,var(--accent) 7%,transparent) 0 14px,transparent 14px 28px)}
.theme-pita .nk-main{position:relative;overflow:hidden}
.theme-pita .nk-main>*{position:relative;z-index:1}
.theme-pita .nk-cover::before,.theme-pita .nk-main::before{content:"";position:absolute;inset:0;pointer-events:none;background:var(--accent);opacity:.55;
 -webkit-mask:var(--pt-kilau) 0 0/230px 230px repeat;mask:var(--pt-kilau) 0 0/230px 230px repeat;animation:pt-kelip 3.2s ease-in-out infinite}
@keyframes pt-kelip{0%,100%{opacity:.55}50%{opacity:.2}}
.theme-pita .nk-cover-inner{position:relative;z-index:1}

/* Hiasan gambar: satu aturan bersama (pakai --pt-img) */
.theme-pita .nk-cover-inner::before,.theme-pita .nk-hero-photo::after,.theme-pita .nk-ornament,.theme-pita .nk-amp::before,.theme-pita .nk-savedate::after,
.theme-pita #acara::before,.theme-pita #acara .nk-card::before,.theme-pita #galeri .nk-heading::before,.theme-pita .nk-gifts>.nk-heading::before,
.theme-pita .nk-story::after,.theme-pita #rsvp .nk-form::before,.theme-pita .nk-closing::before,.theme-pita .nk-song .nk-heading::before{
 content:"";display:block;background:var(--accent);-webkit-mask:var(--pt-img) center/contain no-repeat;mask:var(--pt-img) center/contain no-repeat}

/* Bentuk berenda (tepi bergelombang) untuk kartu kuning */
.theme-pita .nk-to,.theme-pita .nk-photo,.theme-pita .nk-countdown div,.theme-pita .nk-calendar,.theme-pita .nk-person,.theme-pita .nk-card{
 -webkit-mask:radial-gradient(circle,#000 calc(var(--pt-s) - .5px),transparent var(--pt-s)) 0 0/calc(var(--pt-s)*2) calc(var(--pt-s)*2) round,linear-gradient(#000 0 0) center/calc(100% - var(--pt-s)*2) calc(100% - var(--pt-s)*2) no-repeat;
 mask:radial-gradient(circle,#000 calc(var(--pt-s) - .5px),transparent var(--pt-s)) 0 0/calc(var(--pt-s)*2) calc(var(--pt-s)*2) round,linear-gradient(#000 0 0) center/calc(100% - var(--pt-s)*2) calc(100% - var(--pt-s)*2) no-repeat}

/* Huruf */
.theme-pita .nk-script{color:var(--accent);font-weight:400;letter-spacing:.01em}
.theme-pita .nk-script span{color:var(--ink);opacity:1;font-size:.6em;vertical-align:.12em;margin:0 .1em}
.theme-pita .nk-eyebrow{font-family:var(--font-display);text-transform:none;letter-spacing:.02em;font-size:1.2rem;color:var(--accent)}
.theme-pita .nk-heading{font-family:var(--font-display);font-weight:400;color:var(--accent);font-size:2.3rem;line-height:1.1}
.theme-pita .nk-text{font-size:.98rem;color:var(--ink)}
.theme-pita .nk-btn{font-family:var(--font-body);font-weight:600;letter-spacing:.03em;border-radius:999px;box-shadow:0 4px 0 color-mix(in srgb,var(--accent) 55%,#1c2340)}
.theme-pita .nk-btn:active{transform:translateY(3px);box-shadow:0 1px 0 color-mix(in srgb,var(--accent) 55%,#1c2340)}
.theme-pita .nk-btn-ghost{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--accent),0 4px 0 color-mix(in srgb,var(--accent) 30%,transparent)}

/* Sampul */
.theme-pita .nk-cover{overflow:hidden}
.theme-pita .nk-cover-inner::before{--pt-img:var(--pt-pita);width:110px;height:118px;margin:0 auto 10px;animation:pt-goyang 3s ease-in-out infinite;transform-origin:50% 35%}
@keyframes pt-goyang{0%,100%{rotate:-5deg}50%{rotate:5deg}}
.theme-pita .nk-cover .nk-eyebrow{rotate:-4deg;margin-bottom:6px}
.theme-pita .nk-cover h1{font-size:3.4rem;margin:4px 0 16px;line-height:1}
.theme-pita .nk-date{display:inline-block;background:var(--accent);color:var(--accent-ink);font-family:var(--font-body);font-weight:600;font-size:.85rem;letter-spacing:.04em;padding:6px 16px;border-radius:999px;rotate:2deg;margin-bottom:24px}
.theme-pita .nk-to{background:var(--butter);border:0;padding:22px 24px;margin:0 auto 26px;max-width:300px}
.theme-pita .nk-to p{color:var(--ink);opacity:.8}
.theme-pita .nk-to .nk-guest{font-family:var(--font-display);font-size:1.7rem;color:var(--accent);opacity:1;line-height:1.2}

/* Beranda: foto oval berenda + pita di atas + stiker bulat */
.theme-pita .nk-hero{position:relative}
.theme-pita .nk-hero-photo{position:relative;width:236px;height:296px;border:0;border-radius:0;overflow:visible;box-shadow:none;margin:56px auto 26px;padding:9px;background:var(--accent);
 -webkit-mask:none;filter:drop-shadow(0 10px 18px color-mix(in srgb,var(--accent) 25%,transparent))}
.theme-pita .nk-hero-photo{clip-path:none;border-radius:50%/50%}
.theme-pita .nk-hero-photo img{border-radius:50%/50%;border:6px solid var(--bg);outline:2px dashed color-mix(in srgb,var(--accent) 60%,transparent);outline-offset:-14px}
.theme-pita .nk-hero-photo::after{--pt-img:var(--pt-pita);position:absolute;left:50%;top:-74px;width:96px;height:100px;translate:-50% 0;rotate:-6deg}
.theme-pita .nk-hero-photo::before{content:"Mr & Mrs";position:absolute;right:-18px;bottom:22px;z-index:2;width:76px;height:76px;border-radius:50%;display:grid;place-items:center;
 background:var(--butter);color:var(--accent);font:400 1.05rem/1 var(--font-display);rotate:12deg;box-shadow:0 0 0 2px var(--accent),0 0 0 6px var(--butter),0 0 0 7.5px var(--accent);animation:pt-goyang 4s ease-in-out infinite}
.theme-pita .nk-hero .nk-eyebrow{font-size:1.3rem}
.theme-pita .nk-countdown{gap:8px}
.theme-pita .nk-countdown div{--pt-s:6px;background:var(--butter);border:0;border-radius:0;width:70px;padding:14px 0 12px}
.theme-pita .nk-countdown b{font-family:var(--font-display);font-size:1.7rem;color:var(--accent);font-weight:400}
.theme-pita .nk-countdown small{color:var(--ink);letter-spacing:.06em;text-transform:none;font-size:.72rem}

/* Save the Date */
.theme-pita .nk-bunting{display:none}
.theme-pita .nk-calendar{background:var(--butter);max-width:340px;margin:0 auto;padding:26px 22px 22px}
.theme-pita .nk-cal-month{font-family:var(--font-display);font-size:1.5rem;color:var(--accent);margin:0 0 8px}
.theme-pita .nk-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px 0;font-size:.9rem}
.theme-pita .nk-cal-grid b{font-weight:600;color:var(--ink);font-size:.72rem;padding-bottom:4px;opacity:.8}
.theme-pita .nk-cal-grid span{position:relative;line-height:34px;z-index:0}
.theme-pita .nk-cal-sun{color:var(--accent)!important}
.theme-pita .nk-cal-day{color:var(--accent-ink)!important;font-weight:700}
.theme-pita .nk-cal-day::before{content:"";position:absolute;left:50%;top:50%;width:38px;height:38px;translate:-50% -50%;z-index:-1;background:var(--accent);-webkit-mask:var(--pt-bintang) center/contain no-repeat;mask:var(--pt-bintang) center/contain no-repeat;animation:pt-putar 6s linear infinite}
@keyframes pt-putar{to{rotate:360deg}}
.theme-pita .nk-savedate::after{--pt-img:var(--pt-gelas);width:140px;height:116px;margin:26px auto 0}

/* Mempelai */
.theme-pita .nk-ornament{--pt-img:var(--pt-pita);width:80px;height:86px;margin-bottom:16px}
.theme-pita .nk-couple{gap:4px}
.theme-pita .nk-person{--pt-s:12px;background:var(--butter);padding:34px 26px;max-width:330px;margin:0 auto;width:100%}
.theme-pita .nk-person:first-child{rotate:-1.5deg}
.theme-pita .nk-person:last-child{rotate:1.5deg}
.theme-pita .nk-person h3{font-size:2rem;line-height:1.15}
.theme-pita .nk-person p{color:var(--ink);opacity:.8}
.theme-pita .nk-amp{font-size:0;line-height:0;position:relative;z-index:2;margin:-8px 0}
.theme-pita .nk-amp::before{--pt-img:var(--pt-hati);width:190px;height:60px;margin:0 auto}

/* Acara: kartu kuning berenda dengan pita kecil di atas */
.theme-pita #acara::before{--pt-img:var(--pt-amplop);width:96px;height:68px;margin:0 auto 12px;rotate:-6deg}
.theme-pita .nk-card{--pt-s:9px;position:relative;background:var(--butter);border:0;border-radius:0;padding:52px 26px 34px;margin-bottom:26px}
.theme-pita #acara .nk-card::before{--pt-img:var(--pt-pita);position:absolute;left:50%;top:10px;width:40px;height:42px;translate:-50% 0}
.theme-pita .nk-card h3{font-family:var(--font-display);font-weight:400;font-size:2rem;color:var(--accent);margin-bottom:8px}
.theme-pita .nk-card .nk-strong{color:var(--ink)}
.theme-pita .nk-card p{font-size:.94rem}

/* Galeri: bingkai berenda warna aksen, sedikit miring */
.theme-pita #galeri .nk-heading::before{--pt-img:var(--pt-kilau);width:90px;height:56px;margin:0 auto 4px;-webkit-mask-size:200px;mask-size:200px;-webkit-mask-position:-20px -14px;mask-position:-20px -14px}
.theme-pita .nk-gallery{gap:18px 14px;padding:4px 6px}
.theme-pita .nk-photo{--pt-s:7px;aspect-ratio:4/5;border-radius:0;background:var(--accent);padding:10px;rotate:-2.5deg;transition:rotate .3s,scale .3s}
.theme-pita .nk-photo:first-child{aspect-ratio:5/4;rotate:1deg}
.theme-pita .nk-photo:nth-child(even){rotate:2.5deg}
.theme-pita .nk-photo:hover{rotate:0deg;scale:1.03}
.theme-pita .nk-photo img{border:4px solid var(--bg)}

/* Kisah: kertas bergaris */
.theme-pita .nk-story .nk-text{background:var(--surface) repeating-linear-gradient(transparent 0 31px,color-mix(in srgb,var(--accent) 22%,transparent) 31px 32px);
 line-height:32px;padding:16px 22px 18px;border-radius:6px;box-shadow:0 8px 22px rgba(70,80,120,.12);rotate:-1deg;text-align:left;position:relative}
.theme-pita .nk-story .nk-text::before{content:"";position:absolute;left:50%;top:-12px;width:86px;height:24px;translate:-50% 0;rotate:3deg;background:color-mix(in srgb,var(--butter) 80%,transparent);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.theme-pita .nk-story::after{--pt-img:var(--pt-hati);width:150px;height:46px;margin:20px auto 0}

/* Amplop digital: kartu kuning bertepi gelombang di atas */
.theme-pita .nk-gifts>.nk-heading::before{--pt-img:var(--pt-kado);width:104px;height:92px;margin:0 auto 8px}
.theme-pita .nk-gift{--pt-s:9px;background:var(--butter);text-align:left;padding:34px 26px 26px;
 -webkit-mask:radial-gradient(circle at 50% 100%,#000 calc(var(--pt-s) - .5px),transparent var(--pt-s)) top/calc(var(--pt-s)*2) var(--pt-s) repeat-x,linear-gradient(#000 0 0) bottom/100% calc(100% - var(--pt-s)) no-repeat;
 mask:radial-gradient(circle at 50% 100%,#000 calc(var(--pt-s) - .5px),transparent var(--pt-s)) top/calc(var(--pt-s)*2) var(--pt-s) repeat-x,linear-gradient(#000 0 0) bottom/100% calc(100% - var(--pt-s)) no-repeat;border-radius:0 0 18px 18px}
.theme-pita .nk-gift .nk-strong{font-family:var(--font-display);font-weight:400;font-size:1.6rem;color:var(--accent)}
.theme-pita .nk-number{color:var(--ink);font-family:var(--font-body);font-weight:600;letter-spacing:.12em}

/* RSVP & ucapan */
.theme-pita .nk-form{position:relative;background:var(--surface);padding:46px 20px 22px;border-radius:20px;box-shadow:0 0 0 2px var(--accent),0 6px 0 2px color-mix(in srgb,var(--accent) 35%,transparent);margin-top:30px}
.theme-pita #rsvp .nk-form::before{--pt-img:var(--pt-pita);position:absolute;left:50%;top:-34px;width:62px;height:66px;translate:-50% 0}
.theme-pita .nk-form input,.theme-pita .nk-form select,.theme-pita .nk-form textarea{background:var(--bg);border:1.5px solid var(--line);border-radius:14px}
.theme-pita .nk-form input:focus,.theme-pita .nk-form select:focus,.theme-pita .nk-form textarea:focus{outline:2px solid var(--accent);outline-offset:1px}
.theme-pita .nk-msg{background:var(--butter);border:0;border-radius:18px 18px 18px 4px}
.theme-pita .nk-msg .nk-strong{color:var(--accent)}

/* Lagu: kartu pemutar */
.theme-pita .nk-song .nk-heading::before{--pt-img:var(--pt-kilau);width:70px;height:44px;margin:0 auto;-webkit-mask-size:180px;mask-size:180px;-webkit-mask-position:-14px -12px;mask-position:-14px -12px}
.theme-pita .nk-yt{border-radius:20px;border:8px solid var(--accent);box-shadow:0 6px 0 color-mix(in srgb,var(--accent) 45%,#1c2340)}

/* Penutup */
.theme-pita .nk-closing::before{--pt-img:var(--pt-buket);width:120px;height:160px;margin:0 auto 14px}
.theme-pita .nk-closing .nk-eyebrow{font-size:1.1rem;color:var(--ink)}
.theme-pita .nk-footer{position:relative}

/* Menu bawah dan tombol musik */
.theme-pita:not(.nk-locked) .nk-nav{display:flex}
.theme-pita .nk-nav{background:color-mix(in srgb,var(--butter) 92%,transparent);border:2px solid var(--accent);box-shadow:0 4px 0 color-mix(in srgb,var(--accent) 40%,transparent)}
.theme-pita .nk-nav a{color:var(--ink);font-family:var(--font-body)}
.theme-pita .nk-nav a:hover,.theme-pita .nk-nav a:focus-visible{background:var(--accent);color:var(--accent-ink)}
.theme-pita .nk-main{padding-bottom:76px}
.theme-pita .nk-music{bottom:86px;box-shadow:0 0 0 3px var(--butter),0 0 0 5px var(--accent)}

@media (prefers-reduced-motion:reduce){.theme-pita .nk-cover::before,.theme-pita .nk-main::before,.theme-pita .nk-cover-inner::before,.theme-pita .nk-hero-photo::before,.theme-pita .nk-cal-day::before{animation:none}}
