/* ============================================================
   Amelia & James — Save the Date flyer · v2 (richer)
   Design system: warm ivory paper · deep ink · champagne gold · blush
   Fonts: Cormorant Garamond (display serif) + Jost (sans)
   ============================================================ */

:root {
  --ink: #221b14;
  --ink-soft: #4c4236;
  --ivory: #f5efe3;
  --paper: #fbf7ee;
  --champagne: #c9a76b;
  --champagne-deep: #a57f45;
  --champagne-light: #e6ce97;
  --rose: #c98e7c;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-card: cubic-bezier(0.65, 0, 0.35, 1);
  --maxw: 1120px;
  --gold: linear-gradient(105deg, #e6ce97 0%, #c9a76b 32%, #f3e2b6 50%, #a57f45 68%, #e6ce97 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* anchors clear the sticky section nav */
[id] { scroll-margin-top: 84px; }

img { display: block; max-width: 100%; }

a { color: inherit; }

::selection { background: var(--champagne); color: var(--ink); }

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- gold foil text (shimmering gradient) ---------- */
.gold-text {
  background: var(--gold);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.js:not(.no-motion) .gold-text { animation: goldflow 12s linear infinite; }
@keyframes goldflow { to { background-position: 220% 0; } }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  text-align: center;
}

/* eyebrow flanked by gold hairlines */
.eyebrow--lines { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.eyebrow--lines::before,
.eyebrow--lines::after {
  content: "";
  height: 1px;
  width: clamp(34px, 6vw, 64px);
  background: linear-gradient(90deg, transparent, var(--champagne));
}
.eyebrow--lines::after { background: linear-gradient(90deg, var(--champagne), transparent); }

.section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 5vw, 2.5rem);
}

.section__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  text-align: center;
  margin: 0.9rem 0 clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.01em;
}

.section__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--champagne-deep);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ivory);
  overflow: hidden;
}

/* giant watermark monogram behind the hero copy */
.hero::before {
  content: "A & J";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(16rem, 48vw, 34rem);
  letter-spacing: 0.06em;
  color: rgba(245, 239, 227, 0.045);
  pointer-events: none;
  user-select: none;
}

/* the cover photograph is a real <button>: tapping anywhere on the hero
   opens the photo full-size with zoom in the lightbox (see main.js). */
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(160deg, #3a2f24, #181310 70%);
  cursor: zoom-in;
}
.hero__photo:focus-visible { outline: 2px solid var(--champagne-light); outline-offset: -2px; }
.hero__shade { pointer-events: none; }
.hero::before { pointer-events: none; }
.hero__content { pointer-events: none; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
/* The engine swaps .hero__img for a responsive <picture class="hero__img cover">
   (render_asset.php) when the host sets the Cover Photo morph. Fill the hero
   the same way the shipped <img> did; the inner <img> carries the real photo. */
.hero__photo .hero__img.cover,
.hero__photo .hero__img.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* quiet “View photo” hint — appears on hover (desktop) and is always
   softly visible on touch screens where there is no hover */
.hero__photo-chip {
  position: absolute;
  top: clamp(5.5rem, 15vh, 9rem);
  right: clamp(1.25rem, 5vw, 2.5rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.05em;
  border: 1px solid rgba(245, 239, 227, 0.4);
  border-radius: 999px;
  background: rgba(25, 20, 14, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(245, 239, 227, 0.9);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero:hover .hero__photo-chip { opacity: 1; }
@media (hover: none) { .hero__photo-chip { opacity: 0.9; } }

/* slow living ken-burns so the photograph breathes — gentle range
   (6% zoom, no pan) so the hero never feels like it's swaying */
.js:not(.no-motion) .hero__img { animation: kenburns 40s var(--ease-card) infinite alternate; }

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* warm scrim so text stays readable over any photo */
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(20, 14, 8, 0.66) 0%, rgba(20, 14, 8, 0.16) 38%, rgba(20, 14, 8, 0.14) 60%, rgba(20, 14, 8, 0.8) 100%),
    radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(15, 10, 5, 0.55) 100%);
}

.hero__nav {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 5vw, 2.5rem);
}

.monogram svg { width: 54px; height: 54px; }
.monogram--lg svg { width: 96px; height: 96px; }

.hero__tag {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  padding: 0.6em 1.3em;
  border: 1px solid rgba(245, 239, 227, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero__content {
  position: relative; z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem clamp(1.25rem, 5vw, 2.5rem) 8vh;
}

.hero__kicker {
  font-family: var(--sans);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.92);
  margin-bottom: clamp(1.4rem, 4vh, 2.4rem);
}

.hero__names {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
}

.hero__row { display: block; }
.hero__amp {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.34em;
  line-height: 1.2;
  margin: 0.15em 0 0.1em;
}

.hero__rule {
  width: min(220px, 46vw);
  height: 1px;
  margin: clamp(1.6rem, 4.5vh, 2.6rem) auto;
  background: linear-gradient(90deg, transparent, var(--champagne-light), transparent);
  position: relative;
}
.hero__rule::after {
  content: "✦";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  color: var(--champagne-light);
}

.hero__date {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  font-weight: 400;
}

.hero__place {
  margin-top: 0.7rem;
  font-size: clamp(0.72rem, 2vw, 0.9rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.85);
}

/* vertical Japanese accent — a quiet nod to the venue */
.hero__vertical {
  position: absolute;
  right: clamp(1.1rem, 4vw, 2.6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.7em;
  color: rgba(245, 239, 227, 0.55);
  text-orientation: mixed;
  user-select: none;
}
.hero__vertical::after {
  content: "";
  position: absolute;
  top: -3.5rem; left: 50%;
  width: 1px; height: 2.2rem;
  background: linear-gradient(to bottom, transparent, var(--champagne-light));
}
.hero__vertical::before {
  content: "";
  position: absolute;
  bottom: -3.5rem; left: 50%;
  width: 1px; height: 2.2rem;
  background: linear-gradient(to top, transparent, var(--champagne-light));
}

.hero__vertical {
  position: absolute;
  right: clamp(1.1rem, 4vw, 2.6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.7em;
  color: rgba(245, 239, 227, 0.55);
  text-orientation: mixed;
  user-select: none;
}
.hero__vertical::after {
  content: "";
  position: absolute;
  top: -3.5rem; left: 50%;
  width: 1px; height: 2.2rem;
  background: linear-gradient(to bottom, transparent, var(--champagne-light));
}
.hero__vertical::before {
  content: "";
  position: absolute;
  bottom: -3.5rem; left: 50%;
  width: 1px; height: 2.2rem;
  background: linear-gradient(to top, transparent, var(--champagne-light));
}

/* masked line reveals (driven by motion.js) */
.line { display: block; overflow: hidden; padding-block: 0.06em; }
.js:not(.no-motion) .line__inner { transform: translateY(115%); }

.hero__scroll {
  position: absolute;
  bottom: clamp(1.1rem, 3.5vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.8);
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(245, 239, 227, 0.7));
  overflow: hidden;
  position: relative;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--champagne-light));
  animation: scrolldrip 2.4s var(--ease-card) infinite;
}
@keyframes scrolldrip {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ============================================================
   MARQUEE — two rows gliding in opposite directions
   ============================================================ */
.marquee {
  background: var(--ink);
  padding: 0.55rem 0;
  border-block: 1px solid rgba(230, 206, 151, 0.24);
  overflow: hidden;
}

.marquee__row { overflow: hidden; }
.marquee__row + .marquee__row { border-top: 1px solid rgba(230, 206, 151, 0.14); }

.marquee__track {
  display: flex;
  gap: 2.6rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 60s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.02rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--champagne-light);
  padding: 0.35rem 0;
}

