/* Zaitun Emas — ranting zaitun foil emas yang tumbuh saat digulir, di atas sage dan gading. */
:root {
    --bg: #f6f3e8; --paper: #fdfbf3; --ink: #2f3a27; --dim: #6c7562; --acc: #76602a; --acc-ink: #fdfbf3; --line: rgba(47, 58, 39, .2); --radius: 14px;
    --olive: #2f3a27; --sage: #a9b597; --foil: linear-gradient(105deg, #5e4716 0%, #8f7030 26%, #b8964a 42%, #7c5f24 60%, #5e4716 78%, #8f7030 100%); --foil-l: linear-gradient(105deg, #b8934a 0%, #ecd695 30%, #fff4cb 44%, #d2ae5e 60%, #b8934a 78%, #ecd695 100%);
    --display: 'Italiana', serif; --body: 'Mulish', sans-serif; --script: 'Alex Brush', cursive;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; height: 100dvh; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.arabic { font-family: 'Amiri', serif; direction: rtl; line-height: 2; }

.music-toggle-btn { position: fixed; top: 16px; right: 16px; z-index: 1001; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--line); background: var(--paper); color: var(--acc); }
.music-toggle-btn svg { width: 17px; height: 17px; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 9800; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; background: var(--ink); color: var(--bg); padding: 10px 20px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1002; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--acc); transform: scaleX(0); transform-origin: left; }

.cover { position: fixed; inset: 0; z-index: 2000; overflow: hidden; }
.cover.open { pointer-events: none; }

.sec { position: relative; padding: 72px 20px; counter-increment: sec; }
main { counter-reset: sec; position: relative; z-index: 1; }
.card { position: relative; max-width: 560px; margin: 0 auto; }
.center { text-align: center; }
.sh { margin-bottom: 26px; }
.sh-no::before { content: counter(sec, upper-roman); }
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.txt { margin: 0 auto 16px; max-width: 34em; }
.txt.sm { font-size: 14px; color: var(--dim); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 26px; border: 1px solid var(--acc); background: var(--acc); color: var(--acc-ink); cursor: pointer; text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transition: transform .25s, background .25s, color .25s; }
.btn:active { transform: scale(.97); }
.btn.line { background: transparent; color: var(--acc); }
.btn.wide { width: 100%; }
.btn.loading { opacity: .6; pointer-events: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

.couple { display: grid; gap: 40px; }
.person h3 { font-family: var(--display); font-weight: 500; }
.portrait { position: relative; margin: 0 auto 18px; width: 210px; aspect-ratio: 4 / 5; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ini { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--display); font-size: 76px; }
.parent { font-size: 14.5px; color: var(--dim); }
.and { font-family: var(--script); font-size: 46px; color: var(--acc); line-height: 1; }

.story { list-style: none; position: relative; text-align: left; }
.story li { position: relative; padding: 0 0 28px 26px; border-left: 1px solid var(--line); }
.story li:last-child { padding-bottom: 0; }
.story li::before { content: ''; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); }
.story time { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.story h3 { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.3; margin-bottom: 4px; }
.story p { font-size: 15px; }

.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px auto 24px; max-width: 420px; }
.cd b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 10vw, 44px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

.events { display: grid; gap: 20px; text-align: left; }
.ev { position: relative; padding: 26px 24px; }
.ev h3 { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.2; }
.ev-k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.ev dl { margin: 14px 0 18px; display: grid; gap: 8px; font-size: 15px; }
.ev dl div { display: flex; gap: 10px; align-items: flex-start; }
.ev dt { color: var(--acc); padding-top: 2px; }

.map-frame { position: relative; height: 260px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); z-index: 0; }
.leaflet-map, .map-illu { display: block; width: 100%; height: 100%; }
.map-illu { position: relative; background: var(--paper); color: var(--acc); }
.map-illu svg { width: 100%; height: 100%; display: block; }
.mi-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--acc); }
.mi-pin .ico { width: 40px; height: 40px; }
.pin-marker span { display: block; width: 18px; height: 18px; margin: 7px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--acc); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); }
.loc-name { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.3; margin-bottom: 6px; }

.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gal-item { display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--paper); overflow: hidden; cursor: zoom-in; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gal-item:hover img { transform: scale(1.04); }
.gal.ph .gal-item { cursor: default; display: flex; align-items: center; justify-content: center; color: var(--dim); font-family: var(--display); font-style: italic; font-size: 17px; border: 1px solid var(--line); }
.gal-note { margin-top: 14px; }

