:root {
  --ivory: #fbf6ee;
  --cream: #f4ead9;
  --maroon: #7a1f2b;
  --maroon-deep: #5a1520;
  --gold: #c19a4b;
  --gold-soft: #e3c98f;
  --ink: #3a2a26;
  --muted: #7d6a62;
  --line: rgba(122, 31, 43, 0.15);

  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Jost", system-ui, sans-serif;

  --radius: 14px;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.is-scrolled {
  background: rgba(251, 246, 238, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 12px;
}
.nav__logo {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600;
  text-decoration: none; color: var(--maroon); letter-spacing: .05em;
}
.nav__logo span { font-family: var(--script); color: var(--gold); font-weight: 400; }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a {
  text-decoration: none; font-size: .82rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink); position: relative;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform .3s;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  border: 1px solid var(--maroon); color: var(--maroon) !important;
  padding: 6px 16px; border-radius: 999px; transition: all .25s;
}
.nav__cta:hover { background: var(--maroon); color: var(--ivory) !important; }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 110px 16px 60px; overflow: hidden;
  background:
    radial-gradient(ellipse at top, rgba(227, 201, 143, .35), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(122, 31, 43, .08), transparent 60%),
    var(--ivory);
}
.hero__ornament {
  position: absolute; width: min(900px, 140vw); aspect-ratio: 1;
  color: var(--gold); opacity: .22; pointer-events: none;
  animation: spin 160s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__content { position: relative; max-width: 720px; animation: rise 1.2s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.eyebrow {
  font-size: .78rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px; font-weight: 500;
}
.hero__names {
  font-family: var(--script); font-weight: 400; color: var(--maroon);
  font-size: clamp(3.6rem, 13vw, 8rem); line-height: 1; margin: 8px 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .25em;
}
.hero__names .amp { color: var(--gold); font-size: .7em; }
.hero__sub { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--muted); margin: 8px 0 0; }
.divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold); margin: 22px auto; font-size: 1rem;
}
.divider span { width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero__date { font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 1.9rem); color: var(--ink); margin: 0; letter-spacing: .04em; }
.hero__place { margin: 4px 0 0; letter-spacing: .25em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }

.countdown {
  display: flex; justify-content: center; gap: clamp(10px, 3vw, 24px); margin: 36px 0;
}
.countdown div {
  min-width: 74px; padding: 14px 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, .55);
}
.countdown strong {
  display: block; font-family: var(--serif); font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 500; color: var(--maroon); line-height: 1.1;
}
.countdown span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.btn {
  display: inline-block; cursor: pointer; border: 0;
  background: var(--maroon); color: var(--ivory);
  font-family: var(--sans); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  padding: 15px 36px; border-radius: 999px; text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 8px 24px -10px rgba(122, 31, 43, .6);
}
.btn:hover { background: var(--maroon-deep); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--maroon); border: 1px solid var(--maroon); box-shadow: none; }
.btn--outline:hover { background: var(--maroon); color: var(--ivory); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) clamp(16px, 4vw, 48px); text-align: center; }
.section > * { max-width: var(--max); margin-inline: auto; }
.section__title {
  font-family: var(--serif); font-weight: 500; color: var(--maroon);
  font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 auto 56px; line-height: 1.1;
}
.section__title::after {
  content: "❖"; display: block; font-size: 1rem; color: var(--gold); margin-top: 14px;
}
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--maroon); margin: 0 0 6px; }

/* Story timeline */
.timeline { position: relative; max-width: 820px; text-align: left; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px;
  background: linear-gradient(var(--gold-soft), var(--gold), var(--gold-soft));
}
.timeline__item { position: relative; width: 50%; padding: 0 48px 48px 0; text-align: right; }
.timeline__item:nth-child(even) { margin-left: 50%; padding: 0 0 48px 48px; text-align: left; }
.timeline__dot {
  position: absolute; top: 8px; right: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ivory); border: 2px solid var(--gold);
}
.timeline__item:nth-child(even) .timeline__dot { right: auto; left: -8px; }
.timeline__when { margin: 0; font-size: .8rem; letter-spacing: .25em; color: var(--gold); font-weight: 500; }
.timeline__item p:last-child { margin: 0; color: var(--muted); }

