/*
  Theme: olive green, gold & cream.
  The hero, header, RSVP band and footer are dark olive with gold writing;
  content sections alternate between cream and dark olive.
  --accent (olive), --gold and --cream are set from Settings in the admin panel.

  Every component reads the "role" variables below (--bg, --ink, --heading...),
  so a section switches look just by being light (default) or dark.
*/
:root {
  --accent: #343f22;
  --gold: #c9a55c;
  --cream: #f3ead3;

  --olive-deep: color-mix(in srgb, var(--accent) 62%, #000);
  --gold-deep: color-mix(in srgb, var(--gold) 48%, #3a2a0c); /* readable gold for small text on cream */

  /* Light (cream) roles */
  --bg: var(--cream);
  --surface: color-mix(in srgb, var(--cream) 45%, #fff);
  --ink: color-mix(in srgb, var(--accent) 88%, #000);
  --muted: color-mix(in srgb, var(--accent) 70%, var(--cream));
  --heading: var(--accent);
  --label: var(--gold-deep);
  --link: var(--gold-deep);
  --line: color-mix(in srgb, var(--gold) 50%, transparent);
  --soft: color-mix(in srgb, var(--gold) 16%, transparent);
  --inset: color-mix(in srgb, var(--cream) 70%, var(--gold) 8%);
  --field-bg: #fffdf8;
  --field-ink: color-mix(in srgb, var(--accent) 85%, #000);
  --btn-bg: var(--accent);
  --btn-ink: var(--gold);
  --btn-outline: var(--accent);
  --shadow: 0 22px 44px -28px rgba(40, 45, 20, 0.45);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
}

/* Dark (olive) roles */
.theme-dark,
.site-header,
.site-footer,
.hero,
.rsvp-cta,
main > .section:nth-child(even),
body.gate {
  --bg: var(--accent);
  --surface: color-mix(in srgb, var(--accent) 88%, var(--cream));
  --ink: var(--cream);
  --muted: color-mix(in srgb, var(--cream) 74%, var(--accent));
  --heading: var(--gold);
  --label: var(--gold);
  --link: var(--gold);
  --line: color-mix(in srgb, var(--gold) 34%, transparent);
  --soft: color-mix(in srgb, var(--gold) 14%, transparent);
  --inset: color-mix(in srgb, var(--accent) 80%, #000);
  --field-bg: var(--cream);
  --btn-bg: var(--gold);
  --btn-ink: var(--olive-deep);
  --btn-outline: var(--gold);
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.7);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 0.5em; color: var(--heading); }
strong { font-weight: 500; }
::selection { background: var(--gold); color: var(--olive-deep); }

.container { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(740px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--label);
  margin: 0 0 0.6em;
}
.label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 500;
  margin: 0 0 0.5em;
}
.amp { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid var(--btn-bg);
  padding: 14px 32px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--label); outline-offset: 3px; }
.btn-small { padding: 10px 22px; font-size: 0.72rem; }
.btn-outline { background: transparent; color: var(--btn-outline); border-color: var(--btn-outline); }
.btn-outline:hover { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); filter: none; }
.btn-gold { background: var(--gold); color: var(--olive-deep); border-color: var(--gold); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.85rem; }
.link-btn:hover { color: var(--label); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--gold);
  background: color-mix(in srgb, var(--olive-deep) 95%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}
.site-header.overlay { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; }
.site-header.overlay.scrolled,
.site-header.overlay.menu-open { background: color-mix(in srgb, var(--olive-deep) 96%, transparent); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; width: min(1240px, 100% - 40px); }
.brand { font-family: var(--serif); font-size: 1.6rem; color: inherit; text-decoration: none; letter-spacing: 0.04em; }
.brand .amp { margin: 0 0.12em; font-size: 0.85em; }
.site-nav { display: flex; gap: 20px; align-items: center; white-space: nowrap; }
.site-nav a:not(.btn) {
  color: inherit;
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
}
.site-nav a:not(.btn):hover { color: var(--cream); }
.nav-toggle { display: none; }

@media (max-width: 1240px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 10px;
    margin-right: -10px;
    cursor: pointer;
    color: inherit;
  }
  .nav-toggle span:not(.sr-only) { width: 24px; height: 2px; background: currentColor; display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 28px 32px;
    background: var(--olive-deep);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
}

/* ---------- Hero (dark olive, gold writing) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--gold);
  padding: 110px 24px 90px;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 55%),
    linear-gradient(175deg, var(--accent), var(--olive-deep));
}
.hero::before {
  content: '';
  position: absolute;
  inset: 76px clamp(12px, 3vw, 28px) clamp(12px, 3vw, 28px);
  border: 1px solid var(--line);
  pointer-events: none;
}
.hero.has-image {
  background:
    linear-gradient(color-mix(in srgb, var(--olive-deep) 60%, transparent), color-mix(in srgb, var(--olive-deep) 85%, transparent)),
    var(--hero-image) center / cover no-repeat;
}
.hero-inner { max-width: 820px; animation: rise 1.1s ease both; }
.hero-names { font-size: clamp(3.2rem, 11vw, 7.2rem); font-weight: 400; margin: 0.1em 0; line-height: 1; }
.hero-names .amp { font-size: 0.72em; margin: 0 0.08em; }
.hero-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.6rem); margin: 0.4em 0 0; }
.hero-rule { width: 72px; height: 1px; background: currentColor; opacity: 0.7; margin: 30px auto; }
.hero-date { font-family: var(--serif); font-size: clamp(1.4rem, 3.2vw, 2rem); margin: 0; }
.hero-location { letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.8rem; margin: 0.7em 0 0; }

.countdown { display: flex; gap: clamp(18px, 5vw, 48px); justify-content: center; margin: 42px 0 44px; color: var(--gold); }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 58px; }
.countdown span { font-family: var(--serif); font-size: clamp(2.3rem, 6vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.85; margin-top: 8px; }
.countdown-done { font-family: var(--serif); font-size: 2rem; font-style: italic; margin: 0; }

.scroll-hint {
  position: absolute;
  bottom: 44px;
  left: 50%;
  width: 20px;
  height: 20px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
  animation: bob 2.2s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner, .scroll-hint { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(76px, 11vw, 120px) 0; background: var(--bg); color: var(--ink); }
.section-title { text-align: center; font-size: clamp(2.3rem, 5.5vw, 3.4rem); margin-bottom: 0.3em; }
.section-title::after { content: ''; display: block; width: 72px; height: 1px; background: var(--gold); margin: 24px auto 0; }
.section-intro { text-align: center; max-width: 640px; margin: 0 auto 40px; color: var(--muted); font-size: 1.05rem; }
.sub-title { text-align: center; font-size: 1.9rem; margin: 72px 0 0; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.narrow-prose { max-width: 700px; margin: 36px auto 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 360px));
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 38px);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.8rem; margin: 0.1em 0 0.45em; }
.card p { margin: 0 0 1em; }
.info-cards { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 500px)); gap: 36px; }
.info-card .btn { margin-top: 22px; }
.stay-card { display: flex; flex-direction: column; }
.stay-card h3 { font-size: 1.5rem; margin-bottom: 1em; }
.stay-card .btn { margin-top: auto; align-self: flex-start; }

.updates { max-width: 740px; margin: 44px auto 0; display: grid; gap: 28px; }
.update time { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.story { max-width: 760px; margin: 40px auto 0; font-size: 1.08rem; text-align: center; }
.story.has-image { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; text-align: left; }
.story img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }

@media (max-width: 760px) { .story.has-image { grid-template-columns: 1fr; } }

.venue-card { text-align: center; }
.venue-time { font-family: var(--serif); font-size: 1.4rem; color: var(--label); margin-bottom: 0.4em !important; }
.venue-address { color: var(--muted); }
.details-extra { text-align: center; max-width: 620px; margin: 52px auto 0; }
.dress-code { font-family: var(--serif); font-size: 1.5rem; color: var(--heading); }
.details-extra + .center, .cards + .center { margin-top: 44px; }

/* Timeline */
.timeline { --tl: 160px; list-style: none; padding: 0; margin: 48px auto 0; max-width: 700px; position: relative; }
.timeline::before { content: ''; position: absolute; left: calc(var(--tl) + 16px); top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: var(--tl) 1fr; column-gap: 44px; padding: 16px 0; position: relative; }
.timeline li::before {
  content: '';
  position: absolute;
  left: calc(var(--tl) + 11px);
  top: 27px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--bg);
}
.timeline time { font-family: var(--serif); font-size: 1.35rem; text-align: right; color: var(--label); line-height: 1.6; }
.timeline h3 { font-size: 1.5rem; margin: 0.12em 0 0.1em; color: var(--ink); }
.timeline p { margin: 0; color: var(--muted); }
.timeline li.highlight h3 { color: var(--label); font-size: 1.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.timeline li.highlight::before { width: 19px; height: 19px; left: calc(var(--tl) + 7px); top: 24px; background: var(--bg); border: 2px solid var(--gold); }
@media (max-width: 600px) {
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 36px; }
  .timeline li::before { left: 0; top: 24px; }
  .timeline li.highlight::before { left: -4px; top: 21px; }
  .timeline time { text-align: left; font-size: 1.15rem; }
}

/* Gallery */
/* Default (and fallback): masonry via CSS columns. */
.gallery { --gap: 18px; margin-top: 48px; columns: 4 220px; column-gap: var(--gap); }
.gallery figure { margin: 0 0 var(--gap); break-inside: avoid; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: auto; transition: transform 0.5s ease; }

/* A few photos: even, centred tiles (cropped to fit; the lightbox shows them in full). */
.gallery-grid {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 320px));
  justify-content: center;
  gap: 24px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }

/* Many photos: masonry with natural shapes. site.js balances the columns; CSS columns are the fallback. */
.gallery-masonry.is-balanced { columns: auto; display: flex; gap: var(--gap); align-items: flex-start; }
.gallery-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.gallery-masonry.is-balanced figure { margin-bottom: 0; }
@media (max-width: 600px) { .gallery { --gap: 12px; columns: 2; } }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 0.88rem; color: var(--muted); padding: 8px 2px 0; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 10, 5, 0.95); display: flex; align-items: center; justify-content: center; padding: 24px 64px; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 6px; }
.lightbox p { color: var(--cream); margin: 12px 0 0; min-height: 1.5em; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--gold); font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 12px; opacity: 0.85; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* Honeymoon fund QR */
.qr { margin: 44px auto 0; text-align: center; }
.qr a { display: inline-block; }
.qr img { width: 220px; height: 220px; margin: 0 auto; padding: 12px; background: var(--cream); border: 2px solid var(--gold); border-radius: 14px; box-shadow: var(--shadow); }
.qr figcaption { margin-top: 16px; color: var(--muted); font-size: 0.92rem; }
.qr + .button-row { margin-top: 28px; }

/* FAQ */
.faq { max-width: 760px; margin: 44px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--ink); }
.faq summary:hover { color: var(--label); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--label); font-family: var(--sans); font-weight: 300; }
.faq details[open] summary::after { content: '–'; }
.faq .prose { padding-top: 12px; color: var(--muted); }

