/* Layout: an invitation card on a stone ground, then two-column sections (title left, content right) like a stationery details card.
   Single light look on purpose: printed paper and ink. */
:root {
  --stone: #ece8e2;   /* ground behind the invitation */
  --paper: #f8f6f2;   /* page */
  --card: #fdfcfa;    /* invitation card */
  --ink: #241b1d;     /* text */
  --muted: #776c69;
  --wine: #6e2a37;    /* accent */
  --rule: #ddd5cf;
  --on-wine: #f7efe9;
  --night: #1b1214;   /* opening ground */
  --night-2: #2b1b1f;
  --on-night: #f4eae3;
  --blush: #e7b48c;   /* apricot */
  --gold: #d3b787;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .35 0 0 0 .9 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "EB Garamond", "Garamond", "Iowan Old Style", Georgia, serif;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --nav-h: 64px;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}
.prose p, .faq details p, .row p, .milestones p { font-variant-numeric: oldstyle-nums; hanging-punctuation: first; }

h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 1.5px solid var(--wine); outline-offset: 4px; }

/* Small caps label, the stationery workhorse */
.sc {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.14em;
  font-size: 1.05em;
}

.text-link {
  color: var(--wine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--wine) 35%, transparent);
}
.text-link:hover { text-decoration-color: var(--wine); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.9rem 0.8rem;
  font-family: var(--text);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.16em;
  font-size: 1.15rem;
  text-decoration: none;
  border: 1px solid var(--wine);
  color: var(--wine);
  transition: background .2s, color .2s;
}
.btn-solid { background: var(--wine); color: var(--on-wine); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn-light { border-color: var(--on-wine); color: var(--on-wine); }
.btn-light:hover { background: var(--on-wine); color: var(--wine); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: space-between;
  color: var(--on-night);
  transition: background .3s, box-shadow .3s, color .3s;
}
.nav.scrolled { background: var(--paper); box-shadow: 0 1px 0 var(--rule); color: var(--ink); }

.monogram {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}
.monogram i { font-style: italic; color: var(--blush); padding: 0 0.12em; transition: color .3s; }
.nav.scrolled .monogram i { color: var(--wine); }

.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.92;
}
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-links .nav-rsvp { border-bottom: 1px solid currentColor; opacity: 1; }
.nav.scrolled .nav-rsvp { color: var(--wine); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-family: var(--text); font-size: 1.05rem; color: inherit;
  font-variant-caps: all-small-caps; letter-spacing: 0.14em;
}

