:root {
  --ivory: #f7f2e8;
  --paper: #fffdf8;
  --ink: #16343a;
  --ink-soft: #476166;
  --peacock: #0e3b45;
  --peacock-light: #1f5b64;
  --gold: #b88b4a;
  --gold-soft: #d9bd8a;
  --rose: #ad6c67;
  --sage: #7b8d78;
  --line: rgba(22, 52, 58, 0.16);
  --shadow: 0 28px 80px rgba(35, 49, 45, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(184, 139, 74, 0.09), transparent 22rem),
    var(--ivory);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  background: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 999;
}
.skip-link:focus { top: 12px; }

.announcement {
  min-height: 34px;
  padding: 7px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  color: #fff;
  background: var(--peacock);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.announcement-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 242, 232, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(22, 52, 58, 0.08);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}
.brand img { width: 38px; height: 38px; }

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
}
.primary-navigation a {
  text-decoration: none;
  position: relative;
}
.primary-navigation a:not(.nav-rsvp)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -7px;
  height: 1px;
  background: var(--gold);
  transition: right .25s ease;
}
.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after { right: 0; }

.nav-rsvp {
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--peacock);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 0;
  background: transparent;
}
.menu-toggle span:not(.sr-only) {
  display: block;
  height: 1px;
  margin: 7px 0;
  background: var(--ink);
  transition: transform .25s ease;
}

.hero {
  position: relative;
  min-height: calc(100vh - 106px);
  padding: 8vh 24px 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(184, 139, 74, 0.22);
  border-radius: 180px 180px 34px 34px;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  width: min(72vw, 900px);
  aspect-ratio: 1;
  border: 1px solid rgba(22, 52, 58, 0.08);
  border-radius: 50%;
  z-index: -2;
}

.hero-content {
  width: min(850px, 100%);
  text-align: center;
}
.eyebrow, .section-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero-monogram {
  width: 96px;
  margin: 0 auto 18px;
}
.hero h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.02;
}
.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 8.3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}
.hero h1 span {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}
.hero-kicker {
  margin: 14px 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-style: italic;
}
.hero-date {
  margin: 0;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.button {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #fff;
  background: var(--peacock);
  box-shadow: 0 14px 32px rgba(14, 59, 69, 0.18);
}
.button-primary:hover { background: var(--peacock-light); }
.button-ghost {
  border-color: rgba(22, 52, 58, 0.26);
  background: rgba(255,255,255,0.35);
}

.countdown {
  margin: 40px auto 0;
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.countdown div { padding: 16px 6px; }
.countdown div + div { border-left: 1px solid var(--line); }
.countdown strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
}
.countdown span {
  color: var(--ink-soft);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.journey-line {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(660px, calc(100% - 48px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-soft);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.journey-line i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-art {
  position: absolute;
  width: 320px;
  height: 480px;
  opacity: .22;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0, transparent 40px, var(--gold-soft) 41px, transparent 43px),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(14,59,69,.2) 23px 24px);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 75%, transparent);
}
.hero-art-left { left: -140px; top: 20%; transform: rotate(-8deg); }
.hero-art-right { right: -140px; top: 16%; transform: rotate(8deg) scaleX(-1); }

.section-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}
.section-heading h2,
.origin-copy h2,
.welcome-card h2,
.weekend-mode-card h2,
.rsvp-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -.035em;
}
.section-heading > p:last-child,
.origin-copy > p:last-child {
  color: var(--ink-soft);
  max-width: 670px;
}

.origin-selector {
  padding-top: 82px;
  padding-bottom: 82px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.origin-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.origin-button {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255,255,255,.38);
  cursor: pointer;
  font-weight: 700;
  transition: .25s ease;
}
.origin-button:hover,
.origin-button.active {
  color: #fff;
  background: var(--peacock);
  border-color: var(--peacock);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(14,59,69,.14);
}

