/* UndanganPiyo - tema Editorial: terang, lapang, bergaya majalah */
:root {
    --ed-ink: #282828;
    --ed-mute: #A3A3A3;
    --ed-grey: #615C5C;
    --ed-grey-2: #636363;
    --ed-line: rgba(40, 40, 40, .14);
    --ed-bg: #FFFFFF;
    --ed-page: #F4F2F2;
    --ed-display: 'Noto Serif Display', 'Times New Roman', serif;
    --ed-serif: 'EB Garamond', 'Times New Roman', serif;
    --ed-sans: 'Inter', system-ui, sans-serif;
    --ed-col: 440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ed {
    margin: 0; background: var(--ed-page); color: var(--ed-ink);
    font: 400 18px/1.6 var(--ed-serif);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.ed img { display: block; max-width: 100%; }
.ed a { color: inherit; }
.ed em { font-style: italic; }
.ed h1, .ed h2, .ed h3 { margin: 0; font-weight: 300; }

.ed-col {
    position: relative; max-width: var(--ed-col); margin: 0 auto; min-height: 100vh;
    background: var(--ed-bg); overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, .06);
}

/* Label kecil uppercase */
.ed-label {
    margin: 0 0 10px; font: 500 11px/1.4 var(--ed-sans); letter-spacing: .32em;
    text-transform: uppercase; color: var(--ed-grey-2);
}
.ed-label-sm { font-size: 10px; letter-spacing: .28em; color: var(--ed-mute); }
.ed-small { margin: 0 auto 22px; max-width: 320px; font-size: 17px; color: var(--ed-grey); }
.ed-rule { width: 1px; height: 48px; margin: 22px auto; background: var(--ed-line); }

.ed-title {
    font: 300 46px/1.05 var(--ed-display); letter-spacing: -.01em; margin-bottom: 12px !important;
}

/* Tombol & tautan */
.ed-btn {
    display: inline-block; padding: 14px 30px; border: 1px solid var(--ed-ink); border-radius: 0;
    background: var(--ed-ink); color: #fff !important; cursor: pointer; text-decoration: none;
    font: 500 11px/1 var(--ed-sans); letter-spacing: .3em; text-transform: uppercase;
    transition: background .3s ease, color .3s ease;
}
.ed-btn:hover { background: transparent; color: var(--ed-ink) !important; }
.ed-btn-block { width: 100%; margin-top: 8px; }
.ed-link {
    display: inline-block; margin-top: 10px; padding-bottom: 3px; text-decoration: none;
    border-bottom: 1px solid currentColor; color: var(--ed-ink);
    font: 500 11px/1.2 var(--ed-sans); letter-spacing: .24em; text-transform: uppercase;
}
.ed-link-btn { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; padding-left: 0; padding-right: 0; }

/* Foto memudar ke putih */
.ed-fade, .ed-fade-both, .ed-fade-top { position: relative; overflow: hidden; }
.ed-fade img, .ed-fade-both img, .ed-fade-top img { width: 100%; height: 100%; object-fit: cover; }
.ed-fade::after, .ed-fade-both::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, #FFFBFB1F 55%, #FFFFFF 94%);
}
.ed-fade-both::before, .ed-fade-top::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(360deg, #FFFBFB1F 62%, #FFFFFF 96%);
}

/* Sampul */
.ed-cover { background: var(--ed-page); overflow-y: auto; }
.ed-cover-col {
    max-width: var(--ed-col); min-height: 100%; margin: 0 auto; background: #fff;
    display: flex; flex-direction: column; text-align: center;
}
.ed-cover-photo { height: 52vh; min-height: 280px; }
.ed-cover-photo img { animation: ed-zoom 14s ease-out both; }
.ed-cover-body { flex: 1; padding: 0 28px 40px; margin-top: -40px; position: relative; z-index: 2; animation: ed-rise 1.2s .2s ease both; }
.ed-cover-names { font: 300 44px/1.05 var(--ed-display) !important; margin: 6px 0 12px !important; }
.ed-cover-names em { font-size: .7em; color: var(--ed-mute); }
.ed-cover-date { margin: 0; font: 500 12px/1 var(--ed-sans); letter-spacing: .4em; color: var(--ed-grey); }
.ed-cover-headline { margin: 14px 0 0; font: 400 22px/1.2 var(--ed-display); color: var(--ed-grey); }
.ed-guest { margin: 0 0 26px; font: 400 26px/1.25 var(--ed-display); }