.marquee__row--rev .marquee__track {
  animation-direction: reverse;
  animation-duration: 75s;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.5em;
  color: rgba(245, 239, 227, 0.72);
}

.marquee__dot { color: var(--champagne-deep); font-style: normal; font-size: 0.7em; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown { background: var(--ivory); }

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 2vw, 1.4rem);
  max-width: 680px;
  margin-inline: auto;
}

.tile {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(165, 127, 69, 0.22);
  border-radius: 4px;
  padding: clamp(1.1rem, 3vw, 1.8rem) 0.5rem clamp(1rem, 2.5vw, 1.5rem);
  text-align: center;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(165, 127, 69, 0.12);
  border-radius: 2px;
  pointer-events: none;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(34, 27, 20, 0.4); }

.tile__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
}

.tile__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* hairline that depletes as the day approaches */
.countdown__progress {
  position: relative;
  max-width: 680px;
  height: 1px;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  background: rgba(165, 127, 69, 0.22);
}
.countdown__progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--champagne-deep), var(--champagne-light));
}
.countdown__progress-dot {
  position: absolute;
  right: 0; top: 50%;
  width: 8px; height: 8px;
  transform: translate(50%, -50%) rotate(45deg);
  background: var(--champagne-light);
  box-shadow: 0 0 12px rgba(230, 206, 151, 0.8);
}
.countdown__progress-note {
  display: flex;
  justify-content: space-between;
  max-width: 680px;
  margin: 0.6rem auto 0;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   MILESTONES — a second countdown for a second moment.
   Each .milestone counts to its data-until; a data-since adds
   elapsed time + a progress bar from since → until.
   ============================================================ */
.milestones { background: var(--paper); }

.milestones__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 1.6rem);
  max-width: 940px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.milestone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.7rem, 4vw, 2.4rem);
  border: 1px solid rgba(165, 127, 69, 0.3);
  border-radius: 10px;
  background: var(--ivory);
  box-shadow: 0 30px 60px -38px rgba(34, 27, 20, 0.45);
  overflow: hidden;
  text-align: center;
}
.milestone::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.milestone__kicker {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}
.milestone__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  line-height: 1.15;
}
.milestone__name em { color: var(--champagne-deep); }
.milestone__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  min-height: 2.6em;
}
.milestone__elapsed {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.milestone__elapsed strong {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5em;
  letter-spacing: 0;
  color: var(--champagne-deep);
  font-weight: 500;
}

.milestone__count {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.milestone__tile {
  flex: 1;
  max-width: 92px;
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0.3rem 0.7rem;
  background: var(--paper);
  border: 1px solid rgba(165, 127, 69, 0.22);
  border-radius: 6px;
}
.milestone__tile b {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.milestone__tile i {
  font-style: normal;
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.milestone__bar {
  height: 1px;
  margin: 0.2rem 0 0.4rem;
  background: rgba(165, 127, 69, 0.25);
  position: relative;
}
.milestone__bar span {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--champagne-deep), var(--champagne-light));
}
.milestone__note {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   HOW WE MET — scrollytelling. The photo column stays pinned
   (position: sticky) while the chapters scroll past; the pinned
   photo crossfades to whichever chapter crosses the stage line.
   ============================================================ */
.story { background: var(--ivory); }

.story__intro {
  text-align: center;
  max-width: 520px;
  margin: -1.8rem auto 2.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.story__stage {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: start;
  max-width: 1000px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.story__pin {
  position: sticky;
  top: clamp(86px, 12vh, 130px); /* clears the sticky sitenav */
}

.story__photos {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(34, 27, 20, 0.55);
  background: linear-gradient(150deg, #3d3128, #1d1712);
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
}
.story__photos:focus-visible { outline: 2px solid var(--champagne-light); outline-offset: -2px; }

.story__hint {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border: 1px solid rgba(245, 239, 227, 0.4);
  border-radius: 999px;
  background: rgba(25, 20, 14, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(245, 239, 227, 0.9);
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.story__photos:hover .story__hint,
.story__photos:focus-visible .story__hint { opacity: 1; }
@media (hover: none) { .story__hint { opacity: 0.85; } }
.story__photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}
.story__photo.is-active { opacity: 1; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }

.story__meta {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.story__counter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--champagne-deep);
}
.story__dots { display: flex; gap: 0.5rem; }
.story__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--champagne-deep);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.story__dots button.is-active { background: var(--champagne); transform: scale(1.3); }

.story__chapters {
  list-style: none;
  display: grid;
  gap: clamp(3rem, 9vh, 6rem);
  padding: clamp(1rem, 4vh, 2rem) 0 0;
}
.story__chapter {
  scroll-margin-top: 24vh;
  padding-bottom: clamp(3rem, 9vh, 6rem);
  border-bottom: 1px solid rgba(165, 127, 69, 0.25);
}
.story__chapter:last-child { border-bottom: 0; }
.story__year {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--champagne);
  display: block;
  margin-bottom: 0.4rem;
}
.story__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
  transition: color 0.35s ease;
}
.story__chapter.is-active .story__title { color: var(--champagne-deep); }
.story__text {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ============================================================
   GALLERY — masonry, filterable, with arch & ken-burns moments
   ============================================================ */
.gallery { background: var(--paper); position: relative; }

.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: -1.5rem 0 2.6rem;
  position: relative;
  z-index: 1;
}

.chip {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.65em 1.3em;
  border-radius: 999px;
  border: 1px solid rgba(165, 127, 69, 0.35);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.35s var(--ease-out), color 0.35s var(--ease-out), background 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.chip:hover { border-color: var(--champagne-deep); color: var(--champagne-deep); transform: translateY(-1px); }
.chip.is-active {
  background: linear-gradient(135deg, var(--champagne-light), var(--champagne) 55%, var(--champagne-deep));
  border-color: transparent;
  color: var(--ink);
}

.gallery__grid {
  columns: 3;
  column-gap: clamp(1rem, 3vw, 1.8rem);
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: clamp(1.2rem, 3vw, 1.9rem);
  cursor: zoom-in;
}

.gallery__frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(150deg, #3d3128, #1d1712);
  box-shadow: 0 30px 60px -30px rgba(34, 27, 20, 0.45);
}

.gallery__frame::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(245, 239, 227, 0.12);
  border-radius: inherit;
  pointer-events: none;
}

.gallery__media {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.16);
  transition: transform 1.1s var(--ease-out);
  will-change: transform;
}

.gallery__item--tall .gallery__frame { aspect-ratio: 4 / 5; }
.gallery__item--port .gallery__frame { aspect-ratio: 3 / 4; }
.gallery__item--sq   .gallery__frame { aspect-ratio: 1 / 1; }
.gallery__item--land .gallery__frame { aspect-ratio: 4 / 3; }
.gallery__item--wide .gallery__frame { aspect-ratio: 16 / 10; }

/* one arch echoes the card template */
.gallery__item--arch .gallery__frame {
  aspect-ratio: 4 / 5;
  clip-path: inset(0 round 0 0 50% 50%);
  border-radius: 0;
}
.gallery__item--arch .gallery__media { position: absolute; inset: -4% 0 -4% 0; }

/* wide photos breathe with their own slow ken-burns
   (starts zoomed so parallax never exposes the frame edge) */
.js:not(.no-motion) .gallery__item--wide .gallery__frame img {
  animation: kenburns-b 40s var(--ease-card) infinite alternate;
}
@keyframes kenburns-b {
  from { transform: scale(1.06); }
  to   { transform: scale(1.12); }
}

.gallery__item:hover .gallery__frame img,
.gallery__item:focus-visible .gallery__frame img { transform: scale(1.3); }

.gallery__cap {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ============================================================
   MEMORY BANNER — full-bleed cinematic photo divider between
   the countdown and the story. A big photograph pause, so the
   couple's photography stays the emotional core of the page.
   ============================================================ */
.memory-banner {
  position: relative;
  height: clamp(300px, 62vh, 540px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(160deg, #3a2f24, #181310 70%);
}

/* the whole banner is a <button> — tap to view the photo full-size */
.memory-banner__open {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(160deg, #3a2f24, #181310 70%);
  cursor: zoom-in;
  overflow: hidden;
}
.memory-banner__open:focus-visible { outline: 2px solid var(--champagne-light); outline-offset: -2px; }

.memory-banner__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.memory-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-banner__hint {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border: 1px solid rgba(245, 239, 227, 0.4);
  border-radius: 999px;
  background: rgba(25, 20, 14, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(245, 239, 227, 0.9);
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.memory-banner__open:hover .memory-banner__hint,
.memory-banner__open:focus-visible .memory-banner__hint { opacity: 1; }
@media (hover: none) { .memory-banner__hint { opacity: 0.85; } }

.memory-banner__veil { pointer-events: none; }
.memory-banner__caption { pointer-events: none; }

/* same slow breathing ken-burns as the hero — gentle range */
.js:not(.no-motion) .memory-banner__media img {
  animation: kenburns 46s var(--ease-card) infinite alternate;
}

/* scrim so the caption stays readable over any photo */
.memory-banner__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20, 14, 8, 0.74), transparent 55%),
    linear-gradient(to bottom, rgba(20, 14, 8, 0.35), transparent 40%);
}

.memory-banner__caption {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: clamp(1.2rem, 4vw, 2.2rem) clamp(1.25rem, 5vw, 2.5rem) clamp(1.6rem, 5vw, 2.6rem);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3.4vw, 1.7rem);
  letter-spacing: 0.04em;
  color: var(--ivory);
}
.memory-banner__caption em { color: var(--champagne-light); }

/* ============================================================
   THE INVITATION — optional flyer/banner showcase. Drop an
   already-designed flyer or banner image here so guests can
   confirm they are in the right place; tapping opens the
   original full-size with zoom in the lightbox.
   ============================================================ */
.flyer { background: var(--ivory); }

.flyer__figure {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.flyer__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 34px 70px -38px rgba(34, 27, 20, 0.55);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.flyer__open img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1s var(--ease-out);
}
/* a quiet inner frame so the flyer reads as a printed piece */
.flyer__open::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(245, 239, 227, 0.4);
  border-radius: 6px;
  pointer-events: none;
}
.flyer__open:hover { transform: translateY(-6px); box-shadow: 0 44px 84px -38px rgba(34, 27, 20, 0.62); }
.flyer__open:hover img { transform: scale(1.03); }
.flyer__open:focus-visible { outline: 2px solid var(--champagne-deep); outline-offset: 4px; }

.flyer__cap {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ============================================================
   OUR FILM — optional video embed (YouTube / Vimeo URL or mp4)
   ============================================================ */
.film { background: var(--paper); }

.film__intro {
  max-width: 46ch;
  margin: -1.8rem auto 2.4rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.film__frame {
  max-width: 720px;
  margin: 0 auto;
}

.film__embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(165, 127, 69, 0.35);
  background: #191410;
  box-shadow: 0 30px 60px -30px rgba(34, 27, 20, 0.5);
}
.film__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.film__cap {
  margin-top: 0.9rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.film__open { margin-top: 1.7rem; text-align: center; }
.film__open .btn { align-self: auto; }

/* ============================================================
   WEDDING PARTY
   ============================================================ */
.party { background: var(--paper); }

.party__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 860px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.person { text-align: center; }

.person__photo {
  position: relative;
  display: block;
  width: clamp(120px, 28vw, 168px);
  aspect-ratio: 1;
  margin: 0 auto 1.1rem;
  padding: 6px;
  border-radius: 50%;
  border: 1px solid rgba(165, 127, 69, 0.4);
  background: var(--ivory);
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: zoom-in;
}
.person__photo:focus-visible { outline: 2px solid var(--champagne-deep); outline-offset: 4px; }
.person__photo::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px dashed rgba(165, 127, 69, 0.3);
  border-radius: 50%;
  pointer-events: none;
}
.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(0.18) contrast(1.03);
  transition: transform 0.6s var(--ease-out), filter 0.6s ease;
}
.person:hover .person__photo img { transform: scale(1.06); filter: grayscale(0); }

.person figcaption strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.18rem;
}
.person figcaption span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}

/* ============================================================
   WEATHER WIDGET
   ============================================================ */
.weather {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.1rem;
  border: 1px dashed rgba(165, 127, 69, 0.45);
  border-radius: 12px;
  background: rgba(251, 247, 238, 0.75);
  align-self: flex-start;
}
.weather[hidden] { display: none; }
.weather__icon { width: 34px; height: 34px; color: var(--champagne-deep); flex: none; }
.weather__icon svg { width: 100%; height: 100%; display: block; }
.weather__body { display: grid; gap: 0.15rem; }
.weather__date {
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.weather__main {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  display: flex;
  gap: 0.55rem;
}

/* ============================================================
   GIFTS & WISHES
   ============================================================ */
.gifts { background: var(--paper); }

.gifts__intro,
.share__intro {
  text-align: center;
  max-width: 520px;
  margin: -1.8rem auto 2.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  position: relative;
  z-index: 1;
}

.gifts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.6rem);
  max-width: 940px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.gift {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.7rem;
  border: 1px solid rgba(165, 127, 69, 0.25);
  border-radius: 8px;
  background: var(--ivory);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.gift:hover { transform: translateY(-4px); box-shadow: 0 24px 46px -26px rgba(34, 27, 20, 0.4); }
.gift h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.gift h3::before { content: "✦"; color: var(--champagne-deep); font-size: 0.7em; margin-right: 0.5em; }
.gift p { font-size: 0.86rem; line-height: 1.7; color: var(--ink-soft); }
.gift__link {
  margin-top: auto;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  text-decoration: none;
  transition: letter-spacing 0.35s var(--ease-out);
}
.gift__link:hover { letter-spacing: 0.26em; }

/* Amplop digital (QRIS) — Indonesian-market gifting */
.amplop {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  align-items: center;
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border: 1px solid rgba(165, 127, 69, 0.3);
  border-radius: 12px;
  background: var(--ivory);
  box-shadow: 0 30px 60px -38px rgba(34, 27, 20, 0.5);
  position: relative;
  z-index: 1;
}
.amplop::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.amplop__qr {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}
.amplop__qr img {
  width: clamp(150px, 34vw, 190px);
  height: auto;
  padding: 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(165, 127, 69, 0.4);
  background: #fff;
  box-shadow: 0 14px 28px -16px rgba(34, 27, 20, 0.4);
}
.amplop__scan {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.amplop__badge {
  display: inline-block;
  padding: 0.5em 1.2em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--champagne-light), var(--champagne) 55%, var(--champagne-deep));
  color: var(--ink);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.amplop__body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  margin-bottom: 0.6rem;
}
.amplop__body h3 em { color: var(--champagne-deep); }
.amplop__body > p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 46ch;
}
.amplop__an {
  margin-top: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.amplop__an strong { color: var(--champagne-deep); font-weight: 600; }
.amplop__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.amplop__chips li {
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(165, 127, 69, 0.3);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

/* ============================================================
   SHARE / HASHTAG WALL
   ============================================================ */
.share { background: var(--ivory); }

.share__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.7rem, 2vw, 1.2rem);
  max-width: 940px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.share__tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  display: block;
  background: linear-gradient(150deg, #3d3128, #1d1712);
  box-shadow: 0 24px 50px -30px rgba(34, 27, 20, 0.5);
}
.share__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.share__tile:hover img { transform: scale(1.08); }
.share__veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 20, 14, 0.35);
  color: var(--champagne-light);
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.share__tile:hover .share__veil,
.share__tile:focus-visible .share__veil { opacity: 1; }