/* Events */
.events { background: var(--cream); }
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.cards .card { flex: 1 1 260px; max-width: 340px; }
.card {
  background: var(--ivory); border-radius: var(--radius); padding: 36px 24px;
  border: 1px solid var(--line); position: relative;
  transition: transform .3s, box-shadow .3s;
}
.card::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(193, 154, 75, .35);
  border-radius: calc(var(--radius) - 6px); pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -24px rgba(90, 21, 32, .45); }
.card--featured { background: var(--maroon); color: var(--ivory); border-color: var(--maroon); }
.card--featured h3 { color: var(--gold-soft); }
.card--featured::before { border-color: rgba(227, 201, 143, .45); }
.card--featured .card__where, .card--featured .card__dress { color: rgba(251, 246, 238, .8); }
.card__icon { font-size: 2rem; margin-bottom: 10px; }
.card p { margin: 4px 0; }
.card__when { font-weight: 500; }
.card__where { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.card__dress { font-size: .85rem; color: var(--muted); margin-top: 12px !important; }

.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Event days */
.day { margin-bottom: 64px; }
.day:last-child { margin-bottom: 0; }
.day__title { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 2px; }
.day__venue {
  margin: 0 0 28px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.card__tag {
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); font-weight: 500;
}
.card--featured .card__tag { color: var(--gold-soft); }
.card__what { color: var(--muted); font-size: .95rem; margin-top: 12px !important; }
.card--featured .card__what { color: rgba(251, 246, 238, .82); }
.card__map {
  display: inline-block; margin-top: 14px; font-size: .85rem; color: var(--maroon);
  text-decoration: none; border-bottom: 1px solid var(--gold);
}

/* Contacts */
.help__card {
  max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 5vw, 40px); box-shadow: 0 30px 60px -40px rgba(90, 21, 32, .4);
}
.help__label { margin: 0; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.help__names { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); margin: 10px 0 2px; }
.help__phone { font-family: var(--serif); font-size: 2rem; color: var(--maroon); margin: 0 0 18px; letter-spacing: .04em; }
.help__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Travel */
.travel__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; text-align: left; align-items: stretch; }
.travel__info h3 { font-size: 1.35rem; margin-top: 22px; }
.travel__info h3:first-child { margin-top: 0; }
.travel__info p { margin: 0 0 8px; color: var(--muted); }
.travel__info .btn { margin-top: 20px; }
.travel__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 360px; }
.travel__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: sepia(.25) saturate(.9); }

/* Gallery */
.gallery { background: var(--cream); }
.gallery__grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px;
}
.ph {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(193, 154, 75, .25), rgba(122, 31, 43, .15)),
    var(--ivory);
  border: 1px dashed rgba(122, 31, 43, .25);
  color: var(--muted); font-family: var(--serif); font-style: italic;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--tall { grid-row: span 2; }
.ph--wide { grid-column: span 2; }

/* FAQ */
.faq__list { max-width: 760px; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative;
  font-family: var(--serif); font-size: 1.3rem; color: var(--ink); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.6rem; transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* RSVP */
.rsvp {
  background:
    radial-gradient(ellipse at center, rgba(227, 201, 143, .25), transparent 70%),
    var(--ivory);
}
.rsvp__form {
  max-width: 640px; text-align: left; background: #fff;
  padding: clamp(24px, 5vw, 48px); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(90, 21, 32, .4);
}
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend {
  display: block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; font-weight: 500; padding: 0;
}
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink);
  padding: 12px 14px; border: 1px solid rgba(58, 42, 38, .2); border-radius: 10px;
  background: var(--ivory); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(193, 154, 75, .2);
}
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { position: relative; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; margin: 0 !important; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(58, 42, 38, .2); font-size: .95rem; color: var(--ink);
  transition: all .2s;
}
.choice input:checked + span { background: var(--maroon); border-color: var(--maroon); color: var(--ivory); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(193, 154, 75, .35); }
.attend-only { transition: opacity .3s; }
.attend-only.is-hidden { display: none; }
.form__error { color: var(--maroon); min-height: 1.2em; margin: 0 0 12px; font-weight: 400; }
.rsvp__form .btn { width: 100%; }
.form__hint { margin: 10px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }
.rsvp__thanks a { color: var(--maroon); display: block; margin-top: 10px; }
.help { background: var(--cream); }
.rsvp__thanks { max-width: 520px; padding: 40px 0; }
.rsvp__thanks p:not(.script) { color: var(--muted); font-size: 1.1rem; }
.script { font-family: var(--script); color: var(--maroon); font-size: 3.4rem; line-height: 1.1; margin: 0; }

