:root {
  --paper: #fffdfa;
  --cream: #f8f5f1;
  --blush: #f4e8e5;
  --ink: #383432;
  --muted: #827c77;
  --rose: #b88983;
  --rose-dark: #946d68;
  --olive: #62685b;
  --line: #e8e1dc;
  --display: 'Bodoni Moda', Didot, 'Times New Roman', serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rose-dark); outline-offset: 4px; }

.site-header { position: sticky; top: 0; z-index: 100; min-height: 68px; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: rgba(255,253,250,.97); border-bottom: 1px solid rgba(56,52,50,.08); backdrop-filter: blur(14px); }
.brand { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; white-space: nowrap; text-decoration: none; }
.monogram-mark { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-family: var(--display); }
.monogram-letter { font-weight: 600; line-height: .82; letter-spacing: -.08em; }
.monogram-amp { position: relative; z-index: 1; margin: 0 -.01em 0 .07em; color: var(--rose); font: italic 400 .5em/.8 var(--serif); transform: translateY(-.08em); }
.monogram-names { color: #6d6662; font: 500 6.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.monogram-names b { color: var(--rose); font: inherit; }
.brand .monogram-mark { font-size: 34px; }
.brand .monogram-names { margin-top: 5px; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 2.7vw, 40px); }
.site-nav a { color: #58524e; text-decoration: none; white-space: nowrap; font: 500 11px/1.3 var(--sans); letter-spacing: .21em; text-transform: uppercase; transition: color .2s ease; }
.site-nav a:hover { color: var(--rose-dark); }
.site-nav .nav-rsvp { color: #fff; background: var(--rose-dark); padding: 13px 20px; }
.site-nav .nav-rsvp:hover { background: var(--ink); color: #fff; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.menu-toggle span { display: block; width: 25px; height: 1px; margin: 6px 0; background: var(--ink); }

.hero { min-height: min(660px, calc(84svh - 68px)); min-height: min(660px, calc(84dvh - 68px)); position: relative; display: flex; align-items: center; justify-content: center; padding: 56px 24px 72px; text-align: center; color: #fff; background: linear-gradient(180deg,rgba(15,19,16,.27),rgba(17,18,16,.42) 52%,rgba(17,18,16,.58)),url('assets/wedding-hero.jpg') center 53% / cover no-repeat; }
.hero-inner { position: relative; z-index: 1; max-width: 1000px; }
.hero .kicker { font: 400 11px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .28em; margin-bottom: 14px; }
.hero h1 { margin: 0; font: italic 400 clamp(70px, 9vw, 126px)/.9 var(--serif); letter-spacing: -.05em; text-shadow: 0 3px 25px rgba(0,0,0,.2); }
.hero .amp { display: inline-block; margin: 0 .05em; color: #f6ded6; font-weight: 300; }
.hero-rule { width: 62px; height: 1px; background: rgba(255,255,255,.8); margin: 24px auto 18px; }
.hero .date { font: 400 13px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .2em; }
.hero-cta { display: inline-flex; gap: 20px; align-items: center; margin-top: 28px; padding: 13px 22px; border: 1px solid rgba(255,255,255,.9); color: #fff; text-decoration: none; text-transform: uppercase; font: 500 11px/1 var(--sans); letter-spacing: .18em; transition: background .2s,color .2s; }
.hero-cta:hover { background: #fff; color: var(--ink); }
.hero-cta span { font-size: 18px; line-height: .7; }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; white-space: nowrap; color: rgba(255,255,255,.9); font: 400 9px/1.2 var(--sans); letter-spacing: .26em; }
.scroll-cue span { display: block; width: 1px; height: 26px; background: rgba(255,255,255,.8); }

.countdown-section { background: #5b6055; color: #fff; padding: 22px 24px 26px; text-align: center; }
.countdown-title { margin: 0 0 12px; font: italic 500 clamp(22px,3vw,27px)/1.15 var(--serif); }
.countdown { display: flex; justify-content: center; gap: clamp(25px,5vw,72px); }
.countdown .cell { min-width: 66px; }
.countdown .num { font: 400 clamp(32px,5vw,44px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown .label { margin-top: 4px; font: 400 10px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.78); }

section:not(.hero):not(.countdown-section) { padding: clamp(50px,6vw,72px) 24px; }
.wrap { width: min(100%,1100px); margin: 0 auto; }
h1,h2,h3 { font-family: var(--serif); font-weight: 500; }
.eyebrow-free-heading { margin: 0; text-align: center; font: 500 clamp(40px,5vw,56px)/1.05 var(--serif); letter-spacing: -.025em; }
.eyebrow-free-heading::after { content: '✦'; display: block; color: var(--rose); font: 400 15px/1 var(--serif); margin: 12px auto 0; }
.intro { max-width: 630px; margin: 11px auto 0; text-align: center; color: var(--muted); font-size: 15px; }
.story { position: relative; overflow: hidden; background: #fff; }
.story::before,.story::after { content: ''; position: absolute; width: 390px; height: 270px; background: rgba(244,232,229,.45); filter: blur(45px); border-radius: 48%; transform: rotate(-35deg); pointer-events: none; }
.story::before { left: -180px; top: -60px; }
.story::after { right: -230px; bottom: -120px; }
.story .wrap { position: relative; z-index: 1; }
.story-layout { display: grid; grid-template-columns: minmax(260px,.85fr) minmax(340px,1.15fr); align-items: center; gap: clamp(34px,6vw,82px); max-width: 1000px; }
.story-photo { position: relative; aspect-ratio: 3/4; margin: 0; overflow: hidden; background: var(--cream); box-shadow: 22px 22px 0 var(--blush); }
.story-photo::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.5); pointer-events: none; }
.story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; }
.story-copy { text-align: center; }
.section-mark { color: var(--rose); font-size: 17px; margin-bottom: 8px; }
.story .eyebrow-free-heading::after { display: none; }
.story p { max-width: 720px; margin: 16px auto 0; font: italic 400 clamp(20px,2.5vw,25px)/1.45 var(--serif); color: #605852; }

#details { background: var(--cream); }
.timeline { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 30px auto 0; }
.timeline .row { min-height: 170px; padding: 24px 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 25px rgba(72,54,47,.035); }
.timeline .time { color: var(--rose-dark); font: 500 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.timeline .stem { width: 30px; height: 1px; background: var(--rose); margin: 16px 0 13px; }
.timeline .what h3 { margin: 0 0 6px; font: 500 31px/1.1 var(--serif); }
.timeline .what p { margin: 0; color: var(--muted); }

#locations { background: #fff; }
#locations .wrap { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
#locations h2,#locations .intro { grid-column: 1/-1; }
#locations .intro { margin-bottom: 14px; }
.location { padding: 29px 24px 26px; text-align: center; border: 1px solid var(--line); background: var(--paper); }
.location .pin { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; background: var(--blush); color: var(--rose-dark); }
.location .pin svg { width: 25px; height: 25px; }
.location .name { font: 500 clamp(25px,3vw,31px)/1.15 var(--serif); }
.location .addr { color: var(--muted); margin-top: 9px; }
.map-actions { margin-top: 13px; }
.link-btn { display: inline-block; border-bottom: 1px solid var(--rose); padding-bottom: 5px; color: var(--rose-dark); text-decoration: none; font: 500 11px/1.4 var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.link-btn:hover { color: var(--ink); }

.editorial-moment { background: #ebe5df; }
.editorial-moment .wrap { display: grid; grid-template-columns: minmax(280px,.95fr) minmax(320px,1.05fr); max-width: 980px; padding: 0; background: #fffdfa; box-shadow: 0 20px 55px rgba(72,54,47,.08); }
.moment-photo { min-height: 540px; margin: 0; overflow: hidden; background: var(--cream); }
.moment-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 49% 46%; }
.moment-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(35px,7vw,80px); text-align: center; }
.moment-kicker { margin: 0; color: var(--rose-dark); font: 500 10px/1.4 var(--sans); letter-spacing: .25em; text-transform: uppercase; }
.moment-quote { margin: 20px 0 24px; color: var(--ink); font: italic 400 clamp(42px,5vw,67px)/.98 var(--serif); letter-spacing: -.035em; }
.moment-names { padding-top: 18px; border-top: 1px solid var(--line); color: #69615c; font: italic 500 23px/1 var(--serif); }
.moment-names span { color: var(--rose); }

#rsvp { background: linear-gradient(120deg,#f5eae6,#faf5f1 55%,#f2e5e1); }
#rsvp-form { max-width: 700px; margin: 22px auto 0; padding: clamp(24px,4vw,38px); background: #fff; box-shadow: 0 14px 40px rgba(90,67,65,.065); }
.attendance-field { border: 0; padding: 0; margin: 0 0 18px; }
.attendance-field legend { margin-bottom: 8px; }
.field { margin-bottom: 18px; }
label,legend { display: block; margin-bottom: 7px; color: #6f6762; font: 500 11px/1.4 var(--sans) !important; letter-spacing: .16em; text-transform: uppercase; text-align: left; }
input[type=text],input[type=number],input[type=email],textarea,select { display: block; width: 100%; min-height: 49px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--sans); outline: 0; }
textarea { min-height: 115px; resize: vertical; }
input:focus,textarea:focus,select:focus { border-color: var(--rose-dark); box-shadow: 0 0 0 2px rgba(184,137,131,.15); }
.choice-row { display: flex; gap: 12px; }
.choice { position: relative; flex: 1; display: grid; place-items: center; min-height: 55px; margin: 0; padding: 10px; border: 1px solid var(--line); color: var(--muted); background: #fff; text-align: center; cursor: pointer; font: 400 13px/1.3 var(--sans) !important; letter-spacing: .02em; text-transform: none; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:checked) { border-color: var(--rose-dark); color: var(--rose-dark); background: #fbf5f3; }
.choice:focus-within { outline: 2px solid var(--rose-dark); outline-offset: 2px; }
button.primary,a.primary { display: inline-block; width: 100%; padding: 16px 24px; border: 1px solid var(--rose-dark); border-radius: 0; background: var(--rose-dark); color: #fff; text-align: center; text-decoration: none; font: 500 12px/1.3 var(--sans); letter-spacing: .17em; text-transform: uppercase; transition: background .2s,border-color .2s; }
button.primary:hover,a.primary:hover { border-color: var(--ink); background: var(--ink); }
button.primary:disabled { opacity: .5; cursor: default; }
button.ghost { display: inline-block; width: 100%; padding: 14px 20px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
button.ghost:hover { border-color: var(--rose-dark); color: var(--rose-dark); }
.status { min-height: 1.5em; margin-top: 17px; color: var(--olive); text-align: center; font-size: 14px; }
.field-help,.form-note,.rec-status { margin: 9px 0 0; color: var(--muted); text-align: center; font-size: 12px; letter-spacing: 0; text-transform: none; }

#signature { background: #fff; }
#signature .wrap { max-width: 700px; }
#signature .field { margin-top: 22px; }
.sig-wrap { border: 1px solid var(--line); background: #fff; touch-action: none; }
#sig-pad { display: block; width: 100%; height: 180px; cursor: crosshair; }
.sig-actions { display: flex; gap: 12px; margin-top: 12px; }
.sig-actions button { flex: 1; }

#photo { background: var(--cream); }
#voice { background: #fff; }
#photo .wrap,#voice .wrap { max-width: 760px; }
.voice-box { margin-left: auto; margin-right: auto; padding: clamp(22px,4vw,32px); border: 1px solid var(--line); background: #fff; }
#photo-form,#voice-form { margin-top: 20px; }
.voice-box .field { text-align: left; }
.voice-box .ghost { margin-bottom: 8px; }
.voice-box .primary[hidden] + .status { margin-top: 8px; }
.photo-result { margin: 0 0 18px; background: #171411; }
.photo-result img { display: block; max-height: 520px; width: 100%; object-fit: contain; }

.camera-modal { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center; background: #111; overscroll-behavior: contain; }
.camera-viewport { position: relative; width: min(100vw,calc(100dvh * 9 / 16)); height: 100vh; height: 100dvh; overflow: hidden; background: #111; color: #fff; }
.camera-viewport video,.camera-viewport .camera-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera-viewport.warm video { filter: sepia(.35) saturate(1.25) contrast(1.05); }
.camera-viewport.front video { transform: scaleX(-1); }
.camera-watermark { position: absolute; left: 0; right: 0; bottom: 17%; color: #fff; font: 500 clamp(1.8rem,8vw,3rem) var(--serif); text-align: center; text-shadow: 0 2px 7px #000,0 0 18px #000; pointer-events: none; }
.camera-control { position: absolute; z-index: 2; display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
.camera-control svg { width: 28px; height: 28px; }
.camera-flip { top: max(22px,env(safe-area-inset-top)); left: 24px; }
.camera-filter { top: 100px; left: 24px; }
.camera-close { top: max(22px,env(safe-area-inset-top)); right: 24px; }
.camera-control[aria-pressed="true"] { background: #fff; color: #171411; }
.shutter { position: absolute; z-index: 2; bottom: max(5%,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 86px; height: 86px; border: 5px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.shutter::after { content: ''; width: 62px; height: 62px; border-radius: 50%; background: #fff; }
.camera-review-actions { position: absolute; z-index: 2; bottom: max(5%,env(safe-area-inset-bottom)); left: 20px; right: 20px; display: flex; gap: 12px; }
.camera-review-actions button { flex: 1; padding: 14px; border: 1px solid #fff; background: rgba(0,0,0,.65); color: #fff; font: inherit; cursor: pointer; }
.camera-review-actions button:last-child { background: #fff; color: #171411; }
.camera-hint { position: absolute; top: 50%; left: 20px; right: 20px; color: #fff; text-align: center; text-shadow: 0 1px 5px #000; }

footer { padding: 42px 24px 38px; background: #343b34; color: #fff; text-align: center; }
.floating-camera { position: fixed !important; top: auto !important; left: auto !important; right: 24px !important; bottom: 24px !important; z-index: 2147483000 !important; display: inline-flex; visibility: visible; opacity: 1; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 18px; border: 1px solid #fff; border-radius: 999px; background: #39443b; color: #fff; box-shadow: 0 8px 28px rgba(28,35,29,.25); font: 500 11px/1 var(--sans); letter-spacing: .11em; text-transform: uppercase; pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .2s,background .2s; }
.floating-camera:hover { transform: translateY(-2px); background: #263229; }
.floating-camera svg { width: 19px; height: 19px; }
.camera-active .floating-camera { display: none !important; }
@supports (bottom: env(safe-area-inset-bottom)) {
  .floating-camera { bottom: calc(24px + env(safe-area-inset-bottom)) !important; }
}
footer .footer-brand { display: inline-flex; flex-direction: column; align-items: center; }
footer .monogram-mark { color: #fff; font-size: 57px; }
footer .monogram-amp { color: #e3bcb6; }
footer .monogram-names { margin-top: 9px; color: rgba(255,255,255,.78); font-size: 8px; letter-spacing: .32em; }
footer .monogram-names b { color: #e3bcb6; }
footer .thanks { margin-top: 12px; color: rgba(255,255,255,.72); font-size: 13px; letter-spacing: .05em; }

@media (max-width: 850px) {
  .site-header { min-height: 60px; padding: 0 18px; }
  .brand .monogram-mark { font-size: 31px; }
  .brand .monogram-names { font-size: 6px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 22px 23px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 25px rgba(48,41,37,.08); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 2px; }
  .site-nav .nav-rsvp { margin-top: 9px; text-align: center; }
  .hero { min-height: min(670px,calc(86dvh - 60px)); }
  .story-layout,.editorial-moment .wrap { grid-template-columns: 1fr; }
  .story-layout { max-width: 640px; }
  .story-photo { width: min(100%,480px); margin: 0 auto; }
  .moment-photo { min-height: 0; aspect-ratio: 4/5; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 66px; }
  .hero { min-height: min(640px,calc(82dvh - 60px)); padding: 52px 20px 65px; background: linear-gradient(180deg,rgba(15,19,16,.3),rgba(17,18,16,.43) 50%,rgba(17,18,16,.55)),url('assets/wedding-hero-mobile.jpg') center center / cover no-repeat; }
  .hero h1 { font-size: clamp(61px,16vw,92px); line-height: .88; }
  .hero .amp { display: block; margin: .06em 0; font-size: .65em; }
  .hero .kicker { font-size: 10px; letter-spacing: .22em; }
  .hero .date { font-size: 10px; letter-spacing: .13em; }
  .hero-rule { margin: 19px auto 15px; }
  .hero-cta { margin-top: 22px; }
  .countdown-section { padding: 20px 12px 23px; }
  .countdown { gap: 10px; }
  .countdown .cell { min-width: 62px; }
  .countdown .num { font-size: 38px; }
  .countdown .label { font-size: 8px; }
  section:not(.hero):not(.countdown-section) { padding: 46px 20px; }
  .eyebrow-free-heading { font-size: 40px; }
  .timeline,#locations .wrap { grid-template-columns: 1fr; }
  #locations h2,#locations .intro { grid-column: auto; }
  .timeline { gap: 12px; margin-top: 24px; }
  .timeline .row { min-height: 0; padding: 23px; }
  #locations .intro { margin-bottom: 2px; }
  .choice-row { flex-direction: column; }
  .sig-actions { gap: 8px; }
  .floating-camera { right: 13px !important; bottom: 14px !important; min-height: 48px; padding: 11px 15px; font-size: 10px; }
  @supports (bottom: env(safe-area-inset-bottom)) {
    .floating-camera { bottom: calc(14px + env(safe-area-inset-bottom)) !important; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