/* ============================================================
   STICKY SECTION NAV
   ============================================================ */
.sitenav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(25, 20, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 206, 151, 0.25);
  color: var(--ivory);
  transform: translateY(-110%);
  transition: transform 0.55s var(--ease-out);
}
.sitenav.is-visible { transform: none; }

.sitenav__brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--champagne-light);
}

.sitenav__links { display: flex; gap: clamp(1rem, 2.5vw, 1.8rem); }
.sitenav__links a {
  position: relative;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.85);
  text-decoration: none;
  padding: 0.35em 0;
  transition: color 0.3s ease;
}
.sitenav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--champagne-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.sitenav__links a:hover { color: var(--ivory); }
.sitenav__links a:hover::after { transform: scaleX(1); }

.sitenav__cta {
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.65em 1.4em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--champagne-light), var(--champagne) 55%, var(--champagne-deep));
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.sitenav__cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(165, 127, 69, 0.9); }

.sitenav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(230, 206, 151, 0.35);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.sitenav__toggle:hover { border-color: var(--champagne-light); }
.sitenav__toggle:focus-visible { outline: 2px solid var(--champagne-light); outline-offset: 2px; }
.sitenav__toggle-bar {
  display: block;
  height: 1.5px;
  background: var(--champagne-light);
  transition: transform 0.35s var(--ease-out);
}
.sitenav.is-menu-open .sitenav__toggle-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.sitenav.is-menu-open .sitenav__toggle-bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* mobile menu — the same section links as a drop-down panel under the bar */
.sitenav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  gap: 0.1rem;
  max-height: calc(100dvh - 100%);
  overflow: auto;
  padding: 1rem clamp(1.25rem, 5vw, 2.5rem) 1.4rem;
  background: rgba(21, 16, 11, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 206, 151, 0.25);
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.6);
}
.sitenav__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.4rem;
  border-bottom: 1px solid rgba(230, 206, 151, 0.14);
  color: rgba(245, 239, 227, 0.9);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.sitenav__menu a::after { content: "→"; color: var(--champagne-deep); font-size: 0.8em; }
