/* Warisan Jawa — a sepia Joglo engraving, ceremonial names, and one narrow
   truntum border. The eight-petal star vocabulary matches the original
   divider; names, artwork and the opening control scroll together. */

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../../aset/font/cormorant-garamond-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../../aset/font/cormorant-garamond-latinext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url('../../aset/font/cormorant-garamond-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url('../../aset/font/cormorant-garamond-italic-latinext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('../../aset/font/Figtree-latin.woff2') format('woff2-variations');
}

:root {
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Cormorant Garamond', Georgia, serif;
    --font-label: 'Figtree', system-ui, -apple-system, sans-serif;
    --radius: 0;
    --radius-btn: 0;
    --ornament: url('../../aset/undangan/tema-05/truntum-divider.svg?ver=2.40.0');
    --batik: url('../../aset/undangan/tema-05/truntum.svg?ver=2.40.0');
    --joglo: url('../../aset/undangan/tema-05/joglo-heritage-v3.webp?ver=2.40.0');
    --paper-texture: url('../../aset/undangan/shared/cotton-paper-v3.webp?ver=2.40.0');
    --paper-wash: color-mix(in srgb, var(--c-bg) 68%, transparent);
    --truntum-edge: url('../../aset/undangan/tema-05/truntum-border.svg?ver=2.44.0');
}
:root:is([data-palet="navy"], [data-palet="zamrud"], [data-palet="arang"]) { --paper-wash: color-mix(in srgb, var(--c-bg) 91%, transparent); }
body.undangan-body, #undangan-isi {
    background-color: var(--c-bg);
    background-image: linear-gradient(var(--paper-wash), var(--paper-wash)), var(--paper-texture);
    background-size: auto, 560px auto;
}
.section-intro, .prose, .lokasi-alamat, .mempelai-ortu, .penutup-teks { font-size: 18px; line-height: 1.8; }
.salam-teks { font-size: 20px; line-height: 1.75; }
.acara-tanggal, .lokasi-nama, .ucapan-nama { font-weight: 500; }
.btn, .field > span { font-weight: 500; letter-spacing: .025em; text-indent: 0; }
.section { padding: 77px 34px; }
.section-title { font-size: 34px; font-weight: 500; letter-spacing: -.01em; text-indent: 0; }
.section-title::after { width: 94px; height: 19px; margin-top: 17px; }
.label-atas::after { display: none; }
.section + .section::before { width: 72%; height: 1px; background: var(--c-line); }