/* Hero editorial */
.ed-hero { position: relative; text-align: center; }
.ed-hero-photo { height: 78vh; min-height: 440px; max-height: 720px; }
.ed-hero-text { position: relative; z-index: 2; margin-top: -200px; padding: 0 24px 40px; }
.ed-hero-kicker { margin: 4px 0 0; font: 300 30px/1.1 var(--ed-display); color: var(--ed-grey); }
.ed-hero-name {
    font: 300 clamp(64px, 19vw, 84px)/.95 var(--ed-display) !important; letter-spacing: -.02em;
    margin: 10px 0 0 !important; text-align: left;
}
.ed-hero-name-2 { text-align: right; font-style: italic !important; }
.ed-hero-name.is-solo { text-align: center; }
.ed-hero-and { margin: 4px 0; font: 300 28px/1 var(--ed-display); color: var(--ed-mute); }
.ed-bigdate { display: flex; flex-direction: column; align-items: center; margin: 46px 0 0; }
.ed-bigdate-month { font: 500 12px/1 var(--ed-sans); letter-spacing: .42em; text-transform: uppercase; color: var(--ed-grey); }
.ed-bigdate-day { font: 300 132px/1 var(--ed-display); letter-spacing: -.04em; margin: 6px 0 2px; }
.ed-bigdate-year { font: 300 24px/1.2 var(--ed-display); color: var(--ed-grey); margin-bottom: 14px; }
.ed-intro { margin: 40px auto 0; max-width: 340px; padding-top: 30px; border-top: 1px solid var(--ed-line); }
.ed-intro p:last-child { margin: 0; color: var(--ed-grey); }

/* Section umum */
.ed-section { padding: 70px 28px; text-align: center; position: relative; }
.ed-section + .ed-section::before {
    content: ''; position: absolute; top: 0; left: 50%; width: 60px; height: 1px;
    background: var(--ed-line); transform: translateX(-50%);
}

/* Hitung mundur */
.ed-countdown {
    display: grid; grid-template-columns: repeat(4, 1fr); margin: 30px 0 18px;
    border-top: 1px solid var(--ed-line); border-bottom: 1px solid var(--ed-line);
}
.ed-countdown div { padding: 20px 0 16px; display: flex; flex-direction: column; gap: 6px; }
.ed-countdown div + div { border-left: 1px solid var(--ed-line); }
.ed-countdown b { font: 300 40px/1 var(--ed-display); }
.ed-countdown span { font: 500 9px/1 var(--ed-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ed-mute); }

/* Tokoh */
.ed-people { padding-left: 0; padding-right: 0; }
.ed-person-photo { height: 520px; margin: 0 0 -110px; }
.ed-person-text { position: relative; z-index: 2; padding: 0 28px; }
.ed-person h3 { font: 300 36px/1.1 var(--ed-display) !important; margin-bottom: 12px !important; }
.ed-parents { margin: 0 0 12px; color: var(--ed-grey); font-size: 17px; }
.ed-parents em { color: var(--ed-mute); }
.ed-desc { margin: 0 auto 12px; max-width: 320px; color: var(--ed-grey); font-size: 16px; }
.ed-ig {
    display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ed-grey-2) !important;
    font: 500 11px/1 var(--ed-sans); letter-spacing: .12em;
}
.ed-people-and { margin: 56px 0 40px; font: 300 64px/1 var(--ed-display); color: var(--ed-mute); }

/* Kutipan */
.ed-quote { padding-top: 90px; padding-bottom: 90px; }
.ed-quote-mark { display: block; font: 300 120px/.5 var(--ed-display); color: var(--ed-mute); opacity: .5; }
.ed-quote blockquote { margin: 10px auto 0; max-width: 340px; }
.ed-quote p { margin: 0 0 18px; font: italic 300 24px/1.45 var(--ed-display); }
.ed-quote cite { font: 500 10px/1 var(--ed-sans); letter-spacing: .3em; text-transform: uppercase; font-style: normal; color: var(--ed-mute); }

/* Detail acara */
.ed-events { margin-top: 34px; text-align: left; }
.ed-event { padding: 30px 0; border-top: 1px solid var(--ed-line); position: relative; }
.ed-event:last-child { border-bottom: 1px solid var(--ed-line); }
.ed-event-no { position: absolute; right: 0; top: 28px; font: 300 14px/1 var(--ed-sans); color: var(--ed-mute); letter-spacing: .2em; }
.ed-event h3 { font: 300 34px/1.1 var(--ed-display) !important; margin-bottom: 14px !important; }
.ed-event p { margin: 0 0 4px; }
.ed-event-date { font: 500 11px/1.5 var(--ed-sans); letter-spacing: .2em; text-transform: uppercase; }
.ed-event-time { color: var(--ed-grey); margin-bottom: 14px !important; }
.ed-event-venue { font-style: italic; font-size: 20px; }
.ed-event-addr { color: var(--ed-grey); font-size: 16px; }