.sitenav__menu a:hover { color: var(--champagne-light); }
.sitenav__menu a:focus-visible { outline: 2px solid var(--champagne-light); outline-offset: 2px; }
.sitenav__menu-cta {
  margin-top: 0.8rem;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--champagne-light), var(--champagne) 55%, var(--champagne-deep));
  color: var(--ink) !important;
  font-weight: 500;
}
.sitenav__menu-cta::after { content: none; }

@media (max-width: 900px) {
  .sitenav__links { display: none; }
  .sitenav__toggle { display: flex; }
}

/* ============================================================
   LOVE LETTER — a handwritten-feeling moment
   ============================================================ */
.letter { background: var(--ivory); position: relative; }

.letter__card {
  max-width: 640px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
  padding: clamp(2.2rem, 6vw, 3.6rem) clamp(1.6rem, 5vw, 3rem);
  background: var(--paper);
  border: 1px solid rgba(165, 127, 69, 0.25);
  border-radius: 6px;
  box-shadow: 0 30px 60px -35px rgba(34, 27, 20, 0.5);
}

.letter__card::before {
  content: "✦";
  position: absolute;
  top: -0.6em; left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: var(--champagne-deep);
  background: var(--paper);
  padding: 0 0.6rem;
}

.letter__card p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  line-height: 1.85;
  color: var(--ink-soft);
}

