@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@400;500;600&display=swap');

:root {
  --ivory: #f5f0e6;
  --paper: #fbf7ee;
  --stone: #d8d0c2;
  --olive: #6d7465;
  --espresso: #332821;
  --gold: #aa8e5e;
  --plum: #6b3144;
  --ink: #2d2925;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); font-size: 15px; line-height: 1.75; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--plum); color: var(--paper); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.screen { min-height: 100svh; min-height: 100vh; width: 100%; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: .23em; line-height: 1.4; text-transform: uppercase; }
.monogram { display: inline-flex; align-items: center; gap: .24em; font-family: var(--serif); font-size: 30px; letter-spacing: .08em; line-height: 1; }
.monogram i { color: var(--gold); font-weight: 400; }
.button { align-items: center; background: transparent; border: 1px solid currentColor; cursor: pointer; display: inline-flex; justify-content: center; min-height: 52px; padding: 13px 18px; text-decoration: none; text-transform: uppercase; transition: background .25s ease, color .25s ease, border-color .25s ease; width: 100%; font-size: 10px; font-weight: 600; letter-spacing: .15em; }
.button.solid { background: var(--espresso); border-color: var(--espresso); color: var(--paper); }
.button.solid:hover { background: var(--plum); border-color: var(--plum); }
.button.outline { color: var(--espresso); margin: 23px auto 0; max-width: 310px; }
.button.outline:hover { background: var(--espresso); color: var(--paper); }
.button.light { color: var(--paper); }
.button.light:hover { background: var(--paper); color: var(--espresso); }
.button.paper { background: var(--paper); border-color: var(--paper); color: var(--espresso); }

/* Password */
.gate { align-items: center; background: var(--espresso); display: flex; justify-content: center; overflow: hidden; padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); position: relative; }
.gate::before, .gate::after { border: 1px solid rgba(170, 142, 94, .28); border-radius: 50%; content: ""; height: 64vw; max-height: 680px; max-width: 680px; pointer-events: none; position: absolute; width: 64vw; }
.gate::before { left: -18vw; top: -29vw; }
.gate::after { bottom: -30vw; right: -17vw; }
.gate-card { background: var(--paper); box-shadow: 0 30px 100px rgba(0, 0, 0, .22); max-width: 460px; padding: clamp(38px, 6vw, 70px); position: relative; text-align: center; width: 100%; z-index: 2; }
.gate-card .monogram { color: var(--espresso); font-size: 48px; margin-bottom: 34px; }
.gate-card form { position: relative; z-index: 3; }
.gate-card label { display: block; margin: 0 0 7px; text-align: left; text-transform: uppercase; font-size: 9px; font-weight: 600; letter-spacing: .16em; }
.gate-card input { appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--stone); border-radius: 0; color: var(--espresso); font-size: 16px; min-height: 52px; padding: 9px 2px; position: relative; touch-action: manipulation; width: 100%; z-index: 4; }
.gate-card .button { margin-top: 24px; position: relative; touch-action: manipulation; z-index: 4; }
.gate-card small { color: #8d8379; display: block; margin-top: 30px; text-transform: uppercase; font-size: 9px; letter-spacing: .21em; }
.error { color: var(--plum); font-size: 12px; margin: 11px 0 0; text-align: left; }

/* Scratch */
.scratch-entry { align-items: center; background: var(--ivory); display: flex; justify-content: center; overflow: hidden; padding: 52px 20px 36px; position: relative; }
.scratch-entry::before { background: linear-gradient(115deg, transparent 48%, rgba(170, 142, 94, .18) 49%, transparent 50%); background-size: 22px 22px; content: ""; inset: 0; opacity: .23; pointer-events: none; position: absolute; }
.scratch-stage { max-width: 500px; position: relative; text-align: center; width: 100%; z-index: 2; }
.scratch-stage h1 { font-family: var(--serif); font-size: clamp(44px, 8vw, 70px); font-weight: 400; line-height: .96; margin: 0 0 30px; }
.scratch-frame { margin: auto; max-width: 390px; position: relative; }
.scratch-card { aspect-ratio: 1 / 1.28; background: #efe7d9; box-shadow: 0 25px 80px rgba(51, 40, 33, .16); overflow: hidden; position: relative; }
.revealed-date { align-items: center; background: linear-gradient(145deg, #6a3043, #42252c); color: var(--paper); display: flex; flex-direction: column; inset: 0; justify-content: center; position: absolute; }
.revealed-date::after { border: 1px solid rgba(217, 185, 130, .55); content: ""; inset: 14px; position: absolute; }
.revealed-date span, .revealed-date small { letter-spacing: .17em; text-transform: uppercase; font-size: 9px; }
.revealed-date strong { color: #e3cfad; font-family: var(--serif); font-size: clamp(88px, 27vw, 128px); font-weight: 400; line-height: .75; margin: 32px 0 5px; }
.revealed-date em { font-family: var(--serif); font-size: 35px; font-weight: 400; margin-bottom: 28px; }
#scratch-canvas { cursor: crosshair; inset: 0; position: absolute; touch-action: none; transition: opacity .18s ease; z-index: 3; }
#scratch-canvas.scratched { opacity: 0; pointer-events: none; }
#scratch-help { color: #746a60; font-size: 11px; letter-spacing: .1em; margin: 22px 0 0; text-transform: uppercase; }
.resting-petals { inset: 0; pointer-events: none; position: absolute; z-index: 4; }
.resting-petals i { background: var(--plum); border-radius: 90% 0 90% 0; height: 13px; position: absolute; transform: rotate(35deg); width: 7px; }
.resting-petals i:nth-child(1) { left: 7%; top: 10%; }.resting-petals i:nth-child(2) { right: 9%; top: 22%; }.resting-petals i:nth-child(3) { bottom: 11%; left: 15%; }.resting-petals i:nth-child(4) { bottom: 7%; right: 20%; }.resting-petals i:nth-child(5) { left: 4%; top: 55%; }.resting-petals i:nth-child(6) { right: 5%; top: 65%; }.resting-petals i:nth-child(7) { left: 30%; top: 4%; }.resting-petals i:nth-child(8) { bottom: 3%; right: 43%; }
.petal-celebration { inset: 0; overflow: hidden; pointer-events: none; position: fixed; z-index: 70; }
.petal-celebration i { animation: fall var(--d) cubic-bezier(.17,.67,.35,1) var(--delay) forwards; background: var(--plum); border-radius: 90% 0 90% 0; height: var(--s); left: var(--x); opacity: 0; position: absolute; top: -28px; transform: rotate(var(--r)); width: calc(var(--s) * .56); }
@keyframes fall { 10% { opacity: .9; } 100% { opacity: .2; transform: translate(var(--drift), 110vh) rotate(760deg); } }

/* Opening doors */
.portal { background: var(--paper); color: var(--plum); display: grid; inset: 0; overflow: hidden; place-items: center; position: fixed; z-index: 50; }
.portal-video { background: var(--paper); height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.portal-invite { color: var(--plum); padding: 20px; position: relative; text-align: center; text-shadow: none; width: min(88vw, 330px); z-index: 5; }
.portal-invite .monogram, .portal-invite .monogram i, .portal-invite > p, .portal-invite > small { color: var(--plum); }
.portal-invite .monogram { font-size: 42px; }
.portal-invite > p { font-family: var(--serif); font-size: 34px; line-height: 1; margin: 9px 0 2px; }
.portal-invite > small { display: block; letter-spacing: .25em; margin-bottom: 18px; }
.portal-invite .button { backdrop-filter: blur(3px); background: rgba(251, 247, 238, .72); border-color: var(--plum); color: var(--plum); margin: auto; max-width: 250px; }
.portal-invite .button:hover { background: var(--plum); border-color: var(--plum); color: var(--paper); }
.portal.is-playing .portal-invite { opacity: 0; pointer-events: none; transition: opacity .2s ease; }

/* Navigation */
nav { align-items: center; background: rgba(43,35,30,.92); color: var(--paper); display: flex; height: 80px; justify-content: space-between; left: 0; padding: 0 clamp(20px, 5vw, 72px); position: sticky; top: 0; z-index: 30; }
.nav-mark { text-decoration: none; }
.nav-mark .monogram { font-size: 25px; }
.navlinks { align-items: center; display: flex; gap: clamp(20px, 3vw, 44px); }
.navlinks a { font-size: 9px; font-weight: 600; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.navlinks a:last-child { border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.hamb { background: transparent; border: 0; display: none; height: 44px; padding: 11px 6px; width: 44px; }
.hamb i { background: currentColor; display: block; height: 1px; margin: 7px 0; width: 31px; }
.music { align-items: center; backdrop-filter: blur(8px); background: rgba(51,40,33,.82); border: 1px solid rgba(255,255,255,.2); bottom: max(17px, env(safe-area-inset-bottom)); color: var(--paper); cursor: pointer; display: flex; gap: 9px; padding: 10px 12px; position: fixed; right: max(17px, env(safe-area-inset-right)); text-transform: uppercase; z-index: 29; font-size: 8px; letter-spacing: .12em; }
.bars { align-items: end; display: flex; gap: 2px; height: 12px; }
.bars i { background: var(--gold); display: block; height: 4px; width: 2px; }
.bars.on i { animation: sound .8s ease-in-out infinite alternate; }.bars.on i:nth-child(2) { animation-delay: -.3s; }.bars.on i:nth-child(3) { animation-delay: -.55s; }
@keyframes sound { to { height: 12px; } }

/* Hero and story */
.hero { color: var(--paper); min-height: calc(100svh - 80px); min-height: calc(100vh - 80px); overflow: hidden; position: relative; }
.hero-bg { background: url('../images/villa-phalosa-wedding-sketch.webp') center 58%/cover no-repeat; inset: 0; position: absolute; }
.hero-shade { background: linear-gradient(90deg, rgba(35,28,23,.72), rgba(35,28,23,.16) 70%), linear-gradient(0deg, rgba(35,28,23,.52), transparent 45%); inset: 0; position: absolute; }
.hero-copy { bottom: 15%; left: clamp(24px, 8vw, 124px); max-width: 740px; position: absolute; z-index: 2; }
.hero-copy h1 { font-family: var(--serif); font-size: clamp(70px, 10vw, 145px); font-weight: 400; letter-spacing: -.04em; line-height: .72; margin: 0; }
.hero-script { color: #e4cfad; font-family: var(--serif); font-size: clamp(30px, 4vw, 50px); font-style: italic; margin: 25px 0 3px; }
.hero-intro { font-family: var(--serif); font-size: clamp(19px, 2vw, 26px); line-height: 1.35; margin: 0 0 28px; max-width: 580px; }
.hero-copy strong { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue { bottom: 36px; position: absolute; right: clamp(24px, 5vw, 70px); text-decoration: none; text-transform: uppercase; z-index: 2; font-size: 9px; letter-spacing: .17em; }
.welcome-story { display: grid; gap: clamp(50px, 9vw, 150px); grid-template-columns: 1fr 1fr; margin: auto; max-width: 1350px; padding: clamp(90px, 13vw, 190px) clamp(24px, 7vw, 90px); }
.welcome-story h2, .weekend h2, .travel h2, .wind-down h2, .faq h2, .countdown h2, .rsvp h2 { font-family: var(--serif); font-size: clamp(52px, 7vw, 96px); font-weight: 400; letter-spacing: -.035em; line-height: .8; margin: 0; }
h2 em { color: var(--plum); font-weight: 400; }
.story-copy { border-left: 1px solid var(--stone); max-width: 550px; padding-left: clamp(25px, 4vw, 60px); }
.story-copy p { font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); line-height: 1.42; margin: 0 0 19px; }
.story-copy strong { color: var(--plum); font-family: var(--serif); font-size: 27px; font-style: italic; font-weight: 400; }

/* Events */
.weekend { background: var(--espresso); color: var(--paper); padding: clamp(90px, 11vw, 160px) clamp(24px, 8vw, 120px); }
.weekend header { margin-bottom: 65px; }
.weekend h2 em { color: #d9c29e; }
#event-list { border-top: 1px solid rgba(255,255,255,.22); }
.event-row { align-items: center; border-bottom: 1px solid rgba(255,255,255,.22); display: grid; gap: 30px; grid-template-columns: 70px 1fr; padding: 30px 5px; text-decoration: none; transition: background .25s, padding .25s; }
.event-row:hover { background: rgba(255,255,255,.035); padding-left: 16px; padding-right: 16px; }
.event-row > span { color: var(--gold); font-family: var(--serif); font-size: 38px; }
.event-row small { color: #c6bdb4; letter-spacing: .15em; text-transform: uppercase; font-size: 9px; }
.event-row h3 { font-family: var(--serif); font-size: clamp(29px, 4vw, 51px); font-weight: 400; line-height: 1; margin: 5px 0 7px; }
.event-row p { margin: 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.event { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 720px; }
.event:nth-child(even) .event-img { order: 2; }
.event-img { background-color: #ede6da; background-position: center; background-size: cover; min-height: 610px; }
.event-copy { align-self: center; padding: clamp(65px, 9vw, 135px); }
.event-copy h2 { font-family: var(--serif); font-size: clamp(54px, 6vw, 90px); font-weight: 400; line-height: .85; margin: 0 0 32px; text-transform: uppercase; }
.event-description { font-family: var(--serif); font-size: clamp(19px, 2vw, 25px); line-height: 1.45; max-width: 600px; }
.event-description p { margin: 0 0 15px; }
.event-description p:last-child { margin-bottom: 0; }
.event-copy dl { border-top: 1px solid var(--stone); margin: 40px 0 30px; }
.event-copy dl div { border-bottom: 1px solid var(--stone); display: grid; grid-template-columns: 85px 1fr; padding: 15px 0; }
.event-copy dt { color: #776d64; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.event-copy dd { margin: 0; }
.event-copy dd span { color: #655d56; display: block; font-size: 13px; line-height: 1.6; margin-top: 7px; max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 27px; }
.actions a, .text-link, .official-links a { border-bottom: 1px solid currentColor; font-size: 9px; font-weight: 600; letter-spacing: .13em; padding-bottom: 3px; text-decoration: none; text-transform: uppercase; }

/* Travel */
.travel { background: #ddd6c9; display: grid; gap: clamp(50px, 10vw, 160px); grid-template-columns: 1fr .9fr; padding: clamp(90px, 12vw, 175px) clamp(24px, 8vw, 120px); }
.travel-intro > p:not(.eyebrow) { max-width: 650px; }
.journey { align-self: end; }
.journey article { border-top: 1px solid rgba(51,40,33,.25); display: grid; gap: 25px; grid-template-columns: 50px 1fr; padding: 25px 0; }
.journey article:last-child { border-bottom: 1px solid rgba(51,40,33,.25); }
.journey article > span { color: var(--gold); font-family: var(--serif); font-size: 29px; }
.journey small { display: block; letter-spacing: .16em; margin-bottom: 4px; text-transform: uppercase; font-size: 9px; }
.journey strong { font-family: var(--serif); font-size: 25px; font-weight: 500; }
.journey p { margin: 3px 0 0; }
.wind-down { background: var(--paper); display: grid; grid-template-columns: 1fr 1fr; }
.wind-image { background: url('../images/sofitel-bali-sketch.webp') center/cover no-repeat; min-height: 720px; }
.wind-copy { align-self: center; padding: clamp(65px, 9vw, 135px); }
.wind-copy p:not(.eyebrow) { max-width: 600px; }
.wind-copy .text-link { display: inline-block; margin-top: 18px; }
.essentials { background: var(--olive); color: var(--paper); display: grid; grid-template-columns: 1fr 1fr; }
.essentials article { padding: clamp(70px, 9vw, 130px); }
.essentials article + article { background: var(--espresso); }
.essentials h2 { font-family: var(--serif); font-size: clamp(46px, 5.5vw, 76px); font-weight: 400; line-height: .86; margin: 0 0 30px; }
.essentials h3 { font-size: 10px; letter-spacing: .15em; margin: 28px 0 10px; text-transform: uppercase; }
.essentials ul { padding-left: 19px; }
.essentials small { color: rgba(255,255,255,.72); display: block; }
.official-links { display: flex; flex-direction: column; gap: 13px; margin-top: 28px; }
.official-links a, .essentials .text-link { width: fit-content; }
.travel-expert { border-top: 1px solid rgba(255,255,255,.3); margin-top: 32px; padding-top: 5px; }
.travel-expert p { margin-bottom: 12px; }
.travel-expert a, .contact-links a { display: block; width: fit-content; }
.travel-expert a { border-bottom: 1px solid currentColor; margin-top: 8px; text-decoration: none; }
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-links a:not(.text-link) { text-decoration: none; }
.offer { border-bottom: 1px solid rgba(255,255,255,.3); border-top: 1px solid rgba(255,255,255,.3); display: grid; margin: 28px 0; padding: 23px 0; }
.offer small, .offer span { letter-spacing: .12em; text-transform: uppercase; font-size: 9px; }
.offer strong { color: #dfc79e; font-family: var(--serif); font-size: 56px; font-weight: 400; line-height: 1; margin: 5px 0; }

/* Stay, gallery, FAQ */
.stay { padding: clamp(90px, 12vw, 170px) clamp(24px, 8vw, 120px); }
.stay header { max-width: 750px; }
.stay h2, .gallery h2 { font-family: var(--serif); font-size: clamp(55px, 7vw, 95px); font-weight: 400; line-height: .85; margin: 0 0 25px; }
#stay-grid { border-top: 1px solid var(--stone); display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 55px; }
#stay-grid article { border-bottom: 1px solid var(--stone); border-right: 1px solid var(--stone); min-height: 280px; padding: 30px; }
#stay-grid article:last-child { border-right: 0; }
#stay-grid span { color: var(--gold); font-family: var(--serif); font-size: 28px; }
#stay-grid h3 { font-family: var(--serif); font-size: 38px; font-weight: 400; margin: 55px 0 12px; }
#stay-grid p { color: #655d56; }
.hotel-dropdowns { border-top: 1px solid var(--stone); margin-top: 28px; }
.hotel-dropdown { border-bottom: 1px solid var(--stone); }
.hotel-dropdown summary { align-items: center; cursor: pointer; display: flex; font-family: var(--serif); font-size: 30px; justify-content: space-between; list-style: none; padding: 18px 5px; }
.hotel-dropdown summary::-webkit-details-marker { display: none; }
.hotel-dropdown summary span { color: var(--gold); font-family: var(--sans); font-size: 22px; transition: transform .25s; }
.hotel-dropdown[open] summary span { transform: rotate(45deg); }
.hotel-options { display: grid; gap: 0 28px; grid-template-columns: 1fr 1fr; padding: 0 5px 22px; }
.hotel-options a { border-top: 1px solid rgba(51,40,33,.13); padding: 15px 0; text-decoration: none; }
.hotel-options strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.2; }
.hotel-options small { color: #655d56; display: block; font-size: 11px; margin-top: 4px; }
.gallery { background: var(--espresso); color: var(--paper); padding: clamp(85px, 11vw, 155px) clamp(16px, 5vw, 70px); }
.gallery header { padding: 0 3vw 55px; }
#gallery-grid { display: grid; gap: 9px; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); }
#gallery-grid button { aspect-ratio: 4 / 5; background: #55483f; border: 0; cursor: zoom-in; overflow: hidden; padding: 0; }
#gallery-grid button:last-child { aspect-ratio: 16 / 7; grid-column: 1 / -1; }
#gallery-grid img { height: 100%; object-fit: cover; transition: transform .7s ease; width: 100%; }
#gallery-grid button:hover img { transform: scale(1.035); }
.faq { display: grid; gap: clamp(50px, 10vw, 140px); grid-template-columns: .75fr 1.25fr; padding: clamp(90px, 12vw, 170px) clamp(24px, 8vw, 120px); }
#faq-list { border-top: 1px solid var(--stone); }
#faq-list details { border-bottom: 1px solid var(--stone); }
#faq-list summary { align-items: center; cursor: pointer; display: flex; font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); justify-content: space-between; list-style: none; padding: 20px 0; }
#faq-list summary::-webkit-details-marker { display: none; }
#faq-list summary span { color: var(--gold); font-family: var(--sans); font-size: 21px; font-weight: 300; transition: transform .25s; }
#faq-list details[open] summary span { transform: rotate(45deg); }
#faq-list details p { color: #625b54; margin: -4px 35px 24px 0; }

/* Countdown and RSVP */
.countdown { background: var(--plum); color: var(--paper); padding: clamp(90px, 11vw, 155px) clamp(24px, 8vw, 120px); text-align: center; }
.countdown h2 em { color: #e0c7a5; }
#countdown-clock { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); margin: 65px auto 0; max-width: 920px; }
#countdown-clock div { border-left: 1px solid rgba(255,255,255,.27); }
#countdown-clock div:last-child { border-right: 1px solid rgba(255,255,255,.27); }
#countdown-clock strong { display: block; font-family: var(--serif); font-size: clamp(52px, 7vw, 96px); font-weight: 400; line-height: 1; }
#countdown-clock span { letter-spacing: .14em; text-transform: uppercase; font-size: 9px; }
.rsvp { background: var(--espresso); color: var(--paper); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 9vw, 135px); min-height: 850px; padding: clamp(85px, 12vw, 160px) clamp(24px, 8vw, 120px); }
.rsvp header .monogram { font-size: 44px; margin-bottom: 45px; }
.rsvp h2 em { color: #dec49c; }
.rsvp header > p:not(.eyebrow) { max-width: 560px; }
#rsvp-form { align-self: center; }
#rsvp-form .two { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
#rsvp-form > label, #rsvp-form .two > label, #rsvp-form .name-field { display: block; margin-bottom: 22px; text-transform: uppercase; font-size: 9px; letter-spacing: .14em; }
.field-label { align-items: center; display: flex; justify-content: space-between; }
.field-label label { margin: 0; }
.add-person, .additional-guest > button { -webkit-appearance: none; appearance: none; background: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; color: #dec49c; cursor: pointer; font-size: 9px; letter-spacing: .12em; padding: 0 0 3px; text-transform: uppercase; }
.additional-guests { margin-top: -4px; }
.additional-guest { align-items: end; display: grid; gap: 18px; grid-template-columns: 1fr auto; }
.additional-guest label { display: block; margin-bottom: 22px; text-transform: uppercase; font-size: 9px; letter-spacing: .14em; }
.additional-guest > button { margin-bottom: 37px; }
#rsvp-form input:not([type="radio"]), #rsvp-form select, #rsvp-form textarea { appearance: none; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); border-radius: 0; color: var(--paper); display: block; font-size: 16px; min-height: 48px; padding: 8px 0; width: 100%; }
#rsvp-form select { color-scheme: dark; }
#rsvp-form select option { background: var(--espresso); color: var(--paper); }
#rsvp-form textarea { resize: vertical; }
#rsvp-events { border-top: 1px solid rgba(255,255,255,.35); margin: 10px 0 25px; }
#rsvp-events fieldset { align-items: center; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); display: grid; gap: 15px; grid-template-columns: 1fr auto auto; margin: 0; padding: 19px 0; }
#rsvp-events legend { float: left; font-family: var(--serif); font-size: 20px; }
#rsvp-events label { align-items: center; display: flex; gap: 7px; white-space: nowrap; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
#rsvp-events input { accent-color: var(--gold); }
#rsvp-form .button { margin-top: 18px; max-width: 280px; }
#rsvp-form .button:disabled { cursor: wait; opacity: .55; }
.rsvp-status { color: #dec49c; min-height: 1.6em; margin: 13px 0 0; font-size: 13px; }
.thanks { align-self: center; border: 1px solid rgba(170,142,94,.6); padding: clamp(40px, 6vw, 80px); text-align: center; }
.thanks h2 { margin-bottom: 30px; }
.thanks > strong { color: #e0c7a5; display: block; letter-spacing: .2em; margin: 32px 0; font-size: 10px; }
.thanks .monogram { font-size: 46px; }
footer { align-items: center; background: #251f1a; color: var(--paper); display: flex; flex-direction: column; gap: 17px; min-height: 300px; justify-content: center; text-align: center; }
footer p { letter-spacing: .17em; margin: 0; text-transform: uppercase; font-size: 9px; }
footer > i { color: #d7bd97; font-family: var(--serif); font-size: 24px; }

/* Lightbox and motion */
.lightbox { align-items: center; background: rgba(24,19,16,.96); display: flex; inset: 0; justify-content: center; padding: 50px; position: fixed; z-index: 100; }
.lightbox img { max-height: 86vh; max-width: 84vw; object-fit: contain; }
.lightbox button { background: transparent; border: 0; color: var(--paper); cursor: pointer; font-size: 10px; letter-spacing: .13em; padding: 18px; text-transform: uppercase; }
#lightbox-close { font-size: 10px; letter-spacing: .13em; position: absolute; right: 22px; text-transform: uppercase; top: 16px; }
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (max-width: 800px) {
  body { font-size: 14px; }
  .gate-card { padding: 43px 28px; }
  .gate::before, .gate::after { height: 120vw; width: 120vw; }
  .scratch-entry { padding-top: 36px; }
  .scratch-stage h1 { font-size: 48px; margin-bottom: 24px; }
  .scratch-frame { max-width: 330px; }
  .portal-invite { padding: 18px; }
  .portal-invite .monogram { font-size: 36px; }
  .portal-invite > p { font-size: 29px; margin-top: 7px; }
  .portal-invite > small { margin-bottom: 13px; }
  nav { height: 65px; padding: 0 19px; }
  .hamb { display: block; }
  .navlinks { background: var(--espresso); display: flex; flex-direction: column; gap: 0; left: 0; opacity: 0; padding: 18px 24px 30px; pointer-events: none; position: absolute; top: 65px; transform: translateY(-10px); transition: opacity .25s, transform .25s; width: 100%; }
  .navlinks.show { opacity: 1; pointer-events: auto; transform: none; }
  .navlinks a { border-bottom: 1px solid rgba(255,255,255,.15); padding: 15px 0; width: 100%; }
  .hero { min-height: calc(100svh - 65px); }
  .hero-bg { background-position: 58% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(35,28,23,.83), rgba(35,28,23,.08) 75%); }
  .hero-copy { bottom: 12%; left: 22px; padding-right: 22px; }
  .hero-copy h1 { font-size: clamp(61px, 20vw, 86px); line-height: .77; }
  .hero-script { font-size: 31px; margin-top: 21px; }
  .hero-intro { font-size: 19px; }
  .hero-copy strong { line-height: 1.6; }
  .scroll-cue { bottom: 24px; display: none; }
  .welcome-story, .travel, .wind-down, .essentials, .faq, .rsvp { grid-template-columns: 1fr; }
  .welcome-story { gap: 47px; padding: 90px 24px; }
  .story-copy { padding-left: 24px; }
  .weekend { padding: 88px 22px; }
  .event-row { gap: 14px; grid-template-columns: 40px 1fr; padding: 24px 2px; }
  .event-row > span { font-size: 30px; }
  .event-row h3 { font-size: 31px; }
  .event-row p { line-height: 1.45; }
  .event { display: flex; flex-direction: column; min-height: 0; }
  .event:nth-child(even) .event-img { order: 0; }
  .event-img { min-height: 64svh; }
  .event-copy { padding: 68px 24px 80px; }
  .event-copy h2 { font-size: 57px; }
  .event-copy dl div { grid-template-columns: 72px 1fr; }
  .travel { gap: 55px; padding: 90px 24px; }
  .wind-image { min-height: 65svh; }
  .wind-copy { padding: 70px 24px 85px; }
  .essentials article { padding: 72px 24px; }
  .stay { padding: 90px 24px; }
  #stay-grid { grid-template-columns: 1fr; }
  #stay-grid article { border-right: 0; min-height: 230px; padding: 25px 5px; }
  #stay-grid h3 { margin-top: 32px; }
  .hotel-options { grid-template-columns: 1fr; }
  .gallery { padding: 85px 8px; }
  .gallery header { padding-left: 16px; }
  #gallery-grid { gap: 5px; grid-template-columns: repeat(2, 1fr); }
  #gallery-grid button:last-child { aspect-ratio: 16 / 9; grid-column: span 2; }
  .faq { gap: 55px; padding: 90px 24px; }
  #faq-list summary { font-size: 20px; line-height: 1.2; }
  #countdown-clock { gap: 24px 0; grid-template-columns: repeat(2, 1fr); }
  #countdown-clock div:nth-child(3) { border-left: 1px solid rgba(255,255,255,.27); }
  .rsvp { gap: 65px; min-height: 0; padding: 85px 24px; }
  #rsvp-form .two { grid-template-columns: 1fr; gap: 0; }
  #rsvp-events fieldset { grid-template-columns: 1fr; gap: 12px; }
  #rsvp-events legend { float: none; margin-bottom: 5px; }
  .lightbox { padding: 35px 7px; }
  .lightbox img { max-width: calc(100vw - 92px); }
  .lightbox button { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