.welcome { padding-top: 24px; }
.welcome-card {
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(125deg, rgba(14,59,69,.95), rgba(22,52,58,.86)),
    radial-gradient(circle at 90% 10%, rgba(217,189,138,.4), transparent 35%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  box-shadow: var(--shadow);
}
.welcome-card .section-label { color: var(--gold-soft); }
.welcome-card h2 { font-size: clamp(2.7rem, 5.5vw, 5rem); }
.welcome-copy { color: rgba(255,255,255,.78); }
.signature {
  margin-top: 30px;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.event-card {
  position: relative;
  min-height: 390px;
  padding: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(22,52,58,.1);
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(35,49,45,.07);
}
.event-card::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border: 1px solid currentColor;
  border-radius: 50%;
  right: -130px; top: -130px;
  opacity: .13;
}
.event-card:nth-child(2n) { transform: translateY(34px); }
.event-number {
  color: var(--gold);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 700;
}
.event-date {
  color: var(--ink-soft);
  font-size: .86rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.event-card h3 {
  margin: 10px 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}
.event-card p { max-width: 540px; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.event-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
}
.event-links {
  margin-top: 26px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.text-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--peacock);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.wear {
  margin-top: 34px;
  padding-left: 28px;
  padding-right: 28px;
  border-radius: var(--radius-lg);
  background: #efe8dc;
}
.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mood-card {
  min-height: 500px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,253,248,.74);
  border: 1px solid rgba(22,52,58,.1);
  display: flex;
  flex-direction: column;
}
.mood-art {
  position: relative;
  height: 220px;
  margin-bottom: 22px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 28%, var(--m1) 0 14%, transparent 15%),
    radial-gradient(circle at 72% 60%, var(--m2) 0 20%, transparent 21%),
    linear-gradient(135deg, var(--m3), var(--m4));
}
.mood-art::before,
.mood-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
}
.mood-art::before { width: 220px; height: 220px; left: -80px; bottom: -120px; }
.mood-art::after { width: 150px; height: 150px; right: -55px; top: -70px; }

.mood-card h3 {
  margin: 0 0 8px;
  font-size: 2rem;
}
.mood-card p { color: var(--ink-soft); }
.palette {
  display: flex;
  gap: 8px;
  margin: auto 0 18px;
}
.swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(22,52,58,.12);
}
.mood-note {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
}

.travel-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}
.travel-tabs {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
}
.travel-tab {
  min-height: 50px;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.travel-tab:hover,
.travel-tab.active {
  border-color: var(--line);
  background: rgba(255,255,255,.58);
  font-weight: 700;
}
.travel-panel {
  min-height: 450px;
  padding: clamp(26px, 5vw, 54px);
  border-radius: var(--radius-lg);
  color: #fff;
  background: var(--peacock);
  box-shadow: var(--shadow);
}
.travel-panel h3 {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
}
.travel-panel .panel-intro {
  max-width: 720px;
  color: rgba(255,255,255,.76);
}
.travel-points {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.travel-point {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.travel-point strong { display: block; margin-bottom: 4px; }
.travel-point span { color: rgba(255,255,255,.72); font-size: .9rem; }

.weekend-mode-card {
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.3)),
    repeating-linear-gradient(45deg, transparent 0 24px, rgba(184,139,74,.05) 24px 25px);
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 44px;
  align-items: center;
}
.weekend-mode-card h2 { font-size: clamp(2.7rem, 5vw, 4.6rem); }
.mode-preview {
  padding: 28px;
  border-radius: 22px;
  color: #fff;
  background: var(--peacock);
  box-shadow: 0 22px 55px rgba(14,59,69,.2);
}
.status-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--peacock);
  background: var(--gold-soft);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.mode-time { margin: 26px 0 6px; color: rgba(255,255,255,.7); font-size: .82rem; }