.letter__drop {
  float: left;
  margin: 0.12em 0.18em 0 0;
  font-size: 3.4em;
  line-height: 0.8;
  font-style: italic;
  font-weight: 500;
  background: var(--gold);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.letter__sig {
  margin-top: 1.6rem;
  text-align: right;
  font-style: italic;
  font-size: 1.2em;
}
.letter__sig em { color: var(--champagne-deep); }

/* ============================================================
   DETAILS — editorial numbered rows
   ============================================================ */
.details { background: var(--paper); position: relative; }

.details__list {
  max-width: 780px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
  counter-reset: detail;
}

.detail-row {
  display: grid;
  grid-template-columns: clamp(44px, 8vw, 84px) 1.3fr auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.3rem, 3.5vw, 1.9rem) 0;
  border-bottom: 1px solid rgba(165, 127, 69, 0.28);
  counter-increment: detail;
}
.detail-row:first-child { border-top: 1px solid rgba(165, 127, 69, 0.28); }

.detail-row__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--champagne-deep);
  line-height: 1;
  /* The baked numeral is the template's fallback; repeated rows must be
     numbered by their position, so the live numeral comes from a counter. */
  visibility: hidden;
}
.detail-row__num::before {
  content: counter(detail, upper-roman);
  visibility: visible;
}

.detail-row__body h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.4vw, 1.8rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.detail-row__body p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.detail-row__place {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--champagne-deep);
  text-align: right;
  max-width: 200px;
}

.detail__icon { width: 22px; height: 22px; color: var(--champagne-deep); flex: none; }

/* ============================================================
   RSVP
   ============================================================ */
.rsvp {
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

/* blush watercolor wash */
.rsvp::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 55% at 18% 28%, rgba(201, 142, 124, 0.22), transparent 65%),
    radial-gradient(46% 60% at 84% 72%, rgba(201, 142, 124, 0.16), transparent 65%),
    radial-gradient(30% 40% at 68% 12%, rgba(230, 206, 151, 0.3), transparent 60%);
  filter: blur(6px);
  pointer-events: none;
}

.rsvp__card {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2.4rem, 7vw, 4rem) clamp(1.4rem, 5vw, 3rem);
  border: 1px solid rgba(165, 127, 69, 0.3);
  border-radius: 8px;
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.rsvp__note {
  margin: 1.1rem 0 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--champagne-light), var(--champagne) 55%, var(--champagne-deep));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  box-shadow: 0 14px 30px -14px rgba(165, 127, 69, 0.8);
}
.btn svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -16px rgba(165, 127, 69, 0.9); }
.btn:hover svg { transform: translateX(4px); }

/* light sweep across the button */
.js:not(.no-motion) .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 250, 235, 0.55) 50%, transparent 70%);
  transform: translateX(-130%);
}
.js:not(.no-motion) .btn:hover::after { animation: sweep 0.9s var(--ease-card); }
@keyframes sweep { to { transform: translateX(130%); } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem 4rem;
  overflow: hidden;
}

/* watermark monogram behind the footer copy */
.footer::before {
  content: "A & J";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(9rem, 26vw, 20rem);
  letter-spacing: 0.08em;
  color: rgba(230, 206, 151, 0.05);
  pointer-events: none;
  user-select: none;
}

.footer__monogram, .footer__love, .footer__fine { position: relative; z-index: 1; }

.footer__love {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 1.4rem 0 0.8rem;
}
.footer__love em { font-style: italic; color: var(--champagne-light); }
.footer__fine {
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.55);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-sec { background: var(--ivory); }

.timeline {
  list-style: none;
  max-width: 620px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.timeline::before {
  content: "";
  position: absolute;
  left: calc(104px + 0.75rem);
  top: 1.2rem;
  bottom: 1.2rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(165, 127, 69, 0.55) 8%, rgba(165, 127, 69, 0.55) 92%, transparent);
}

.timeline__item {
  display: grid;
  grid-template-columns: 92px 24px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
}

.timeline__time {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--champagne-deep);
  padding-top: 0.15em;
  text-align: right;
}

.timeline__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 0.45em;
  justify-self: center; /* keep dots centered under the ::before line */
  background: var(--champagne);
  box-shadow: 0 0 0 4px rgba(165, 127, 69, 0.16);
}

.timeline__body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}
.timeline__body p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* ============================================================
   VENUE / MAP
   ============================================================ */
.venue { background: var(--paper); }