/* ---------- Opening ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(640px, 100svh, 1100px);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--on-night);
  background: radial-gradient(120% 95% at 50% 42%, var(--night-2), var(--night) 72%);
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 24px);
  padding-bottom: 110px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
#hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
#hero-leaves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.nav:not(.scrolled) { text-shadow: 0 1px 10px rgba(27, 18, 20, 0.85); }
/* a pool of shadow behind the names keeps them clear of the flowers */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 44% 34% at 50% 50%, rgba(27, 18, 20, 0.9), rgba(27, 18, 20, 0) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: 0.35; mix-blend-mode: soft-light;
}
.hero-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; max-width: 62rem; }
.hero-kicker { color: var(--blush); font-size: 1.15rem; letter-spacing: 0.32em; display: flex; align-items: center; gap: 1.1rem; }
.hero-kicker .rule { width: 56px; height: 1px; background: currentColor; opacity: 0.55; }

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-kicker { animation-delay: 0.1s; }
  .hero-names { animation: rise 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both, settle 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
  .hero-meta { animation-delay: 0.55s; }
  .hero-count { animation-delay: 0.7s; }
  .hero-content .btn { animation-delay: 0.85s; }
  .hero-kicker .rule { animation: draw 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }
}
@keyframes rise { from { opacity: 0.2; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { letter-spacing: 0.03em; } to { letter-spacing: -0.015em; } }
@keyframes draw { from { transform: scaleX(0.15); } to { transform: none; } }
.hero-names {
  display: flex; align-items: baseline; justify-content: center; gap: 0.16em;
  font-size: clamp(3.6rem, 10.5vw, 9.25rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--on-night);
}
.hero-names .amp { font-style: italic; color: var(--blush); font-size: 0.6em; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem 0.8rem;
  font-size: 1.35rem; font-style: italic;
  color: var(--on-night); opacity: 0.88;
}
.hero-meta .dot { color: var(--gold); font-style: normal; }
.hero-count { color: var(--gold); font-variant-numeric: lining-nums tabular-nums; margin-top: 0.4rem; }
.btn-ghost { border-color: rgba(244, 234, 227, 0.5); color: var(--on-night); padding-inline: 2.6rem; }
.btn-ghost:hover { background: var(--on-night); color: var(--night); border-color: var(--on-night); }

.scroll-cue {
  position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  width: 1px; height: 64px; overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%;
  background: linear-gradient(transparent, var(--gold));
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Invitation card ---------- */
.invitation {
  position: relative;
  isolation: isolate;
  background: var(--stone);
  padding-block: 104px 136px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  display: flex; justify-content: center;
}
.invitation::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: 0.22; mix-blend-mode: multiply;
}
.invite {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: var(--card);
  border: 1px solid var(--rule);
  outline: 1px solid var(--rule);
  outline-offset: -14px;
  padding: clamp(3rem, 8vw, 4.75rem) clamp(1.75rem, 7vw, 4rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
  box-shadow: 0 1px 2px rgba(36, 27, 29, 0.05), 0 30px 60px -40px rgba(36, 27, 29, 0.35);
}
.invite .sc { color: var(--muted); }
.names {
  display: flex; flex-direction: column; align-items: center;
  font-size: clamp(3.4rem, 11vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.names .amp {
  font-style: italic;
  color: var(--wine);
  font-size: 0.55em;
  line-height: 1.1;
  margin: 0.05em 0;
}
.request { font-style: italic; color: var(--muted); font-size: 1.1rem; line-height: 1.55; }
.when { font-size: 1.15rem; line-height: 1.6; }
.where { line-height: 1.6; }
.where .sc { font-size: 1.15rem; }
.follow { font-style: italic; color: var(--muted); }

.card-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.invite > :not(.card-art):not(.seal) { position: relative; z-index: 1; }

/* Wax seal pressed over the bottom edge of the card */
.seal {
  position: absolute; left: 50%; bottom: -46px; z-index: 2;
  width: 92px; height: 92px; margin-left: -46px;
  border-radius: 49% 51% 47% 53% / 52% 48% 52% 48%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.22), transparent 38%),
    radial-gradient(circle at 50% 50%, #8a3243 0%, #6e2a37 52%, #4b1923 100%);
  box-shadow:
    0 3px 6px rgba(36, 27, 29, 0.28),
    0 12px 24px -10px rgba(36, 27, 29, 0.45),
    inset 0 -3px 6px rgba(0, 0, 0, 0.25),
    inset 0 2px 3px rgba(255, 255, 255, 0.18);
  display: grid; place-items: center;
}
.seal::before {
  content: ""; position: absolute; inset: 11px; border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.14);
}
.seal span {
  font-family: var(--display); font-style: italic; font-size: 1.45rem; letter-spacing: 0.02em;
  color: #5a1e2a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22), 0 -1px 0 rgba(0, 0, 0, 0.35);
}

/* ---------- Sections ---------- */
.section { padding-block: 88px 0; }
.section:last-of-type { padding-bottom: 96px; }
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
}
.wrap > h2 {
  font-style: italic;
  font-size: clamp(2.1rem, 4.5vw, 2.8rem);
  line-height: 1.1;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ink);
  align-self: start;
}
.body {
  min-width: 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  max-width: 38rem;
}

.prose { display: flex; flex-direction: column; gap: 1.1rem; }
.dropcap::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.1em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--wine);
}
.signature { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--wine); margin-top: 0.4rem; }

.milestones {
  list-style: none; margin: 1.6rem 0 0; padding: 1.75rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem;
}
.milestones li { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.milestones .year {
  font-family: var(--display); font-size: 2.5rem; line-height: 1;
  color: var(--wine); font-variant-numeric: lining-nums; margin-bottom: 0.35rem;
}
.milestones h3 { font-family: var(--text); font-weight: 500; font-size: 1.2rem; margin: 0; }
.milestones p { color: var(--muted); }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
  .shot, .shot:nth-child(5n + 2), .shot:nth-child(5n + 5) { grid-column: span 1; grid-row: span 1; }
  .shot:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
  .shot:nth-child(5n + 2) { grid-row: span 2; }
  .shot:nth-child(5n + 5) { grid-column: span 2; }
  .lightbox { grid-template-columns: minmax(0, 1fr); }
  .lightbox .lb-prev, .lightbox .lb-next { display: none; }
}
@media (max-width: 560px) { .milestones { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; } }

