/* ---------- Theme: edit these to restyle the whole site ---------- */
/* Palette from the Hunter & Kira design vision: emerald, champagne gold, ivory. */
:root {
  --bg: #faf7f1;            /* warm ivory */
  --bg-alt: #f3eee4;
  --surface: #fffdf9;
  --ink: #2a231f;           /* deep cocoa */
  --ink-soft: #6a5f55;
  --line: #e6dcc9;
  --accent: #1f4d38;        /* emerald */
  --accent-dark: #163a2a;
  --accent-soft: #e2ebe4;
  --emerald-deep: #173d2c;
  --gold: #c9a96e;          /* champagne gold (decorative) */
  --gold-light: #e2cc9f;
  --gold-deep: #8a6c3a;     /* gold dark enough for small text */
  --gold-soft: #f3ead8;
  --on-dark: #f6f0e4;       /* ivory text on emerald */
  --error: #7a2430;         /* burgundy */

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Karla", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(47, 42, 38, 0.05), 0 8px 24px rgba(47, 42, 38, 0.06);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; }
h2, .page-title { font-size: clamp(2.2rem, 5vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 0.75em; }
a { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* The monogram is a transparent PNG used as a mask, so it takes any color. */
.monogram {
  display: block;
  aspect-ratio: 800 / 820;
  background-color: var(--gold);
  -webkit-mask: url("/images/monogram.png") center / contain no-repeat;
  mask: url("/images/monogram.png") center / contain no-repeat;
}
.monogram-sm { width: 56px; margin: 0 auto 16px; }

/* Thin gold rule under page titles */
.page-title::after {
  content: "";
  display: block;
  width: 96px;
  height: 1px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
}

.container { width: min(1100px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(680px, 100% - 32px); }

.section { padding: clamp(64px, 10vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-intro { max-width: 580px; margin: 16px auto 0; color: var(--ink-soft); }
.subhead { margin: 0 0 20px; }
.subhead:not(:first-of-type) { margin-top: 56px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.95rem var(--font-body);
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--accent-dark); border-color: var(--accent); }
.btn-ghost:hover:not(:disabled) { background: var(--accent-soft); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-brand .monogram { width: 48px; background-color: var(--accent); transition: background-color 0.2s; }
.nav-brand:hover .monogram { background-color: var(--gold-deep); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; box-shadow: inset 0 -1px 0 var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 24px; border-top: 1px solid var(--line); }
}

/* ---------- Couple preview banner ---------- */
.preview-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 16px;
  padding: 10px 16px;
  background: var(--gold-soft);
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
  font-size: 0.88rem;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px 80px;
  color: var(--on-dark);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 169, 110, 0.2), transparent 60%),
    radial-gradient(ellipse at 50% 110%, rgba(0, 0, 0, 0.3), transparent 60%),
    var(--accent);
  position: relative;
}
/* Fine double gold frame, echoing the monogram's oval */
.hero::before {
  content: "";
  position: absolute;
  inset: clamp(12px, 3vw, 28px);
  border: 1px solid rgba(201, 169, 110, 0.45);
  outline: 1px solid rgba(201, 169, 110, 0.2);
  outline-offset: 5px;
  pointer-events: none;
}
.hero-inner { max-width: 760px; position: relative; }
.hero .monogram { width: clamp(96px, 16vw, 132px); margin: 0 auto 28px; }
.hero .eyebrow { color: var(--gold-light); }
.hero-names {
  font-size: clamp(3.4rem, 12vw, 7rem);
  font-weight: 400;
  line-height: 1;
  margin: 12px 0 24px;
}
.hero-names span { display: inline-block; }
.hero-names .amp { font-style: italic; color: var(--gold); margin: 0 0.15em; }
.hero-tagline { font: italic 1.4rem var(--font-display); color: rgba(246, 240, 228, 0.82); }
.hero .btn-primary { background: var(--gold); color: var(--emerald-deep); }
.hero .btn-primary:hover { background: var(--gold-light); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin: 24px 0 32px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.hero-meta .dot { color: var(--gold); }

.countdown { display: flex; justify-content: center; gap: clamp(16px, 5vw, 40px); margin-bottom: 40px; }
.countdown-unit { min-width: 64px; }
.countdown-num { font: 500 2.6rem var(--font-display); display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }

/* ---------- Home photo gallery: looping strip ---------- */
.gallery-section { padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px); overflow: hidden; }
.carousel {
  position: relative;
  /* Same height as the original photo gallery, but never taller than most of the screen. */
  height: min(clamp(360px, 62vw, 760px), 78vh);
  touch-action: pan-y;          /* vertical scrolling still works; horizontal swipes move the strip */
  user-select: none;
  -webkit-user-select: none;
}
.carousel-track { display: flex; gap: 16px; height: 100%; width: max-content; will-change: transform; }
.carousel-track figure {
  position: relative;
  flex: none;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}
.carousel-track figure::after { /* fine gold inner frame */
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(226, 204, 159, 0.55);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}
.carousel-track img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.7);
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(4px);
  color: var(--accent);
  font: 400 1.9rem/1 var(--font-display);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, opacity 0.2s;
}
.carousel-btn:hover { background: var(--surface); }
.carousel-prev { left: clamp(12px, 3vw, 32px); }
.carousel-next { right: clamp(12px, 3vw, 32px); }
/* With a mouse, the arrows only appear while hovering over the photos. */
@media (hover: hover) {
  .carousel-btn { opacity: 0; }
  .carousel:hover .carousel-btn, .carousel-btn:focus-visible { opacity: 1; }
}