.venue__grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.venue__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.venue__info h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.venue__addr {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.venue__chips { list-style: none; display: grid; gap: 0.7rem; margin: 0.4rem 0 0.8rem; }
.venue__chips li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.venue__chips svg { width: 17px; height: 17px; color: var(--champagne-deep); flex: none; }

.venue__map {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: clamp(260px, 40vw, 380px);
  border: 1px solid rgba(165, 127, 69, 0.4);
  background: var(--ivory);
  box-shadow: 0 30px 60px -35px rgba(34, 27, 20, 0.5);
}
.venue__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) sepia(0.16) contrast(1.02);
  transition: filter 0.6s ease;
}
.venue__map:hover iframe,
.venue__map:focus-within iframe { filter: grayscale(0) sepia(0); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--champagne-deep);
  color: var(--champagne-deep);
  box-shadow: none;
  align-self: flex-start;
}
.btn--ghost:hover { background: rgba(165, 127, 69, 0.08); box-shadow: 0 10px 24px -14px rgba(165, 127, 69, 0.7); }

/* ============================================================
   STAY & TRAVEL
   ============================================================ */
.stay { background: var(--ivory); }

.hotels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.6rem);
  max-width: 940px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}

.hotel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.7rem;
  border: 1px solid rgba(165, 127, 69, 0.25);
  border-radius: 8px;
  background: var(--paper);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.hotel:hover { transform: translateY(-4px); box-shadow: 0 24px 46px -26px rgba(34, 27, 20, 0.4); }
.hotel h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.hotel__meta { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; }
.hotel__code { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.6; }
.hotel__code strong { color: var(--champagne-deep); font-weight: 500; }
.hotel__link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  text-decoration: none;
  transition: letter-spacing 0.35s var(--ease-out);
}
.hotel__link:hover { letter-spacing: 0.26em; }

.travel { max-width: 940px; margin-inline: auto; display: grid; gap: 1rem; }
.travel h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.travel__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.travel__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid rgba(165, 127, 69, 0.3);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.travel__chips svg { width: 15px; height: 15px; color: var(--champagne-deep); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--paper); }

.faq__list { max-width: 640px; margin-inline: auto; position: relative; z-index: 1; }
.faq__item { border-bottom: 1px solid rgba(165, 127, 69, 0.3); }
.faq__item:first-child { border-top: 1px solid rgba(165, 127, 69, 0.3); }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.2rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.8vw, 1.3rem);
  color: var(--ink);
  transition: color 0.3s ease;
}
.faq__q:hover, .faq__q:focus-visible { color: var(--champagne-deep); outline: none; }

.faq__icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--champagne-deep);
  transition: transform 0.35s var(--ease-out);
}
.faq__icon::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.faq__icon::after { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); }
.faq__item.is-open .faq__icon::after { transform: translateX(-50%) scaleY(0); }

.faq__a { height: 0; overflow: hidden; }
.faq__a-inner { padding: 0 0.2rem 1.2rem; font-size: 0.92rem; line-height: 1.75; color: var(--ink-soft); max-width: 56ch; }

/* ============================================================
   RSVP FORM
   ============================================================ */
[hidden] { display: none !important; }

.rsvp-form {
  margin-top: 1.8rem;
  text-align: left;
  display: grid;
  gap: 1.1rem;
}

.rsvp-form__field { display: grid; gap: 0.4rem; }
.rsvp-form__field label,
.rsvp-form__attending legend {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="tel"],
.rsvp-form input[type="number"],
.rsvp-form textarea,
.rsvp-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(165, 127, 69, 0.35);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.rsvp-form textarea { resize: vertical; }
.rsvp-form input[type="text"]:focus,
.rsvp-form input[type="email"]:focus,
.rsvp-form input[type="tel"]:focus,
.rsvp-form input[type="number"]:focus,
.rsvp-form textarea:focus,
.rsvp-form select:focus {
  outline: none;
  border-color: var(--champagne-deep);
  box-shadow: 0 0 0 3px rgba(165, 127, 69, 0.18);
}

.rsvp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.rsvp-form__attending { border: none; padding: 0; display: grid; gap: 0.5rem; }
.rsvp-form__attending legend { margin-bottom: 0.35rem; }
.rsvp-form__attending label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
}
.rsvp-form__attending input { accent-color: var(--champagne-deep); width: 17px; height: 17px; }

.btn--form { width: 100%; justify-content: center; margin-top: 0.3rem; }
.btn.is-loading { opacity: 0.65; pointer-events: none; }

.rsvp-form__hint { font-size: 0.7rem; color: var(--ink-soft); text-align: center; }

/* platform rsvp_user.js hooks */
.rsvp-form .error { display: block; color: #b03a2e; font-size: 0.78rem; margin-top: 0.3rem; }
.rsvp-form .error:empty { display: none; }
.rsvp-form .loading { text-align: center; color: var(--ink-soft); font-size: 0.85rem; padding: 0.6rem 0 0; }

/* success state */
.rsvp-done { text-align: center; padding: 1.2rem 0 0.4rem; }
.rsvp-done__check { width: 86px; height: 86px; margin: 0 auto 1.1rem; display: block; }
/* stroke "draw" animation — hidden only when motion is live */
.js:not(.no-motion) .rsvp-done__check circle,
.js:not(.no-motion) .rsvp-done__check path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.rsvp-done h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin-bottom: 0.4rem; }
.rsvp-done p { font-size: 0.92rem; line-height: 1.7; color: var(--ink-soft); max-width: 40ch; margin-inline: auto; }
.rsvp-done__reset {
  margin-top: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--champagne-deep);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* alternative reply paths under the panel */
.rsvp__alt {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(165, 127, 69, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.rsvp__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.rsvp__qr img { border-radius: 6px; border: 1px solid rgba(165, 127, 69, 0.3); }
.rsvp__alt-line {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: left;
}
.rsvp__alt-line a { color: var(--champagne-deep); }

/* ============================================================
   FOOTER CONTACT
   ============================================================ */
.footer__contact {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}
.footer__contact a {
  color: var(--champagne-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 206, 151, 0.3);
  transition: border-color 0.3s ease;
}
.footer__contact a:hover { border-color: var(--champagne-light); }
.footer__sep { color: var(--champagne-deep); font-size: 0.6rem; }

/* footer brand placeholder — the platform can fill this with the host's brand */
.footer-brand {
  position: relative;
  z-index: 1;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(230, 206, 151, 0.18);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.5);
}
.footer-brand-name { color: var(--champagne-light); }

/* ============================================================
   FREE PAGE — optional free-form page (repeatable blocks)
   Each block: a serif title, free text and an OPTIONAL framed photo.
   The photo is a real <button> like every other photo slot, so it opens
   the zooming lightbox; :has() keeps the frame borderless when the
   photo is empty, so an image-less block never shows a broken frame.
   ============================================================ */
.free-page { background: var(--paper); }

.free-page-lead {
  max-width: 46ch;
  margin: -1.8rem auto 2.6rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.free-blocks {
  display: grid;
  gap: clamp(2.4rem, 6vw, 3.5rem);
  max-width: 900px;
  margin-inline: auto;
}

.free-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.6rem);
  align-items: center;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  background: var(--ivory);
  border-radius: 12px;
  box-shadow: 0 24px 50px -34px rgba(34, 27, 20, 0.4);
}
/* alternate the photo side so stacked blocks breathe */
.free-block:nth-child(even) .free-figure { order: -1; }

