/* Botanical Conservatory — one magnolia branch meets the oval bookplate.
   Cormorant carries names and headings throughout the stationery suite;
   Figtree keeps the practical information and controls easy to read. */

@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');
}

@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;
}
/* Italic dipakai di empat tempat oleh shared/undangan.css — yang paling kentara
   ampersand 46px di .mempelai-amp. Tanpa face italik sungguhan browser
   mensintesis oblique, dan pada serif sebesar itu perbedaannya terlihat. */
@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;
}


:root {
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Figtree', system-ui, -apple-system, sans-serif;
    --font-label: 'Figtree', system-ui, -apple-system, sans-serif;
    --radius: 0;
    --radius-btn: 0;
    --ornament: url('../../aset/undangan/tema-04/botanical-divider.svg?ver=2.40.0');
    --botanical-branch: url('../../aset/undangan/tema-04/magnolia-branch.webp?ver=2.40.0');
    --conservatory: url('../../aset/undangan/tema-04/conservatory-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);
}
/* The oval is part of the document flow: magnolia can cross its rim while
   every real name, date and opening control stays below the illustration. */
: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-title, .cover-names, .hero-names, .mempelai-nama, .penutup-nama, .cd-num, .acara-jenis, .lokasi-nama { font-weight: 400; }
.section-intro, .prose, .penutup-teks { font-size: 16px; line-height: 1.85; }
.btn, .field > span { font-weight: 500; letter-spacing: .025em; text-indent: 0; }
.section { padding: 76px 34px; }
.section-title { font-size: 34px; font-weight: 500; letter-spacing: -.01em; text-indent: 0; }
.section-title::after { width: 88px; height: 20px; margin-top: 16px; }
.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; overflow: hidden;
}
.gate .invitation-art { display: none; }
.gate-visual {
    --botanical-visual: var(--conservatory);
    position: relative; display: block; flex: none; isolation: isolate;
    width: min(49vw, 184px); aspect-ratio: .74; margin: 0 auto 34px;
    padding: 5px; border: 1px solid color-mix(in srgb, var(--c-gold-teks) 68%, transparent); border-radius: 50%;
    background: var(--botanical-visual) center / cover no-repeat content-box;
}
.gate.has-photo .gate-visual { --botanical-visual: var(--cover-image); }
@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
    .gate.has-photo .gate-visual { --botanical-visual: var(--cover-image-set, var(--cover-image)); }
}
.gate-visual::before, .hero-arch::after {
    content: ''; position: absolute; z-index: 2; pointer-events: none;
    width: 196px; aspect-ratio: 2 / 3; top: -80px; left: -91px;
    background: var(--botanical-branch) center / contain no-repeat;
    transform: rotate(177deg);
}
.gate-inner {
    justify-content: flex-start; justify-content: safe center;
    padding: 72px 34px 48px; gap: 0; text-shadow: none;
}
.gate.has-photo .gate-inner { text-shadow: none; }
.gate-inner > .seal, .hero .seal-hero { display: none; }
.gate-bawah { flex: none; margin-block: 0; gap: 14px; }
.gate .cover-names, .hero-names {
    background: none; -webkit-text-fill-color: currentColor;
    width: 100%; font-family: var(--font-display); font-size: clamp(54px, 15.2vw, 70px); line-height: 1.07;
    letter-spacing: -.025em; padding-inline: 0; margin: 0;
}
.gate .cover-names .amp, .hero-names .amp {
    display: inline;
    color: var(--c-gold-teks); -webkit-text-fill-color: currentColor;
    font-size: .66em; margin: 0; opacity: 1;
}
.gate .cover-date { font-family: var(--font-display); font-size: 19px; font-weight: 500; line-height: 1.5; letter-spacing: .04em; }
.cover-date::before {
    content: ''; display: block; width: 82px; height: 18px; margin: 0 auto 11px;
    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; backdrop-filter: none; -webkit-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: 400 18px/1.4 var(--font-body); margin-top: 3px; }
.gate .btn-open { margin-top: 1px; min-height: 48px; min-width: 196px; padding: 12px 28px; font: 500 16px/22px var(--font-label); letter-spacing: .025em; background: var(--c-bg); color: var(--c-ink); box-shadow: none; border: 1px solid var(--c-gold-teks); }
.gate .btn-open:hover, .gate .btn-open:focus-visible { background: var(--c-accent); color: var(--c-accent-ink); }
.gate .tgl-hijriah { color: var(--c-ink-soft); opacity: 1; }

/* The customer's photograph and the original conservatory bookplate share
   precisely the same oval, so an invitation without photographs is complete. */
.hero { padding: 96px 34px 80px; isolation: isolate; min-height: 700px; }
.hero-arch {
    position: relative; width: min(54vw, 206px); margin: 0 auto 34px; padding: 5px;
    border: 1px solid color-mix(in srgb, var(--c-gold-teks) 68%, transparent); border-radius: 50%; background: none;
    box-shadow: none;
}
.hero-arch-foto { border-radius: 50%; height: auto; aspect-ratio: .74; background: var(--conservatory) center / cover no-repeat; }
.hero-arch-foto img { height: 100%; margin: 0; }
.hero-copy { position: relative; padding-top: 0; }
.hero.without-photo { min-height: 700px; }
.hero .hero-tanggal { flex-direction: column; gap: 11px; margin-top: 19px; }
.hero .hero-tanggal::before { content: ''; width: 82px; 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; font-weight: 500; letter-spacing: .04em; }
.hero .hero-tanggal i { display: none; }