.date-line { color: var(--muted); margin-bottom: 0.5rem; }

/* Rows: time or label on the left, detail on the right */
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.row:last-child { border-bottom: 0; }
.row > :first-child { color: var(--wine); padding-top: 0.15rem; font-variant-numeric: lining-nums tabular-nums; }
.row dd { margin: 0; }
.row dd, .row > div { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.row-title { font-size: 1.3rem; line-height: 1.3; }
.row .place { font-style: italic; }
.row .muted, .muted { color: var(--muted); }

.note {
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
  background: var(--stone);
  display: flex; flex-direction: column; gap: 0.2rem;
}
.note .sc { color: var(--wine); }

.registry {
  list-style: none; margin: 0.4rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem;
}
.registry a { font-variant-caps: all-small-caps; letter-spacing: 0.14em; font-size: 1.15rem; }

/* RSVP: the one dark band */
.rsvp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 96px;
  background: var(--wine);
  color: var(--on-wine);
  padding-block: 96px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  text-align: center;
}
#rsvp-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.rsvp-inner { max-width: 36rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.rsvp-inner > .sc { opacity: 0.75; }
.rsvp h2 { font-style: italic; font-size: clamp(3rem, 9vw, 4.75rem); line-height: 1; }
.rsvp .btn { margin-top: 0.6rem; }
.rsvp .small { font-size: 1rem; opacity: 0.85; margin-top: 0.6rem; }
.email { user-select: all; border-bottom: 1px solid color-mix(in srgb, var(--on-wine) 40%, transparent); }

/* Reply card: printed response card set on the wine band */
.reply-card {
  width: 100%;
  max-width: 34rem;
  margin-top: 1.4rem;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--rule);
  outline: 1px solid var(--rule);
  outline-offset: -10px;
  padding: clamp(2rem, 6vw, 2.75rem) clamp(1.5rem, 6vw, 2.75rem);
  display: flex; flex-direction: column; gap: 1.3rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.reply-head { text-align: center; color: var(--wine); opacity: 1 !important; }
.field { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.field .sc, .choice legend { color: var(--muted); font-size: 0.95rem; opacity: 1 !important; }
.field input, .field textarea {
  font: inherit; font-size: 1.15rem; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  padding: 0.35rem 0 0.4rem;
  width: 100%;
  resize: vertical;
  transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.6; font-style: italic; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--wine); }
.choice { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.choice legend { padding: 0; margin-bottom: 0.4rem; }
.option { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; font-size: 1.2rem; font-style: italic; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option .box {
  flex: none; width: 18px; height: 18px; border: 1px solid var(--ink);
  display: grid; place-items: center;
}
.option .box::after {
  content: ""; width: 10px; height: 10px; background: var(--wine);
  transform: scale(0); transition: transform .18s ease;
}
.option input:checked + .box::after { transform: scale(1); }
.option input:focus-visible + .box { outline: 1.5px solid var(--wine); outline-offset: 3px; }
.if-yes { display: flex; flex-direction: column; gap: 1.3rem; }
.if-yes[hidden] { display: none; }
.field-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; }
.stepper { display: flex; align-items: center; border: 1px solid var(--rule); }
.stepper button {
  font: inherit; font-size: 1.2rem; line-height: 1; color: var(--wine);
  background: none; border: 0; width: 2.4rem; height: 2.4rem; cursor: pointer;
}
.stepper button:hover { background: var(--stone); }
.stepper output { min-width: 2rem; text-align: center; font-size: 1.15rem; font-variant-numeric: lining-nums tabular-nums; }
.form-msg { color: var(--wine); font-style: italic; }
.reply-card .btn { align-self: center; margin-top: 0.4rem; }
.reply-card .btn:disabled { opacity: 0.6; cursor: wait; }
.reply-done { text-align: center; align-items: center; }
.done-title { font-family: var(--display); font-style: italic; font-size: 1.7rem; line-height: 1.25; text-wrap: balance; }
.done-body { color: var(--muted); }
.link-button {
  font: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--wine); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}