.free-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.18;
  margin: 0 0 0.9rem;
  color: var(--ink);
}

.free-content {
  font-size: clamp(0.98rem, 2vw, 1.05rem);
  line-height: 1.75;
  color: var(--ink-soft);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.free-figure { margin: 0; }

.free-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  cursor: zoom-in;
}

/* borderless + flat until a photo is present — the empty block then reads
   as title + text with no broken frame */
.free-open:has(img) {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(34, 27, 20, 0.55);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.free-open:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(34, 27, 20, 0.35), transparent 45%);
  pointer-events: none;
}
.free-open:has(img):hover { transform: translateY(-3px); box-shadow: 0 36px 70px -38px rgba(34, 27, 20, 0.6); }
.free-open:has(img):hover .free-img { transform: scale(1.03); }

.free-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

/* ============================================================
   POWERED-BY — full-width platform brand strip (bottom of the page)
   ============================================================ */
.powered-by {
  width: 100%;
  background: var(--ink);
  color: rgba(245, 239, 227, 0.55);
  text-align: center;
  padding: 1.1rem 1.5rem calc(1.1rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(230, 206, 151, 0.18);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.powered-by-text { margin: 0; }
.powered-by .link-footer { color: var(--champagne-light); }

/* ============================================================
   GOLD DUST — animated particles (created by JS)
   ============================================================ */
.dust {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.dust i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, #f3e2b6 0%, rgba(243, 226, 182, 0.3) 45%, transparent 72%);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 12, 7, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
}
.lightbox[hidden] { display: none; }

.lightbox__figure {
  max-width: min(900px, 92vw);
  max-height: 88dvh;
  overflow: hidden;
  text-align: center;
}
/* when zoomed the figure becomes the pan container: scroll / swipe to move */
.lightbox.is-zoomed .lightbox__figure {
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  border-radius: 6px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  cursor: zoom-in;
  transform-origin: 50% 50%;
  transition: transform 0.25s ease;
  touch-action: manipulation;
}
.lightbox.is-zoomed .lightbox__img { cursor: zoom-out; transform: scale(1.9); }
.lightbox__cap {
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(245, 239, 227, 0.85);
  letter-spacing: 0.05em;
}

.lightbox__close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(245, 239, 227, 0.4);
  background: transparent;
  color: var(--ivory);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}
.lightbox__close:hover { transform: rotate(90deg); background: rgba(245, 239, 227, 0.12); }

/* prev / next + counter */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(245, 239, 227, 0.35);
  background: rgba(17, 12, 7, 0.4);
  color: var(--ivory);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  z-index: 2;
}
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav:hover { background: rgba(245, 239, 227, 0.18); }
.lightbox__nav:disabled { opacity: 0.25; cursor: default; }
.lightbox__nav--prev { left: clamp(0.8rem, 4vw, 2.5rem); }
.lightbox__nav--next { right: clamp(0.8rem, 4vw, 2.5rem); }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(3px); }

.lightbox__count {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  color: rgba(245, 239, 227, 0.75);
}

