/* Robin & Shimy — editorial invitation
   Ivory ground, sage ink, champagne rules. Display type is Cormorant Garamond. */

@font-face {
  font-family: "Libre Bodoni";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/libre-bodoni-500.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Bodoni";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/libre-bodoni-500-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-500.woff2") format("woff2");
}

:root {
  --ivory: #f3eee4;
  --paper: #f8f4ec;
  --ink: #1c2620;
  --ink-soft: #3c4942;
  --muted: #4d5c54;
  --sage-deep: #2c3d34;
  --sage-mid: #4e6356;
  --champagne: #c4a36a;
  --champagne-deep: #8d7044;
  --line: rgba(44, 61, 52, 0.16);
  --danger: #8c3a32;
  --display: "Cormorant Garamond", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --nav: 4.4rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav) + 0.6rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% 40%, rgba(196, 163, 106, 0.08), transparent 50%),
    var(--ivory);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.has-boot { opacity: 0; }
body.has-boot.is-ready { opacity: 1; transition: opacity 0.5s ease; }

img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: 0.01em; color: var(--ink); }
.serif { font-family: var(--serif); letter-spacing: -0.02em; }
p { margin: 0 0 0.9rem; }
p:last-child { margin-bottom: 0; }

:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--champagne-deep); outline-offset: 3px; }
::selection { background: #e4d3b0; color: var(--ink); }
[hidden] { display: none !important; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 90;
  background: var(--sage-deep);
  color: var(--ivory);
  padding: 0.6rem 0.8rem;
  text-decoration: none;
}
.skip:focus { top: 0.7rem; }

.noscript {
  width: min(40rem, calc(100% - 2rem));
  margin: 5.5rem auto 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage-mid);
}
.rule { width: 3.25rem; height: 1px; margin: 1.1rem 0 0; border: 0; background: var(--champagne); }
.section { padding: 5.25rem 0; }
.section-head { max-width: 16em; margin-bottom: 2.2rem; }
.section-head h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.9;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .rule { margin-inline: auto; }
.lede { max-width: 62ch; color: var(--ink-soft); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

.crest {
  display: block;
  width: auto;
  height: 7.5rem;
  --crest-ink: #2c3d34;
  --crest-amp: #8d7044;
  --crest-stem: #8d7044;
  --crest-leaf: #4e6356;
}
.crest-sm { height: 3.25rem; }
.crest-chapter { height: 9.25rem; margin: 0 auto 1.05rem; }
.crest-on-dark {
  --crest-ink: #f7f3ea;
  --crest-amp: #e7d3a4;
  --crest-stem: #e7d3a4;
  --crest-leaf: #e4d2aa;
}
.hero .crest { height: 4.35rem; margin: 0 0 0.8rem; }
.footer .crest { height: 8rem; margin: 0 auto 0.35rem; }
img.crest { object-fit: contain; }
.monogram { display: inline-flex; color: var(--sage-deep); }
.monogram-ring {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 5.1rem;
  height: 5.1rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  line-height: 1;
}
.monogram-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  pointer-events: none;
}
.m-letter { position: relative; z-index: 1; font-family: var(--display); font-size: 1.15rem; }
.m-amp {
  position: relative;
  z-index: 1;
  margin: 0.05rem 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--champagne-deep);
}
.monogram-sm .monogram-ring { width: 2.45rem; height: 2.45rem; }
.monogram-sm .m-letter { font-size: 0.68rem; }
.monogram-sm .m-amp { font-size: 0.58rem; margin: 0; }

.link-btn,
.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.35rem;
  border: 1px solid var(--sage-deep);
  background: var(--sage-deep);
  color: var(--ivory);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-btn:hover,
