:root {
  --paper: #f8f4ed;
  --paper-2: #f1ebe1;
  --card: #fffdf9;
  --ink: #2d2b27;
  --muted: #7a746a;
  --accent: #5f6f52;      /* sage */
  --accent-ink: #fff;
  --line: #ddd4c6;
  --gold: #b49a6a;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-color: var(--line); }
.nav a { color: var(--ink); text-decoration: none; }
.nav-mark { font: 500 22px var(--serif); letter-spacing: .02em; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a:hover { color: var(--accent); }
.nav-rsvp { border: 1px solid var(--ink); padding: 6px 14px; border-radius: 999px; }
@media (max-width: 640px) {
  .nav { padding: 10px 16px; }
  .nav-links a:not(.nav-rsvp) { display: none; }
}

/* ---------- intro (below the photos) ---------- */
.intro { text-align: center; padding: 8px 16px 72px; }
.hero-title { text-align: center; padding: 14px 16px 0; }
.names { font-size: clamp(38px, 6vw, 60px); font-weight: 400; line-height: 1.05; }
.amp { font-style: italic; color: var(--gold); padding: 0 .1em; }
.when { font: 400 15px var(--sans); letter-spacing: .08em; color: var(--muted); margin: 6px 0 0; }

.countdown { display: flex; justify-content: center; gap: 22px; margin: 8px 0 4px; }
.countdown div { min-width: 52px; }
.countdown b { display: block; font: 500 30px var(--serif); }
.countdown span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.cal-menu[hidden] { display: none; }
.cal-wrap { position: relative; }
.cal-menu {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; flex-direction: column; min-width: 230px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 14px 34px -14px rgba(60, 45, 20, .35);
  font-size: 15px; text-align: left;
}
.cal-menu a { color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 4px; }
.cal-menu a:hover, .cal-menu a:focus-visible { background: color-mix(in srgb, var(--accent) 12%, var(--card)); outline: none; }
@media (max-width: 480px) { .countdown { gap: 14px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- buttons ---------- */
.btn {
  appearance: none; cursor: pointer;
  display: inline-block;
  font: 400 13px var(--sans); letter-spacing: .18em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  text-decoration: none;
  transition: background .2s, color .2s, transform .1s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #4e5c43; border-color: #4e5c43; color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- sections ---------- */
.section { padding: 88px 16px; }
.section > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.section-alt { background: var(--paper-2); }
.section h2 {
  font-size: clamp(34px, 6vw, 46px); text-align: center; margin-bottom: 40px;
}
.section h2::after {
  content: ""; display: block; width: 40px; height: 1px; background: var(--gold); margin: 18px auto 0;
}

.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tile { background: var(--card); padding: 30px 28px; border: 1px solid var(--line); }
.tile h3 { font-size: 26px; margin-bottom: 14px; }
.tile strong { font-weight: 500; }
.faq .dress-list { list-style: none; margin: -6px 0 4px; padding: 0; color: var(--muted); }
.faq .dress-list li { margin: 0 0 8px; padding-left: 16px; position: relative; }
.faq .dress-list li::before { content: "·"; position: absolute; left: 2px; color: var(--gold); font-weight: 700; }
.faq .dress-list strong { font-weight: 500; color: var(--ink); }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; max-width: 560px; }
.timeline li {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 0; }
.timeline .time { font: 500 20px var(--serif); color: var(--accent); padding-top: 2px; }
.timeline h3 { font-size: 23px; }
.timeline p { color: var(--muted); font-size: 15px; }

/* ---------- faq ---------- */
.faq { max-width: 680px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  font: 500 22px var(--serif); padding: 20px 32px 20px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px;
  font: 300 26px var(--sans); color: var(--gold); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* ---------- rsvp ---------- */
#rsvp-deadline { margin: -24px auto 10px; }
#rsvp-early { max-width: 520px; margin: 0 auto 32px; }
.rsvp { max-width: 520px; display: grid; gap: 22px; }
.rsvp label > span, .choice legend {
  display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.rsvp input:not([type=radio]):not([type=checkbox]), .rsvp select, .rsvp textarea {
  width: 100%; font: 300 17px var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 14px;
}
.rsvp input:focus, .rsvp select:focus, .rsvp textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 1px;
  border-color: var(--accent);
}
.rsvp .invalid { border-color: #b4553f !important; }

.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choice legend { width: 100%; }
.pill {
  flex: 1 1 200px; cursor: pointer; text-align: center;
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 12px 16px; font-family: var(--serif); font-size: 19px;
  transition: border-color .15s, background .15s;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill.on, .pill:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.pill:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice.invalid .pill { border-color: #b4553f; }

.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; text-align: center; font-size: 15px; color: #b4553f; margin: 0; }

.thanks { max-width: 520px; text-align: center; background: var(--card); border: 1px solid var(--line); padding: 44px 28px; }
.thanks h3 { font-size: 34px; margin-bottom: 10px; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 56px 16px 64px; border-top: 1px solid var(--line); }
.names-sm { font: 400 30px var(--serif); margin-bottom: 4px; }

/* ---------- language ---------- */
html[lang="en"] [data-lang="fr"],
html[lang="fr"] [data-lang="en"] { display: none !important; }

.lang-toggle {
  display: inline-flex; margin-left: 4px;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px;
}
.lang-toggle button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: 400 12px var(--sans); letter-spacing: .12em; color: var(--muted);
  padding: 5px 9px; border-radius: 999px;
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .nav-links { gap: 12px; } }

/* ---------- photos ---------- */
/* Each .photo shows its image; if the file is missing, main.js adds .missing and a placeholder appears. */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.missing img { display: none; }
.photo.missing {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--gold) 9%, transparent) 14px 15px),
    var(--paper-2);
  outline: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent);
  outline-offset: -10px;
}
.photo.missing::after {
  content: "Photo · " attr(data-file);
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 8px;
  font: italic 400 18px var(--serif); color: var(--muted);
}


.photo-round {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px;
}
.photo-round.missing { outline-offset: -6px; }
.photo-round.missing::after { content: "Photo"; font-size: 15px; }

/* ---------- slideshow (3-up carousel) ---------- */
/* Slides are positioned by main.js via data-pos: -2 … 2 (0 = centre). Others are hidden. */
.slideshow {
  /* Width of the centre photo: as big as the screen allows, filling most of the first view */
  --w: max(260px, min(1150px, 86vw, calc((100svh - 250px) * 1.5)));
  position: relative; overflow: hidden;
  padding: 18px 0 20px;
}
.slides {
  position: relative; height: calc(var(--w) * 2 / 3);
  touch-action: pan-y;
}
.slide {
  position: absolute; left: 50%; top: 0;
  width: var(--w); aspect-ratio: 3 / 2;
  box-shadow: 0 18px 40px -18px rgba(60, 45, 20, .35);
  transform: translateX(-50%) scale(.6); opacity: 0; filter: blur(3px);
  transition: transform .9s cubic-bezier(.4, 0, .2, 1), opacity .9s, filter .9s, box-shadow .4s;
  pointer-events: none;
}
.slide[data-pos="0"]  { transform: translateX(-50%) scale(1); opacity: 1; filter: none; z-index: 3; }
.slide[data-pos="-1"] { transform: translateX(-150%) scale(.8); opacity: .55; filter: blur(1.5px) saturate(.85); z-index: 2; cursor: pointer; pointer-events: auto; }
.slide[data-pos="1"]  { transform: translateX(50%) scale(.8);  opacity: .55; filter: blur(1.5px) saturate(.85); z-index: 2; cursor: pointer; pointer-events: auto; }
.slide[data-pos="-2"] { transform: translateX(-250%) scale(.6); z-index: 1; }
.slide[data-pos="2"]  { transform: translateX(150%) scale(.6);  z-index: 1; }
/* Hover: photos grow slightly (computers only) */
.slide[data-pos="0"] { pointer-events: auto; cursor: zoom-in; }
.slide:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) {
  .slide[data-pos="0"]:hover  { transform: translateX(-50%) scale(1.04); box-shadow: 0 26px 50px -18px rgba(60, 45, 20, .45); }
  .slide[data-pos="-1"]:hover { transform: translateX(-150%) scale(.86); opacity: .85; filter: blur(.5px); }
  .slide[data-pos="1"]:hover  { transform: translateX(50%) scale(.86);  opacity: .85; filter: blur(.5px); }
}

.slide-nav {
  position: absolute; top: calc(18px + var(--w) / 3); z-index: 4; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: var(--card); color: var(--ink);
  font: 300 30px/1 var(--serif); padding-bottom: 4px;
  transition: background .2s, border-color .2s;
}
.slide-nav:hover { border-color: var(--ink); }
.slide-nav.prev { left: calc(50% - var(--w) / 2 - 23px); }
.slide-nav.next { left: calc(50% + var(--w) / 2 - 23px); }
@media (hover: none) { .slide-nav { display: none; } }

.slide-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.slide-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--line); transition: width .3s, background .3s;
}
.slide-dots button[aria-selected="true"] { width: 24px; background: var(--gold); }