.gift-sec { padding-bottom: 40px; }
.gift-wrap { margin-top: 20px; }
.gift #gift-section { background: transparent !important; padding: 0 !important; font-family: var(--body) !important; }
.gift #gift-section .gs-heading { display: none; }
.gift #gift-section .gs-card, .gift #gift-section .gs-bank-card { border-radius: var(--radius) !important; border: 1px solid var(--line) !important; background: var(--paper) !important; box-shadow: none !important; }
.gift #gift-section .gs-sbtn, .gift #gift-section .gs-btn-buy, .gift #gift-section .gs-bank-copy { border-radius: var(--radius) !important; background: var(--acc) !important; color: var(--acc-ink) !important; border: 0 !important; }
.gift #gift-section .gs-price { color: var(--acc) !important; }
.gift #gift-section .gs-name, .gift #gift-section .gs-bank-name-text, .gift #gift-section .gs-bank-holder { color: var(--ink) !important; }
.gift #gift-section .gs-bank-number { color: var(--ink) !important; }
.gift #gift-section .gs-dot.taken { background: var(--acc) !important; }
.gift .gs-wrap, .gift .gs-track, .gift .gs-bank-track { max-width: 1080px; margin-left: auto; margin-right: auto; }

.rsvp-form { text-align: left; }
.f-l { display: block; margin: 16px 0 6px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.f-in { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; outline: none; font-size: 16px; transition: border-color .25s; }
.f-in:focus { border-color: var(--acc); }
.f-in::placeholder { color: var(--dim); opacity: .75; }
textarea.f-in { resize: vertical; }
.att { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.att input { position: absolute; opacity: 0; }
.att span { display: block; padding: 10px 4px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.att input:checked + span { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.att input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.rsvp-form .btn { margin-top: 20px; }

.wishes-list { max-height: 460px; overflow-y: auto; text-align: left; }
.wish-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.wish-item:first-child { border-top: 0; }
.wish-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--acc); color: var(--acc-ink); font-family: var(--display); font-size: 17px; }
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.wish-name { font-family: var(--display); font-size: 18px; word-break: break-word; }
.wish-badge { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); border: 1px solid var(--line); padding: 0 8px; border-radius: 999px; }
.wish-message { font-size: 14.5px; line-height: 1.6; word-break: break-word; }
.wish-time { font-size: 11px; color: var(--dim); }
.wish-empty { text-align: center; padding: 20px 0; color: var(--dim); font-style: italic; }

.finale { position: relative; padding: 90px 22px 110px; text-align: center; }
.fam { display: grid; gap: 14px; margin: 26px auto; max-width: 420px; font-size: 15px; }
.fam span { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); }
.credit { margin-top: 36px; font-size: 11px; letter-spacing: .08em; color: var(--dim); }

