/* Hotel Asmara — alat tulis hotel klasik: pintu hijau, kunci kuningan, kartu reservasi. */
:root {
    --bg: #12372a; --paper: #f7f1e3; --ink: #1d2a24; --dim: #5e6a60; --acc: #12372a; --acc-ink: #f7f1e3; --line: rgba(18, 55, 42, .24); --radius: 0px;
    --brass: #b08d57; --brass-t: #80602f; --brass-l: #e3cb97; --ox: #7a2e2a;
    --display: 'Gloock', serif; --body: 'Libre Baskerville', serif; --script: 'Pinyon Script', cursive; --sc: 'Marcellus SC', serif; --type: 'Courier Prime', monospace;
}
*, *::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) repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 22px); font-size: 14.5px; line-height: 1.8; }
.awning { position: absolute; left: 0; right: 0; top: 0; height: 76px; z-index: 5; background: repeating-linear-gradient(90deg, #12372a 0 30px, #f7f1e3 30px 60px);
    -webkit-mask: radial-gradient(15px 13px at 15px 63px, #000 98%, transparent) 0 0 / 30px 76px repeat-x, linear-gradient(#000, #000) 0 0 / 100% 63px no-repeat;
    mask: radial-gradient(15px 13px at 15px 63px, #000 98%, transparent) 0 0 / 30px 76px repeat-x, linear-gradient(#000, #000) 0 0 / 100% 63px no-repeat;
    filter: drop-shadow(0 7px 7px rgba(0, 0, 0, .35)); transform-origin: top; transition: transform .8s cubic-bezier(.6, 0, .3, 1); }
.cover.open .awning { transform: scaleY(0); }

/* pintu */
.cover { perspective: 1400px; display: flex; align-items: center; justify-content: center; padding: 86px 18px 20px; }
.door { position: absolute; top: 0; bottom: 0; width: 50.2%; background: linear-gradient(180deg, #164434, #0e2c21); transition: transform 1.5s cubic-bezier(.55, 0, .2, 1) .35s; box-shadow: inset 0 0 0 1px rgba(227, 203, 151, .25); }
.door.l { left: 0; transform-origin: left center; } .door.r { right: 0; transform-origin: right center; }
.cover.open .door.l { transform: rotateY(-105deg); } .cover.open .door.r { transform: rotateY(105deg); }
.door i { position: absolute; left: 12%; right: 12%; border: 1px solid rgba(227, 203, 151, .34); box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .14), inset 0 0 0 6px rgba(227, 203, 151, .16); }
.door i:nth-child(1) { top: 12%; height: 42%; } .door i:nth-child(2) { top: 58%; bottom: 7%; }
.door b { position: absolute; top: 50%; width: 9px; height: 74px; margin-top: -37px; border-radius: 5px; background: linear-gradient(90deg, #8a6a38, #f0dcae, #8a6a38); box-shadow: 0 3px 6px rgba(0, 0, 0, .5); }
.door.l b { right: 10px; } .door.r b { left: 10px; }
.plate { position: relative; z-index: 4; width: min(100%, 372px); background: var(--paper); padding: 26px 22px 20px; text-align: center; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .7); outline: 1px solid var(--brass); outline-offset: -8px; transition: opacity .45s, transform .45s; }
.cover.open .plate { opacity: 0; transform: translateY(14px) scale(.97); }
.crest { width: 54px; height: 54px; margin: 0 auto; color: var(--brass); }
.pl-sc { font-family: var(--sc); font-size: 19px; letter-spacing: .24em; margin-top: 6px; color: var(--acc); }
.pl-est { font-size: 11px; font-style: italic; color: var(--dim); }
.fob-wrap { position: relative; width: 84px; margin: 6px auto 4px; transform-origin: 50% 6%; animation: swing 4.6s ease-in-out infinite; }
.key { width: 84px; height: auto; filter: drop-shadow(0 7px 6px rgba(0, 0, 0, .3)); }
.fob-no { position: absolute; left: 0; right: 0; top: 73%; text-align: center; font-family: var(--display); font-size: 19px; line-height: 1.05; color: var(--brass-l); }
.fob-no small { display: block; font-family: var(--sc); font-size: 8px; letter-spacing: .24em; }
@keyframes swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.pl-names { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 9vw, 38px); line-height: 1.12; }
.pl-names em, .hero-names em, .fin-names em { font-family: var(--body); color: var(--brass); font-style: italic; font-size: .72em; padding: 0 .1em; }
.pl-to span { display: block; font-size: 11px; font-style: italic; color: var(--dim); margin-top: 6px; }
.pl-to b { display: block; font-family: var(--type); font-weight: 400; font-size: 17px; margin-bottom: 12px; border-bottom: 1px dotted var(--dim); padding-bottom: 2px; }
.pl-note { margin-top: 10px; font-size: 10px; color: var(--dim); }

/* hero */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 104px 18px 56px; }
.awning.static { position: absolute; }
.letter { position: relative; width: min(100%, 460px); padding: 30px 26px 28px; background: var(--paper); text-align: center; outline: 1px solid var(--brass); outline-offset: -8px; box-shadow: 0 26px 50px -20px rgba(0, 0, 0, .6); }
.hero-k { font-size: 12.5px; font-style: italic; color: var(--dim); margin-top: 16px; }
.hero-names { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 13vw, 58px); line-height: 1.04; margin: 6px 0 20px; }
.hero-names em { display: block; font-size: .56em; line-height: 1.1; }
.folio { text-align: left; border-top: 2px solid var(--acc); }
.folio div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.folio dt { font-family: var(--sc); font-size: 11px; letter-spacing: .12em; padding-top: 2px; color: var(--dim); }
.folio dd { font-family: var(--type); font-size: 14px; line-height: 1.4; word-break: break-word; }
.stamp { position: absolute; right: 14px; top: 52px; padding: 3px 9px; border: 2px solid var(--ox); color: var(--ox); font-family: var(--sc); font-size: 11px; letter-spacing: .14em; transform: rotate(9deg); opacity: .75; }

/* bagian = lembar kop surat */
.sec { padding: 28px 16px; }
.card { background: var(--paper); padding: 30px 22px 32px; outline: 1px solid var(--brass); outline-offset: -8px; box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .6); }
.sh { text-align: center; }
.lh { display: block; font-family: var(--sc); font-size: 10.5px; letter-spacing: .3em; color: var(--brass-t); }
.sh-no { display: block; font-family: var(--type); font-size: 11px; color: var(--dim); }
.sh-no::before { content: 'No. ' counter(sec, decimal-leading-zero); }
.sh-k { font-style: italic; font-size: 12.5px; color: var(--dim); margin-top: 10px; }
.ttl { font-family: var(--display); font-weight: 400; font-size: clamp(27px, 8vw, 34px); line-height: 1.16; }
.sh::after { content: ''; display: block; width: 44px; margin: 14px auto 0; border-top: 2px solid var(--brass); }
.arabic.big { font-size: 24px; color: var(--acc); }
.sub { font-style: italic; margin-bottom: 10px; }
.ayat { margin-top: 20px; padding: 18px 8px; border: 1px solid var(--line); }
.ayat .arabic { font-size: 19px; }
.ayat blockquote { font-style: italic; font-size: 13px; color: var(--dim); }
.ayat figcaption { font-family: var(--sc); font-size: 11px; letter-spacing: .14em; color: var(--brass-t); margin-top: 8px; }
.person h3 { font-size: 23px; line-height: 1.2; }
.ev-k { font-family: var(--sc); letter-spacing: .14em; color: var(--brass-t); }
.portrait { width: 196px; aspect-ratio: 1; border-radius: 50%; border: 3px double var(--brass); padding: 5px; }
.portrait img, .portrait .ini { border-radius: 50%; }
.portrait .ini { background: var(--acc); color: var(--brass-l); font-size: 62px; }
.and { color: var(--brass); }
.cd { gap: 6px; }
.cd-i { background: var(--acc); color: var(--paper); padding: 10px 2px 6px; }
.cd-i b { font-size: clamp(25px, 8vw, 34px); font-family: var(--type); }
.cd-i span { color: var(--brass-l); font-size: 9.5px; font-family: var(--sc); }
.ev { padding: 20px 20px 22px; background: #fffaf0; border: 1px solid var(--line);
    -webkit-mask: radial-gradient(9px at 0 62%, transparent 98%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(9px at 100% 62%, transparent 98%, #000) 100% 0 / 51% 100% no-repeat;
    mask: radial-gradient(9px at 0 62%, transparent 98%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(9px at 100% 62%, transparent 98%, #000) 100% 0 / 51% 100% no-repeat; }
.ev dl { font-family: var(--type); font-size: 14px; }
.ev dt { color: var(--brass); }
.btn { font-family: var(--sc); letter-spacing: .16em; font-size: 13px; }
.gal { gap: 14px; }
.gal-item { background: #fffaf0; padding: 7px 7px 22px; box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .35); aspect-ratio: 4 / 5; }
.gal-item:nth-child(odd) { transform: rotate(-1.6deg); } .gal-item:nth-child(even) { transform: rotate(1.4deg); }
.gal-item.rv:not(.in) { transform: translateY(26px); }
.f-in { border: 0; border-bottom: 1px solid var(--acc); padding: 7px 2px; font-family: var(--type); }
.f-l { font-family: var(--sc); letter-spacing: .14em; font-size: 11.5px; }
.att span { font-family: var(--type); font-size: 12.5px; }
.wish-avatar { border-radius: 0; font-family: var(--display); }
.wish-name { font-size: 16px; } .wish-message { font-family: var(--type); font-size: 13.5px; }
.finale { color: var(--paper); }
.finale .arabic { font-size: 21px; color: var(--brass-l); margin-top: 8px; }
.fin-k { font-style: italic; color: var(--brass-l); }
.fin-names { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 10vw, 46px); line-height: 1.14; margin: 8px 0 14px; }
.fam span { color: var(--brass-l); font-family: var(--sc); letter-spacing: .12em; }
.credit { color: rgba(247, 241, 227, .6); }
.music-toggle-btn { color: var(--acc); border-color: var(--brass); }
.progress i { background: var(--brass-l); }
.toast { background: var(--brass-l); color: var(--acc); }
.gift-wrap { color: var(--ink); }
.and { font-family: var(--body); font-style: italic; font-size: 30px; color: var(--brass-t); }
.gal-item:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
@media (max-height: 760px) {
    .plate { padding: 16px 20px 12px; }
    .crest { width: 40px; height: 40px; }
    .pl-sc { font-size: 16px; margin-top: 2px; }
    .pl-est { display: none; }
    .fob-wrap { width: 54px; margin: 2px auto 0; }
    .key { width: 54px; }
    .fob-no { font-size: 13px; }
    .fob-no small { font-size: 6px; }
    .pl-names { font-size: 27px; }
    .btn { padding: 10px 22px; }
}