@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* ---------- rsvp: party & plus one ---------- */
.rsvp-intro { font: italic 400 20px var(--serif); text-align: center; color: var(--muted); margin-bottom: 14px; }
.party { display: grid; gap: 14px; }
.guest { background: var(--card); border: 1px solid var(--line); padding: 18px 18px 20px; display: grid; gap: 12px; }
.guest-name { font: 500 24px var(--serif); margin: 0; }
.guest .choice { display: flex; gap: 8px; flex-wrap: wrap; }
.guest .pill { flex: 1 1 140px; font-size: 18px; padding: 9px 14px; }
.guest-diet input { font-size: 16px !important; }

.plus-one { border: 1px dashed var(--line); border-radius: 4px; padding: 16px 18px 18px; margin: 0; display: grid; gap: 14px; }
.plus-one legend { padding: 0 6px; font: 500 22px var(--serif); }
.plus-one > div > label { display: block; }
.plus-one > div { display: grid; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font: 400 19px var(--serif); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.rsvp .check > span { display: inline; margin: 0; font: inherit; letter-spacing: normal; text-transform: none; color: var(--ink); }
.note { font-size: 14px; color: var(--muted); font-style: italic; margin: 0; }
.thanks .note { margin-top: 14px; }

.link { all: unset; cursor: pointer; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }

/* ---------- rsvp: name suggestions ---------- */
#rsvp-find > label > span { margin-bottom: -14px; }
.combo { position: relative; }
#rsvp-find { min-height: 320px; align-content: start; }
.suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5;
  list-style: none; margin: 0; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 12px 30px -12px rgba(60, 45, 20, .3);
}
.suggestions li {
  padding: 10px 12px; border-radius: 3px; cursor: pointer;
  font: 400 19px var(--serif);
}
.suggestions li[aria-selected="true"], .suggestions li:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
}