.mode-preview h3 { margin: 0; font-size: 2rem; }
.mode-preview .text-button { color: #fff; margin-top: 14px; }

.faq-toolbar {
  margin-bottom: 26px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.faq-toolbar label { flex: 1; }
.faq-toolbar input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.56);
}
.faq-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.faq-filter {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.faq-filter.active {
  color: #fff;
  background: var(--peacock);
  border-color: var(--peacock);
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
}
.faq-question span:last-child {
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform .2s ease;
}
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); }
.faq-answer {
  max-width: 820px;
  padding: 0 0 24px;
  color: var(--ink-soft);
}
.empty-state { color: var(--ink-soft); }

.rsvp-card {
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-lg);
  color: #fff;
  background: var(--peacock);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 52px;
  box-shadow: var(--shadow);
}
.rsvp-intro .section-label { color: var(--gold-soft); }
.rsvp-intro h2 { font-size: clamp(2.7rem, 5vw, 4.6rem); }
.rsvp-intro > p { color: rgba(255,255,255,.72); }
.check-list {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-soft);
}

.rsvp-form {
  min-height: 500px;
  padding: 32px;
  border-radius: 22px;
  color: var(--ink);
  background: var(--paper);
}
.form-step h3 {
  margin: 10px 0 28px;
  font-size: 2.25rem;
}
.step-count {
  color: var(--gold);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
}
.rsvp-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-size: .88rem;
  font-weight: 700;
}
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}
.rsvp-form textarea { resize: vertical; }
.optional { color: var(--ink-soft); font-weight: 400; }
.form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.attendance-options {
  display: grid;
  gap: 10px;
}
.attendance-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.attendance-row strong { display: block; }
.attendance-row span { color: var(--ink-soft); font-size: .82rem; }
.attendance-row select { width: 130px; }
.form-success {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}
.form-success img { width: 78px; }
.form-success h3 { margin: 18px 0 6px; font-size: 2.7rem; }
.form-success p { max-width: 480px; color: var(--ink-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.contact-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
}
.contact-icon {
  width: 44px; height: 44px;
  margin-bottom: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--peacock);
  font-weight: 800;
}
.contact-card h3 { margin: 0 0 7px; font-size: 1.6rem; }
.contact-card p { color: var(--ink-soft); font-size: .88rem; }
.locked-contact {
  display: inline-flex;
  margin-top: 14px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-footer {
  padding: 74px 24px;
  text-align: center;
  color: rgba(255,255,255,.72);
  background: var(--peacock);
}
.site-footer img { width: 72px; margin: 0 auto 12px; filter: brightness(0) invert(1); opacity: .9; }
.footer-names {
  margin: 0;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
}
.footer-note { color: var(--gold-soft); }
.site-footer a { display: inline-block; margin-top: 18px; color: #fff; }

.announcement-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 32px;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.announcement-dialog::backdrop { background: rgba(6,29,34,.65); backdrop-filter: blur(6px); }
.dialog-close {
  position: absolute;
  right: 18px; top: 14px;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
}
.announcement-dialog h2 { margin: 0 0 14px; font-size: 3rem; }
.dialog-note { color: var(--ink-soft); font-size: .88rem; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .primary-navigation {
    position: fixed;
    inset: 106px 0 0;
    padding: 42px 28px;
    display: none;
    align-content: start;
    gap: 24px;
    background: var(--ivory);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
  }
  .primary-navigation.open { display: grid; }
  .menu-toggle { display: block; }
  .origin-selector,
  .welcome-card,
  .weekend-mode-card,
  .rsvp-card { grid-template-columns: 1fr; }
  .travel-layout { grid-template-columns: 1fr; }
  .travel-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .travel-tab { min-width: max-content; }
  .mood-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .announcement {
    min-height: 42px;
    padding-inline: 10px;
    font-size: .65rem;
  }
  .site-header { height: 64px; padding: 0 16px; }
  .brand span { font-size: 1.08rem; }
  .brand img { width: 32px; height: 32px; }
  .primary-navigation { inset: 106px 0 0; }
  .hero {
    min-height: 780px;
    padding-top: 72px;
  }
  .hero::before { inset: 20px 10px 30px; border-radius: 100px 100px 28px 28px; }
  .hero h1 { font-size: clamp(3.5rem, 18vw, 5.7rem); }
  .journey-line { font-size: .58rem; gap: 8px; }
  .section-shell {
    width: min(100% - 24px, var(--max-width));
    padding: 78px 0;
  }
  .origin-buttons,
  .events-grid,
  .mood-grid,
  .travel-points,
  .form-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .event-card:nth-child(2n) { transform: none; }
  .event-card { min-height: 360px; }
  .wear { width: calc(100% - 12px); padding-inline: 18px; }
  .faq-toolbar { align-items: stretch; flex-direction: column; }
  .faq-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .faq-filter { min-width: max-content; }
  .rsvp-card { padding: 22px; }
  .rsvp-form { padding: 20px; min-height: 0; }
  .attendance-row { grid-template-columns: 1fr; }
  .attendance-row select { width: 100%; }
  .countdown strong { font-size: 1.45rem; }
  .countdown span { font-size: .62rem; }
}

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

/* =========================================================
   NIGHT-TIME THEME + MOBILE RENDERING FIXES (v2)
   ========================================================= */
:root {
  color-scheme: dark;
  --ivory: #070a12;
  --paper: #101724;
  --ink: #f4eee4;
  --ink-soft: #abb4c2;
  --peacock: #08111f;
  --peacock-light: #16283c;
  --gold: #c99b59;
  --gold-soft: #efd5a3;
  --rose: #9e5366;
  --sage: #667b72;
  --line: rgba(239, 213, 163, 0.17);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 3%, rgba(46, 71, 113, .26), transparent 31rem),
    radial-gradient(circle at 88% 18%, rgba(101, 49, 82, .17), transparent 29rem),
    linear-gradient(180deg, #070a12 0%, #0a0f1a 42%, #070a12 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -10;
  opacity: .58;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.72) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(239,213,163,.65) 0 1px, transparent 1.5px);
  background-position: 0 0, 31px 47px;
  background-size: 89px 89px, 137px 137px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.65) 44%, transparent 95%);
}