/* Form RSVP */
.ed-form { text-align: left; margin-top: 10px; }
.ed-form .inv-field { margin-bottom: 18px; }
.ed-form .ed-label { display: block; margin-bottom: 6px; }
.ed-input {
    width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ed-line); border-radius: 0;
    background: transparent; color: var(--ed-ink); font: 400 18px/1.4 var(--ed-serif); outline: none;
    transition: border-color .3s ease; -webkit-appearance: none; appearance: none;
}
select.ed-input {
    background-image: linear-gradient(45deg, transparent 50%, var(--ed-mute) 50%), linear-gradient(135deg, var(--ed-mute) 50%, transparent 50%);
    background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
textarea.ed-input { resize: vertical; min-height: 96px; }
.ed-input:focus { border-color: var(--ed-ink); }
.ed-input::placeholder { color: var(--ed-mute); font-style: italic; }

/* Live */
.ed-live .ed-title { font-size: 34px; }

/* Galeri asimetris */
.ed-gallery { padding-left: 14px; padding-right: 14px; }
.ed-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 70px; gap: 8px; margin-top: 28px; }
.ed-grid-item { overflow: hidden; display: block; }
.ed-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.ed-grid-item:hover img { transform: scale(1.05); }
.ed-g0 { grid-column: span 4; grid-row: span 4; }
.ed-g1 { grid-column: span 2; grid-row: span 2; }
.ed-g2 { grid-column: span 2; grid-row: span 2; }
.ed-g3 { grid-column: span 3; grid-row: span 3; }
.ed-g4 { grid-column: span 3; grid-row: span 3; }
.ed-g5 { grid-column: span 6; grid-row: span 3; }
.ed-video { position: relative; margin-top: 10px; aspect-ratio: 16 / 9; }
.ed-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Kisah */
.ed-story-item { margin-top: 40px; }
.ed-story-photo { height: 300px; margin: 0 -28px -50px; }
.ed-story-item .ed-label, .ed-story-item h3 { position: relative; z-index: 2; }
.ed-story-item h3 { font: italic 300 30px/1.15 var(--ed-display) !important; margin-bottom: 10px !important; }
.ed-story-item p { margin: 0 auto; max-width: 340px; color: var(--ed-grey); font-size: 17px; }

/* Hadiah */
.ed-gift-panel {
    display: grid; gap: 14px; max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .8s ease, opacity .6s ease, margin .6s ease;
}
.ed-gift-panel.is-open { max-height: 1600px; opacity: 1; margin-top: 30px; }
.ed-gift-card { padding: 24px 20px; border: 1px solid var(--ed-line); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ed-gift-card strong { font: 300 28px/1.2 var(--ed-display); letter-spacing: .04em; }
.ed-gift-card span { color: var(--ed-grey); font-style: italic; }
.ed-gift-addr { margin: 0; color: var(--ed-grey); max-width: 300px; }
.ed-note { margin: 4px 0 0; font-size: 14px; color: var(--ed-mute); }

/* Ucapan */
.ed-wishes { max-height: 520px; overflow-y: auto; text-align: left; margin-top: 20px; border-top: 1px solid var(--ed-line); }
.ed-wish { padding: 18px 2px; border-bottom: 1px solid var(--ed-line); }
.ed-wish-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ed-wish-head strong { font: 400 20px/1.2 var(--ed-display); }
.ed-wish-head em { font: 500 9px/1 var(--ed-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ed-mute); font-style: normal; white-space: nowrap; }
.ed-wish p { margin: 6px 0; color: var(--ed-grey); font-size: 17px; }
.ed-wish small { font: 400 11px/1 var(--ed-sans); color: var(--ed-mute); }
.ed-empty { color: var(--ed-mute); font-style: italic; text-align: center; padding: 20px 0; }

/* Penutup */
.ed-footer { text-align: center; padding-bottom: 50px; }
.ed-footer-photo { height: 380px; }
.ed-footer-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #FFFBFB1F 50%, #FFFFFF 97%); }
.ed-footer-text { position: relative; z-index: 2; margin-top: -90px; padding: 0 28px; }
.ed-closing { margin: 0 auto 24px; max-width: 340px; font: 300 21px/1.5 var(--ed-display); color: var(--ed-grey); }
.ed-footer-names { font: 300 48px/1.05 var(--ed-display) !important; }
.ed-footer-names em { font-size: .55em; color: var(--ed-mute); }
.ed-credit { margin: 0; font: 400 11px/1.5 var(--ed-sans); letter-spacing: .08em; color: var(--ed-mute); }
.ed-credit a { text-decoration: none; border-bottom: 1px solid var(--ed-line); }

/* Animasi */
.ed [data-reveal] { transition-duration: 1.1s; transition-timing-function: cubic-bezier(.2, .7, .2, 1); }
@keyframes ed-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes ed-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
body.inv-opened .ed-hero-photo img { animation: ed-zoom 12s ease-out both; }

@media (max-width: 360px) {
    .ed-title { font-size: 38px; }
    .ed-bigdate-day { font-size: 108px; }
    .ed-countdown b { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .ed *, .ed [data-reveal] { animation: none !important; transition: none !important; }
}