.hotels { list-style: none; padding: 0; margin: -6px 0 14px; }
.hotels li { padding: 3px 0; }
.hotels li::before { content: "→ "; color: var(--gold); }

/* ---------- travel ---------- */
.tile h4 {
  font: 500 13px var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 18px 0 8px;
}
.tile h3 + h4, .travel-modes h4 { margin-top: 0; }
.tile-wide { margin-bottom: 20px; }
.travel-modes { gap: 28px; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 400px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- gift / bank details ---------- */
.gifts-intro { max-width: 560px; margin: -8px auto 28px; color: var(--muted); }
.bank { max-width: 640px; }
.bank dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; }
.bank dt { font-weight: 500; }
.bank dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .bank dl { grid-template-columns: 1fr; gap: 2px; }
  .bank dd { margin-bottom: 12px; }
}

/* ---------- full-screen photo viewer ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(24, 21, 17, .94);
  animation: lb-in .25s ease;
}
@keyframes lb-in { from { opacity: 0; } }
.lightbox img {
  max-width: min(92vw, 1600px); max-height: 84vh; object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
}
.lb-btn {
  position: absolute; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 253, 249, .12); color: #fffdf9;
  font: 300 34px/1 var(--serif); padding-bottom: 4px;
  transition: background .2s;
}
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 253, 249, .25); outline: none; }
.lb-close { top: 18px; right: 18px; font-size: 30px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute; bottom: 18px; left: 0; right: 0; margin: 0; text-align: center;
  color: rgba(255, 253, 249, .7); font-size: 13px; letter-spacing: .2em;
}
@media (hover: none) { .lb-prev, .lb-next { display: none; } }
@media (prefers-reduced-motion: reduce) { .lightbox { animation: none; } }

/* ---------- our journey (scroll-animated map, journey.js) ---------- */
/* The section is tall; its inside sticks while you scroll through it, and the scroll drives the map. */
:root { --her: #c4786a; --him: #3f6250; }   /* Nadiya: dusty rose · Maaz: deep green */
.journey { position: relative; height: 560vh; }
.journey-sticky {
  position: sticky; top: 56px; height: calc(100vh - 56px); height: calc(100svh - 56px);
  display: flex; flex-direction: column; padding: 28px 16px 18px;
}
.journey h2 { font-size: clamp(34px, 6vw, 46px); text-align: center; }
.journey h2::after { content: ""; display: block; width: 40px; height: 1px; background: var(--gold); margin: 16px auto 0; }
.journey-legend { display: flex; justify-content: center; gap: 22px; margin: 16px 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--her); }
.lg-him::before { background: var(--him); }
.lg-us::before { height: 5px; background: linear-gradient(var(--him) 0 30%, var(--her) 30% 70%, var(--him) 70%); }
.journey-map {
  position: relative; flex: 1; min-height: 0; width: calc(100% + 32px); margin: 0 -16px; overflow: hidden;
  /* the map fades into the page at its edges */
  -webkit-mask-image: linear-gradient(to right, transparent, rgba(0,0,0,.35) 4%, rgba(0,0,0,.8) 9%, #000 15%, #000 85%, rgba(0,0,0,.8) 91%, rgba(0,0,0,.35) 96%, transparent), linear-gradient(transparent, rgba(0,0,0,.5) 4%, #000 12%, #000 88%, rgba(0,0,0,.5) 96%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, rgba(0,0,0,.35) 4%, rgba(0,0,0,.8) 9%, #000 15%, #000 85%, rgba(0,0,0,.8) 91%, rgba(0,0,0,.35) 96%, transparent), linear-gradient(transparent, rgba(0,0,0,.5) 4%, #000 12%, #000 88%, rgba(0,0,0,.5) 96%, transparent);
          mask-composite: intersect;
}
.journey-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.j-land { fill: #ddd0b9; }
.j-border { fill: none; stroke: #c4b293; stroke-width: .8; vector-effect: non-scaling-stroke; }
.j-lake { fill: #f6f1e8; stroke: #c4b293; stroke-width: .8; vector-effect: non-scaling-stroke; }
.j-local { transition: opacity .3s; }
.j-line { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.j-her { stroke: var(--her); stroke-width: 2.2; }
.j-him { stroke: var(--him); stroke-width: 2.2; }
.j-her, .j-him { transition: opacity .5s; }
.journey.together .j-her, .journey.together .j-him { opacity: .35; }
.j-us-under { stroke: var(--him); stroke-width: 5; }
.j-us-over { stroke: var(--her); stroke-width: 1.8; }
.journey-hint { text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }

.journey-pins { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.j-pin { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .35s; will-change: transform; }
.j-pin.on { opacity: 1; }
.j-dot {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--her); box-shadow: 0 0 0 3px color-mix(in srgb, var(--paper) 70%, transparent);
}
.j-pin-him .j-dot { border-color: var(--him); }
.j-pin-us .j-dot { border-color: var(--ink); }
.j-label {
  position: absolute; left: 12px; top: -11px; white-space: nowrap; line-height: 1.15;
  font: 400 15px var(--sans); color: var(--ink); text-shadow: 0 0 4px var(--paper), 0 0 8px var(--paper);
  transition: opacity .25s;
}
.j-sub { display: block; font: italic 400 15px var(--serif); color: var(--muted); }
.j-date { display: block; margin-top: 1px; font: 400 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #8a6f40; }
.j-pin.quiet .j-label { opacity: 0; }
.j-pin.left .j-label { left: auto; right: 12px; text-align: right; }
/* Special places get a round icon pin: heart (where we met), house (first home), rings (the wedding) */
.j-pin-icon .j-dot {
  width: 28px; height: 28px; left: -14px; top: -14px; display: grid; place-items: center;
  border: 2px solid var(--card); box-shadow: 0 0 0 1.5px var(--icon), 0 5px 14px -6px rgba(45, 43, 39, .5);
  background: var(--icon);
}
.j-pin-icon .j-dot svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.j-pin-icon .j-dot svg .f { fill: #fff; stroke: none; }
.j-pin-icon .j-label { left: 22px; top: -14px; }
.j-pin-icon.left .j-label { right: 22px; }
.j-icon-heart { --icon: var(--her); }
.j-icon-home { --icon: var(--gold); }
.j-icon-rings { --icon: var(--accent); }
/* the pin pops in when it's reached */
.j-pin-icon .j-dot { transform: scale(.4); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.j-pin-icon.on .j-dot { transform: scale(1); }
/* Montagnat: the wedding, a little larger */
.j-pin-final .j-dot { width: 34px; height: 34px; left: -17px; top: -17px; }
.j-pin-final .j-dot svg { width: 24px; height: 24px; stroke-width: 1.5; }
.j-pin-final .j-label { left: 26px; top: -16px; }
.j-pin-final.left .j-label { right: 26px; }
.j-pin-final .j-name { font: 500 21px var(--serif); }

/* Reduced motion: no scrolling story, just the finished map */
.journey.journey-static { height: auto; }
.journey-static .journey-sticky { position: static; height: 80vh; }
.journey-static .journey-hint { display: none; }

@media (max-width: 640px) {
  .journey { height: 520vh; }
  .journey-legend { gap: 14px; font-size: 11px; }
  .j-label, .j-sub { font-size: 13px; }
  .j-pin-final .j-name { font-size: 18px; }
}

/* ---------- page background: fine paper grain and soft gold / sage washes ---------- */
/* Fixed behind everything; sections let it show through, while cards and photos sit crisp on top. */
body { position: relative; isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E"),
    radial-gradient(60vw 50vh at 8% 0%, rgba(180, 154, 106, .16), transparent 70%),
    radial-gradient(55vw 55vh at 100% 35%, rgba(95, 111, 82, .09), transparent 70%),
    radial-gradient(60vw 50vh at 0% 100%, rgba(196, 120, 106, .07), transparent 70%),
    var(--paper);
}
body { background: transparent; }


/* ---------- sections: a soft tint each, and watercolour blooms bleeding in from the edges ---------- */
.section { position: relative; isolation: isolate; overflow: hidden; }
/* Each section gets its own wash of colour that fades out at its top and bottom, so sections blend into one another */
.section { --tint: transparent; background: linear-gradient(transparent, var(--tint) 22%, var(--tint) 78%, transparent); }
#details  { --tint: rgba(214, 186, 128, .13); }   /* warm gold */
#schedule { --tint: rgba(217, 150, 134, .13); }   /* blush */
#travel   { --tint: rgba(143, 162, 122, .14); }   /* sage */
#gifts    { --tint: rgba(228, 184, 128, .15); }   /* peach */
#faq      { --tint: rgba(140, 164, 178, .12); }   /* dusty blue */
#rsvp     { --tint: rgba(200, 128, 112, .12); }   /* rose */
#coming   { --tint: rgba(170, 156, 190, .12); }   /* lavender */

/* Six different blooms (images/wash-1…6.svg), mixed across the page in different sizes and places.
   Some sections get a pair: a large one and a small accent. */
:is(#details, #schedule, #travel, #gifts, #faq, #coming, #rsvp)::before,
:is(#details, #travel, #faq, #rsvp)::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1; opacity: .85;
  background: no-repeat center / contain;
}
/* A small bloom behind the N & M in the top-left corner (it stays with the menu bar as you scroll) */
.nav-mark { position: relative; isolation: isolate; }
.nav-mark::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: 50%;
  width: 104px; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-15deg);
  background: url("images/wash-1.svg") no-repeat center / contain; opacity: .9;
}
#details::before  { background-image: url("images/wash-1.svg"); width: clamp(260px, 32vw, 460px); left: -9%;  top: -12%; }
#details::after   { background-image: url("images/wash-6.svg"); width: clamp(120px, 13vw, 190px); right: 4%;  bottom: 6%; transform: rotate(140deg); opacity: .7; }
#schedule::before { background-image: url("images/wash-2.svg"); width: clamp(240px, 28vw, 420px); right: -8%; top: -6%;  transform: rotate(160deg); }
#travel::before   { background-image: url("images/wash-5.svg"); width: clamp(280px, 30vw, 440px); left: -12%; top: 30%;  transform: rotate(-30deg); }
#travel::after    { background-image: url("images/wash-3.svg"); width: clamp(200px, 22vw, 320px); right: -6%; bottom: -4%; transform: rotate(150deg); opacity: .7; }
#gifts::before    { background-image: url("images/wash-4.svg"); width: clamp(260px, 30vw, 440px); right: -10%; top: -14%; transform: rotate(20deg); }
#faq::before      { background-image: url("images/wash-1.svg"); width: clamp(240px, 26vw, 380px); left: -8%;  bottom: -12%; transform: rotate(210deg); }
#faq::after       { background-image: url("images/wash-6.svg"); width: clamp(110px, 12vw, 170px); right: 6%;  top: 10%; transform: rotate(-60deg); opacity: .7; }
#coming::before   { background-image: url("images/wash-4.svg"); width: clamp(240px, 26vw, 400px); left: -9%; top: -8%; transform: rotate(-40deg); }
#rsvp::before     { background-image: url("images/wash-2.svg"); width: clamp(240px, 28vw, 420px); right: -7%; top: -8%;  transform: rotate(80deg); }
#rsvp::after      { background-image: url("images/wash-5.svg"); width: clamp(160px, 18vw, 260px); left: -4%;  bottom: 4%; transform: rotate(100deg); opacity: .7; }
@media (max-width: 760px) {
  :is(#details, #schedule, #travel, #gifts, #faq, #coming, #rsvp)::before { width: 290px; opacity: .55; }
  :is(#details, #travel, #faq, #rsvp)::after { width: 140px; opacity: .5; }
  .nav-mark::before { width: 90px; }
  #travel::before { left: -40%; }
}

/* ---------- coming from near & far (map of RSVP cities, coming-map.js) ---------- */
.coming-stats { margin: -18px auto 22px; letter-spacing: .08em; }
.coming-frame { position: relative; max-width: 1100px; margin: 0 auto; }
.coming-map {
  position: relative; height: clamp(320px, 52vw, 560px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent);
          mask-composite: intersect;
}
.coming-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-land { fill: #ddd0b9; }
.c-border { fill: none; stroke: #c4b293; }
.c-arc { fill: none; stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; transition: stroke-dashoffset 1.6s cubic-bezier(.45, 0, .2, 1); }
#coming.drawn .c-arc { stroke-dashoffset: 0; }
.c-dot { fill: var(--her); fill-opacity: .82; stroke: var(--card); cursor: pointer; transition: fill-opacity .2s; }
.c-dot:hover { fill-opacity: 1; }
.coming-labels { position: absolute; inset: 0; pointer-events: none; }
.c-lake { fill: #f6f1e8; stroke: #c4b293; }
.c-local { transition: opacity .3s; }
/* zoom: buttons in the corner; once zoomed in, the map can be dragged */
.coming-map { touch-action: pan-y; cursor: zoom-in; }
#coming.zoomed .coming-map { touch-action: none; cursor: grab; }
#coming.zoomed .coming-map:active { cursor: grabbing; }
.coming-zoom { position: absolute; right: 9%; top: 10%; z-index: 2; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--card); box-shadow: 0 6px 16px -10px rgba(45, 43, 39, .4); }
.coming-zoom button { all: unset; width: 34px; height: 32px; display: grid; place-items: center; cursor: pointer; font: 300 20px/1 var(--sans); color: var(--ink); }
.coming-zoom button + button { border-top: 1px solid var(--line); }
.coming-zoom button:hover { background: var(--paper-2); }
.coming-zoom [data-zoom=reset] { font-size: 15px; }
#coming:not(.zoomed) [data-zoom=reset] { display: none; }
.coming-cta { margin: 16px auto 0; }
.coming-cta a { font-size: 15px; letter-spacing: .04em; }
.c-label {
  position: absolute; left: 0; top: 0; white-space: nowrap; font: 400 14px var(--sans); color: var(--ink);
  margin: -10px 0 0 var(--off); text-shadow: 0 0 4px var(--paper), 0 0 8px var(--paper);
}
.c-label.left { margin-left: 0; translate: calc(-100% - var(--off)) 0; }
.coming-tip {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; margin: -58px 0 0 -10px;
  background: var(--card); border: 1px solid var(--line); padding: 7px 12px; border-radius: 4px; white-space: nowrap;
  font-size: 13px; line-height: 1.35; box-shadow: 0 8px 22px -12px rgba(45, 43, 39, .4);
}
.coming-tip strong { display: block; font-weight: 500; }
.coming-preview { margin: 10px auto 0; }
@media (max-width: 640px) {
  .c-label { font-size: 12px; }
  .coming-zoom { right: 6%; top: 8%; }
}