.submit:hover { background: #1c2a23; }
.link-btn.ghost { background: transparent; color: var(--sage-deep); }
.link-btn.ghost:hover { background: var(--sage-deep); color: var(--ivory); }
.submit { width: 100%; }
.submit:disabled { opacity: 0.65; cursor: wait; }
.text-link { color: var(--sage-deep); text-underline-offset: 0.22em; }

/* Header ------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav);
  padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
  color: var(--ink);
  background: linear-gradient(to bottom, rgba(243, 238, 228, 0.72), rgba(243, 238, 228, 0));
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(243, 238, 228, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}
.brand-name { font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-name em { font-style: italic; color: var(--champagne-deep); }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-toggle-lines,
.nav-toggle-lines::before {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: currentColor;
  content: "";
}
.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before { position: absolute; top: -6px; left: 0; }
.nav-panel a {
  color: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-close {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 799px) {
  .brand-name { display: inline; font-size: 1.05rem; }
  .nav-panel {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding: 5.5rem 2rem;
    background: var(--ivory);
    color: var(--ink);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  body.nav-open .nav-panel { visibility: visible; opacity: 1; pointer-events: auto; }
  .nav-panel a {
    font-family: var(--display);
    font-size: clamp(2.3rem, 10vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    padding: 0.25rem 0;
  }
  .nav-panel a[href$="#rsvp"] { border: 0; }
  .nav-close { position: absolute; top: 1rem; right: 1rem; min-height: 44px; }
}

@media (min-width: 800px) {
  .nav-toggle, .nav-close { display: none; }
  .nav-panel { display: flex; align-items: center; gap: 1.5rem; }
  .nav-panel a { padding: 0.45rem 0; }
  .nav-panel a:hover { color: var(--champagne-deep); }
  .nav-panel a[href$="#rsvp"] {
    margin-left: 0.35rem;
    padding: 0.62rem 0.85rem;
    border: 1px solid currentColor;
  }
  .nav-panel a[href$="#rsvp"]:hover { background: var(--sage-deep); color: var(--ivory); border-color: var(--sage-deep); }
  .nav-panel a[aria-current="true"] { color: var(--champagne-deep); }
  .wrap { width: min(1120px, calc(100% - 4.5rem)); }
  .section { padding: 7.5rem 0; }
}

/* Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  height: 100svh;
  max-height: 100svh;
  color: #f6f1e8;
  overflow: clip;
  background: #24352c;
}
.hero-bg {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  object-position: center 48%;
  filter: blur(26px) saturate(0.85);
  transform: scale(1.04);
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.hero-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: var(--nav);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(243, 238, 228, 0.9), rgba(243, 238, 228, 0) 5.2rem);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.15rem 0 max(1.5rem, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(8, 12, 10, 0.88) 0%, rgba(8, 12, 10, 0.72) 55%, rgba(8, 12, 10, 0) 100%);
  animation: rise 1.15s ease both;
}
.hero .kicker {
  display: block;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  color: #e7d3a4;
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 4.6vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(40, 28, 18, 0.72), 0 8px 20px rgba(40, 28, 18, 0.45);
}
.hero h1 {
  margin: 0;
  color: #f7f3ea;
  font-family: "Cormorant Garamond", Palatino, "Palatino Linotype", "Times New Roman", serif;
  font-size: clamp(3.5rem, 15vw, 4.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.hero h1 .line { display: block; line-height: 1.02; }
.hero h1 .amp {
  display: block;
  margin: 0.22em 0 0.16em;
  color: #e4d2aa;
  font-family: "Pinyon Script", cursive;
  font-size: 1.4em;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}
@media (max-width: 899px) {
  .hero-bg { display: none; }
  .hero-frame {
    position: absolute;
    inset: 0;
    margin-top: 0;
  }
  .hero-media {
    object-fit: cover;
    object-position: center 48%;
  }
  .hero-veil {
    background:
      linear-gradient(to bottom, rgba(243, 238, 228, 0.78), rgba(243, 238, 228, 0) 4.8rem),
      linear-gradient(to top, rgba(243, 238, 228, 1) 0%, rgba(243, 238, 228, 0.72) 4%, rgba(243, 238, 228, 0) 9%),
      linear-gradient(to top, rgba(74, 48, 32, 0.72) 0%, rgba(74, 48, 32, 0.5) 14%, rgba(62, 42, 30, 0.22) 30%, rgba(48, 34, 26, 0) 50%);
  }
  .hero-layout { justify-content: stretch; }
  .hero-copy {
    display: flex;
    flex-direction: column;
    width: min(1120px, calc(100% - 2rem));
    height: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    justify-content: safe center;
    padding: calc(var(--nav) + 0.6rem) 0 max(1.15rem, env(safe-area-inset-bottom));
    background: none;
  }
  .hero .kicker {
    display: block;
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: clamp(1.5rem, 4.6vw, 1.7rem);
  }
  .brand .crest-sm { display: none; }
  .countdown { position: relative; z-index: 2; flex-shrink: 0; margin-top: 1.35rem; background: transparent; }
  .count { flex-shrink: 0; }
  .count strong { color: #f7f3ea; }
  .countdown-label { font-size: 0.74rem; font-weight: 500; }
  .count span { font-size: 0.68rem; font-weight: 500; }
  .hero-reply { font-size: 0.76rem; font-weight: 500; }
  .count {
    background: transparent;
    border-top: 1px solid rgba(247, 243, 234, 0.42);
    border-bottom: 1px solid rgba(247, 243, 234, 0.42);
  }
  .count div { background: transparent; }
  .hero .kicker,
  .hero h1 {
    text-shadow: 0 1px 2px rgba(40, 28, 18, 0.35), 0 8px 18px rgba(40, 28, 18, 0.2);
  }
  .countdown-label,
  .count strong,
  .count span,
  .hero-reply {
    text-shadow: 0 1px 2px rgba(48, 30, 18, 0.72), 0 6px 16px rgba(48, 30, 18, 0.5);
  }
}
@media (max-width: 799px) {
  .hero .crest { display: none; }
  .nav .crest-sm { height: 3.7rem; }
}
.hero-reply {
  display: inline-block;
  margin-top: 1.1rem;
  color: #f7f3ea;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 210, 170, 0.85);
  padding-bottom: 0.15rem;
}
.countdown { max-width: 24rem; margin-top: 1.25rem; }
.countdown-label {
  margin: 0 0 0.4rem;
  color: rgba(231, 211, 164, 0.95);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.count {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(247, 243, 234, 0.35);
  border-bottom: 1px solid rgba(247, 243, 234, 0.35);
}
.count div { padding: 0.65rem 0.15rem 0.55rem; text-align: center; }
.count div + div { border-left: 1px solid rgba(247, 243, 234, 0.22); }
.count strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #f7f3ea;
}
.count span {
  display: block;
  margin-top: 0.3rem;
  color: rgba(247, 243, 234, 0.72);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.count-done {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-style: italic;
  color: #f7f3ea;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 900px) {
  .hero-bg { object-position: center 48%; filter: blur(34px) saturate(0.8); }
  .hero-veil {
    background:
      linear-gradient(to bottom, rgba(243, 238, 228, 0.82), rgba(243, 238, 228, 0) 5.4rem),
      linear-gradient(to right, rgba(16, 22, 18, 0.62) 0%, rgba(16, 22, 18, 0.28) 38%, rgba(16, 22, 18, 0.04) 62%);
  }
  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .hero-frame {
    order: 2;
    flex: none;
    height: 100svh;
    width: min(48vw, calc(100svh * 2 / 3));
    margin-top: 0;
  }
  .hero-media { object-fit: contain; object-position: center center; }
  .hero-copy {
    order: 1;
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 6.5rem 6vw 3rem 5vw;
    background: none;
  }
  .hero .kicker {
    font-size: clamp(2.5rem, 2.5vw, 3rem);
    margin-bottom: 1.15rem;
    letter-spacing: 0.16em;
  }
  .hero h1 {
    display: block;
    font-size: clamp(4.6rem, 6.4vw, 8.6rem);
    line-height: 0.96;
  }
  .hero h1 .line { display: block; line-height: 0.96; }
  .hero h1 .amp {
    display: block;
    margin: 0.08em 0 0.04em;
    font-size: 1.4em;
    line-height: 1;
  }
  .countdown { margin-top: 1.65rem; max-width: 32rem; }
  .countdown-label { font-size: 0.9rem; }
  .count strong { font-size: clamp(2.1rem, 2.6vw, 3rem); }
  .count div { padding: 0.9rem 0.2rem 0.75rem; }
}

@media (min-width: 1024px) {
  .brand .crest-sm { display: block; }
  .hero .crest { display: none; }
  .hero-copy { container-type: inline-size; }
  .hero .kicker {
    font-size: clamp(2.2rem, 2.2vw, 2.8rem);
    margin-bottom: 1.25rem;
    letter-spacing: 0.14em;
  }
  .hero h1 {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.16em;
    width: 100%;
    font-size: clamp(3rem, 12.5cqw, 8.5rem);
    line-height: 0.92;
    white-space: nowrap;
  }
  .hero h1 .line,
  .hero h1 .amp { display: inline; line-height: 1; }
  .hero h1 .amp { margin: 0; font-size: 1.4em; }
  .countdown { margin-top: 1.75rem; max-width: 40rem; }
  .countdown-label { font-size: 0.95rem; }
  .count strong { font-size: clamp(2.6rem, 3vw, 3.6rem); }
  .count div { padding: 1.05rem 0.4rem 0.9rem; }
}

/* Chapter + story --------------------------------------------------- */

.chapter {
  padding: 4.5rem 1rem 3.2rem;
  text-align: center;
}
.chapter .crest { margin-inline: auto; }
.chapter-names {
  margin: 0;
  font-family: "Cormorant Garamond", Palatino, "Palatino Linotype", "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  word-spacing: 0.18em;
}
.chapter-names em {
  margin: 0 0.35em;
  font-family: "Pinyon Script", cursive;
  font-style: normal;
  font-size: 1.4em;
  font-weight: 400;
  line-height: 1;
  color: var(--champagne-deep);
}
@media (max-width: 767px) {
  .chapter-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
  }
  .chapter-names em { margin: 0; }
}
.chapter-meta {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.story-photo { margin: 0; }
.story-photo img {
  width: 100%;
  height: min(78vh, 820px);
  object-fit: cover;
  object-position: center 42%;
}
.story-panel {
  width: min(680px, calc(100% - 2rem));
  margin: 2.5rem auto 0;
  padding: 0;
}
.story-panel h2 { margin: 0.35rem 0 0; font-size: clamp(3rem, 7vw, 5rem); line-height: 0.9; }
.story-panel p { max-width: 38em; color: var(--ink-soft); }
.pull {
  margin: 1.6rem 0 0;
  padding: 0;
  border: 0;
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
}
.pull::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  margin-bottom: 0.85rem;
  background: var(--champagne);
}