.announcement {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #050914;
  border-bottom: 1px solid rgba(239, 213, 163, .12);
}

.site-header {
  top: 34px;
  color: var(--ink);
  background: rgba(7, 10, 18, .82);
  border-bottom-color: rgba(239, 213, 163, .10);
}

.brand img,
.hero-monogram,
.form-success img,
.site-footer img {
  filter: drop-shadow(0 0 18px rgba(201, 155, 89, .18));
}

.primary-navigation a:not(.nav-rsvp)::after { background: var(--gold-soft); }
.nav-rsvp,
.button-primary { color: #07101b; background: var(--gold-soft); }
.nav-rsvp:hover,
.button-primary:hover { background: #ffe2aa; }
.button-primary { box-shadow: 0 14px 36px rgba(201,155,89,.18); }
.button-ghost { color: var(--ink); border-color: rgba(239,213,163,.34); background: rgba(9,17,31,.54); }

.hero {
  min-height: calc(100svh - 106px);
  background:
    radial-gradient(circle at 50% 36%, rgba(29,55,91,.25), transparent 32rem),
    linear-gradient(180deg, rgba(7,10,18,.10), rgba(7,10,18,.55));
}
.hero::before { border-color: rgba(239,213,163,.28); }
.hero::after { border-color: rgba(239,213,163,.09); }
.hero-art {
  opacity: .25;
  background:
    radial-gradient(circle at 50% 0, transparent 40px, rgba(239,213,163,.85) 41px, transparent 43px),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(239,213,163,.16) 23px 24px);
}
.hero h1 { text-shadow: 0 10px 40px rgba(0,0,0,.34); }
.hero-date,
.journey-line { color: #c1c7d0; }
.countdown { background: rgba(5,9,20,.28); backdrop-filter: blur(12px); }

.origin-button {
  color: var(--ink);
  background: rgba(16,23,36,.72);
  border-color: rgba(239,213,163,.15);
}
.origin-button:hover,
.origin-button.active {
  color: #07101b;
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  box-shadow: 0 16px 38px rgba(201,155,89,.15);
}

.welcome-card,
.rsvp-card,
.travel-panel,
.mode-preview,
.site-footer {
  background:
    radial-gradient(circle at 88% 5%, rgba(93,71,113,.18), transparent 28rem),
    linear-gradient(135deg, #0d1727, #07111e);
  border: 1px solid rgba(239,213,163,.14);
}

.event-card {
  color: var(--ink);
  background: rgba(15,23,36,.92) !important;
  border-color: rgba(239,213,163,.14);
  box-shadow: 0 22px 60px rgba(0,0,0,.24);
}
.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 90% 5%, var(--event-glow, rgba(201,155,89,.13)), transparent 16rem);
}
.event-card > * { position: relative; z-index: 1; }
.event-meta span { background: rgba(255,255,255,.025); }

.wear {
  background:
    radial-gradient(circle at 15% 0%, rgba(112,68,97,.20), transparent 28rem),
    rgba(11,16,27,.78);
  border: 1px solid rgba(239,213,163,.10);
}
.mood-card {
  color: var(--ink);
  background: rgba(16,23,36,.84);
  border-color: rgba(239,213,163,.13);
}
.mood-note { color: #c2c8d0; }

.travel-tab { color: var(--ink); }
.travel-tab:hover,
.travel-tab.active {
  color: var(--gold-soft);
  background: rgba(16,23,36,.82);
  border-color: rgba(239,213,163,.16);
}
.travel-point { background: rgba(255,255,255,.035); }

.weekend-mode-card {
  background:
    radial-gradient(circle at 90% 0%, rgba(56,76,120,.18), transparent 28rem),
    rgba(13,19,31,.76);
  border-color: rgba(239,213,163,.15);
}

.faq-toolbar input,
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  color: var(--ink);
  background: #0c1421;
  border-color: rgba(239,213,163,.17);
}
.faq-toolbar input::placeholder,
.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder { color: #778392; opacity: 1; }
.faq-filter { color: var(--ink); background: rgba(16,23,36,.52); }
.faq-filter.active { color: #07101b; background: var(--gold-soft); border-color: var(--gold-soft); }

.rsvp-form {
  color: var(--ink);
  background: rgba(10,16,27,.92);
  border: 1px solid rgba(239,213,163,.13);
}
.attendance-row { background: rgba(255,255,255,.025); }
.form-success p,
.attendance-row span,
.optional { color: var(--ink-soft); }

.contact-card {
  color: var(--ink);
  background: rgba(16,23,36,.72);
  border-color: rgba(239,213,163,.13);
}
.contact-icon { color: #07101b; background: var(--gold-soft); }

.announcement-dialog {
  color: var(--ink);
  background: #101724;
  border: 1px solid rgba(239,213,163,.16);
}
.announcement-dialog::backdrop { background: rgba(2,5,11,.78); }
.dialog-close { color: var(--ink); }

@media (max-width: 940px) {
  .primary-navigation {
    top: 106px;
    right: 0;
    bottom: 0;
    left: 0;
    inset: auto 0 0;
    height: calc(100dvh - 106px);
    padding: 34px 22px calc(34px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background:
      radial-gradient(circle at 75% 10%, rgba(62,83,128,.23), transparent 22rem),
      #070a12;
  }
  .primary-navigation.open { display: flex; flex-direction: column; align-items: stretch; }
  .primary-navigation .nav-rsvp { text-align: center; margin-top: 8px; }
  .menu-toggle span:not(.sr-only) { background: var(--ink); }
  .travel-tabs {
    width: 100%;
    max-width: 100%;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .travel-tabs::-webkit-scrollbar,
  .faq-filters::-webkit-scrollbar { display: none; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 108px; }
  .announcement {
    min-height: 40px;
    height: 40px;
    padding: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .60rem;
    letter-spacing: .055em;
  }
  .announcement span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-header {
    top: 40px;
    height: 64px;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .primary-navigation {
    top: 104px;
    height: calc(100dvh - 104px);
    font-size: clamp(1.65rem, 8vw, 2rem);
  }
  .hero {
    min-height: auto;
    padding: 58px 16px 68px;
  }
  .hero::before { inset: 14px 7px 22px; }
  .hero-content { min-width: 0; }
  .hero-monogram { width: 74px; margin-bottom: 10px; }
  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.15rem, 17vw, 5rem);
    line-height: .92;
    overflow-wrap: anywhere;
  }
  .hero-kicker { margin-top: 18px; }
  .hero-date { padding-inline: 10px; font-size: .83rem; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 330px);
    margin-inline: auto;
  }
  .button { width: 100%; }
  .countdown {
    width: 100%;
    margin-top: 30px;
  }
  .countdown div { min-width: 0; padding: 13px 2px; }
  .countdown strong { font-size: 1.3rem; }
  .countdown span { font-size: .54rem; letter-spacing: .07em; }
  .journey-line {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 34px;
    padding-inline: 4px;
  }
  .section-shell {
    width: calc(100% - 24px);
    max-width: 100%;
    padding: 68px 0;
  }
  .section-heading h2,
  .origin-copy h2,
  .welcome-card h2,
  .weekend-mode-card h2,
  .rsvp-intro h2 { font-size: clamp(2.45rem, 13vw, 3.65rem); }
  .origin-selector { gap: 30px; }
  .origin-buttons { grid-template-columns: 1fr 1fr; gap: 9px; }
  .origin-button { min-height: 58px; padding: 8px; font-size: .84rem; }
  .welcome-card,
  .weekend-mode-card,
  .rsvp-card { gap: 28px; border-radius: 24px; }
  .welcome-card { padding: 28px 22px; }
  .events-grid { gap: 14px; }
  .event-card {
    min-height: 0;
    padding: 24px 20px;
    border-radius: 22px;
  }
  .event-card h3 { font-size: 2.45rem; }
  .event-links { gap: 14px; }
  .wear {
    width: calc(100% - 12px);
    padding-left: 18px;
    padding-right: 18px;
  }
  .mood-card { min-height: 0; padding: 19px; }
  .mood-art { height: 180px; }
  .travel-layout,
  .travel-panel,
  .travel-points { min-width: 0; }
  .travel-tabs { gap: 6px; }
  .travel-tab { min-height: 44px; padding: 10px 13px; }
  .travel-panel { min-height: 0; padding: 26px 20px; border-radius: 22px; }
  .travel-panel h3 { font-size: 2.65rem; overflow-wrap: anywhere; }
  .travel-point { min-width: 0; }
  .weekend-mode-card { padding: 26px 20px; }
  .mode-preview { padding: 22px 18px; }
  .faq-toolbar input { min-width: 0; }
  .faq-filters { max-width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .faq-question { padding: 20px 0; }
  .rsvp-card { padding: 20px 14px; }
  .rsvp-form { width: 100%; min-width: 0; padding: 20px 16px; border-radius: 18px; }
  .rsvp-form input,
  .rsvp-form select,
  .rsvp-form textarea {
    display: block;
    min-width: 0;
    max-width: 100%;
  }
  .rsvp-form input[type="date"] { appearance: none; }
  .form-actions { gap: 12px; }
  .form-actions .button { width: auto; flex: 1; }
  .contact-card { padding: 20px; }
  .contact-icon { margin-bottom: 26px; }
  .announcement-dialog { padding: 28px 20px; }
  .announcement-dialog h2 { font-size: 2.45rem; }
}

@media (max-width: 380px) {
  .brand span { font-size: .96rem; }
  .hero h1 { font-size: 3.15rem; }
  .origin-buttons { grid-template-columns: 1fr; }
  .countdown span { letter-spacing: .03em; }
  .event-meta { gap: 6px; }
  .event-meta span { font-size: .72rem; }
}

/* Fixed mobile-menu containing block: backdrop-filter on the sticky header made
   the fixed menu position relative to the header instead of the viewport. */
@media (max-width: 940px) {
  .site-header { backdrop-filter: none; }
}