/* Owner-only list of replies */
.responses { max-width: 40rem; }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; text-align: center; border-block: 1px solid var(--rule); padding-block: 1rem; }
.tally strong { display: block; font-family: var(--display); font-weight: 400; font-size: 2.2rem; line-height: 1.1; color: var(--wine); font-variant-numeric: lining-nums tabular-nums; }
.tally .sc { color: var(--muted); font-size: 0.85rem; }
.reply-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.reply-list li { padding-block: 0.9rem; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.2rem; }
.reply-list li:last-child { border-bottom: 0; }
.reply-list .empty { color: var(--muted); font-style: italic; text-align: center; }
.reply-name { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 1.2rem; }
.reply-detail { color: var(--muted); font-size: 1rem; overflow-wrap: anywhere; }
.reply-detail .sc { color: var(--ink); font-size: 0.85rem; }
.pill { flex: none; font-variant-caps: all-small-caps; letter-spacing: 0.1em; font-size: 0.95rem; padding: 0.05rem 0.6rem; border: 1px solid currentColor; }
.pill.yes { color: #4f6a45; }
.pill.no { color: var(--muted); }

/* Moments gallery */
.gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(110px, 13vw, 180px);
  gap: 14px;
  margin-top: 1.5rem;
}
.shot { position: relative; margin: 0; overflow: hidden; grid-column: span 2; grid-row: span 2; background: var(--stone); }
.shot:nth-child(5n + 1) { grid-row: span 3; }
.shot:nth-child(5n + 2) { grid-column: span 4; }
.shot:nth-child(5n + 5) { grid-row: span 1; }
.shot button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.shot button:focus-visible { outline: 2px solid var(--wine); outline-offset: -6px; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.shot:hover img { transform: scale(1.035); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem 0.8rem;
  color: var(--on-night); font-size: 0.95rem;
  background: linear-gradient(transparent, rgba(27, 18, 20, 0.6));
  pointer-events: none;
}
.shot.placeholder { background: var(--card); border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: -8px; }
.shot.placeholder figcaption { background: none; color: var(--muted); text-align: center; }
.ph-art { position: absolute; inset: 0; width: 100%; height: 100%; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 13, 15, 0.94);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  padding: calc(56px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; min-width: 0; }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox figcaption { color: var(--on-night); font-style: italic; }
.lightbox button {
  font: inherit; color: var(--on-night); background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; padding: 0.5rem;
}
.lightbox .lb-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  font-size: 1.05rem; font-variant-caps: all-small-caps; letter-spacing: 0.14em;
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child summary { padding-top: 0; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 2.25rem 1.1rem 0; position: relative;
  font-size: 1.25rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 13px; height: 1px; background: var(--wine);
  transition: transform .2s;
}
.faq details:first-child summary::before, .faq details:first-child summary::after { top: calc(50% - 0.55rem); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; }

/* Footer */
.footer {
  text-align: center;
  padding-block: 64px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  background: var(--stone);
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
}
#footer-art { width: min(280px, 80%); height: 70px; }
.footer-line { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--ink); text-wrap: balance; }
.footer .monogram { font-size: 2.2rem; color: var(--ink); margin-top: 0.6rem; }
.footer .monogram i { color: var(--wine); }
.footer .sc { color: var(--muted); }

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

/* ---------- Narrow screens ---------- */
@media (max-width: 980px) {
  .nav { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; left: 0; right: 0;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
    flex-direction: column; gap: 0;
    background: var(--paper);
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 420px; border-bottom: 1px solid var(--rule); }
  .nav-links a { padding: 0.8rem; width: 100%; text-align: center; color: var(--ink); }
  .nav-links .nav-rsvp { border-bottom: 0; color: var(--wine); }
  .nav:has(.nav-links.open) { background: var(--paper); box-shadow: 0 1px 0 var(--rule); color: var(--ink); }
}

@media (max-width: 640px) {
  .hero-names { flex-direction: column; align-items: center; gap: 0; font-size: clamp(4rem, 21vw, 6rem); line-height: 1; }
  .hero-names .amp { line-height: 1.15; }
  .hero-kicker { font-size: 1rem; letter-spacing: 0.26em; }
  .hero-meta { font-size: 1.2rem; flex-direction: column; }
  .hero-meta .dot { display: none; }
}

@media (max-width: 720px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .wrap > h2 { border-top: 1px solid var(--ink); }
  .body { border-top: 0; padding-top: 1.25rem; }
  .section { padding-top: 64px; }
  .rsvp { margin-top: 72px; padding-block: 72px 170px; }
  .row { grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; }
  .invite { gap: 1.35rem; }
  .invite .sc { letter-spacing: 0.08em; font-size: 0.95em; }
}