/* Footer */
.footer { background: var(--maroon-deep); color: var(--cream); text-align: center; padding: 56px 16px; }
.footer .script { color: var(--gold-soft); }
.footer p { margin: 6px 0; letter-spacing: .15em; }
.footer__tag { font-size: .85rem; opacity: .7; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__ornament, .hero__content { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav__toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px;
  }
  .nav__toggle span { width: 24px; height: 2px; background: var(--maroon); transition: transform .3s, opacity .3s; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.is-scrolled { backdrop-filter: none; background: var(--ivory); }
  .nav__links {
    position: fixed; inset: 0; background: var(--ivory);
    flex-direction: column; justify-content: center; gap: 28px;
    opacity: 0; pointer-events: none; transition: opacity .3s; z-index: -1;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__links a { font-size: 1rem; }

  .timeline::before { left: 8px; }
  .timeline__item, .timeline__item:nth-child(even) {
    width: 100%; margin-left: 0; padding: 0 0 40px 40px; text-align: left;
  }
  .timeline__dot, .timeline__item:nth-child(even) .timeline__dot { left: 0; right: auto; }

  .travel__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__grid .ph:nth-child(5) { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 420px) {
  .countdown div { min-width: 64px; }
}

/* =====================================================================
   v3: full guest site
   ===================================================================== */
.hero__couple {
  width: min(190px, 42vw); height: auto; margin: 0 auto 18px; border-radius: 50% 50% 18px 18px;
  box-shadow: 0 20px 40px -24px rgba(90, 21, 32, .55); border: 4px solid #fff; object-fit: cover; aspect-ratio: 4 / 5;
}
.section[hidden] { display: none; }
.block { margin-top: 64px; }
.block:empty { display: none; }
.block__title { font-family: var(--serif); font-weight: 500; color: var(--maroon); font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 6px; }
.block__sub { color: var(--muted); margin: 0 auto 26px; max-width: 620px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); text-align: left; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 24px 50px -40px rgba(90, 21, 32, .45);
}
.panel h4 { font-family: var(--serif); font-size: 1.3rem; color: var(--maroon); margin: 0 0 6px; font-weight: 600; }
.panel p { margin: 0; color: var(--muted); }
.panel--center { text-align: center; }
.btn--sm { padding: 10px 20px; font-size: .74rem; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.muted { color: var(--muted); }
.placeholder {
  border: 1.5px dashed rgba(122, 31, 43, .35); border-radius: var(--radius); padding: 18px; color: var(--muted);
  font-size: .9rem; background: rgba(255, 255, 255, .5); text-align: center;
}
.placeholder b { color: var(--maroon); }
.preview-flag {
  position: fixed; left: 12px; bottom: 12px; z-index: 60; background: var(--ink); color: #fff;
  font-size: .75rem; padding: 6px 12px; border-radius: 999px; letter-spacing: .08em;
}

/* Now-happening banner */
.now-banner {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 26px; padding: 10px 18px;
  background: #fff; border: 1px solid var(--gold-soft); border-radius: 999px; color: var(--ink);
  text-decoration: none; font-weight: 400; box-shadow: 0 10px 30px -20px rgba(90, 21, 32, .6);
}
.now-banner[hidden] { display: none; }
.now-banner small { color: var(--muted); }
.now-banner--big { display: flex; justify-content: center; font-size: 1.15rem; border-radius: var(--radius); padding: 18px; flex-wrap: wrap; }
.live-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e53935; margin-right: 4px;
  box-shadow: 0 0 0 0 rgba(229, 57, 53, .6); animation: pulse 1.6s infinite; vertical-align: middle;
}
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); } }
.nav__live { color: #c62828 !important; font-weight: 500; }
.nav__links a[hidden] { display: none; }

/* Event cards (each with its own colour) */
.events .day { margin-bottom: 70px; }
.ev-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); text-align: left; }
.ev {
  --c: var(--maroon);
  background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.ev:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px color-mix(in srgb, var(--c) 70%, black); }