.journey-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
  margin: 0 0 0.85rem;
}
.journey-filter {
  border: 1px solid rgba(44, 61, 52, 0.18);
  background: transparent;
  color: var(--sage-mid);
  padding: 0.35rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.journey-filter.is-on {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
  color: var(--ivory);
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 46vw;
  grid-auto-flow: dense;
  gap: 7px;
}
.journey-tile {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #e4ddd2;
  cursor: zoom-in;
  grid-column: span var(--pc, 1);
  grid-row: span var(--pr, 1);
}
.journey-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journey-chip {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  max-width: calc(100% - 0.9rem);
  padding: 0.32rem 0.5rem;
  background: rgba(243, 238, 228, 0.92);
  color: var(--sage-deep);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.journey-tile:focus-visible { outline: 2px solid var(--champagne-deep); outline-offset: 2px; }
@media (hover: hover) {
  .journey-tile img { transition: transform 0.6s ease; }
  .journey-tile:hover img { transform: scale(1.045); }
}
@media (min-width: 800px) {
  .journey-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 14vw;
    gap: 8px;
  }
  .journey-tile {
    grid-column: span var(--dc, 1);
    grid-row: span var(--dr, 1);
  }
}
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
  padding: 3.4rem 0.6rem 1.2rem;
  background: rgba(22, 28, 24, 0.94);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; min-width: 0; text-align: center; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100svh - 8.5rem);
  margin-inline: auto;
  object-fit: contain;
}
.lightbox figcaption {
  margin: 0.7rem 0 0;
  color: #e7d3a4;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  border: 0;
  background: none;
  color: #f3eee4;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.lightbox-close { position: absolute; top: 1rem; right: 1rem; }
.lightbox-prev,
.lightbox-next { padding: 1rem 0.35rem; }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 3.5rem 0 0;
  padding: 0 0.45rem;
  list-style: none;
}
.gallery li:nth-child(3),
.gallery li:nth-child(4) { grid-column: 1 / -1; }
.frame { position: relative; overflow: hidden; background: #d5ddd4; }
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.gallery li:nth-child(1) .frame,
.gallery li:nth-child(2) .frame { aspect-ratio: 3 / 4; }
.gallery li:nth-child(3) .frame { aspect-ratio: 4 / 5; }
.gallery li:nth-child(4) .frame { aspect-ratio: 3 / 2; }

@media (min-width: 900px) {
  .chapter { padding: 6rem 1rem 4rem; }
  .story-panel {
    width: min(720px, calc(100% - 4rem));
    margin-top: 3.25rem;
  }
  .gallery {
    grid-template-columns: 1.05fr 0.9fr 0.95fr;
    grid-template-rows: min(46vh, 520px) min(34vh, 380px);
    gap: 0.65rem;
    max-width: 1480px;
    margin: 5rem auto 0;
    padding: 0 0.65rem;
  }
  .gallery li { height: 100%; }
  .gallery li:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .gallery li:nth-child(2) { grid-column: 2; grid-row: 1; }
  .gallery li:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; }
  .gallery li:nth-child(4) { grid-column: 2; grid-row: 2; }
  .gallery .frame,
  .gallery li:nth-child(3) .frame,
  .gallery li:nth-child(4) .frame { aspect-ratio: auto; height: 100%; }
}