.gallery-lightbox { display: none; opacity: 0; transition: opacity .3s; position: fixed; inset: 0; z-index: 9600; background: rgba(8, 7, 6, .94); align-items: center; justify-content: center; }
.lb-img-wrap, .lb-img-wrap img { max-width: 94vw; max-height: 84vh; }
.lb-img-wrap img { object-fit: contain; }
.lb-close, .lb-prev, .lb-next { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .35); color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-close { top: calc(18px + env(safe-area-inset-top)); right: 18px; font-size: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; color: #fff; }

@media (min-width: 720px) {
    .couple { grid-template-columns: 1fr auto 1fr; align-items: center; }
    .events { grid-template-columns: 1fr 1fr; }
    .gal { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body { font-weight: 300; }
.foil { background: var(--foil); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 9s ease-in-out infinite alternate; }
@keyframes foil { to { background-position: 100% 0; } }
.foil span { font-family: var(--script); }
.finale .foil { background-image: var(--foil-l); }

/* ranting & karangan: dilukis oleh script.js */
.branch svg, .wreath svg { display: block; width: 100%; height: 100%; overflow: visible; }
.stem { fill: none; stroke: url(#zfoil); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s ease; }
.leaf, .olive { opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: 0 50%; transition: opacity .6s ease, transform .9s cubic-bezier(.2, 1.3, .4, 1); transition-delay: var(--d, 0s); }
.olive { transform-origin: center; }
.grown .stem { stroke-dashoffset: 0; }
.grown .leaf, .grown .olive { opacity: 1; transform: none; }
.branch.mini { width: 150px; height: 34px; margin: 0 auto 8px; }
.branch.wide { width: min(86%, 340px); height: 76px; margin: 0 auto 22px; }
.wreath { position: absolute; inset: 0; }
.wr-wrap { position: relative; width: 216px; aspect-ratio: 1; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.wr-mono { font-family: var(--display); font-size: 46px; color: var(--olive); }
.wr-mono i { font-family: var(--script); font-style: normal; color: var(--acc); padding: 0 3px; }

.cover { background: var(--olive); display: flex; align-items: center; justify-content: center; padding: 18px; transition: opacity .8s ease 1s; }
.cover.open { opacity: 0; }
.arch { width: min(100%, 372px); max-height: 100%; padding: 42px 22px 22px; text-align: center; background: var(--paper); border-radius: 190px 190px 6px 6px; box-shadow: 0 0 0 1px #8f7434, 0 0 0 7px var(--olive), 0 0 0 8px #c49f4e; transition: transform 1.7s cubic-bezier(.7, 0, .2, 1); }
.cover.open .arch { transform: scale(5.5); }
.arch > * { transition: opacity .35s; }
.cover.open .arch > * { opacity: 0; }
.arch .wr-wrap { width: 176px; }
.arch .wr-mono { font-size: 38px; }
.cv-k { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--dim); margin-top: 8px; }
.cv-names { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 10vw, 40px); line-height: 1.16; margin-top: 2px; }
.cv-date { font-size: 13px; letter-spacing: .24em; color: var(--dim); }
.cv-to { margin-top: 12px; }
.cv-to span { display: block; font-size: 12px; color: var(--dim); }
.cv-to b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
.cv-note { margin-top: 10px; font-size: 10px; color: var(--dim); }
.btn { border-radius: 999px; font-size: 12px; font-weight: 400; background: var(--olive); border-color: var(--olive); color: #f6efd8; }
.btn.line { color: var(--olive); }

.hero { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 18px; background: radial-gradient(120% 80% at 50% 40%, #fdfbf3, #e7e7d3); }
.wr-wrap.lg { width: min(92vw, 400px); margin-bottom: 22px; }
.hero-in { position: relative; }
.hero-k { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--dim); }
.hero-names { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 13vw, 66px); line-height: 1.06; }
.hero-names span, .fin-names span { display: block; font-size: .72em; line-height: 1; }
.hero-date { font-size: 15px; font-weight: 400; } .hero-place { font-size: 13.5px; color: var(--dim); }

.sec { padding: 60px 20px; }
.sec:nth-of-type(3n+1) { background: var(--olive); color: #f3efdf; --ink: #f3efdf; --dim: #bcc4ad; --line: rgba(243, 239, 223, .22); --paper: rgba(255, 255, 255, .05); --acc: #e0c27a; --acc-ink: #2f3a27; }
.sec:nth-of-type(3n+1) .btn { background: #e0c27a; border-color: #e0c27a; color: var(--olive); }
.sec:nth-of-type(3n+1) .btn.line { background: transparent; color: #e0c27a; }
.sh { text-align: center; }
.sh-no { display: none; }
.sh-k { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--dim); }
.ttl { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 9vw, 42px); line-height: 1.14; margin-top: 6px; }
.arabic.big { font-size: 25px; color: var(--acc); }
.sub { font-style: italic; margin-bottom: 10px; }
.ayat { margin-top: 26px; padding: 44px 22px 26px; border-radius: 150px 150px 6px 6px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.ayat .arabic { font-size: 20px; }
.ayat blockquote { font-style: italic; font-size: 14px; color: var(--dim); }
.ayat figcaption { margin-top: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.portrait { border-radius: 110px 110px 4px 4px; padding: 6px; box-shadow: 0 0 0 1px var(--acc); }
.portrait img, .portrait .ini { border-radius: 104px 104px 2px 2px; }
.portrait .ini { background: var(--sage); color: var(--olive); }
.person h3 { font-size: 27px; font-weight: 400; line-height: 1.2; }
.cd-i { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); }
.cd b { font-size: clamp(24px, 7.5vw, 34px); }
.cd span { font-size: 9px; }
.ev { background: var(--paper); border-radius: 110px 110px 6px 6px; padding: 46px 24px 26px; box-shadow: 0 0 0 1px var(--line); text-align: center; }
.ev dl { text-align: left; }
.map-frame { border-radius: 130px 130px 6px 6px; }
.gal-item { border-radius: 96px 96px 4px 4px; }
.gal-item:nth-child(even) { transform: translateY(26px); }
.gal-item.rv:nth-child(even):not(.in) { transform: translateY(52px); }
.gal { padding-bottom: 26px; }
.f-in { border-radius: 14px; }
textarea.f-in { border-radius: 14px; }
.finale { background: var(--olive); color: #f3efdf; --dim: #bcc4ad; --acc: #e0c27a; }
.finale .arabic { font-size: 22px; color: #e0c27a; }
.fin-k { color: #bcc4ad; font-style: italic; }
.fin-names { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 12vw, 56px); line-height: 1.08; margin: 8px 0 14px; }
.toast { background: var(--olive); color: #f6efd8; }
.music-toggle-btn { color: var(--olive); }
.gal-item:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); transform: none; }