.ev__img { position: relative; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--c) 20%, white); overflow: hidden; }
.ev__img img { width: 100%; height: 100%; object-fit: cover; }
.ev__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, color-mix(in srgb, var(--c) 85%, black)); }
.ev__tag {
  position: absolute; left: 14px; bottom: 12px; z-index: 1; color: #fff; font-size: .72rem; letter-spacing: .25em;
  text-transform: uppercase; font-weight: 500;
}
.ev__time {
  position: absolute; right: 12px; top: 12px; z-index: 1; background: rgba(255, 255, 255, .92); color: var(--c);
  font-weight: 500; font-size: .85rem; padding: 4px 12px; border-radius: 999px;
}
.ev__body { padding: 18px 20px 20px; border-top: 4px solid var(--c); flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ev__body h3 { color: var(--c); font-size: 1.55rem; margin: 0; line-height: 1.15; }
.ev__meta { font-size: .9rem; color: var(--muted); margin: 0; }
.ev__meaning { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--ink); }
.ev__dress { margin: 4px 0 0; font-size: .88rem; }
.swatches { display: flex; gap: 6px; margin-top: 6px; }
.swatches span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.ev__links { margin-top: auto; padding-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; }
.ev__links a { color: var(--c); text-decoration: none; border-bottom: 1px solid currentColor; }
.ev--featured { box-shadow: 0 0 0 2px var(--c); }
.ev--now { box-shadow: 0 0 0 3px #e53935; }
.ev__badge { position: absolute; left: 12px; top: 12px; z-index: 1; background: #e53935; color: #fff; font-size: .72rem; padding: 3px 10px; border-radius: 999px; letter-spacing: .1em; }

/* Story extras */
.then-now { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.then-now figure { margin: 0; position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--cream); }
.then-now img { width: 100%; height: 100%; object-fit: cover; }
.then-now figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.9); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.letter { text-align: center; }
.letter__seal { font-size: 2.4rem; }
.letter__body { white-space: pre-line; font-family: var(--serif); font-size: 1.15rem; color: var(--ink) !important; text-align: left; margin-top: 12px !important; }
.media-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 10px; }
.media-frame iframe, .media-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.panel audio { width: 100%; margin-top: 10px; }
.timeline__photo { margin-top: 12px; border-radius: 12px; max-height: 220px; object-fit: cover; }

