:root {
  color-scheme: dark;
  --bg: #0f1a2e;
  --surface: #1b2a4a;
  --surface-light: #223352;
  --gold: #c9a96e;
  --secondary: #8b9ab5;
  --text: #e8dcc8;
  --text-muted: #a5b0c4;
  --border: rgba(139, 154, 181, 0.24);
  --heading-font: "Playfair Display", Georgia, serif;
  --body-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content-width: 1160px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body-font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { color: var(--bg); background: var(--gold); }

.container { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
.narrow-container { max-width: 820px; }
.centered { text-align: center; }
.section { padding: clamp(76px, 9vw, 132px) 0; }
.eyebrow { margin: 0 0 18px; color: var(--secondary); font-size: 11px; font-weight: 600; letter-spacing: .28em; line-height: 1.5; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 500; }
h2 { margin-bottom: 0; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.18; }
h3 { line-height: 1.35; }
.gold-rule { display: block; width: 48px; height: 1px; margin: 0 auto 28px; background: var(--gold); opacity: .75; }

.hero { position: relative; display: grid; min-height: 660px; min-height: min(820px, 100svh); place-items: center; padding: 100px 0 94px; background: radial-gradient(ellipse at 50% 35%, rgba(36, 52, 80, .38), transparent 50%), var(--bg); text-align: center; }
.hero-content { max-width: 900px; }
.heart-mark { display: grid; width: 80px; height: 80px; margin: 0 auto 38px; place-items: center; border: 1px solid rgba(201, 169, 110, .15); border-radius: 50%; background: var(--surface); }
.heart-mark svg { width: 32px; height: 32px; fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.hero .eyebrow { margin-bottom: 25px; }
.hero h1 { margin: 0 0 24px; color: var(--text); font-size: clamp(3.2rem, 8.5vw, 6.7rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; text-transform: uppercase; }
.hero h1 span { color: var(--gold); font-weight: 400; }
.hero-date { margin: 0; color: var(--secondary); font-size: clamp(1rem, 2vw, 1.2rem); }
.hashtag { display: inline-block; margin: 30px 0 0; padding: 4px 18px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: 11px; letter-spacing: .18em; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 12px 27px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-decoration: none; transition: transform .18s ease, background .18s ease, opacity .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--gold); color: var(--surface); }
.button-primary:hover { background: #d6b77f; }
.button-secondary { border-color: var(--border); background: transparent; color: var(--text-muted); }
.button-secondary:hover { background: rgba(255, 255, 255, .04); }
.hero-rsvp { margin-top: 36px; min-width: 140px; }

.countdown-section { border-block: 1px solid rgba(139, 154, 181, .09); background: rgba(27, 42, 74, .23); text-align: center; }
.countdown-section h2 { margin-bottom: 44px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 3vw, 34px); }
.countdown-unit { display: flex; min-height: 112px; flex-direction: column; align-items: center; justify-content: center; }
.countdown-number { color: var(--gold); font-family: var(--heading-font); font-size: clamp(2.1rem, 5.5vw, 4rem); font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown-label { margin-top: 13px; color: var(--secondary); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }

.families-section { background: var(--surface); text-align: center; }
.scripture { max-width: 660px; margin: 0 auto 54px; color: var(--text); font-family: var(--heading-font); font-size: clamp(1.25rem, 2.8vw, 1.85rem); font-style: italic; line-height: 1.65; }
.scripture span { display: block; margin-top: 8px; color: var(--gold); font-family: var(--body-font); font-size: 11px; font-style: normal; letter-spacing: .14em; text-transform: uppercase; }
.families-section .eyebrow { margin-bottom: 16px; }
.family-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(22px, 5vw, 68px); margin-top: 54px; }
.family-item h3 { margin: 11px 0 0; font-size: clamp(1.25rem, 2.3vw, 1.75rem); }
.small-rule { display: inline-block; width: 27px; height: 1px; background: var(--gold); }
.muted-label { margin: 0; color: var(--secondary); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.family-divider { width: 1px; height: 80px; background: var(--border); }

.section-heading { margin-bottom: 48px; }
.section-heading .eyebrow { margin-bottom: 17px; }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.event-card { overflow: hidden; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, rgba(27, 42, 74, .88), rgba(20, 32, 54, .8)); }
.event-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 25px; }
.event-number { color: var(--gold); font-family: var(--heading-font); font-size: 1.45rem; }
.event-type { color: var(--secondary); font-size: 10px; letter-spacing: .16em; text-align: right; text-transform: uppercase; }
.event-card h3 { margin-bottom: 10px; font-size: clamp(1.35rem, 2vw, 1.75rem); text-transform: uppercase; }
.event-address { min-height: 28px; margin-bottom: 15px; color: var(--text-muted); font-size: 13px; }
.event-time { margin-bottom: 23px; color: var(--text-muted); font-size: 13px; }
.event-time span { margin-right: 6px; color: var(--gold); }
.event-time strong { color: var(--text); font-weight: 600; }
.map-frame { overflow: hidden; height: 205px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 12px; background: #17243b; }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.75) contrast(.94); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.dress-note { margin: 23px 0 0; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; line-height: 1.9; }
.dress-note strong { color: var(--secondary); font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.event-card-last { display: flex; flex-direction: column; align-items: flex-start; }
.after-party-mark { display: grid; width: 52px; height: 52px; margin: 0 0 25px; place-items: center; border: 1px solid rgba(201, 169, 110, .35); border-radius: 50%; color: var(--gold); font-size: 24px; }
.announcement-box { display: flex; width: 100%; min-height: 205px; align-items: center; justify-content: center; padding: 24px; border: 1px dashed rgba(201, 169, 110, .35); border-radius: 12px; color: var(--secondary); font-family: var(--heading-font); font-size: 1.25rem; font-style: italic; text-align: center; }
.small-note { margin: 18px 0 0; color: var(--secondary); font-size: 11px; text-align: center; }

.details-section { background: var(--surface); }
.details-list { margin-top: 52px; border-top: 1px solid var(--border); }
.detail-row { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--border); }
.detail-icon { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(201, 169, 110, .25); border-radius: 50%; color: var(--gold); font-size: 20px; }
.detail-row h3 { margin: 0 0 6px; font-family: var(--body-font); font-size: 13px; font-weight: 600; }
.detail-row p { margin: 0 0 8px; color: var(--text-muted); font-size: 13px; }
.detail-row .text-link { margin-top: 4px; }

.rsvp-section { background: radial-gradient(ellipse at 50% 0%, rgba(35, 51, 79, .4), transparent 60%); }
.rsvp-container { max-width: 760px; }
.rsvp-section .section-heading { margin-bottom: 38px; }
.section-intro { margin: 18px 0 4px; color: var(--text-muted); font-size: 14px; }
.deadline { margin: 9px 0 0; color: var(--secondary); font-size: 12px; }
.deadline strong { color: var(--gold); font-weight: 500; }
.rsvp-form { padding: clamp(23px, 5vw, 44px); border: 1px solid var(--border); border-radius: var(--radius); background: rgba(27, 42, 74, .6); }
.form-field { margin-bottom: 22px; }
.form-field > label, .attendance-fieldset legend { display: block; margin-bottom: 8px; color: var(--text); font-size: 12px; font-weight: 600; }
.form-field > label span, .attendance-fieldset legend span { color: var(--gold); }
.form-field input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid rgba(139, 154, 181, .34); border-radius: 8px; outline: none; background: rgba(8, 15, 28, .38); color: var(--text); font-size: 13px; transition: border-color .2s ease, box-shadow .2s ease; }
.form-field input::placeholder { color: #75839d; }
.form-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 169, 110, .1); }
.privacy-note { margin: -5px 0 25px; color: var(--secondary); font-size: 11px; line-height: 1.75; }
.attendance-fieldset { min-width: 0; margin: 0 0 25px; padding: 0; border: 0; }
.attendance-fieldset legend { margin-bottom: 11px; }
.attendance-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice span { display: grid; min-height: 45px; place-items: center; border: 1px solid rgba(139, 154, 181, .34); border-radius: 8px; color: var(--text-muted); font-size: 12px; transition: all .2s ease; }
.choice input:checked + span { border-color: var(--gold); background: rgba(201, 169, 110, .12); color: var(--gold); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.guest-count-field { margin-bottom: 12px; }
.number-stepper { display: grid; grid-template-columns: 48px minmax(70px, 120px) 48px; align-items: center; gap: 9px; }
.number-stepper input { min-width: 0; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.number-stepper input::-webkit-outer-spin-button, .number-stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.stepper-button { width: 48px; height: 46px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--gold); cursor: pointer; font-size: 22px; }
.stepper-button:hover { background: rgba(201, 169, 110, .08); }
.guest-count-note { min-height: 19px; margin: 8px 0 0; color: var(--secondary); font-size: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 11px; margin-top: 29px; }
.form-error { margin: 0 0 16px; color: #f3a4a4; font-size: 12px; }
.form-status { margin: 20px 0 0; padding: 13px 15px; border: 1px solid rgba(201, 169, 110, .35); border-radius: 9px; color: var(--text); font-size: 12px; }
.static-form-note { max-width: 610px; margin: 16px auto 0; color: #71809a; font-size: 10px; line-height: 1.65; text-align: center; }

.footer { padding-top: 72px; padding-bottom: 34px; border-top: 1px solid var(--border); background: #0b1424; text-align: center; }
.footer .eyebrow { margin-bottom: 28px; }
.contact-grid { display: grid; max-width: 600px; grid-template-columns: 1fr 1fr; gap: 32px; margin: 0 auto 48px; }
.contact-grid h3 { margin: 6px 0; font-size: 1.35rem; }
.contact-grid a { color: var(--gold); font-size: 12px; text-decoration: none; }
.contact-grid a:hover { text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 24px; border-top: 1px solid var(--border); }
.share-button { padding: 0; border: 0; background: transparent; color: var(--gold); cursor: pointer; font-size: 12px; font-weight: 600; }
.share-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.made-with { color: var(--secondary); font-size: 11px; text-decoration: none; }
.made-with:hover { color: var(--text); }
.share-status { margin: 12px 0 0; color: var(--secondary); font-size: 11px; text-align: left; }

@media (max-width: 760px) {
  .container { width: min(var(--content-width), calc(100% - 32px)); }
  .hero { min-height: 670px; padding-block: 82px; }
  .heart-mark { width: 70px; height: 70px; margin-bottom: 30px; }
  .family-grid { grid-template-columns: 1fr; gap: 28px; }
  .family-divider { width: 80px; height: 1px; margin: 0 auto; }
  .event-grid { grid-template-columns: 1fr; gap: 16px; }
  .event-card { padding: 25px; }
  .map-frame, .announcement-box { height: 190px; min-height: 190px; }
  .details-list { margin-top: 38px; }
  .detail-row { grid-template-columns: 44px 1fr; gap: 14px; }
  .detail-icon { width: 40px; height: 40px; }
}

@media (max-width: 420px) {
  .section { padding-block: 68px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 3.3rem); }
  .countdown { gap: 5px; }
  .countdown-number { font-size: 2rem; }
  .countdown-label { font-size: 9px; letter-spacing: .12em; }
  .rsvp-form { padding: 21px 17px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .contact-grid { gap: 15px; }
  .contact-grid a { font-size: 11px; }
}

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