/* RSVP band + footer */
main > .section.rsvp-cta { background: var(--olive-deep); border-top: 1px solid var(--line); }
.rsvp-cta .section-intro { color: var(--cream); }
.rsvp-cta strong { color: var(--gold); }

.site-footer { text-align: center; padding: 60px 0 68px; color: var(--muted); font-size: 0.92rem; background: var(--olive-deep); border-top: 1px solid var(--line); }
.site-footer p { margin: 0.3em 0; }
.footer-names { font-family: var(--serif); font-size: 2.1rem; color: var(--gold); }

.admin-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  background: var(--gold);
  color: var(--olive-deep);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}

/* ---------- Forms & inner pages (cream) ---------- */
.page { padding: clamp(48px, 8vw, 80px) 0 96px; min-height: 70vh; }
.page-title { text-align: center; font-size: clamp(2.6rem, 7vw, 3.6rem); margin-bottom: 0.2em; }
.page-intro { text-align: center; color: var(--muted); max-width: 580px; margin: 0 auto 40px; }
.page-intro strong { color: var(--ink); }
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 52px);
}
.form-section { font-size: 1.8rem; margin: 1.6em 0 0.8em; }
form > .form-section:first-of-type { margin-top: 0.2em; }

.field { display: block; margin-bottom: 22px; }
.field > span,
.field > label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--label);
  margin-bottom: 8px;
}
.field > span em { text-transform: none; letter-spacing: 0; font-style: normal; font-weight: 300; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

input[type='text'], input[type='email'], input[type='tel'], input[type='password'], input[type='number'], select, textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field-bg);
  color: var(--field-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--field-ink) 48%, var(--field-bg)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }
textarea { resize: vertical; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--field-ink) 50%), linear-gradient(135deg, var(--field-ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

/* − / + stepper for number fields */
.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--field-bg);
}
.stepper button {
  width: 50px;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: filter 0.2s;
}
.stepper button:hover { filter: brightness(1.12); }
.stepper input[type='number'] {
  width: 76px;
  border: 0;
  border-radius: 0;
  text-align: center;
  font-size: 1.1rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }
.stepper input:focus { box-shadow: none; }

.guest { border: 1px solid var(--line); border-radius: 14px; padding: 24px 24px 6px; margin-bottom: 22px; background: var(--inset); }
.guest-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.guest-head h3 { font-size: 1.5rem; margin: 0; }
.guest:only-child [data-remove-guest] { display: none; }
[data-add-guest] { margin: 4px 0 8px; }

.choice { display: flex; gap: 12px; flex-wrap: wrap; }
.choice label {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field-bg);
  color: var(--field-ink);
  cursor: pointer;
  font-weight: 400;
  transition: border-color 0.2s, background 0.2s;
}
.choice label:hover { border-color: var(--gold); }
.choice label:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 20%, var(--field-bg)); }
.choice.choice-stack { flex-direction: column; }
.choice.choice-stack label { flex: none; }
input[type='radio'] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex-shrink: 0; }

.travel-form { max-width: 780px; margin: 64px auto 0; }
.travel-form .form-section { margin-top: 0; }
.travel-form > .muted { margin: -6px 0 28px; }

.form-actions { text-align: center; margin-top: 34px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 28px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-error { background: #f9e7e3; color: #7d2b22; border: 1px solid #ecc3bb; }

.summary-list { list-style: none; padding: 0; margin: 0; }
.summary-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.summary-list li:last-child { border-bottom: 0; }
.summary-list small { flex-basis: 100%; color: var(--muted); }
.pill { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; font-weight: 500; border: 1px solid var(--line); }
.pill-yes { background: var(--soft); color: var(--label); }
.pill-no { background: transparent; color: var(--muted); }

.copy-row { display: flex; gap: 10px; }
.copy-row input { font-size: 0.88rem; }

/* ---------- Guest password page ---------- */
body.gate { min-height: 100vh; background: linear-gradient(175deg, var(--accent), var(--olive-deep)); }
.gate-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate-card {
  /* cream card on the olive page */
  --surface: var(--cream);
  --ink: color-mix(in srgb, var(--accent) 88%, #000);
  --muted: color-mix(in srgb, var(--accent) 70%, var(--cream));
  --heading: var(--accent);
  --label: var(--gold-deep);
  --line: color-mix(in srgb, var(--gold) 50%, transparent);
  --field-bg: #fffdf8;
  --btn-bg: var(--accent);
  --btn-ink: var(--gold);
  width: min(460px, 100%);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(30px, 6vw, 52px);
  text-align: center;
  box-shadow: var(--shadow);
  animation: rise 0.8s ease both;
}
.gate-card .hero-names { font-size: clamp(2.6rem, 10vw, 3.6rem); margin-bottom: 0.2em; }
.gate-card .hero-date { font-size: 1.3rem; color: var(--muted); margin-bottom: 30px; }
.gate-card form { text-align: left; }
.gate-card .btn { width: 100%; }
.gate-card .muted { margin: 20px 0 0; }