/* Trip */
.trip { background: var(--cream); }
.trip__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: stretch; margin-top: 0; }
.trip__grid .block { margin-top: 0; }
.trip__grid .grid { grid-template-columns: 1fr 1fr; }
.travel__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; }
.travel__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: sepia(.2); }
.icon-lg { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.list { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: 10px; }
.list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; color: var(--ink); }
.list li::before { content: "✦ "; color: var(--gold); }
.list--plain li::before { content: none; }
.room-finder { display: flex; gap: 8px; max-width: 460px; margin: 14px auto 0; }
.room-finder input { flex: 1; font: inherit; padding: 12px 14px; border-radius: 999px; border: 1px solid rgba(58,42,38,.2); background: #fff; }
.room-result { margin-top: 14px; min-height: 1.5em; }
.cta-panel { background: var(--maroon); color: var(--ivory); border-radius: var(--radius); padding: 26px; text-align: center; }
.cta-panel h4 { color: var(--gold-soft); font-family: var(--serif); font-size: 1.5rem; margin: 0 0 6px; }
.cta-panel p { color: rgba(251, 246, 238, .85); margin: 0 auto 16px; max-width: 520px; }
.cta-panel .btn { background: var(--gold); }

/* Families */
.fam { margin-top: 30px; }
.fam:first-child { margin-top: 0; }
.fam__title { font-family: var(--script); font-weight: 400; color: var(--maroon); font-size: 2.6rem; margin: 0; }
.fam__intro { color: var(--muted); max-width: 620px; margin: 0 auto 22px; }
.people { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.person { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-align: center; }
.person__photo { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover; background: var(--cream); display: grid; place-items: center; font-family: var(--serif); font-size: 2rem; color: var(--maroon); border: 3px solid var(--gold-soft); }
.person__name { font-weight: 500; margin: 0; }
.person__rel { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 2px 0 8px; }
.person__line { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 0; font-size: 1.02rem; line-height: 1.4; }

/* Live */
.live { background: linear-gradient(#fff5f5, var(--ivory)); }
.feed { columns: 3 220px; column-gap: 14px; }
.feed figure { break-inside: avoid; margin: 0 0 14px; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.feed img { width: 100%; height: auto; }
.feed figcaption { padding: 8px 12px; font-size: .85rem; color: var(--muted); text-align: left; }
.feed .badge { position: absolute; left: 8px; top: 8px; background: #fff; border-radius: 999px; padding: 2px 10px; font-size: .75rem; }
.qr { display: inline-block; background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin-top: 12px; }
.qr img, .qr canvas { display: block; width: 160px !important; height: 160px !important; }

/* Memories / wishes */
.memories { background: var(--cream); }
.wall { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); text-align: left; max-height: 620px; overflow: auto; padding: 4px; }
.wish { background: #fff; border-radius: 14px; padding: 16px; border: 1px solid var(--line); }
.wish p { margin: 0; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); line-height: 1.45; }
.wish small { display: block; margin-top: 8px; color: var(--gold); letter-spacing: .1em; }

/* Fun */
.bingo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 560px; margin: 0 auto; }
.bingo button {
  aspect-ratio: 1; border: 1px solid var(--line); background: #fff; border-radius: 10px; font: inherit;
  font-size: clamp(.58rem, 1.9vw, .8rem); line-height: 1.2; padding: 4px; color: var(--ink); cursor: pointer;
}
.bingo button[aria-pressed="true"] { background: var(--maroon); color: var(--ivory); border-color: var(--maroon); }
.bingo button.free { background: var(--gold); color: #fff; font-family: var(--script); font-size: 1.3rem; }
.bingo-msg { min-height: 1.6em; margin-top: 12px; font-family: var(--serif); font-size: 1.3rem; color: var(--maroon); }
.poll__bar { height: 10px; background: var(--cream); border-radius: 999px; overflow: hidden; margin: 4px 0 10px; }
.poll__bar span { display: block; height: 100%; background: var(--gold); }
.poll__q { font-weight: 500; margin: 14px 0 4px; }
.poll__row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); }
.score { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.score div { min-width: 150px; }
.score strong { display: block; font-family: var(--serif); font-size: 3rem; color: var(--maroon); line-height: 1; }
.quiz__opts { display: grid; gap: 8px; margin-top: 12px; }
.quiz__opts button { font: inherit; text-align: left; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.quiz__opts button.right { background: #e8f5e9; border-color: #66bb6a; }
.quiz__opts button.wrong { background: #ffebee; border-color: #ef5350; }
.leader { margin-top: 14px; text-align: left; }
.leader li { display: flex; justify-content: space-between; }

/* Help */
.help { background: var(--ivory); }
.contact { text-align: center; }
.contact__role { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 6px !important; }
.contact__name { font-family: var(--serif); font-size: 1.3rem; color: var(--ink) !important; }
.contact__phone { font-family: var(--serif); font-size: 1.6rem; color: var(--maroon) !important; }
.faq__list { max-width: 760px; text-align: left; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }

/* Thank you */
.thanks { background: linear-gradient(var(--cream), var(--ivory)); }
.thanks__note { font-family: var(--serif); font-size: 1.4rem; max-width: 680px; margin: 0 auto; color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; background: var(--maroon);
  color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
}

@media (max-width: 820px) {
  .trip__grid { grid-template-columns: 1fr; }
  .trip__grid .grid { grid-template-columns: 1fr; }
  .nav__links { overflow-y: auto; padding: 80px 0 40px; justify-content: flex-start; }
}

/* v4: live forms */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.trip .rsvp__form, .memories .rsvp__form, .fun .rsvp__form { margin: 0 auto; }
.field input[type="file"] { width: 100%; padding: 12px; border: 1px dashed rgba(58, 42, 38, .3); border-radius: 10px; background: var(--ivory); font: inherit; }
.progress { height: 8px; background: var(--cream); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.capsule { display: grid; gap: 10px; max-width: 520px; margin: 0 auto; text-align: left; }
.capsule input, .capsule textarea { font: inherit; padding: 12px 14px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .95); color: var(--ink); }
.capsule .form__error { color: var(--gold-soft); }
.done h4 { margin-top: 4px; }
.feed a { display: block; }
.room-finder .form__error { flex-basis: 100%; }
.room-finder { flex-wrap: wrap; }
#upload, #find, #travel-form { scroll-margin-top: 80px; }

[hidden] { display: none !important; }