.gate { --cover-ink: var(--c-ink); }
.gate::before, .gate.has-photo::before {
    background: linear-gradient(var(--paper-wash), var(--paper-wash)), var(--paper-texture) center / 560px auto, var(--c-bg);
    animation: none;
}
.gate::after { background: none; }
.gate .invitation-art, .hero .invitation-art, .penutup .invitation-art {
    display: block; max-width: 480px; margin-inline: auto; pointer-events: none; overflow: hidden;
}
.gate .invitation-art { display: none; }
.gate-visual {
    display: block; flex: none; width: 100%; max-width: 354px; aspect-ratio: 1.8;
    margin: 0 auto 32px; background: var(--joglo) center / contain no-repeat;
}
.gate-inner::after, .hero .invitation-art-front, .penutup .invitation-art-front {
    background: var(--c-gold-teks); opacity: .72; pointer-events: none;
    -webkit-mask: var(--truntum-edge) center / 48px 36px repeat-x;
    mask: var(--truntum-edge) center / 48px 36px repeat-x;
}
.gate-inner::after {
    content: ''; display: block; flex: none; width: calc(100% + 24px); height: 36px;
    margin: 30px -12px 0;
}
.hero .invitation-art-back, .penutup .invitation-art-back { background: var(--joglo) center / contain no-repeat; }
.hero .invitation-art-front, .penutup .invitation-art-front { inset: auto 28px 24px; height: 36px; }
.gate-inner {
    justify-content: flex-start; justify-content: safe center; padding: 34px 40px 24px;
    gap: 0; text-shadow: none;
}
.gate.has-photo .gate-inner { text-shadow: none; }
.gate-inner > .seal, .hero .seal-hero { display: none; }
.gate-bawah { width: 100%; gap: 14px; flex: none; margin-block: 0; }
.gate .cover-names, .hero-names {
    background: none; -webkit-text-fill-color: currentColor; font-weight: 400;
    width: 100%; font-size: clamp(58px, 16.5vw, 78px); line-height: 1.02;
    letter-spacing: -.025em; padding-inline: 0; margin: 0;
}
.gate .cover-names .amp, .hero-names .amp {
    -webkit-text-fill-color: currentColor; color: var(--c-gold-teks);
    display: block; font-size: .48em; line-height: 1; margin-block: .16em; opacity: 1;
}
.gate .cover-date { font-family: var(--font-display); font-size: 19px; line-height: 1.5; letter-spacing: .065em; }
.cover-date::before { content: ''; display: block; width: 90px; height: 18px; margin: 1px auto 12px; background: var(--c-gold-teks); -webkit-mask: var(--ornament) center / contain no-repeat; mask: var(--ornament) center / contain no-repeat; }
.gate-tamu { padding: 0; margin: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.gate-tamu-label { color: var(--c-ink-soft); opacity: 1; font-size: 14px; line-height: 1.4; letter-spacing: .025em; text-indent: 0; text-transform: none; }
.gate .guest-name { color: var(--c-ink); font-size: 20px; line-height: 1.4; font-style: normal; margin-top: 3px; }
.gate .btn-open {
    margin-top: 1px; min-width: 196px; min-height: 48px; padding: 12px 28px;
    font: 400 18px/22px var(--font-display); letter-spacing: .045em;
    background: var(--c-accent); color: var(--c-accent-ink); border: 1px solid var(--c-accent);
    box-shadow: none; text-shadow: none;
}
.gate .btn-open:hover, .gate .btn-open:focus-visible { background: var(--c-bg); color: var(--c-ink); border-color: var(--c-gold-teks); }
.gate .tgl-hijriah { color: var(--c-ink-soft); opacity: 1; }

.hero { display: flex; flex-direction: column; padding: 266px 40px 94px; min-height: 740px; isolation: isolate; }
.hero .invitation-art-back { inset: 40px 30px auto; height: 204px; }
.hero-copy { order: 0; padding: 0; }
.hero-names { margin-top: 0; }
.hero .hero-tanggal { flex-direction: column; gap: 10px; margin-top: 23px; }
.hero .hero-tanggal::before { content: ''; width: 90px; height: 18px; background: var(--c-gold-teks); -webkit-mask: var(--ornament) center / contain no-repeat; mask: var(--ornament) center / contain no-repeat; }
.hero .hero-tanggal p { font-family: var(--font-display); font-size: 19px; line-height: 1.5; letter-spacing: .055em; }
.hero .hero-tanggal i { display: none; }
.hero-arch { order: 1; width: 70%; padding: 6px; margin: 34px auto 0; border: 1px solid var(--c-line); border-radius: 0; background: var(--c-surface); }
.hero-arch-foto { height: 188px; border-radius: 0; }
.hero-arch-foto img { height: 100%; margin: 0; }
.hero.without-photo { justify-content: center; min-height: 740px; }

.salam { padding-top: 61px; padding-bottom: 38px; }
.salam-ayat p { font-size: 19px; line-height: 1.8; }
.countdown { padding-top: 52px; padding-bottom: 57px; }
.countdown-grid { border-block: 1px solid var(--c-line); padding-block: 27px; }
.cd-num { font-size: clamp(42px, 11.8vw, 52px); font-weight: 500; }
.cd-label { font-size: 14px; letter-spacing: .025em; text-indent: 0; }
.arch-inisial {
    position: relative; width: 131px; height: 142px; margin-bottom: 18px; border: 1px solid var(--c-line);
    border-radius: 0; background: none; color: var(--c-gold-teks); font-size: 77px; font-style: normal;
}
.arch-inisial::before {
    content: ''; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
    width: 71px; height: 14px; background: var(--c-gold);
    -webkit-mask: var(--ornament) center / contain no-repeat; mask: var(--ornament) center / contain no-repeat;
    pointer-events: none;
}
.mempelai-nama { font-size: clamp(33px, 9vw, 41px); font-weight: 500; line-height: 1.18; margin-bottom: 10px; }
.mempelai-ortu { max-width: 34ch; margin-inline: auto; }
.mempelai-amp { margin-block: 28px; font-size: 44px; }
.acara { background: transparent; }
.acara-card {
    position: relative; padding: 32px 25px 30px; margin-bottom: 26px;
    border: 1px solid color-mix(in srgb, var(--c-gold) 52%, var(--c-line));
    box-shadow: none; background: color-mix(in srgb, var(--c-bg) 74%, transparent);
}
.acara-card::before { display: none; }
.acara-card .acara-diamond { display: none; }
.acara-jenis { font-weight: 500; font-size: 30px; font-style: normal; margin-bottom: 12px; }
.acara-tanggal { font-size: 29px; }
.acara-waktu { font-family: var(--font-label); font-size: 16px; letter-spacing: .035em; }
.lokasi-nama { font-size: 25px; }
.acara-diamond { width: 24px; height: 24px; background: var(--c-gold); transform: none; -webkit-mask: var(--batik) center / 37px 37px no-repeat; mask: var(--batik) center / 37px 37px no-repeat; }
.galeri-bingkai, .galeri-grid { border: 1px solid color-mix(in srgb, var(--c-gold) 46%, var(--c-line)); padding: 8px; border-radius: 0; background: var(--c-surface); }
.galeri-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.galeri-slider { border-radius: 0; height: clamp(348px, 107vw, 444px); }
.galeri-sel { border-radius: 0; }
.love-story .prose, .kt-teks { font-size: 18px; line-height: 1.8; text-align: left; }
.ucapan-item { box-shadow: none; border-bottom: 1px solid var(--c-line); background: transparent; }
.ucapan-nama { font-family: var(--font-label); font-size: 14px; }
.ucapan-pesan { font-size: 18px; }
.penutup { padding: 202px 40px 98px; isolation: isolate; }
.penutup .invitation-art-back { inset: 27px 48px auto; height: 158px; opacity: .9; }
.penutup .ornament { display: none; }
.penutup-teks { max-width: 34ch; margin-inline: auto; }
.penutup-nama { font-size: clamp(39px, 10.2vw, 51px); font-weight: 500; line-height: 1.16; }

@media (max-width: 375px) {
    .section { padding-inline: 30px; }
    .gate-inner { padding-inline: 30px; }
    .gate .cover-names, .hero-names { font-size: 59px; }
    .hero { padding-inline: 31px; padding-top: 246px; }
    .hero .invitation-art-back { top: 32px; height: 192px; }
    .hero-arch { width: 76%; }
    .acara-card { padding-inline: 22px; }
}
@media (max-height: 740px) {
    .gate-inner { padding-top: 28px; }
    .gate-visual { width: 94%; max-width: 308px; margin-bottom: 25px; }
    .gate .cover-names { font-size: clamp(54px, 15vw, 68px); }
    .gate-bawah { gap: 11px; }
    .gate-inner::after { margin-top: 26px; }
}
@media (max-height: 520px) and (orientation: landscape) {
    .gate-inner { justify-content: flex-start; padding: 20px 40px; }
    .gate-visual { display: none; }
    .gate .cover-names { font-size: 43px; line-height: 1.1; }
    .gate .cover-names .amp { display: inline; margin-inline: .15em; }
    .gate-bawah { margin-block: 0; gap: 9px; }
    .cover-date::before { display: none; }
    .gate-inner::after { margin-top: 22px; }
}