/* The day ----------------------------------------------------------- */

.event-cards { display: grid; gap: 0.9rem; margin: 0 0 2.4rem; }
.event-card { border: 1px solid var(--sage-deep); padding: 0.45rem; background: rgba(251, 248, 243, 0.72); }
.event-card-inner { height: 100%; padding: 1.35rem 1.15rem 1.2rem; border: 1px solid rgba(196, 163, 106, 0.9); }
.event-card h3 {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.event-time {
  margin: 0.85rem 0 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
}
.event-place { margin: 0.25rem 0 0; letter-spacing: 0.01em; }
.event-line { margin: 0.85rem 0 0; color: var(--ink-soft); }
.event-map-link { display: inline-block; margin-top: 0.95rem; }
.event-map {
  height: 168px;
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: #e4ebe3;
}
.event-map iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 800px) {
  .event-cards { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
}
.day-layout { display: grid; gap: 2rem; align-items: start; }
.map-block .kicker { margin-bottom: 0.55rem; }
.timeline { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 2.1rem 1.6rem;
  border-left: 1px solid rgba(196, 163, 106, 0.85);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  border: 1px solid var(--champagne-deep);
  border-radius: 50%;
  background: var(--ivory);
}
.timeline time {
  display: block;
  color: var(--champagne-deep);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.timeline h3 {
  margin: 0.25rem 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.timeline p { max-width: 42ch; color: var(--ink-soft); }
.map-frame {
  height: 320px;
  border: 1px solid var(--line);
  background: #e4ebe3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-address { margin: 0.8rem 0 0.35rem; font-style: normal; line-height: 1.55; }
.map-actions { margin: 0.35rem 0 0; }
.print-only { display: none; }

@media (min-width: 940px) {
  .day-layout { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
  .map-frame { height: 460px; }
}

/* Travel ------------------------------------------------------------ */

.stay-intro { margin: 0 0 1.6rem; }
#stay-card { display: grid; gap: 0.9rem; }
#stay-card .text-link { display: inline-block; margin-top: 1.05rem; }
#stay-card .stay-note {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.35;
}
@media (min-width: 860px) {
  #stay-card { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: stretch; }
}

.visa-section { padding: 0; }
.visa-panel { padding: 4rem 0; background: var(--sage-deep); color: var(--ivory); }
.visa-panel h2 { color: var(--ivory); }
.visa-panel .kicker { color: #e7d3a4; }
.visa-panel .rule { background: #e7d3a4; }
.visa-panel a { color: #e7d3a4; }
.visa-panel p { color: rgba(243, 238, 228, 0.9); }
.visa-link-line { margin-top: 1.1rem; overflow-wrap: anywhere; }
.visa-grid { display: grid; gap: 1.2rem; }

.rsvp-grid { display: grid; gap: 2rem; }
.deadline {
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-style: italic;
}
.rsvp-sheet {
  border: 1px solid var(--sage-deep);
  padding: 0.5rem;
  background: rgba(248, 244, 236, 0.55);
}
.rsvp-sheet form,
.rsvp-sheet .thanks-card { border: 1px solid rgba(196, 163, 106, 0.9); padding: 1.4rem 1.15rem 1.2rem; background: rgba(251, 248, 243, 0.72); }
.rsvp-sheet .thanks-card { padding: 0.45rem; background: transparent; border: 0; }

.registry { max-width: 34rem; margin: 0 auto; text-align: center; }
.honeymoon-cards { max-width: 46rem; }
.honeymoon-label {
  margin: 1.05rem 0 0;
  color: var(--sage-mid);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.honeymoon-value {
  margin: 0.35rem 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  margin-top: 1.1rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--champagne);
  color: var(--champagne-deep);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--champagne-deep);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p,
.faq-answer > p { max-width: 62ch; margin: 0 0 1.15rem; color: var(--ink-soft); }
.faq details a { color: var(--champagne-deep); }
.faq-contacts { list-style: none; margin: 0.15rem 0 1.2rem; padding: 0; }
.faq-contacts li { margin: 0 0 1rem; }
.faq-who {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.faq-role,
.faq-phone {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.faq-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin-top: 0.4rem; }
.faq-links a { font-size: 0.95rem; }

@media (min-width: 800px) {
  .visa-panel { padding: 5.5rem 0; }
  .visa-grid { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: start; }
  .rsvp-grid { grid-template-columns: 0.78fr 1.22fr; gap: 4rem; align-items: start; }
  .submit { width: auto; min-width: 14rem; }
}

/* Form -------------------------------------------------------------- */

.hp {
  position: absolute !important;
  left: -10000px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
fieldset { min-inline-size: 0; margin: 0 0 1.2rem; padding: 0; border: 0; }
.field { margin-bottom: 1.2rem; }
.field label,
legend,
.meal-legend {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--sage-mid);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.req { color: var(--champagne-deep); }
.hint { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.05rem;
  border: 0;
  border-bottom: 1px solid rgba(44, 61, 52, 0.35);
  border-radius: 0;
  background: transparent;
  font-size: max(16px, 1rem);
}
.field textarea {
  min-height: 7.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(44, 61, 52, 0.28);
  resize: vertical;
}
.field select {
  padding-right: 1.6rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sage-deep) 50%),
    linear-gradient(135deg, var(--sage-deep) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  appearance: none;
}
.party-count {
  margin: 0.2rem 0 0.8rem;
  color: var(--sage-mid);
  font-size: 0.92rem;
}
.party-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: end;
}
.party-row .field { margin-bottom: 0.7rem; }
.party-remove,
.party-add {
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--sage-deep);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.party-add { margin-top: 0.2rem; }
.party-remove { margin-bottom: 0.7rem; }
.party-add:hover,
.party-remove:hover { border-color: var(--sage-deep); }
.choices { display: grid; gap: 0.55rem; }
.choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  cursor: pointer;
}
.choice input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--sage-deep); }
.choice:has(input:checked) { border-color: var(--sage-deep); background: rgba(228, 234, 223, 0.65); }
.choice:has(input:focus-visible) { outline: 2px solid var(--champagne-deep); outline-offset: 3px; }
.choice input:focus-visible { outline: none; }
fieldset:disabled { opacity: 0.55; }
.error { margin: 0.35rem 0 0; color: var(--danger); font-size: 0.9rem; }
.error:empty { display: none; }
.form-status { margin: 0 0 0.8rem; color: var(--danger); }
.form-status:empty { display: none; }
.has-error input,
.has-error select,
.has-error textarea,
.has-error .choice { border-color: var(--danger); }
.privacy { max-width: 52ch; margin: 0.9rem 0 0; color: var(--muted); font-size: 0.92rem; }
.form-row { display: grid; gap: 0 1rem; }
.thanks-inner { padding: 2rem 1.1rem 1.5rem; text-align: center; }
.thanks-inner h2,
.solo h1 {
  margin: 0.35rem 0 0.8rem;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.thanks-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.3rem; }
.local-note { margin-top: 1rem; color: var(--muted); font-size: 0.92rem; }

@media (min-width: 700px) {
  .choices { grid-template-columns: 1fr 1fr; }
  .form-row.two { grid-template-columns: 1fr 1fr; }
}

/* Footer and quiet pages -------------------------------------------- */

.footer {
  padding: 4.5rem 1.25rem max(2.6rem, env(safe-area-inset-bottom));
  background: #24352c;
  color: var(--ivory);
  text-align: center;
}
.dress-grid { display: grid; gap: 0.9rem; }
.dress-grid .event-card h3 {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 0.55rem;
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}
.swatches li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.swatch {
  width: min(5.6rem, 78%);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(90, 68, 40, 0.14),
    0 10px 18px rgba(44, 38, 28, 0.05);
  background:
    radial-gradient(ellipse 46% 34% at 30% 22%, rgba(255, 255, 255, 0.72), transparent 58%),
    linear-gradient(122deg, transparent 38%, rgba(255, 255, 255, 0.38) 49%, transparent 60%),
    radial-gradient(ellipse 78% 58% at 76% 84%, rgba(62, 40, 22, 0.18), transparent 64%),
    linear-gradient(158deg, var(--hi) 0%, var(--mid) 42%, var(--lo) 56%, var(--mid) 100%);
}
.swatches li:nth-child(3n) .swatch {
  background:
    radial-gradient(ellipse 40% 30% at 68% 28%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(64deg, transparent 34%, rgba(255, 255, 255, 0.32) 47%, transparent 58%),
    radial-gradient(ellipse 70% 50% at 24% 80%, rgba(62, 40, 22, 0.16), transparent 62%),
    linear-gradient(210deg, var(--hi), var(--mid) 48%, var(--lo) 62%, var(--mid));
}
.s-offwhite { --hi: #f7efdc; --mid: #e2d6be; --lo: #d8c8ae; }
.s-gold { --hi: #e8c993; --mid: #d2a256; --lo: #bf9048; }
.s-eucalyptus { --hi: #d5dcc4; --mid: #9aa588; --lo: #7d886c; }
.s-sage { --hi: #c5ccb0; --mid: #8d9776; --lo: #6d775c; }
.s-muted { --hi: #e4e6d4; --mid: #c3c6aa; --lo: #a4a78e; }
.s-ivory { --hi: #fbf7f0; --mid: #efe6d6; --lo: #ddd0bc; }
.s-champagne { --hi: #f0d7a8; --mid: #c9a15f; --lo: #a07c3d; }
.s-chocolate { --hi: #a56b4c; --mid: #6b4430; --lo: #4a2c1c; }
.s-mocha { --hi: #e4cbb4; --mid: #b99578; --lo: #8f7158; }
.s-softchoc { --hi: #d4b8a6; --mid: #a88874; --lo: #7d6556; }
.s-taupe { --hi: #e4d5c8; --mid: #c4ae9f; --lo: #a08c7e; }
.swatches-two { grid-template-columns: repeat(2, minmax(0, 7.5rem)); justify-content: start; }
@media (min-width: 900px) {
  .dress-grid { grid-template-columns: 0.72fr 1.28fr; gap: 1.1rem; align-items: start; }
  .dress-grid .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatches-two { grid-template-columns: repeat(2, minmax(0, 7.5rem)); }
  .swatch { width: min(4.8rem, 100%); }
}
.footer .monogram { color: var(--ivory); }
.footer .m-amp { color: #e7d3a4; }
.footer-names {
  margin: 1rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  word-spacing: 0.16em;
  color: var(--ivory);
}
.footer-names em { font-style: italic; color: #e7d3a4; }
.footer-meta { margin: 0.45rem 0 0; color: rgba(243, 238, 228, 0.78); }
.hashtag {
  margin: 1.35rem 0 0;
  color: #e7d3a4;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.2rem; margin-top: 1.7rem; }
.footer-nav a {
  color: var(--ivory);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}
.footer-nav a:hover { color: #e7d3a4; }

.solo { display: grid; flex: 1; place-items: center; padding: 3rem 1rem; }
.solo-card { width: min(38rem, 100%); }
.page-quiet { display: flex; flex-direction: column; min-height: 100svh; }
.page-quiet .nav { position: sticky; background: rgba(243, 238, 228, 0.94); }




/* Wedding party ----------------------------------------------------- */
.page-party .nav {
  position: sticky;
  background: rgba(243, 238, 228, 0.94);
  border-bottom-color: var(--line);
}
.page-party .section-head h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.9;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.party-group { margin-top: 3.4rem; }
.party-group:first-child { margin-top: 0.4rem; }
.party-group .section-head { max-width: none; margin-bottom: 1.6rem; }
.party-group .section-head h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.05rem, 4.6vw, 3.05rem);
  line-height: 0.95;
}
.party-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 1.6rem 0.9rem;
}
.party-card { text-align: center; min-width: 0; }
.party-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  max-width: 16rem;
  border-radius: 50% 50% 16% 16% / 40% 40% 12% 12%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 28%, #fbf7f0 0%, #f3eee4 46%, #e4e6d4 100%);
  border: 1px solid rgba(196, 163, 106, 0.58);
  box-shadow: inset 0 0 0 5px rgba(243, 238, 228, 0.72);
}
.party-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.party-photo--placeholder {
  display: grid;
  place-items: center;
}
.party-mark {
  width: 46%;
  height: auto;
  max-height: 58%;
  color: var(--sage-mid);
  opacity: 0.8;
}
.party-role {
  margin: 0.9rem 0 0;
  text-align: center;
  color: var(--champagne-deep);
}
.party-name {
  margin: 0.15rem 0 0;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--sage-deep);
  line-height: 1.2;
}
.party-name.is-pending {
  font-style: italic;
  color: var(--sage-mid);
}
@media (min-width: 800px) {
  .party-grid {
    grid-template-columns: repeat(4, minmax(0, 14.5rem));
    gap: 2rem 1.35rem;
    justify-content: center;
  }
  .party-group { margin-top: 4.2rem; }
}
@media (max-width: 599px) {
  .party-grid { gap: 1.35rem 0.7rem; }
  .party-photo { box-shadow: inset 0 0 0 4px rgba(243, 238, 228, 0.72); }
}

/* Scripture band ---------------------------------------------------- */
.verse-band {
  padding: 1.55rem 0 1.7rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.verse-band-inner { max-width: 40rem; }
.verse-rule { margin: 0 auto 1.05rem; }
.verse-text {
  margin: 0 auto;
  max-width: 38rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.28rem, 2.6vw, 1.72rem);
  line-height: 1.48;
  color: var(--sage-deep);
  letter-spacing: -0.01em;
}
.verse-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.4rem 0.85rem;
  margin: 0.85rem 0 0;
}
.verse-ref {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}
.verse-tr {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-mid);
}
.verse-text,
.verse-meta { transition: opacity 0.45s ease; }
.verse-band.is-fading .verse-text,
.verse-band.is-fading .verse-meta { opacity: 0; }
/* Verse band: deep green, matching the visa panel */
.verse-band { background: var(--sage-deep); border-top: 0; border-bottom: 0; }
.verse-band .verse-text { color: var(--ivory); }
.verse-band .verse-ref { color: #e7d3a4; }
.verse-band .verse-tr { color: rgba(243, 238, 228, 0.7); }
.verse-band .verse-rule { background: #e7d3a4; }
@media (max-width: 599px) {
  .verse-band { padding: 1.3rem 0 1.45rem; }
  .verse-text { font-size: 1.22rem; }
}

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

@media print {
  .nav, .countdown, .map-frame, .rsvp-form-wrap, .footer-nav, .hero-reply { display: none !important; }
  body, body.has-boot, .reveal { opacity: 1 !important; transform: none !important; background: white; }
  .hero { min-height: 0; color: black; }
  .hero-media, .hero-bg, .hero-veil { display: none; }
  .footer { background: white; color: black; }
  .print-only { display: block; }
}


/* The Proposal ------------------------------------------------------ */
.proposal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.proposal-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #e4ddd2;
  cursor: zoom-in;
  aspect-ratio: 2 / 3;
}
.proposal-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proposal-tile:focus-visible { outline: 2px solid var(--champagne-deep); outline-offset: 2px; }
@media (hover: hover) {
  .proposal-tile img { transition: transform 0.6s ease; }
  .proposal-tile:hover img { transform: scale(1.045); }
}
@media (min-width: 800px) {
  .proposal-grid { gap: 0.75rem; }
}
@media (min-width: 720px) {
  .proposal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 519px) {
  .proposal-grid { grid-template-columns: 1fr; }
}
body.proposal-lightbox-open { overflow: hidden; }
.proposal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
  padding: 3.4rem 0.6rem 1.2rem;
  background: rgba(22, 28, 24, 0.94);
}
.proposal-lightbox[hidden] { display: none !important; }
.proposal-lightbox-figure { margin: 0; min-width: 0; text-align: center; }
.proposal-lightbox img {
  max-width: 100%;
  max-height: calc(100svh - 8.5rem);
  margin-inline: auto;
  object-fit: contain;
}
.proposal-lightbox-close,
.proposal-lightbox-prev,
.proposal-lightbox-next {
  border: 0;
  background: none;
  color: #f3eee4;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.proposal-lightbox-close { position: absolute; top: 1rem; right: 1rem; }
.proposal-lightbox-prev,
.proposal-lightbox-next { padding: 1rem 0.35rem; }


/* Music toggle ------------------------------------------------------ */
.music-player {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.music-label {
  max-width: 14rem;
  padding: 0.25rem 0.15rem 0.25rem 0;
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music-label[hidden] { display: none !important; }
.music-toggle {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--champagne);
  box-shadow: 0 4px 16px rgba(44, 61, 52, 0.28);
  cursor: pointer;
}
.music-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.music-toggle:focus-visible { outline: 2px solid var(--champagne-deep); outline-offset: 3px; }
.music-toggle.is-playing::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--champagne);
  animation: music-pulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes music-pulse {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.38); }
}
.music-skip {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--champagne-deep);
  cursor: pointer;
}
.music-player.is-playing .music-skip:not([hidden]) { display: inline-flex; }
.music-skip svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.music-skip:focus-visible { outline: 2px solid var(--champagne-deep); outline-offset: 2px; }
