:root {
    --de-emerald: #173b2b;
    --de-emerald-deep: #0c1c14;
    --de-velvet: #651526;
    --de-velvet-deep: #3d0c18;
    --de-ivory: #f7f0de;
    --de-gold: #bd9856;
    --de-copy: #f8f2e8;
    --de-shadow: 0 14px 38px rgba(0, 0, 0, .35);
    --de-serif: 'Libre Baskerville', Georgia, serif;
    --de-display: 'DM Serif Display', Georgia, serif;
    --de-script: 'Great Vibes', 'Brush Script MT', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; color: var(--de-copy); background: #0d1711; font-family: var(--de-serif); font-size: 13px; line-height: 1.8; }
body.de-locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #f5d990; outline-offset: 3px; }

.de-cover { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; height: 100svh; height: 100dvh; min-height: 100svh; overflow: hidden; isolation: isolate; background: var(--de-emerald-deep) url('../img/curtain-ballroom.png') center 48% / cover no-repeat; transition: transform .95s cubic-bezier(.76,0,.24,1), opacity .8s ease; }
.de-cover::before { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(180deg, rgba(3,15,9,.18), rgba(3,15,9,.44) 75%, rgba(4,13,9,.68)); }
.de-cover.is-opening { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.de-cover__content { position: relative; z-index: 1; display: flex; width: min(100% - 34px, 634px); min-height: 100svh; min-height: 100dvh; flex-direction: column; align-items: center; justify-content: space-evenly; padding: clamp(16px, 3.5svh, 32px) 18px; text-align: center; text-shadow: 0 2px 13px #000; }
.de-cover__eyebrow { color: #f3e7d0; font-size: 10px; letter-spacing: .29em; text-transform: uppercase; }
.de-cover__logo { position: relative; z-index: 5; display: block; width: auto; max-width: 88px; max-height: 64px; margin: 0 auto; object-fit: contain; }
.de-cover h1 { position: relative; z-index: 5; margin: 0; color: #fff8e9; font: clamp(48px, 8vw, 76px)/1 var(--de-script); }
.de-cover__guest { position: relative; z-index: 5; width: 100%; color: #eee0c9; font-size: 12px; line-height: 1.45; }
.de-cover__guest strong { display: block; color: #f3e7d0; font-family: var(--de-display); font-size: 14px; }
.de-cover__guest small { display: block; font-size: 10px; }
.de-cover__art { position: relative; z-index: 3; width: min(62vw, 634px); margin: 0 auto; flex: 0 0 auto; }
.de-cover__envelope { position: relative; z-index: 2; width: 100%; margin: 0 auto; filter: drop-shadow(0 11px 15px rgba(0,0,0,.34)); }
.de-cover__envelope-img { display: block; width: 100%; height: auto; }
.de-cover__seal { position: absolute; z-index: 4; top: 53%; left: 50%; display: block; width: 18%; max-width: 112px; height: auto; aspect-ratio: 435 / 458; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(55,5,13,.5)); transform: translate(-50%,-50%); }
.de-cover__open { position: relative; z-index: 6; display: inline-flex; align-items: center; margin: 0; padding: 9px 18px; border: 1px solid rgba(245,226,187,.8); border-radius: 30px; color: #fff5e4; background: rgba(25,15,10,.75); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.de-cover__open span { margin-left: 7px; }
.de-cover__flower { position: absolute; z-index: 3; display: block; height: auto; pointer-events: none; }
.de-cover__flower--left { top: -31%; left: -25%; width: 72%; }
.de-cover__flower--detail { top: 66%; right: -14%; width: 36%; }
.de-cover__flower--right { top: 103%; right: -64%; width: 86%; }
.de-cover__flower--lower-left { top: 151%; left: -57%; width: 70%; transform: scaleX(-1); }
.de-flower { position: absolute; z-index: 1; width: min(42vw, 235px); height: auto; pointer-events: none; }

.de-main { width: min(100%, 760px); margin: 0 auto; overflow: hidden; opacity: 0; transition: opacity .8s ease; }
.de-main.is-open { opacity: 1; }
.de-section { position: relative; min-height: 620px; padding: 78px clamp(22px, 7vw, 66px); overflow: hidden; isolation: isolate; }
.de-section::before { position: absolute; z-index: -1; inset: 0; content: ''; pointer-events: none; }
.de-quote { display: flex; min-height: 100svh; flex-direction: column; align-items: center; justify-content: center; padding-top: 52px; padding-bottom: 30px; background: url('../img/curtain-ballroom.png') center / cover no-repeat; }
.de-quote::before { background: linear-gradient(180deg, rgba(4,14,8,.2), rgba(4,14,8,.14) 68%, rgba(16,7,6,.42)); }
.de-quote__lace { position: relative; z-index: 2; display: grid; width: min(100%, 460px); min-height: 440px; place-items: center; padding: 62px 58px; }
.de-lace { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; filter: drop-shadow(0 6px 12px rgba(0,0,0,.38)); }
.de-quote blockquote { position: relative; z-index: 1; max-width: 290px; margin: 0; color: #44372a; font: 12px/1.9 var(--de-serif); text-align: center; }
.de-quote cite { display: block; margin-top: 18px; font: 12px var(--de-display); }
.de-flower--quote-left { z-index: 1; top: 4%; left: -12%; width: 30%; }
.de-flower--quote-right { z-index: 1; right: -12%; bottom: 6%; width: 30%; transform: scaleX(-1); }
.de-sparkle { position: absolute; z-index: 1; right: 8%; bottom: 12%; width: min(27vw, 145px); height: auto; opacity: .35; pointer-events: none; }
.de-audio-control { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; margin-top: 18px; color: var(--de-ivory); font: 10px var(--de-display); letter-spacing: .06em; }
.de-audio-control button { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid #ead7ae; border-radius: 50%; color: var(--de-velvet); background: var(--de-ivory); cursor: pointer; }

.de-couple { display: flex; min-height: 790px; flex-direction: column; justify-content: center; background: var(--de-velvet) url('../img/maroon-velvet.png') center / cover no-repeat; }
.de-couple::before, .de-gifts::before, .de-gallery::before { background: rgba(74, 10, 26, .18); }
.de-bismillah { margin: -8px auto 13px; color: #fff3dc; font-size: 40px; }
.de-intro { max-width: 440px; margin: 0 auto 46px; color: #fff2df; text-align: center; }
.de-couple__row { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(15px, 5vw, 35px); width: 100%; max-width: 540px; margin: 0 auto; }
.de-couple__row--reverse { flex-direction: row-reverse; text-align: right; }
.de-couple__photo { width: clamp(112px, 34vw, 190px); aspect-ratio: .8; object-fit: cover; border: 3px double var(--de-gold); border-radius: 48% 48% 45% 45%; box-shadow: 0 0 0 5px rgba(189,152,86,.16), var(--de-shadow); }
.de-couple__row h2 { margin: 0 0 8px; color: #fff1d8; font: clamp(31px, 8vw, 48px)/1 var(--de-script); }
.de-couple__row p { margin: 0; color: #f9e7d5; font-size: 11px; line-height: 1.8; }
.de-ampersand { margin: 23px auto; color: #f8edd9; font: 48px var(--de-script); }
.de-flower--couple-left { bottom: -4%; left: -11%; width: min(29vw, 175px); }
.de-flower--couple-right { right: -10%; bottom: -1%; width: min(27vw, 165px); transform: scaleX(-1); }

.de-events { min-height: 950px; padding-top: 85px; color: #fff6e7; background: var(--de-emerald) url('../img/emerald-texture.jpg') center / cover no-repeat; }
.de-events::before { background: rgba(12, 47, 31, .12); }
.de-event-date { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #f8f0df; text-transform: uppercase; }
.de-event-date span { font: 13px var(--de-display); letter-spacing: .2em; }
.de-event-date strong { color: #f0dfb8; font: 66px/.95 var(--de-display); }
.de-countdown { display: flex; justify-content: center; gap: clamp(12px, 5vw, 38px); margin: 27px 0 62px; }
.de-countdown div { display: grid; min-width: 46px; text-align: center; }
.de-countdown strong { font: 19px var(--de-display); }
.de-countdown span { font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.de-event-list { position: relative; z-index: 2; display: grid; gap: 28px; }
.de-event-card { padding: 24px clamp(17px, 5vw, 40px); border: 1px solid rgba(246,231,198,.46); background: rgba(8,32,21,.46); text-align: center; box-shadow: var(--de-shadow); }
.de-event-card__building { width: 78px; max-height: 70px; margin-bottom: 8px; object-fit: contain; opacity: .82; }
.de-event-card h2 { margin: 0 0 8px; color: #f5dfb1; font: 39px var(--de-script); }
.de-event-card__when { color: #e7d7bd; }
.de-event-card h3 { margin: 16px 0 3px; font: 16px var(--de-display); letter-spacing: .08em; }
.de-event-card p { margin: 4px 0 15px; font-size: 11px; }
.de-map { position: relative; width: 100%; margin: 16px 0; padding-bottom: 64%; overflow: hidden; border: 1px solid rgba(246,231,198,.5); }
.de-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.de-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: 1px solid #d8bd7e; color: #fff6e5; background: rgba(95,18,35,.82); text-decoration: none; cursor: pointer; }

.de-gifts { min-height: 600px; background: var(--de-velvet) url('../img/maroon-velvet.png') center / cover no-repeat; }
.de-section-title { position: relative; z-index: 1; margin: 0 auto 25px; text-align: center; }
.de-section-title span { display: block; color: #e6d1ac; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.de-section-title h2 { margin: 2px 0; color: #fff3df; font: 48px/1.1 var(--de-script); }
.de-gifts__intro { max-width: 480px; margin: 0 auto 32px; text-align: center; }
.de-account-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 15px; max-width: 560px; margin: 0 auto; }
.de-account { display: flex; flex-direction: column; align-items: center; padding: 19px 16px; border: 1px solid rgba(236,214,172,.55); background: rgba(41,7,18,.36); text-align: center; }
.de-account__bank { color: #f0d79d; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.de-account strong { margin: 7px 0; font: 18px var(--de-display); }
.de-account__qr { width: 122px; max-width: 100%; margin-top: 13px; }
.de-copy { margin-top: 11px; padding: 6px 12px; border: 1px solid rgba(242,220,177,.5); color: #fff1db; background: transparent; cursor: pointer; }

.de-rsvp { min-height: 680px; background: linear-gradient(145deg, #43101b, #721b2d 55%, #4c1420); }
.de-rsvp__form { display: grid; gap: 14px; max-width: 470px; margin: 0 auto; }
.de-rsvp__form label { display: grid; gap: 5px; color: #f6e6cf; font-size: 11px; }
.de-rsvp__form input, .de-rsvp__form select, .de-rsvp__form textarea { width: 100%; padding: 11px 12px; border: 1px solid rgba(240,217,177,.5); border-radius: 0; color: #342a24; background: #f7f0e4; }
.de-rsvp__form input[readonly] { color: #77716a; background: #e7e2d9; cursor: not-allowed; }
.de-rsvp__form .de-button { width: 100%; }
#de-rsvp-status { min-height: 22px; margin: 0; text-align: center; }
.de-wishes { max-width: 520px; margin: 45px auto 0; }
.de-wishes h3 { color: #f0d6a8; font: 30px var(--de-script); text-align: center; }
.de-wishes article { padding: 13px 0; border-bottom: 1px solid rgba(242,220,177,.26); }
.de-wishes article p { margin: 4px 0 0; }
.de-qrcode { display: flex; flex-direction: column; align-items: center; margin: 0 auto 45px; text-align: center; }
.de-qrcode h2 { margin: 0; font: 36px var(--de-script); }
.de-qrcode #de-qr { padding: 12px; background: white; }
.de-qrcode span { margin-top: 8px; color: #efd9aa; }
.de-prokes { min-height: 250px; color: #f8f0df; background: #163b2b url('../img/emerald-texture.jpg') center/cover; text-align: center; }

.de-story { min-height: 860px; background: var(--de-emerald) url('../img/emerald-texture.jpg') center / cover no-repeat; }
.de-story__polaroid { position: relative; width: min(70%, 270px); margin: -5px auto 37px; padding: 12px 12px 38px; background: #ede4d4; box-shadow: var(--de-shadow); transform: rotate(-4deg); }
.de-story__polaroid img { display: block; width: 100%; aspect-ratio: 1.25; object-fit: cover; filter: saturate(.72); }
.de-story__polaroid span { position: absolute; right: 0; bottom: 0; left: 0; color: #4d392d; font: 25px var(--de-script); text-align: center; }
.de-timeline { max-width: 500px; margin: 0 auto; padding-left: 26px; border-left: 1px solid rgba(246,235,214,.6); }
.de-timeline article { position: relative; margin: 0 0 30px; padding: 0 0 0 18px; }
.de-timeline article::before { position: absolute; top: 6px; left: -32px; width: 11px; height: 11px; border: 1px solid #f3e5c8; border-radius: 50%; background: var(--de-emerald); content: ''; }
.de-timeline h3 { margin: 0; color: #fff0d7; font: 29px var(--de-script); }
.de-timeline__date { color: #e7d3aa; font-size: 10px; }
.de-timeline p { margin: 4px 0; }

.de-gallery { background: var(--de-velvet) url('../img/maroon-velvet.png') center / cover no-repeat; }
.de-gallery__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.de-gallery__item { min-width: 0; padding: 0; overflow: hidden; border: 1px solid rgba(229,202,153,.45); background: #30131a; cursor: zoom-in; }
.de-gallery__item:nth-child(3n) { grid-row: span 2; }
.de-gallery__item img { display: block; width: 100%; height: 100%; min-height: 170px; object-fit: cover; transition: transform .45s ease; }
.de-gallery__item:hover img { transform: scale(1.04); }
.de-video { position: relative; margin-top: 28px; padding-bottom: 56.25%; }
.de-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.de-closing { display: flex; min-height: 640px; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--de-emerald-deep) url('../img/curtain-ballroom.png') center / cover no-repeat; }
.de-closing::before { background: rgba(2,14,8,.48); }
.de-closing__names { display: grid; gap: 0; color: #fff4df; font: 68px/.87 var(--de-script); text-shadow: 0 3px 16px #000; }
.de-closing__logo { width: auto; max-width: 110px; max-height: 64px; margin: 25px auto 0; object-fit: contain; }
.de-closing__names b { font-size: 38px; font-weight: 400; }
.de-closing p { max-width: 430px; margin: 28px auto 0; text-shadow: 0 2px 9px #000; }
.de-closing .de-closing__thanks { margin-top: 10px; color: #e7d1a7; font: 22px var(--de-script); }
.de-flower--closing-left { bottom: -4%; left: -12%; width: min(28vw,170px); }
.de-flower--closing-right { right: -12%; bottom: -3%; width: min(26vw,160px); transform: scaleX(-1); }

.de-nav { position: fixed; z-index: 10; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; display: none; gap: 6px; padding: 7px; border: 1px solid rgba(225,204,161,.38); border-radius: 30px; background: rgba(28,16,15,.86); box-shadow: var(--de-shadow); transform: translateX(-50%); backdrop-filter: blur(8px); }
.de-nav.is-visible { display: flex; }
.de-nav a { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #f2dfbc; text-decoration: none; }
.de-nav a:hover { color: #fff; background: rgba(120,40,51,.7); }
.de-music-toggle { position: fixed; z-index: 11; right: 18px; bottom: max(21px, env(safe-area-inset-bottom)); display: none; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(225,204,161,.45); border-radius: 50%; color: #f3e6ca; background: rgba(32,16,15,.86); cursor: pointer; }
.de-music-toggle.is-visible { display: grid; }
.de-music-toggle.is-playing { animation: de-spin 4s linear infinite; }
@keyframes de-spin { to { transform: rotate(360deg); } }
.de-lightbox { position: fixed; z-index: 50; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(6,7,6,.94); }
.de-lightbox.is-open { display: flex; }
.de-lightbox img { max-width: min(100%, 880px); max-height: 86svh; object-fit: contain; }
.de-lightbox button { position: absolute; top: 14px; right: 18px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: white; background: transparent; font-size: 28px; cursor: pointer; }

@media (min-width: 800px) {
    .de-cover { background-position: center 45%; }
    .de-section { padding-right: 70px; padding-left: 70px; }
    .de-couple { min-height: 900px; }
    .de-events { min-height: 1000px; }
    .de-quote__lace { min-height: 500px; }
}
@media (max-width: 390px) {
    .de-cover__content { width: calc(100% - 28px); padding-right: 14px; padding-left: 14px; }
    .de-cover__eyebrow { font-size: 9px; }
    .de-cover h1 { font-size: clamp(44px, 12vw, 52px); }
    .de-cover__art { width: min(68vw, 390px); }
    .de-cover__flower--left { top: -20%; left: -22%; width: 66%; }
    .de-cover__flower--detail { top: 65%; right: -7%; width: 34%; }
    .de-cover__flower--right { top: 102%; right: -56%; width: 78%; }
    .de-cover__flower--lower-left { top: 142%; left: -53%; width: 64%; }
    .de-quote__lace { min-height: 400px; padding: 50px 47px; }
    .de-quote blockquote { font-size: 10px; }
    .de-couple__row p { font-size: 10px; }
    .de-section-title h2 { font-size: 42px; }
}
@media (max-height: 700px) {
    .de-cover__content { padding-top: 10px; padding-bottom: 10px; }
    .de-cover__logo { max-height: 48px; }
    .de-cover h1 { font-size: clamp(42px, 11vw, 58px); }
    .de-cover__art { width: min(62vw, 350px); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