.gallery-section.is-empty { display: none; }
.carousel-hint { text-align: center; margin: 18px 0 0; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }

/* ---------- Cards & panels ---------- */
.card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { padding: 28px; }
.panel h3 { margin-bottom: 16px; }
.panel-title { font-weight: 600; margin-bottom: 4px; }
.stack { display: grid; gap: 24px; align-content: start; }

/* ---------- Details ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 24px; }
.event { padding: 32px; text-align: center; }
.event .eyebrow { margin-bottom: 4px; }
.event h3 { font-size: 2rem; margin-bottom: 12px; }
.event-time { font-weight: 600; margin-bottom: 8px; }
.event-venue { font: 500 1.25rem var(--font-display); margin-bottom: 2px; }
.event-address { color: var(--ink-soft); font-size: 0.95rem; }
.event-notes { color: var(--ink-soft); font-size: 0.95rem; margin-top: 12px; }

/* Printed-menu style card on the Details page */
.wedding-menu { padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 48px); margin-top: 24px; text-align: center; }
.wedding-menu .page-title { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 36px; }
.menu-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.menu-part + .menu-part { border-left: 1px solid var(--gold-soft); padding-left: 40px; }
.menu-part-title { font-size: 1.9rem; margin-bottom: 24px; color: var(--accent); }
.course + .course { margin-top: 28px; }
.course-name { margin-bottom: 4px; }
.course-note { font: italic 0.95rem var(--font-display); color: var(--ink-soft); margin: 0 0 8px; }
.course-items { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.course-items li { display: grid; gap: 2px; }
.dish { font: 500 1.25rem var(--font-display); display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; }
.dish-desc { font-size: 0.88rem; color: var(--ink-soft); max-width: 420px; margin: 0 auto; }
.dish-allergens { font-size: 0.78rem; color: var(--gold-deep); letter-spacing: 0.02em; }
@media (max-width: 800px) {
  .menu-columns { grid-template-columns: 1fr; gap: 36px; }
  .menu-part + .menu-part { border-left: 0; padding-left: 0; border-top: 1px solid var(--gold-soft); padding-top: 32px; }
}

.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contents { display: contents; }
@media (max-width: 800px) { .details-grid { grid-template-columns: 1fr; } }

.travel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.travel-list p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.travel-btn { margin-top: 12px; }

/* Private invitation (invited households only) */
.invitation-inline {
  margin: 28px 0 8px;
  padding-top: 28px;
  border-top: 1px solid var(--gold-soft);
  text-align: center;
}
.invitation-inline .eyebrow { margin-bottom: 6px; }
.invitation-heading { font-size: 1.8rem; margin-bottom: 12px; }
.invitation-details { display: grid; gap: 2px; justify-items: center; text-align: center; margin-bottom: 18px; }
.invitation-details p { margin: 0; }
.invitation-when { font-weight: 600; letter-spacing: 0.04em; }
.invitation-when .dot { color: var(--gold); }
.invitation-dress { color: var(--ink-soft); font-size: 0.95rem; margin-top: 6px !important; }
.invitation-details .fine { margin-top: 6px; }
.invitation-card { padding: clamp(24px, 5vw, 40px); }
.invitation-form { display: grid; gap: 18px; text-align: left; }
.invitation-guest-row { grid-template-columns: 1fr auto; }
.invitation-status { display: grid; gap: 12px; justify-items: center; }
.invitation-status p { margin: 0; }
.invitation-note { font-size: 0.95rem; color: var(--ink-soft); background: var(--gold-soft); border-radius: 10px; padding: 14px 16px; margin: 0; }

/* Room-block hotels in the Travel & stay panel */
.hotel-list { display: grid; gap: 12px; margin-top: 14px; }
.hotel {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: var(--bg);
}
.hotel-name { font: 500 1.3rem/1.2 var(--font-display); color: var(--ink); }
.hotel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hotel-map { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.hotel-pin { font-size: 1.05rem; line-height: 1; color: var(--gold-deep); }
.hotel-soon { font-size: 0.85rem; font-style: italic; color: var(--ink-soft); }

/* ---------- Registry ---------- */
.fund-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.fund { padding: 28px; display: flex; flex-direction: column; }
.fund-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.fund-icon svg { width: 24px; height: 24px; }
.fund h4 { font: 500 1.6rem var(--font-display); margin: 0 0 8px; }
.fund-desc { color: var(--ink-soft); font-size: 0.95rem; }
.fund > .btn { margin-top: auto; }

.progress { margin: 16px 0 20px; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: inherit; transition: width 0.8s ease; }
.progress-text { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }
.progress-text strong { color: var(--ink); }

.fund-items { list-style: none; padding: 0; margin: 4px 0 20px; display: grid; gap: 14px; position: relative; }
.fund-items.scrolls {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  margin-right: -8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
}
.fund-items.scrolls.at-end { -webkit-mask-image: none; mask-image: none; }
.fund-items.scrolls::-webkit-scrollbar { width: 6px; }
.fund-items.scrolls::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.fund-items.scrolls:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.fund-items-hint { font-size: 0.8rem; color: var(--gold-deep); letter-spacing: 0.04em; margin: 0 0 8px; }
.fund-item { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.fund-item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.fund-item-name { font-weight: 500; font-size: 0.95rem; }
.fund-item .progress { margin: 8px 0 0; }
.fund-item .progress-bar { height: 5px; }
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: 600 0.8rem var(--font-body);
  color: var(--accent-dark);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.funded-badge { font-size: 0.8rem; font-weight: 600; color: var(--accent-dark); white-space: nowrap; }
.fund-item-actions { display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap; }

.fund-photo {
  width: calc(100% + 56px);
  max-width: none;
  margin: -28px -28px 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 45%;
  border-radius: var(--radius) var(--radius) 0 0;
}

.filters { padding: 20px 24px; margin-bottom: 24px; display: grid; gap: 16px; }
.filter-group { display: grid; gap: 8px; }
.filter-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: 500 0.9rem var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-chip:hover:not(:disabled) { border-color: var(--accent); }
.filter-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-chip:disabled { opacity: 0.45; cursor: default; }
.filter-chip-count { font-size: 0.78rem; opacity: 0.7; }
.filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.filter-price select { min-width: 200px; }
.filter-count { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.filter-row .link-btn { margin-bottom: 12px; }
.filter-empty p { margin-bottom: 16px; }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.item { overflow: hidden; display: flex; flex-direction: column; }
.item-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-alt));
  display: grid;
  place-items: center;
  color: var(--accent);
}
.item-img:has(img) { background: #fff; border-bottom: 1px solid var(--line); }
.item-img { position: relative; overflow: hidden; }
.item-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.item-img svg { width: 40px; height: 40px; opacity: 0.6; }
.item-body { padding: 18px; display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.item-name { font-weight: 600; }
.item-meta { color: var(--ink-soft); font-size: 0.9rem; }
.item-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.item.bought .item-img img { filter: grayscale(1); opacity: 0.45; }
.item.bought s.item-name { color: var(--ink-soft); text-decoration-color: var(--gold-deep); text-decoration-thickness: 1px; }
.item.bought .item-meta { opacity: 0.7; }
.bought-badge {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- Forms ---------- */
.form { padding: clamp(24px, 5vw, 40px); display: grid; gap: 20px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; font-size: 0.9rem; padding: 0; margin-bottom: 6px; }
.field em { font-weight: 400; color: var(--ink-soft); font-style: normal; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; flex: 1 1 160px; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  transition: all 0.15s;
}
.choice input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

.menu { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.menu .eyebrow { margin-bottom: 12px; }
.menu-list { display: grid; gap: 16px; margin-bottom: 12px; }
.menu-item + .menu-item { border-top: 1px dashed var(--line); padding-top: 16px; }
.menu-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.menu-name { font: 500 1.35rem var(--font-display); }
.menu-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
}
.menu-desc { color: var(--ink-soft); font-size: 0.92rem; margin: 4px 0 4px; }
.menu-allergens { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.menu-allergens strong { color: var(--ink); font-weight: 600; }
.menu .fine { margin: 0; }

.guest-list { display: grid; gap: 10px; margin-bottom: 12px; }
.guest-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; }
@media (max-width: 560px) { .guest-row { grid-template-columns: 1fr auto; } .guest-row select { grid-column: 1; } }
.guest-remove {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 1.2rem;
  cursor: pointer;
}
.guest-remove:hover { color: var(--error); border-color: var(--error); }
.guest-remove:disabled { visibility: hidden; }

.form-error { color: var(--error); font-size: 0.92rem; margin: 0; }
.fine { font-size: 0.85rem; color: var(--ink-soft); }

.done { padding: 40px; text-align: center; }
.done h3 { font-size: 2.2rem; margin-bottom: 12px; }
.gate-text { max-width: 440px; margin: 0 auto 24px; color: var(--ink-soft); }
.gate-lookup { margin: 20px 0 0; }
.done-actions { display: flex; gap: 20px; justify-content: center; align-items: center; margin-top: 20px; }

.lookup { margin-top: 32px; text-align: center; }
.lookup-title { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 10px; }
.lookup-row { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.lookup-row input { flex: 1; min-width: 0; }
.lookup .form-error { margin-top: 8px; }
@media (max-width: 480px) { .lookup-row { flex-direction: column; } }

/* ---------- Dialogs ---------- */
.dialog {
  width: min(480px, 100% - 32px);
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(47, 42, 38, 0.25);
}
.dialog::backdrop { background: rgba(47, 42, 38, 0.45); backdrop-filter: blur(2px); }
.dialog .form, .dialog .done { position: relative; }
.dialog h3 { font-size: 2rem; margin-top: -8px; }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* The gift dialog lets the payment note sit outside its edge, so the dialog
   itself doesn't scroll; its contents do. */
#give-dialog { overflow: visible; max-height: none; }
#give-dialog > form, #give-dialog > .done { max-height: calc(100svh - 32px); overflow-y: auto; border-radius: inherit; }

#pay-methods .choice { flex-basis: 100px; }
#pay-methods .choice span { padding: 12px 8px; white-space: nowrap; }

.pay-note {
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
}
.pay-note p { margin: 0; }
.pay-note-inline { margin-top: 12px; background: var(--gold-soft); animation: note-in 0.25s ease; }
.pay-note-side {
  position: absolute;
  top: 50%;
  left: calc(100% + 20px);
  width: 280px;
  transform: translateY(-50%);
  text-align: center;
  box-shadow: 0 24px 64px rgba(47, 42, 38, 0.25);
  animation: note-slide 0.3s ease;
}
.pay-note-side .monogram-sm { width: 44px; margin-bottom: 12px; }
@keyframes note-slide { from { opacity: 0; transform: translate(-12px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@keyframes note-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* Only one of the two notes is used, depending on screen width. */
@media (min-width: 1100px) { .pay-note-inline { display: none !important; } }
@media (max-width: 1099px) { .pay-note-side { display: none !important; } }

.amount-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.amount-chip {
  padding: 10px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font: 600 0.95rem var(--font-body);
  color: var(--ink);
  cursor: pointer;
}
.amount-chip.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.amount-input { position: relative; }
.amount-input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.amount-input input { padding-left: 28px; }

.pay-box {
  margin: 20px 0 8px;
  padding: 20px;
  border-radius: 10px;
  background: var(--bg-alt);
  display: grid;
  gap: 12px;
  justify-items: center;
}
.pay-handle { font-weight: 600; font-size: 1.1rem; word-break: break-all; }
.pay-message { margin: 0; text-align: center; line-height: 1.6; }

/* ---------- FAQ page: beach photo background ---------- */
.faq-page {
  min-height: calc(100svh - var(--nav-h));
  background:
    linear-gradient(180deg, rgba(28, 22, 18, 0.55) 0%, rgba(28, 22, 18, 0.3) 45%, rgba(28, 22, 18, 0.55) 100%),
    url("/images/engagement-cliffs.jpg") 72% 60% / cover no-repeat;
}
/* On wide screens the questions sit on the left so the couple (right side of the photo) stays visible. */
@media (min-width: 1000px) {
  .faq-page .container.narrow { width: min(560px, 46vw); margin-left: clamp(24px, 7vw, 120px); margin-right: 0; }
  .faq-page .section-head { text-align: left; }
  .faq-page .page-title::after { margin-left: 0; }
}
.faq-page .eyebrow { color: var(--gold-light); }
.faq-page .page-title { color: var(--on-dark); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); }
.faq-page .faq details {
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: rgba(226, 204, 159, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 24px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font: 500 1.3rem var(--font-display);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.6rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; margin: 0; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 56px 16px;
  background: var(--emerald-deep);
  border-top: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--gold-light);
  letter-spacing: 0.08em;
}
.footer .monogram { width: 64px; margin: 0 auto 16px; }
.footer-names { font: 400 2rem var(--font-display); color: var(--on-dark); letter-spacing: 0; margin-bottom: 4px; }

/* ---------- Load state ---------- */
.load-error { text-align: center; padding: 120px 16px; }