/* zoom controls — a small pill under the photo */
.lightbox__zoom {
  position: absolute;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(245, 239, 227, 0.1);
  border: 1px solid rgba(245, 239, 227, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox__zoom-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease;
}
.lightbox__zoom-btn svg { width: 16px; height: 16px; }
.lightbox__zoom-btn:hover { background: rgba(245, 239, 227, 0.16); }
.lightbox__zoom-btn:focus-visible { outline: 2px solid var(--champagne-light); outline-offset: 2px; }
.lightbox__zoom-btn.is-dimmed { opacity: 0.3; cursor: default; }

/* ============================================================
   REVEALS (motion.js adds .is-in) — fade, rise & de-blur
   ============================================================ */
.js:not(.no-motion) [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(3px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
.js:not(.no-motion) [data-reveal].is-in { opacity: 1; transform: none; filter: blur(0); }

/* ============================================================
   GUESTBOOK — mounts for the platform-injected guestbook.
   The engine replaces .guestbook-body with #guestbookForm,
   #comments-container and #load-more; style that markup here
   (see docs/template-rsvp-guestbook-guide.md §3).
   ============================================================ */
.guestbook-section { background: var(--ivory); }
.guestbook-description {
  text-align: center;
  max-width: 520px;
  margin: -2.4rem auto 2.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.guestbook-body {
  max-width: 620px;
  margin-inline: auto;
}

/* injected #guestbookForm */
.guestbook-section .form-group { margin-bottom: 1.1rem; }
.guestbook-section .form-group label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.guestbook-section .form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(165, 127, 69, 0.35);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.guestbook-section textarea.form-control { resize: vertical; min-height: 96px; }
.guestbook-section .form-control:focus {
  outline: none;
  border-color: var(--champagne-deep);
  box-shadow: 0 0 0 3px rgba(165, 127, 69, 0.18);
}
.guestbook-section .error {
  display: block;
  color: #b03a2e;
  font-size: 0.78rem;
  margin-top: 0.3rem;
}
/* utility classes the injected markup carries — make the submit row center */
.guestbook-section .d-flex { display: flex; justify-content: center; }
.guestbook-section .d-inline-flex { display: inline-flex; }
.guestbook-section .mx-auto { margin-inline: auto; }
.guestbook-section .btn {
  margin-top: 0.4rem;
  color: var(--ink); /* beat the platform's .text-white on the gold button */
}
.guestbook-section .ph { font-size: 1.1em; }
.guestbook-section .loading-guestbook {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  padding: 0.6rem 0 0;
}

/* injected message list + entries */
.guestbook-section #comments-container {
  border-top-color: rgba(165, 127, 69, 0.35) !important; /* overrides inline border:1px solid */
}
.guestbook-section .guestbook-entry {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(165, 127, 69, 0.3);
}
.guestbook-section .guestbook-entry:last-child { border-bottom: 0; }
.guestbook-section .guestbook-entry h5 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 0.2rem;
}
.guestbook-section .guestbook-entry p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 0.3rem;
}
.guestbook-section .guestbook-entry small {
  color: var(--champagne-deep);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* injected load-more pager */
.guestbook-section .more-guestbook-wrap { text-align: center; margin-top: 1.4rem; }
.guestbook-section #load-more {
  border: 1px solid rgba(165, 127, 69, 0.5);
  background: transparent;
  color: var(--champagne-deep);
  border-radius: 999px;
  padding: 0.65rem 1.7rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.guestbook-section #load-more:hover {
  background: rgba(165, 127, 69, 0.12);
  color: var(--champagne-deep);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .gallery__grid { columns: 2; }
  .free-block { grid-template-columns: 1fr; }
  .party__grid { grid-template-columns: repeat(2, 1fr); }
  .gifts__grid { grid-template-columns: repeat(2, 1fr); }
  .share__grid { grid-template-columns: repeat(2, 1fr); }
  .detail-row { grid-template-columns: 44px 1fr; }
  .detail-row__place { grid-column: 2; text-align: left; }
  .venue__grid { grid-template-columns: 1fr; }
  .hotels__grid { grid-template-columns: 1fr 1fr; }
  .milestones__grid { grid-template-columns: 1fr; }
  .milestone__lead { min-height: 0; }
  .story__stage { grid-template-columns: 1fr; gap: 1.6rem; }
  .story__pin {
    position: sticky;
    top: 76px; /* clears the sticky sitenav on mobile */
    z-index: 5;
  }
  .story__photos { aspect-ratio: 4 / 5; }
  .story__chapters { gap: 3rem; }
}

@media (max-width: 560px) {
  .countdown__grid { gap: 0.5rem; }
  .hotels__grid { grid-template-columns: 1fr; }
  .party__grid { grid-template-columns: 1fr; }
  .gifts__grid { grid-template-columns: 1fr; }
  .rsvp-form__row { grid-template-columns: 1fr; }
  .rsvp__alt { flex-direction: column; gap: 1.2rem; }
  .timeline__item { grid-template-columns: 80px 22px 1fr; }
  .timeline::before { left: calc(92px + 11px); } /* 80px col + 12px gap + half of 22px dot col */
  .milestone__tile { max-width: none; }
  .amplop { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .amplop__body > p { max-width: none; }
}

/* ============================================================
   SCROLL PROGRESS — thin gold hairline tracking the page
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 400;
  pointer-events: none;
  background: linear-gradient(90deg, var(--champagne-light), var(--champagne-deep));
}

/* ============================================================
   HERO GUEST GREETING — personalised line via the `name` global
   ============================================================ */
.hero__guest {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.95rem, 2.6vw, 1.3rem);
  letter-spacing: 0.05em;
  color: var(--champagne-light);
  margin-bottom: clamp(0.6rem, 2vh, 1.1rem);
}

/* ============================================================
   DRESS-CODE PALETTE — swatches so guests match the theme
   ============================================================ */
.palette {
  max-width: 680px;
  margin: 2.2rem auto 0;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}
.palette__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  text-align: center;
}
.palette__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-align: center;
}
.palette__sep { color: var(--champagne); font-size: 0.6em; }

/* ============================================================
   PLAYLIST — Spotify embed
   ============================================================ */
.playlist { background: var(--paper); }
.playlist__intro {
  max-width: 46ch;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.playlist__embed {
  max-width: 560px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #191410;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}
.playlist__embed iframe { display: block; width: 100%; height: 352px; border: 0; }

/* ============================================================
   VENUE ACTIONS — add-to-calendar / copy-link buttons
   ============================================================ */
.venue__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.9rem; }
.venue__actions .btn svg { width: 16px; height: 16px; }

/* ============================================================
   TOAST — copy-link confirmation
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(16px);
  z-index: 300;
  max-width: 90vw;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   CONFETTI PETALS — celebratory fall after RSVP
   ============================================================ */
.confetti-layer { position: fixed; inset: 0; z-index: 250; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute;
  top: -12px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 3px 9px 3px 9px;
  background: var(--champagne);
  opacity: 0;
  animation: petal-fall var(--fall, 4s) linear forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes petal-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 1; }
  100% { transform: translate3d(var(--sway, 40px), 112vh, 0) rotate(340deg); opacity: 0.55; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js:not(.no-motion) .hero__img,
  .js:not(.no-motion) .gallery__item--wide .gallery__frame img,
  .js:not(.no-motion) .memory-banner__media img,
  .marquee__track,
  .hero__scroll-line::after,
  .js:not(.no-motion) .gold-text,
  .js:not(.no-motion) .btn::after,
  .js:not(.no-motion) .letter__drop { animation: none !important; }
  .js:not(.no-motion) [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .js:not(.no-motion) .line__inner { transform: none; }
  .gold-text { color: var(--champagne-light); }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .grain, .marquee, .hero__scroll, .lightbox, .hero__nav, .dust,
  .scroll-progress, .toast, .confetti-layer, .story__meta, .story__dots,
  .hero__photo-chip, .memory-banner__hint, .story__hint, .powered-by { display: none !important; }
  .hero { min-height: auto; }
  .memory-banner { height: 340px; page-break-inside: avoid; }
  .hero__photo { position: absolute; }
  .hero__content { padding: 6vh 1rem; }
  .js:not(.no-motion) .hero__img, .js:not(.no-motion) [data-reveal], .js:not(.no-motion) .line__inner { animation: none; opacity: 1; transform: none; filter: none; }
  .section { padding: 2.5rem 1rem; page-break-inside: avoid; }
  body { background: #fff; }
  .gallery__grid { grid-template-columns: 1fr 1fr 1fr; }
  .letter__drop { background: none; color: var(--champagne-deep); }
  .story__stage { grid-template-columns: 1fr; }
  .story__pin { position: static; }
  .story__photo { position: static; opacity: 1; }
  .story__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .story__photos .story__photo img { aspect-ratio: 4 / 3; object-fit: cover; }
  .milestones__grid { grid-template-columns: 1fr 1fr; }
  .amplop { grid-template-columns: auto 1fr; }
}
