/* Tema Modern Gelap — gaya Modern, tipe Elegan (struktur: Panel emas).
   Dibuat dari generator tema bawaan QuUndangin. Boleh diunduh, diubah, lalu diunggah ulang sebagai tema baru.
   Susunan file: 1) warna & huruf  2) dasar  3) STRUKTUR tipe Elegan  4) bentuk khas gaya Modern  5) efek  6) layar lebar */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Italiana&display=swap');
.inv-root {
  --inv-bg: #121214;
  --inv-surface: #1d1d21;
  --inv-primary: #d6b46a;
  --inv-accent: #55555c;
  --inv-text: #f2f2f2;
  --inv-muted: #a9a9ae;
  --inv-font-head: 'Outfit', Georgia, serif;
  --inv-font-script: 'Italiana', Georgia, serif;
  --inv-font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --t-gold: #d6b46a;
  --t-gold2: color-mix(in srgb, var(--t-gold) 50%, #fff);
  --t-line: color-mix(in srgb, var(--inv-accent) 60%, transparent);
  --t-soft: color-mix(in srgb, var(--inv-accent) 16%, var(--inv-surface));
  --t-inv-bg: #d6b46a;
  --t-inv-fg: #121214;
  --t-radius: 20px;
  --t-btn: 12px;
  --t-ns: 0.8;
  --t-shadow: 0 24px 50px -34px color-mix(in srgb, var(--inv-primary) 60%, #000);
}

/* ---------- 2) Dasar ---------- */
.inv-root .inv-title { text-transform: uppercase; letter-spacing: .14em; font-size: clamp(1.05rem, 3.2vw, 1.3rem); font-weight: 800; }
.inv-root .inv-kicker { letter-spacing: .3em; font-size: .7rem; }
.inv-root .inv-big { font-size: calc(clamp(2.6rem, 9.5vw, 3.9rem) * var(--t-ns)); }
.inv-root .inv-date { letter-spacing: .06em; }
.inv-root .inv-quote { line-height: 1.75; }
.inv-root .inv-btn { border-radius: var(--t-btn); padding: 12px 22px; letter-spacing: .02em; }
.inv-root .inv-btn-ghost { box-shadow: inset 0 0 0 1.5px var(--inv-primary); }
.inv-root .inv-couple { --pw: 150px; }
.inv-root .inv-person { position: relative; }
.inv-root .inv-photo { width: var(--pw); height: calc(var(--pw) * 1.2667); border: 0; }
.inv-root .inv-person h4 { font-size: calc(clamp(2.1rem, 6.5vw, 2.6rem) * var(--t-ns)); margin-bottom: 4px; }
.inv-root .inv-amp { font-size: calc(clamp(2.6rem, 8vw, 3.4rem) * var(--t-ns)); color: var(--inv-accent); }
.inv-root .inv-countdown b { font-size: clamp(1.5rem, 5vw, 2rem); }
.inv-root .inv-form input[type=text], .inv-root .inv-form textarea, .inv-root .inv-form select { border-radius: min(var(--t-radius), 12px); }
.inv-root .inv-timeline { border-left-color: var(--inv-accent); }
.inv-root .inv-cover:not([style]) { background-image: radial-gradient(130% 85% at 50% 0%, var(--inv-surface), var(--inv-bg) 75%); }
.inv-root .inv-cover-inner { padding: 40px 24px; }
.inv-root .inv-cover .inv-script { font-size: calc(clamp(2.9rem, 12vw, 4.8rem) * var(--t-ns)); margin: 6px 0 10px; }
.inv-root .inv-to { margin: 16px 0 26px; }
.inv-root .inv-to strong { font-size: 1.35rem; color: var(--inv-text); }
.inv-root .inv-cover[style] .inv-to strong { color: #fff; }
.inv-root .inv-footer .inv-script { font-size: calc(2rem * var(--t-ns)); }
@media (min-width: 640px) { .inv-root .inv-couple { --pw: 170px; } }
@keyframes t-sway { 0%, 100% { rotate: -1.6deg; } 50% { rotate: 1.6deg; } }
@keyframes t-swing { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes t-shine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes t-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: .75; } }
@keyframes t-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.inv-root .inv-script { font-style: normal; font-weight: 400; }

/* ---------- 3) STRUKTUR PANEL EMAS (Elegan): satu latar utuh bertitik gradasi, isi di panel berbingkai emas ganda ---------- */
.inv-root { --t-bleed: 40px; }
.inv-root .inv-main { overflow-x: clip; }
/* latar: titik emas bergradasi (rapat di atas & bawah layar, memudar ke tengah) + cahaya lembut. Menempel di layar,
   jadi seluruh undangan memakai SATU latar yang sama — tidak ada perbatasan/perbedaan warna antarbagian */
.inv-root .inv-page-layers .l1 { background: radial-gradient(circle, color-mix(in srgb, var(--t-gold) 75%, transparent) 0 1.15px, transparent 1.7px) 0 0 / 15px 15px;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.35) 30%, transparent 50%, rgba(0,0,0,.35) 70%, #000);
  mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.35) 30%, transparent 50%, rgba(0,0,0,.35) 70%, #000); opacity: .5; }
.inv-root .inv-page-layers .l3 { background: radial-gradient(70% 40% at 50% 0%, color-mix(in srgb, var(--t-gold) 16%, transparent), transparent),
  radial-gradient(70% 40% at 50% 100%, color-mix(in srgb, var(--inv-accent) 14%, transparent), transparent); }
.inv-root .inv-section { padding: 24px 0; }
.inv-root .inv-section > .inv-layers.back { inset: 0 calc(-1 * var(--t-bleed)); overflow: visible; }
.inv-root .inv-section .inv-layers.back i { display: none; }
/* panel: permukaan lembut, bingkai emas ganda, ornamen sudut di dalam bingkai */
.inv-root .inv-card { background: color-mix(in srgb, var(--inv-surface) 93%, transparent); border: 1px solid color-mix(in srgb, var(--t-gold) 55%, transparent);
  outline: 1px solid color-mix(in srgb, var(--t-gold) 32%, transparent); outline-offset: -9px; border-radius: var(--t-radius); box-shadow: var(--t-shadow);
  padding: clamp(46px, 10vw, 58px) clamp(24px, 7vw, 52px) clamp(40px, 9vw, 50px); }
.inv-root .inv-card > * { position: relative; z-index: 1; }
.inv-root .inv-card::before, .inv-root .inv-card::after { content: ''; position: absolute; width: clamp(46px, 12vw, 70px); height: clamp(46px, 12vw, 70px);
  background: var(--t-gold); -webkit-mask: url(img/corner.svg) center/contain no-repeat; mask: url(img/corner.svg) center/contain no-repeat; opacity: .85; pointer-events: none; z-index: 0; }
.inv-root .inv-card::before { top: 12px; left: 12px; } .inv-root .inv-card::after { bottom: 12px; right: 12px; scale: -1 -1; }
/* ornamen muncul satu per satu: kilau (l2) → untaian samping (l3) → hiasan emas di sela antarpanel (l4) */
.inv-root .inv-section .inv-layers.back .l2 { display: block; inset: auto; bottom: -20px; width: 18px; height: 18px; background: var(--t-gold); -webkit-mask: url(img/particle.svg) center/contain no-repeat; mask: url(img/particle.svg) center/contain no-repeat; opacity: .75; animation: t-float 5s ease-in-out infinite; }
.inv-root .inv-main > .inv-section:nth-of-type(odd) > .inv-layers.back .l2 { right: calc(var(--t-bleed) + 16%); }
.inv-root .inv-main > .inv-section:nth-of-type(even) > .inv-layers.back .l2 { left: calc(var(--t-bleed) + 16%); animation-delay: -2.5s; }
.inv-root .inv-main > .inv-section + .inv-section > .inv-layers.back .l4 { display: block; inset: auto; top: -12px; left: 50%; width: 150px; height: 26px; translate: -50% 0;
  background: var(--t-gold); -webkit-mask: url(img/divider.svg) center/contain no-repeat; mask: url(img/divider.svg) center/contain no-repeat; }
.inv-root .inv-section .inv-layers.back .l3 { display: block; inset: 0 auto auto auto; top: 30px; width: 30px; height: min(70%, 300px); background: var(--t-gold); -webkit-mask: url(img/side.svg) top center/100% auto no-repeat; mask: url(img/side.svg) top center/100% auto no-repeat;
  -webkit-mask-position: top center; mask-position: top center; -webkit-mask-size: 100% auto; mask-size: 100% auto; transform-origin: 50% 0; animation: t-swing 7s ease-in-out infinite; opacity: .8; }
.inv-root .inv-main > .inv-section:nth-of-type(odd) > .inv-layers.back .l3 { left: calc(var(--t-bleed) - 36px); }
.inv-root .inv-main > .inv-section:nth-of-type(even) > .inv-layers.back .l3 { right: calc(var(--t-bleed) - 36px); animation-delay: -3.5s; }
@media (max-width: 639px) { .inv-root .inv-section .inv-layers.back .l3 { width: 0; } }
/* sulur tegak tipis di kedua tepi layar (layar ≥640px): satu untaian utuh dari atas sampai bawah */
@media (min-width: 640px) {
  .inv-root { position: relative; }
  .inv-root::before, .inv-root::after { content: ''; position: absolute; top: 0; bottom: 0; width: 22px; z-index: 2; pointer-events: none; background: var(--t-gold); -webkit-mask: url(img/rail.svg) top center/100% auto repeat-y; mask: url(img/rail.svg) top center/100% auto repeat-y; opacity: .4; }
  .inv-root::before { left: 8px; } .inv-root::after { right: 8px; scale: -1 1; }
  .inv-root.inv-locked::before, .inv-root.inv-locked::after { display: none; }
}
.inv-root .inv-hero[style] { border-radius: var(--t-radius); }
.inv-root .inv-title::after { content: ''; display: block; width: 150px; height: 22px; margin: 10px auto 0; background: var(--t-gold); -webkit-mask: url(img/divider.svg) center/contain no-repeat; mask: url(img/divider.svg) center/contain no-repeat; }
.inv-root .inv-ornament::before { content: ''; display: block; width: clamp(84px, 20vw, 110px); height: clamp(84px, 20vw, 110px); margin: 0 auto; background: var(--t-gold); -webkit-mask: url(img/emblem.svg) center/contain no-repeat; mask: url(img/emblem.svg) center/contain no-repeat; }
.inv-root .inv-person::before { content: ''; position: absolute; left: 50%; top: calc(var(--pw) * -.2333); width: calc(var(--pw) * 1.3333); height: calc(var(--pw) * 1.7333);
  translate: -50% 0; background: var(--t-gold); -webkit-mask: url(img/frame.svg) center/contain no-repeat; mask: url(img/frame.svg) center/contain no-repeat; z-index: 2; pointer-events: none; }
.inv-root .inv-person h4 { margin-top: 46px; }
.inv-root .inv-couple { padding-top: 24px; }
.inv-root .inv-countdown div { background: transparent; border: 1px solid var(--inv-accent); border-radius: 999px 999px 10px 10px; padding: 16px 4px; }
.inv-root .inv-event { background: color-mix(in srgb, var(--inv-bg) 45%, var(--inv-surface)); border: 1px solid color-mix(in srgb, var(--t-gold) 55%, transparent); border-radius: calc(var(--t-radius) * .6 + 4px);
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--inv-bg) 45%, var(--inv-surface)), inset 0 0 0 6px color-mix(in srgb, var(--t-gold) 40%, transparent); padding: 26px 20px; }
.inv-root .inv-gift, .inv-root .inv-wish { background: var(--inv-surface); border-radius: calc(var(--t-radius) * .5 + 4px); border: 1px solid color-mix(in srgb, var(--t-gold) 40%, transparent); }
.inv-root .inv-gal-item, .inv-root .inv-gallery.is-placeholder span, .inv-root .inv-video { border-radius: calc(var(--t-radius) * .4 + 2px); box-shadow: 0 0 0 3px var(--inv-surface), 0 0 0 4px var(--t-gold); }
/* nama berkilau emas */
.inv-root .inv-cover:not([style]) .inv-script, .inv-root .inv-hero:not([style]) .inv-script, .inv-root .inv-person h4, .inv-root .inv-aside:not([style]) .inv-script {
  background: linear-gradient(100deg, var(--inv-primary) 0 38%, var(--t-gold2) 50%, var(--inv-primary) 62% 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .14em .1em; animation: t-shine 7s linear infinite; }
.inv-root .inv-countdown b { background: linear-gradient(180deg, var(--inv-primary), var(--t-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.inv-root .inv-title { color: var(--inv-primary); }
.inv-root .inv-page-layers .l2 { background-image: radial-gradient(circle, var(--t-gold) 0 1.3px, transparent 1.8px), radial-gradient(circle, var(--t-gold) 0 1px, transparent 1.5px);
  background-size: 150px 170px, 230px 190px; background-position: 0 0, 70px 90px; background-repeat: repeat; animation: t-twinkle 5s ease-in-out infinite; }
/* cover: lambang, bingkai ganda, untaian & tepi bawah */
.inv-root .inv-cover-inner { border: 1px solid color-mix(in srgb, var(--t-gold) 60%, transparent); outline: 1px solid color-mix(in srgb, var(--t-gold) 40%, transparent); outline-offset: 7px;
  background: color-mix(in srgb, var(--inv-surface) 92%, transparent); border-radius: var(--t-radius); padding: 30px 26px 40px; max-width: 430px; box-shadow: var(--t-shadow); }
.inv-root .inv-cover-inner::before { content: ''; display: block; width: clamp(78px, 18vw, 104px); height: clamp(78px, 18vw, 104px); margin: 0 auto 10px; background: var(--t-gold); -webkit-mask: url(img/emblem.svg) center/contain no-repeat; mask: url(img/emblem.svg) center/contain no-repeat; }
.inv-root .inv-cover.is-envelope .inv-cover-inner::before { width: 58px; height: 58px; }
.inv-root .inv-cover[style] .inv-cover-inner { background: rgba(0,0,0,.3); }
.inv-root .inv-cover[style] .inv-cover-inner::before { background: #fff; }
.inv-root .inv-cover .inv-layers.back i, .inv-root .inv-aside .inv-layers.back i { inset: auto; background: var(--t-gold); }
.inv-root .inv-cover .inv-layers.back .l1, .inv-root .inv-cover .inv-layers.back .l2, .inv-root .inv-aside .inv-layers.back .l1, .inv-root .inv-aside .inv-layers.back .l2 {
  top: 0; width: clamp(40px, 10vw, 60px); height: min(62vh, 460px); -webkit-mask: url(img/side.svg) top center/100% auto no-repeat; mask: url(img/side.svg) top center/100% auto no-repeat; -webkit-mask-position: top center; mask-position: top center;
  -webkit-mask-size: 100% auto; mask-size: 100% auto; transform-origin: 50% 0; animation: t-swing 7s ease-in-out infinite; }
.inv-root .inv-cover .inv-layers.back .l1, .inv-root .inv-aside .inv-layers.back .l1 { left: 5%; } .inv-root .inv-cover .inv-layers.back .l2, .inv-root .inv-aside .inv-layers.back .l2 { right: 5%; animation-delay: -3.5s; }
.inv-root .inv-cover .inv-layers.back .l3, .inv-root .inv-aside .inv-layers.back .l3 { left: 0; right: 0; bottom: 0; height: 22px; background: var(--inv-accent); -webkit-mask: url(img/band.svg) left top/auto 100% repeat-x; mask: url(img/band.svg) left top/auto 100% repeat-x;
  -webkit-mask-size: auto 100%; mask-size: auto 100%; opacity: .8; }
.inv-root .inv-cover .inv-layers.back .l4, .inv-root .inv-aside .inv-layers.back .l4 { left: 0; right: 0; top: 0; height: 22px; background: var(--inv-accent); -webkit-mask: url(img/band.svg) left top/auto 100% repeat-x; mask: url(img/band.svg) left top/auto 100% repeat-x;
  -webkit-mask-size: auto 100%; mask-size: auto 100%; opacity: .8; }
.inv-root .inv-open { background: linear-gradient(110deg, var(--inv-primary) 35%, color-mix(in srgb, var(--inv-primary) 50%, #fff) 50%, var(--inv-primary) 65%);
  background-size: 260% 100%; animation: t-shine 3.6s linear infinite; }
.inv-root .inv-fab-btn { box-shadow: 0 10px 24px -10px var(--inv-primary); }
@media (min-width: 640px) { .inv-root { --t-bleed: max(40px, calc((100vw - 612px) / 2 - 12px)); } }

/* ---------- 4) Bentuk khas gaya Modern ---------- */
.inv-root .inv-photo { border-radius: 26px; }
.inv-root .inv-kicker { color: var(--inv-primary); font-weight: 700; }
.inv-root .inv-countdown b { font-size: clamp(2rem, 7vw, 2.6rem); font-weight: 800; }
.inv-root .inv-photo { box-shadow: 12px 12px 0 var(--inv-accent); }
.inv-root .inv-event { border-radius: 4px 28px 4px 28px; }
.inv-root .inv-hero-photo img { border-radius: 26px; box-shadow: 14px 14px 0 var(--inv-accent); }

/* ---------- 5) Partikel melayang/jatuh (dibuat script.js; jumlah naik sesuai tipe) ---------- */
.inv-root { --t-pop: 0.8; }
.inv-root .tp { position: absolute; top: -6%; left: var(--x); width: var(--s); height: var(--s); background: var(--t-particle, var(--t-gold)); -webkit-mask: url(img/particle.svg) center/contain no-repeat; mask: url(img/particle.svg) center/contain no-repeat;
  opacity: 0; animation: t-up var(--d) linear var(--dl) infinite; }
.inv-root .tp.blur { filter: blur(2px); }
@keyframes t-fall { 0% { opacity: 0; translate: 0 0; rotate: 0deg; } 10% { opacity: var(--t-pop); } 90% { opacity: calc(var(--t-pop) * .8); } 100% { opacity: 0; translate: var(--dx) 112vh; rotate: var(--r); } }
@keyframes t-up { 0% { opacity: 0; translate: 0 112vh; } 15% { opacity: calc(var(--t-pop) * .7); } 85% { opacity: calc(var(--t-pop) * .5); } 100% { opacity: 0; translate: var(--dx) 0; } }
@keyframes t-twk { 0%, 100% { opacity: 0; scale: .4; translate: 0 var(--y); } 50% { opacity: var(--t-pop); scale: 1; translate: 0 var(--y); } }

/* Tema gelap: bayangan, surat amplop & isian formulir disesuaikan */
.inv-root { --t-shadow: 0 26px 50px -30px rgba(0,0,0,.8); --t-seal: var(--inv-surface); --t-seal-text: var(--inv-primary); }
.inv-root .env-letter { background: linear-gradient(180deg, #fbf6ea, #f1e7d2); box-shadow: 0 -2px 8px rgba(0,0,0,.2), inset 0 0 0 5px #fbf6ea, inset 0 0 0 6px color-mix(in srgb, var(--inv-primary) 60%, transparent); }
.inv-root .env-letter-names { color: color-mix(in srgb, var(--inv-primary) 55%, #2a1d0c); }
.inv-root .env-letter-note { color: #6b5d48; }
.inv-root .inv-form input[type=text], .inv-root .inv-form textarea, .inv-root .inv-form select { background: color-mix(in srgb, var(--inv-bg) 70%, var(--inv-surface)); }
.inv-root .inv-qr { background: #fff; }

/* ---------- 6) Layar lebar (desktop ≥1100px): panel kiri ---------- */
@media (min-width: 1100px) {
  .inv-root .inv-aside:not([style]) { background: radial-gradient(120% 80% at 50% 0%, var(--inv-surface), var(--inv-bg) 80%); }
  .inv-root .inv-aside-names { font-size: calc(clamp(3.2rem, 5.4vw, 5.6rem) * var(--t-ns)); }
  .inv-root .inv-aside-inner::before { content: ''; display: block; width: 120px; height: 120px; margin: 0 auto 16px; background: var(--t-gold); -webkit-mask: url(img/emblem.svg) center/contain no-repeat; mask: url(img/emblem.svg) center/contain no-repeat; }
  .inv-root .inv-aside-date::after { content: ''; display: block; width: 72px; height: 1px; margin: 22px auto 0; background: var(--inv-accent); }
  .inv-root { --t-bleed: max(36px, calc((58vw - 660px) / 2)); }
  .inv-root .inv-section { padding: 64px 0 58px; }
}
