/* Cetak Timbul — kartu katun tebal, huruf timbul tanpa tinta, tepi merah terakota. */
:root {
    --bg: #f1eee7; --paper: #f8f6f0; --ink: #1f1b18; --dim: #6e675e; --acc: #bd2f18; --acc-ink: #fff8f2; --line: rgba(31, 27, 24, .18); --radius: 0px;
    --display: 'Bodoni Moda', serif; --body: 'Instrument Sans', sans-serif; --script: 'Italianno', cursive;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .27 0 0 0 0 .22 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::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 { background: var(--bg) var(--grain); font-size: 15.5px; }
.deboss { font-family: var(--display); color: #e6e1d6; text-shadow: 0 1px 1px #fff, 0 -1px 1px rgba(70, 60, 45, .34); user-select: none; line-height: .9; }

.cover { background: var(--acc); display: flex; align-items: center; justify-content: center; padding: 22px; transition: background-color .5s 1s; perspective: 1200px; }
.cover.open { background: transparent; }
.sheet { position: relative; width: min(100%, 372px); min-height: min(86dvh, 600px); display: flex; flex-direction: column; padding: 26px 24px 18px; background: var(--paper) var(--grain); box-shadow: 0 2px 0 #e8e3d8, 0 4px 0 #e0dacd, 0 6px 0 var(--acc), 0 8px 0 #93220f, 0 34px 50px -14px rgba(50, 10, 0, .6); transition: transform 1.3s cubic-bezier(.6, -.1, .3, 1), opacity .5s .9s; }
.cover.open .sheet { transform: translateY(-120dvh) rotate(-5deg); opacity: 0; }
.mono { font-size: 180px; letter-spacing: -.04em; text-align: center; margin: 4px 0 20px; }
.cv-k, .hero-k { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--acc); }
.cv-names { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 13vw, 54px); line-height: 1.02; margin-top: 8px; letter-spacing: -.01em; }
.cv-names em, .hero-names em, .fin-names em { font-family: var(--script); font-style: normal; color: var(--acc); font-size: 1.1em; }
.cv-date { font-size: 13px; letter-spacing: .1em; margin-top: 8px; }
.cv-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.cv-to { min-width: 0; }
.cv-to span { display: block; font-size: 11px; color: var(--dim); }
.cv-to b { display: block; font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.2; word-break: break-word; }
.cv-note { margin-top: 8px; font-size: 10px; color: var(--dim); }

.hero { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; padding: 60px 22px 54px; max-width: 620px; margin: 0 auto; }
.deboss.big { position: absolute; top: 9dvh; right: 10px; font-size: min(62vw, 340px); letter-spacing: -.05em; }
.hero-names { position: relative; font-family: var(--display); font-weight: 400; font-size: clamp(52px, 16.5vw, 104px); line-height: .98; letter-spacing: -.015em; margin-top: 12px; }
.hero-meta { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.hero-meta p:last-child { text-align: right; }

/* bagian: nomor raksasa timbul, tata letak rata kiri */
.sec { padding: 62px 22px; border-top: 1px solid var(--line); }
.sec:nth-of-type(even) .card { }
.card { max-width: 620px; text-align: left; }
.center { text-align: left; }
.txt { margin-left: 0; }
.sh { position: relative; min-height: 92px; padding-top: 16px; }
.sh-no { position: absolute; right: -4px; top: -24px; font-family: var(--display); font-size: 118px; line-height: 1; color: #e6e1d6; text-shadow: 0 1px 1px #fff, 0 -1px 1px rgba(70, 60, 45, .3); }
.sh-no::before { content: counter(sec, decimal-leading-zero); }
.sh-k { position: relative; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--acc); }
.ttl { position: relative; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 10vw, 46px); line-height: 1.06; letter-spacing: -.01em; margin-top: 8px; max-width: 76%; }
.arabic { text-align: right; }
.arabic.big { font-size: 25px; color: var(--ink); }
.sub { font-family: var(--display); font-style: italic; font-size: 18px; margin-bottom: 10px; }
.ayat { margin-top: 28px; padding: 22px 22px 20px; background: var(--paper) var(--grain); box-shadow: 0 1px 0 #e8e3d8, 0 3px 0 var(--acc), 0 16px 26px -16px rgba(40, 30, 20, .4); }
.ayat .arabic { font-size: 20px; }
.ayat blockquote { font-size: 14px; color: var(--dim); }
.ayat figcaption { margin-top: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.couple { gap: 34px; }
.person { display: grid; grid-template-columns: 124px 1fr; column-gap: 16px; align-items: end; }
.person .portrait { grid-row: 1 / span 3; width: 124px; margin: 0; background: var(--paper); box-shadow: 0 2px 0 #e8e3d8, 0 4px 0 var(--acc); }
.person.b { grid-template-columns: 1fr 124px; text-align: right; }
.person.b .portrait { grid-column: 2; }
.person.b .ev-k, .person.b h3, .person.b .parent { grid-column: 1; }
.portrait .ini { color: #d9d3c6; text-shadow: 0 1px 1px #fff, 0 -1px 1px rgba(70, 60, 45, .3); font-size: 64px; }
.person h3 { font-size: 25px; line-height: 1.12; font-weight: 400; }
.parent { font-size: 13px; line-height: 1.5; }
.and { display: none; }
.cd { max-width: none; gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.cd-i { padding: 12px 0 8px 8px; border-left: 1px solid var(--line); } .cd-i:first-child { border-left: 0; padding-left: 0; }
.cd b { font-weight: 400; }
.events { gap: 0; border-top: 1px solid var(--ink); }
.ev { padding: 22px 0; border-bottom: 1px solid var(--ink); }
.ev h3 { font-size: 32px; font-weight: 400; letter-spacing: -.01em; }
.map-frame { box-shadow: 0 3px 0 var(--acc); border: 0; }
.gal { gap: 3px; grid-template-columns: repeat(6, 1fr); }
.gal-item { grid-column: span 3; }
.gal-item:nth-child(3n+1) { grid-column: span 6; aspect-ratio: 3 / 2; }
.gal.ph .gal-item { font-family: var(--display); background: var(--paper) var(--grain); }
.f-in { border: 0; border-bottom: 1px solid var(--ink); padding-left: 0; padding-right: 0; }
.wish-avatar { border-radius: 0; background: transparent; color: var(--acc); font-size: 26px; width: 30px; }
.finale { text-align: left; max-width: 620px; margin: 0 auto; padding: 70px 22px 110px; border-top: 1px solid var(--ink); }
.finale .arabic { font-size: 22px; }
.fin-k { color: var(--acc); font-size: 12px; letter-spacing: .12em; }
.fin-names { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 15vw, 76px); line-height: 1; margin: 10px 0 18px; }
.fam { margin-left: 0; }
.btn { font-size: 12px; }
.music-toggle-btn { background: var(--paper); }
@media (min-width: 720px) { .couple { grid-template-columns: 1fr; } .gal { grid-template-columns: repeat(6, 1fr); } }
.gal-item:last-child:nth-child(3n+2) { grid-column: span 6; aspect-ratio: 3 / 2; }