.salam { padding-top: 58px; padding-bottom: 36px; }
.salam-teks { font-size: 18px; line-height: 1.8; }
.salam-ayat p { font-size: 18px; line-height: 1.8; }
.countdown { padding-top: 54px; padding-bottom: 58px; }
.countdown-grid { padding-block: 25px; border-color: var(--c-line); }
.cd-num { font-size: clamp(38px, 11vw, 47px); }
.cd-label { font-size: 14px; letter-spacing: .035em; text-indent: 0; }
.cd-col:not(:last-child) { border-color: var(--c-line); }
.arch-inisial {
    position: relative; isolation: isolate; width: 140px; height: 148px; margin-bottom: 16px;
    border-radius: 0; border: 0; background: none; color: var(--c-accent);
    font-family: 'Cormorant Garamond', Georgia, serif; font-size: 84px; font-style: italic;
}
.arch-inisial::before {
    content: ''; position: absolute; z-index: -1; left: -23px; top: 0;
    width: 68px; height: 102px; background: var(--botanical-branch) center / contain no-repeat;
    transform: rotate(-25deg); pointer-events: none;
}
.mempelai-card { padding-block: 8px; }
.mempelai-amp { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 42px; margin-block: 22px; }
.mempelai-nama, .penutup-nama { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; line-height: 1.16; letter-spacing: -.015em; }
.mempelai-nama { font-size: clamp(34px, 9.4vw, 42px); margin-bottom: 10px; }
.mempelai-ortu { max-width: 34ch; margin-inline: auto; font-size: 16px; line-height: 1.85; }
.acara { background: transparent; }
.acara-card {
    position: relative; padding: 36px 24px 30px; margin-bottom: 26px; box-shadow: none;
    border: 1px solid color-mix(in srgb, var(--c-accent) 29%, var(--c-line)); border-radius: 0;
    background: color-mix(in srgb, var(--c-bg) 74%, transparent);
}
.acara-card::before { display: none; }
.acara-card::after {
    content: ''; position: absolute; width: 46px; height: 69px; top: -24px; left: -15px;
    background: var(--botanical-branch) center / contain no-repeat; transform: rotate(-26deg); pointer-events: none;
}
.acara-card + .acara-card::after, .acara-card .acara-diamond { display: none; }
.acara-jenis { font-style: italic; font-size: 31px; margin-bottom: 12px; }
.acara-tanggal { font-size: 29px; font-weight: 500; }
.acara-waktu { font-size: 16px; letter-spacing: .04em; }
.acara-diamond { width: 30px; height: 20px; transform: none; border-radius: 0; background: var(--c-accent); -webkit-mask: var(--ornament) center / 100px auto no-repeat; mask: var(--ornament) center / 100px auto no-repeat; }
.lokasi-nama { font-size: 26px; font-weight: 500; }
.galeri-bingkai, .galeri-grid { padding: 8px; border: 1px solid color-mix(in srgb, var(--c-accent) 29%, var(--c-line)); border-radius: 0; background: var(--c-surface); }
.galeri-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.galeri-slider { border-radius: 0; height: clamp(340px, 103vw, 430px); }
.galeri-sel { border-radius: 0; }
.love-story .prose, .kt-teks { font-size: 17px; line-height: 1.85; text-align: left; }
.ucapan-item { box-shadow: none; border: 0; border-bottom: 1px solid var(--c-line); background: transparent; }
.penutup { padding: 80px 40px 104px; }
.penutup > :not(.invitation-art) { position: relative; }
.penutup .invitation-art-front::after { content: ''; position: absolute; width: 142px; aspect-ratio: 2 / 3; bottom: -96px; right: -47px; background: var(--botanical-branch) center / contain no-repeat; transform: rotate(-8deg); }
.penutup .ornament { width: 88px; height: 20px; margin: 0 auto 28px; }
.penutup-teks { max-width: 34ch; margin-inline: auto; }
.penutup-nama { font-size: clamp(40px, 10.7vw, 52px); }

@media (max-width: 375px) {
    .section { padding-inline: 29px; }
    .gate-inner { padding-inline: 29px; }
    .gate-visual::before, .hero-arch::after { width: 180px; top: -73px; left: -82px; }
    .hero { padding-inline: 29px; }
}
@media (max-height: 760px) {
    .gate-inner { padding-top: 55px; padding-bottom: 32px; }
    .gate-visual { width: min(45vw, 164px); margin-bottom: 28px; }
    .gate-visual::before { width: 176px; top: -69px; left: -81px; }
    .gate-bawah { gap: 12px; }
    .gate .cover-names { font-size: clamp(50px, 14.2vw, 64px); }
}
@media (max-height: 520px) and (orientation: landscape) {
    .gate-inner { padding: 32px 38px; justify-content: flex-start; }
    .gate-visual { display: none; }
    .gate-bawah { margin-block: 0; }
    .gate .cover-names { font-size: 40px; }
    .cover-date::before { display: none; }
}
