/* ─────────────────────────────────────────────────────────────
   Whispering Springs: woodland wedding theme
   ───────────────────────────────────────────────────────────── */

:root {
  --pine: #1d3328;        /* deep forest night */
  --pine-2: #264536;
  --moss: #56704f;
  --sage: #a3b18a;
  --fern: #7d9b6e;
  --cream: #f6f1e7;
  --parchment: #ece4d3;
  --bark: #5a4636;
  --ink: #22302a;
  --muted: #5d6a61;
  --gold: #c9a96b;
  --gold-soft: #e5d3a8;
  --water: #8fb8bd;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(29, 51, 40, 0.45);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 0.4vw + 1rem, 1.25rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 500; line-height: 1.1; margin: 0 0 .6em; }
h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 em { font-family: var(--script); font-style: normal; font-weight: 400; font-size: 1.25em; color: var(--moss); padding-left: .05em; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8rem); }
.section__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.lede { color: var(--muted); font-size: 1.2em; font-style: italic; max-width: 36em; margin-inline: auto; }

.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--moss);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--gold-soft); }

/* Night sections: dark forest green with fireflies */
.night { background: var(--pine); color: var(--cream); }
.night h2 em { color: var(--gold); }
.night .lede { color: rgba(246, 241, 231, .72); }
.fireflies { position: relative; overflow: hidden; isolation: isolate; }
.fireflies > canvas.firefly-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  padding: 1em 2.1em; border-radius: 999px; border: 1px solid var(--pine);
  background: var(--pine); color: var(--cream);
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.btn--small { padding: .75em 1.5em; font-size: .72rem; }
.btn--light { background: var(--cream); color: var(--pine); border-color: var(--cream); }
.btn--ghost-light { background: transparent; color: var(--cream); border-color: rgba(246, 241, 231, .55); }
.btn--ghost-light:hover { background: rgba(246, 241, 231, .1); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ───────────── Nav ───────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + .9rem) clamp(1rem, 4vw, 2.5rem) .9rem;
  color: var(--cream);
  transition: background .4s, color .4s, box-shadow .4s, padding .4s;
}
.nav.is-solid {
  background: rgba(246, 241, 231, .9); color: var(--pine);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(29, 51, 40, .08);
  padding-block: calc(env(safe-area-inset-top, 0px) + .55rem) .55rem;
}
.nav__mark { font-family: var(--script); font-size: 1.9rem; text-decoration: none; line-height: 1; }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__links a {
  font-family: var(--sans); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; position: relative; padding-block: .3em;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transition: transform .35s var(--ease); transform-origin: left;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { border: 1px solid currentColor; border-radius: 999px; padding: .55em 1.3em !important; }
.nav__toggle { display: none; }

@media (max-width: 820px) {
  .nav__toggle {
    display: grid; gap: 6px; place-content: center; width: 44px; height: 44px;
    background: none; border: 0; color: inherit; cursor: pointer; position: relative; z-index: 2;
  }
  .nav__toggle span:not(.visually-hidden) { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .3s; }
  .nav[data-open] .nav__toggle span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav[data-open] .nav__toggle span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem;
    background: var(--pine); color: var(--cream);
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav__links a { font-size: .95rem; }
  .nav[data-open] { color: var(--cream); }
  .nav[data-open] .nav__links { opacity: 1; pointer-events: auto; }
}

/* ───────────── Hero ───────────── */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: var(--pine); color: var(--cream);
  touch-action: pan-y;
}
.hero__canvas, .hero__fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero__canvas { opacity: 0; transition: opacity 1.4s ease; }
.hero__canvas.is-ready { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(16, 30, 23, .62) 0%, rgba(16, 30, 23, .3) 30%, rgba(16, 30, 23, 0) 52%),
    linear-gradient(to top, rgba(16, 30, 23, .45) 0%, rgba(16, 30, 23, 0) 30%);
}
.hero[data-text="bottom"] .hero__shade {
  background: linear-gradient(to top, rgba(16, 30, 23, .7) 0%, rgba(16, 30, 23, 0) 55%);
}
.hero[data-text="left"] .hero__shade {
  background:
    linear-gradient(to right, rgba(16, 30, 23, .35) 0%, rgba(16, 30, 23, 0) 55%),
    linear-gradient(to bottom, rgba(16, 30, 23, .45) 0%, rgba(16, 30, 23, 0) 22%);
}
.hero[data-text="center"] .hero__shade { background: radial-gradient(ellipse at center, rgba(16, 30, 23, .45), rgba(16, 30, 23, .1) 70%); }

.hero__content {
  position: absolute; inset-inline: 0; text-align: center; padding-inline: 1rem;
  top: calc(env(safe-area-inset-top, 0px) + clamp(5.5rem, 13vh, 9rem));
  pointer-events: none; text-shadow: 0 1px 2px rgba(10, 20, 15, .35), 0 2px 24px rgba(10, 20, 15, .55);
}
.hero[data-text="center"] .hero__content { top: 50%; transform: translateY(-50%); }
.hero[data-text="bottom"] .hero__content { top: auto; bottom: clamp(7rem, 16vh, 10rem); }
@media (min-width: 821px) {
  .hero[data-text="left"] .hero__content {
    top: 50%; transform: translateY(-50%); text-align: left;
    left: clamp(1.5rem, 6vw, 7rem); right: auto; width: min(44vw, 640px); padding: 0;
  }
  .hero[data-text="left"] .hero__names { justify-content: flex-start; font-size: clamp(3.6rem, 6.4vw, 7rem); }
  .hero[data-text="left"] .hero__content::before { left: 40%; }
}
.hero__content::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(1100px, 130%); height: 150%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(16, 30, 23, .42), rgba(16, 30, 23, .18) 60%, rgba(16, 30, 23, 0));
}
.hero__content { isolation: isolate; }
.hero__content .eyebrow { color: var(--gold-soft); }
/* Personal invitation links (js/invite.js) */
.hero__hello { font-family: var(--script); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; color: var(--gold-soft); margin: 0 0 .35rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.intro__hello { font-family: var(--script); font-size: clamp(2rem, 5vw, 3rem); line-height: 1; color: var(--gold-soft); margin: 0 0 .3rem; }
.hero__names {
  font-family: var(--script); font-weight: 400; margin: 0;
  font-size: clamp(3.6rem, 11vw, 8.5rem); line-height: 1.05;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .25em;
}
.hero__amp { font-size: .6em; color: var(--gold-soft); }
.hero__date {
  font-family: var(--sans); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; font-size: clamp(.78rem, 1.6vw, .95rem);
  margin: 1.2rem 0 .3rem;
}
.hero__place { font-style: italic; font-size: 1.25rem; opacity: .92; }

.hero__content > * { opacity: 0; transform: translateY(14px); animation: rise 1.3s var(--ease) forwards; }
.hero__content > :nth-child(2) { animation-delay: .2s; }
.hero__content > :nth-child(3) { animation-delay: .45s; }
.hero__content > :nth-child(4) { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__hint {
  position: absolute; left: 50%; bottom: clamp(5rem, 12vh, 8rem); transform: translateX(-50%);
  margin: 0; display: flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(246, 241, 231, .85); pointer-events: none;
  transition: opacity 1s;
  opacity: 0; animation: fade-in 1s 2.2s forwards;
}
.hero__hint.is-gone { animation: none; opacity: 0; }
.hero__hint-ring { width: 14px; height: 14px; border-radius: 50%; border: 1px solid currentColor; position: relative; }
.hero__hint-ring::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid currentColor;
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* Pine-tree silhouettes (generated by js/main.js) */
.forest { position: absolute; left: 0; right: 0; pointer-events: none; line-height: 0; }
.forest svg { width: 100%; height: 100%; display: block; }
.forest--hero { bottom: -1px; height: clamp(44px, 6.5vw, 96px); }
.forest--bottom { bottom: -1px; height: clamp(70px, 12vw, 150px); }
.forest .layer-back { fill: #2e4c3c; }
.forest .layer-mid { fill: #24402f; }
.forest .layer-front { fill: var(--pine); }
.forest--bottom .layer-back { fill: #b9c4a8; }
.forest--bottom .layer-mid { fill: #6f8a64; }

/* ───────────── Countdown ───────────── */
.countdown { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.countdown__layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.countdown__body { text-align: center; }
.countdown__body h2 { margin-bottom: 2rem; }
.arch { margin: 0 auto; width: 100%; max-width: 400px; position: relative; }
.arch img {
  width: 100%; aspect-ratio: 708 / 896; object-fit: cover;
  border-radius: 9999px 9999px 14px 14px;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7);
}
.arch::after {
  content: ""; position: absolute; inset: -12px; pointer-events: none;
  border: 1px solid rgba(201, 169, 107, .55); border-radius: 9999px 9999px 20px 20px;
}
@media (max-width: 820px) {
  .countdown__layout { grid-template-columns: 1fr; }
  .arch { max-width: min(320px, 78%); }
}
.countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.5rem, 3vw, 2.5rem); max-width: 640px; margin: 0 auto 2.4rem; }
.countdown__grid span { display: block; font-size: clamp(2.6rem, 8vw, 4.6rem); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__grid small { font-family: var(--sans); text-transform: uppercase; letter-spacing: .26em; font-size: .68rem; color: var(--gold-soft); }
.countdown__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ───────────── Story ───────────── */
.verse {
  margin: clamp(3rem, 6vw, 4.5rem) auto 0; padding: 1.5rem 0 0; border-top: 1px solid rgba(86, 112, 79, .3);
  font-style: italic; font-size: 1.45rem; color: var(--pine); text-align: center; max-width: 560px;
}
.verse p { margin: 0 0 .4rem; color: inherit !important; }
.verse cite { font-family: var(--sans); font-style: normal; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--moss); }

/* Our story: chapters with photo galleries */
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.chapter { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.chapter--flip .chapter__photos { order: 2; }
.chapter--text { display: block; text-align: center; max-width: 640px; margin: 0 auto; }
.chapter__date { font-family: var(--sans); font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--moss); margin-bottom: .4rem; }
.chapter h3 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: .6rem; }
.chapter p { color: #3c4a42; }
.chapter--finale h3 { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--moss); }
.chapter__photos .gallery { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: #1d2a23; }
.gallery--fit .gallery__track img { object-fit: contain; }
@media (max-width: 820px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter--flip .chapter__photos { order: 0; }
}

/* ───────────── The day ───────────── */
.day { background: var(--parchment); }
.timeline { list-style: none; margin: 0 auto 4rem; padding: 0; max-width: 860px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--sage) 8%, var(--sage) 92%, transparent);
}
.timeline li { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; margin-bottom: 2.2rem; }
.timeline__icon {
  grid-column: 2; width: 52px; height: 52px; border-radius: 50%; margin: 0 auto;
  background: var(--cream); border: 1px solid var(--sage); display: grid; place-items: center; color: var(--moss);
  position: relative; z-index: 1;
}
.timeline__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.timeline__time { font-family: var(--sans); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: var(--moss); }
.timeline__body h3 { margin: .15em 0 .2em; }
.timeline__body .place { font-style: italic; color: var(--bark); margin: 0 0 .3em; }
.timeline__body .note { margin: 0; color: var(--muted); font-size: .98em; }
.timeline li:nth-child(odd) .timeline__time { grid-column: 1; grid-row: 1; text-align: right; padding-right: 1.5rem; }
.timeline li:nth-child(odd) .timeline__body { grid-column: 3; grid-row: 1; padding-left: 1.5rem; }
.timeline li:nth-child(even) .timeline__time { grid-column: 3; grid-row: 1; padding-left: 1.5rem; }
.timeline li:nth-child(even) .timeline__body { grid-column: 1; grid-row: 1; text-align: right; padding-right: 1.5rem; }
@media (max-width: 680px) {
  .timeline::before { left: 26px; }
  .timeline li { grid-template-columns: 52px 1fr; column-gap: 1.1rem; align-items: start; }
  .timeline__icon { grid-column: 1 !important; grid-row: 1 / span 2 !important; margin: 0; }
  .timeline li .timeline__time,
  .timeline li .timeline__body { grid-column: 2 !important; text-align: left !important; padding: 0 !important; }
  .timeline li .timeline__time { grid-row: 1 !important; padding-top: .9rem !important; }
  .timeline li .timeline__body { grid-row: 2 !important; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; }
.card {
  background: var(--cream); border-radius: var(--radius); padding: 2rem 1.8rem;
  border: 1px solid rgba(86, 112, 79, .18);
}
.card h3 { font-size: 1.5rem; }
.card p { color: var(--muted); }

/* ───────────── Map ───────────── */
.map-section { background: var(--cream); }
.finder { position: relative; max-width: 520px; margin: 0 auto 1rem; }
.finder input {
  width: 100%; font: inherit; font-size: 1.15rem; padding: .95rem 1.2rem .95rem 3rem;
  border-radius: 999px; border: 1px solid rgba(86, 112, 79, .35); background: #fffdf8; color: var(--ink);
  box-shadow: 0 8px 24px -16px rgba(29, 51, 40, .4);
}
.finder input::placeholder { color: #8b958d; font-style: italic; }
.finder__icon { position: absolute; left: 1.15rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--moss); stroke-width: 1.8; stroke-linecap: round; }
.finder__list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + .4rem); margin: 0; padding: .4rem;
  list-style: none; background: #fffdf8; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid rgba(86, 112, 79, .2);
}
.finder__list li { padding: .6rem .9rem; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; }
.finder__list li small { font-family: var(--sans); font-size: .72rem; color: var(--muted); letter-spacing: .08em; align-self: center; text-align: right; }
.finder__list li[aria-selected="true"], .finder__list li:hover { background: var(--parchment); }
.finder__list .empty { color: var(--muted); font-style: italic; cursor: default; }
.finder__result {
  max-width: 680px; margin: 0 auto 1.6rem; text-align: center; padding: 1rem 1.4rem;
  background: rgba(163, 177, 138, .18); border-radius: var(--radius); animation: rise .6s var(--ease);
}
.finder__result p { margin: 0; }
.finder__result strong { color: var(--pine); }
.finder__result { scroll-margin-top: 80px; }
.finder__result .stay { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(86, 112, 79, .25); }
.finder__result .stay p { color: var(--muted); font-size: 1.02rem; margin-bottom: .6rem; }
.stay__name { font-family: var(--sans); font-size: .72rem !important; letter-spacing: .22em; text-transform: uppercase; color: var(--moss) !important; }
.finder__result .note { font-style: italic; color: var(--muted); margin-top: .8rem; }
.features { list-style: none; padding: 0; margin: .5rem 0 .2rem; display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.features li { background: rgba(255, 253, 248, .85); border: 1px solid rgba(86, 112, 79, .25); border-radius: 999px; padding: .1em .75em; font-size: .9rem; }
.map__info .features { justify-content: flex-start; }
.finder__result .hello { font-family: var(--script); font-size: 2rem; line-height: 1.2; color: var(--moss); }

.map {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 4px);
  background: #6b4a33; height: min(72vh, 720px); min-height: 380px;
  box-shadow: 0 30px 60px -30px rgba(29, 51, 40, .5), inset 0 0 0 1px rgba(29, 51, 40, .08);
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.map.is-zoomed { touch-action: none; }
.map.is-dragging { cursor: grabbing; }
.map__stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.map__img { width: 100%; height: 100%; pointer-events: none; }
.map__pins { position: absolute; inset: 0; }

.pin {
  position: absolute; width: 0; height: 0; border: 0; padding: 0; background: none; cursor: pointer;
  color: var(--pine);
}
.pin__inner {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: .45rem;
  transform: translate(-21px, -50px) scale(var(--inv, 1)); transform-origin: 21px 50px;
  transition: transform .25s var(--ease);
}
.pin__marker {
  width: 42px; height: 50px; flex: none; position: relative;
  filter: drop-shadow(0 4px 6px rgba(20, 35, 27, .35));
}
.pin__marker > svg.drop { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--pin, #fffdf8); stroke: var(--pine); stroke-width: 1.5; }
.pin__marker > svg.glyph { position: absolute; left: 11px; top: 8px; width: 20px; height: 20px; fill: none; stroke: var(--pine); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* each kind of tent or cabin has its own pastel colour (pins and legend); everything else is white */
[data-stay="whisper-cabin"] { --pin: #f8c8d6; }
[data-stay="a-frame"] { --pin: #c6ebbd; }
[data-stay="treetop"] { --pin: #fbe8a0; }
[data-stay="deluxe-safari"] { --pin: #b6e4e8; }
[data-stay="traditional-safari"] { --pin: #fdd0b2; }
[data-stay="junior-safari"] { --pin: #d4cdf6; }
.pin__label {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .08em; white-space: nowrap;
  background: rgba(255, 253, 248, .94); padding: .3em .7em; border-radius: 999px; color: var(--pine);
  box-shadow: 0 4px 10px -4px rgba(20, 35, 27, .35);
  opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s;
  margin-top: -18px; pointer-events: none;
  display: flex; flex-direction: column; line-height: 1.25; border-radius: 10px;
}
.pin__label strong { font-weight: 500; }
.pin__label small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); }
.pin--unused { opacity: .7; }
.pin--unused .drop { fill: #e4ddd0 !important; }
.map__info .unused { font-style: italic; color: #9a6a2c; }
.pin:hover .pin__label, .pin:focus-visible .pin__label, .pin.is-active .pin__label { opacity: 1; transform: none; }
/* every pin is the same small size; it grows when hovered or opened so its label is readable */
.pin .pin__inner { transform: translate(-21px, -50px) scale(calc(var(--inv, 1) * .62)); }
.pin.is-found .pin__inner { transform: translate(-21px, -50px) scale(calc(var(--inv, 1) * .8)); }
.pin:hover .pin__inner, .pin.is-active .pin__inner { transform: translate(-21px, -50px) scale(calc(var(--inv, 1) * 1.05)); }
.pin.is-active { z-index: 5; }
.pin.is-found .pin__marker::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; border: 2px solid var(--pine); animation: ring 1.8s ease-out infinite;
}

.map__controls { position: absolute; right: 1rem; top: 1rem; display: flex; flex-direction: row; gap: .4rem; z-index: 6; }
.map__controls button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 253, 248, .95); color: var(--pine); font: 500 1.4rem/1 var(--sans);
  box-shadow: 0 6px 16px -8px rgba(20, 35, 27, .5); display: grid; place-items: center;
}
.map__controls button:hover { background: #fff; }
.map__controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.map__hint {
  position: absolute; inset: 0; margin: 0; display: grid; place-items: center; z-index: 7;
  background: rgba(29, 51, 40, .45); color: var(--cream); font-family: var(--sans); letter-spacing: .12em;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.map__hint.is-visible { opacity: 1; }
.map__coords {
  position: absolute; left: 1rem; top: 1rem; z-index: 8; background: var(--pine); color: var(--cream);
  font: .85rem/1.4 ui-monospace, Menlo, monospace; padding: .6rem .8rem; border-radius: 10px; max-width: calc(100% - 6rem);
}
.map__info {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 6; width: min(360px, calc(100% - 2rem)); max-height: calc(100% - 2rem);
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(255, 253, 248, .97); border-radius: var(--radius); box-shadow: var(--shadow);
  animation: rise .45s var(--ease); cursor: auto;
}
/* only the content scrolls, so the close button always stays in the corner */
.map__info-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1.3rem 1.4rem 1.2rem; }
.map__info h3 { margin: 0 0 .1em; font-size: 1.6rem; padding-right: 2rem; }
.map__info .type { font-family: var(--sans); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--moss); margin: 0 0 .6rem; }
.map__info p { color: var(--muted); font-size: 1.02rem; margin-bottom: .7rem; }
.map__info .guests { list-style: none; padding: .7rem 0 0; margin: .4rem 0 0; border-top: 1px solid rgba(86, 112, 79, .2); display: flex; flex-wrap: wrap; gap: .35rem; }
.map__info .guests li { background: var(--parchment); border-radius: 999px; padding: .15em .75em; font-size: .95rem; }
.map__info .guests li.me { background: var(--gold-soft); }
.map__info .close {
  position: absolute; right: .7rem; top: .7rem; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; font-size: 1.4rem; color: var(--muted);
}
.map__info .close:hover { background: var(--parchment); }

.legend { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.6rem 2rem; }
.legend h3 { font-size: 1.25rem; margin: 0 0 .5rem; padding-bottom: .35rem; border-bottom: 1px solid rgba(86, 112, 79, .25); }
.legend__group[data-stay] h3::before {
  content: ""; display: inline-block; width: .8em; height: .8em; margin-right: .45em; border-radius: 50%;
  background: var(--pin); border: 1px solid var(--pine); vertical-align: .02em;
}
.legend h3 small { display: block; margin-top: .2rem; font-family: var(--sans); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--moss); font-weight: 400; }
.legend ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.legend button {
  font: 1rem var(--serif); background: transparent; color: var(--pine); cursor: pointer;
  border: 1px solid rgba(86, 112, 79, .35); border-radius: 999px; padding: .35em 1em .35em .6em;
  display: inline-flex; align-items: center; gap: .45em; transition: background .2s;
}
.legend button:hover, .legend button[aria-pressed="true"] { background: var(--parchment); }
.legend svg { width: 18px; height: 18px; fill: none; stroke: var(--moss); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 640px) {
  .map { height: 62vh; }
  .map__info { left: .6rem; right: .6rem; bottom: .6rem; width: auto; max-height: 55%; }
}

/* ───────────── FAQ ───────────── */
.faq { background: var(--parchment); }
.faq__list details { border-bottom: 1px solid rgba(86, 112, 79, .25); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-size: 1.35rem; font-weight: 500;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: .5rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--moss); border-bottom: 1.5px solid var(--moss); transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq__list details p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; animation: rise .4s var(--ease); }

/* ───────────── Registry ───────────── */
.registry__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.registry__item {
  display: block; text-decoration: none; padding: 2rem 1.5rem; border-radius: var(--radius);
  border: 1px solid rgba(86, 112, 79, .3); background: #fffdf8; transition: transform .35s var(--ease), box-shadow .35s;
}
.registry__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.registry__item strong { display: block; font-size: 1.5rem; font-weight: 500; }
.registry__item span { color: var(--muted); font-style: italic; }
.registry { padding-bottom: clamp(7rem, 14vw, 11rem); }

/* ───────────── RSVP ───────────── */
.rsvp { padding-top: clamp(4rem, 8vw, 6rem); }
.rsvp__card {
  background: var(--cream); color: var(--ink); border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.6rem, 5vw, 3rem); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.rsvp label, .rsvp legend { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); margin-bottom: .55rem; }
.rsvp input[type="text"], .rsvp input[type="email"], .rsvp select, .rsvp textarea {
  width: 100%; font: inherit; font-size: 1.12rem; padding: .8rem 1rem; color: var(--ink);
  border: 1px solid rgba(86, 112, 79, .35); border-radius: 12px; background: #fffdf8;
}
.rsvp textarea { min-height: 96px; resize: vertical; }
.rsvp__row { display: flex; gap: .8rem; flex-wrap: wrap; }
.rsvp__row input { flex: 1 1 240px; }
.rsvp__matches { margin-top: 1.2rem; }
.rsvp__matches p { margin: 0 0 .7rem; color: var(--muted); }
.rsvp__matches .choices { display: flex; flex-direction: column; gap: .5rem; }
.rsvp__matches .choices button {
  text-align: left; font: inherit; padding: .8rem 1rem; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(86, 112, 79, .35); background: #fffdf8; color: var(--ink);
}
.rsvp__matches .choices button:hover { background: var(--parchment); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--moss); text-decoration: underline; cursor: pointer; }

.rsvp__party { font-family: var(--script); font-size: 2.4rem; color: var(--moss); margin: 0 0 1.2rem; line-height: 1.1; }
.guest { border: 0; padding: 1.1rem 0; margin: 0; border-bottom: 1px solid rgba(86, 112, 79, .2); }
.rsvp .guest__name {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink);
  margin-bottom: .6rem; padding: 0; width: 100%;
}
.guest__name input { margin-top: .3rem; }
.toggle { display: flex; gap: .6rem; flex-wrap: wrap; }
.toggle label {
  margin: 0; cursor: pointer; text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: 1.08rem; color: var(--ink);
  border: 1px solid rgba(86, 112, 79, .35); border-radius: 999px; padding: .5em 1.2em; transition: background .2s, color .2s, border-color .2s;
  display: inline-flex; align-items: center; gap: .4em;
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle input:checked + span { font-weight: 600; }
.toggle label:has(input:checked) { background: var(--pine); color: var(--cream); border-color: var(--pine); }
.toggle label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.guest__meal { margin-top: .8rem; }
.field { margin-top: 1.4rem; }
.check { display: flex !important; align-items: center; gap: .6rem; text-transform: none !important; letter-spacing: 0 !important; font-family: var(--serif) !important; font-size: 1.1rem !important; color: var(--ink) !important; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--pine); }
.rsvp__actions { margin-top: 2rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.rsvp__error { color: #9a3b2c; margin: 1rem 0 0; }
.rsvp__done { text-align: center; padding: 1rem 0; outline: none; }
.rsvp__done h3 { font-family: var(--script); font-weight: 400; font-size: 3.2rem; color: var(--moss); margin-bottom: .3rem; }
.rsvp__done p { color: var(--muted); }
.demo-note { font-family: var(--sans); font-size: .78rem; color: #9a6a2c; background: #f6ead2; border-radius: 8px; padding: .5rem .8rem; display: inline-block; }

/* ───────────── Footer ───────────── */
.footer { padding: 4rem 0 calc(env(safe-area-inset-bottom, 0px) + 3.5rem); border-top: 1px solid rgba(246, 241, 231, .08); }
.footer__mark { font-family: var(--script); font-size: 3.2rem; margin: 0; color: var(--gold-soft); }
.footer__date { font-family: var(--sans); letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; opacity: .75; }
.footer__verse { font-style: italic; opacity: .65; margin: 1.5rem 0 0; }

/* ───────────── Scroll reveal ───────────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ───────────── Leaf burst (after RSVP) ───────────── */
.leaf-layer { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.leaf { position: absolute; top: -40px; width: 22px; height: 22px; animation: leaf-fall linear forwards; }
.leaf svg { width: 100%; height: 100%; animation: leaf-sway ease-in-out infinite alternate; }
@keyframes leaf-fall { to { transform: translate3d(var(--drift, 0), 110vh, 0); } }
@keyframes leaf-sway { from { transform: rotate(-35deg) translateX(-10px); } to { transform: rotate(35deg) translateX(10px); } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { transition: none; opacity: 1; transform: none; }
  .hero__content > * { animation: none; opacity: 1; transform: none; }
  .hero__hint-ring::after, .pin.is-found .pin__marker::after { animation: none; }
}

/* ───────────── Woods intro (js/intro.js) ───────────── */
.intro { display: none; }
.intro-on .intro {
  display: block; position: fixed; inset: 0; z-index: 80; overflow: hidden;
  background: #0b150f; color: var(--cream); touch-action: none;
  transition: opacity .8s ease;
}
.intro-on, .intro-on body { overflow: hidden; }
.intro.is-ready { background: transparent; }
.intro.is-done { opacity: 0; pointer-events: none; }
.intro__layers canvas { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform, opacity; }
.intro__flies { position: absolute; inset: 0; pointer-events: none; transition: opacity 1s; }
.intro.is-diving .intro__flies { opacity: 0; }

.intro__night {
  position: absolute; inset: 0; pointer-events: none; transition: opacity 1.4s ease;
  background: radial-gradient(ellipse at 50% 45%, rgba(10, 18, 30, 0) 30%, rgba(5, 10, 16, .6) 100%);
}
.intro.is-diving .intro__night { opacity: 0; }

/* drifting mist over the treetops */
.intro__mist span {
  position: absolute; width: 70vmax; height: 40vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(220, 230, 220, .1), rgba(220, 230, 220, 0));
  animation: mist 38s ease-in-out infinite alternate; transition: opacity 1.2s;
}
.intro__mist span:nth-child(1) { left: -20vmax; top: 5vh; }
.intro__mist span:nth-child(2) { right: -25vmax; top: 40vh; animation-duration: 46s; animation-delay: -12s; }
.intro__mist span:nth-child(3) { left: 20vw; bottom: -20vmax; animation-duration: 52s; animation-delay: -25s; }
.intro.is-diving .intro__mist span { opacity: 0; }
@keyframes mist { to { transform: translate(18vmax, -6vmax) scale(1.15); } }

.intro__copy {
  position: absolute; left: 0; right: 0; text-align: center; padding-inline: 1.25rem;
  top: calc(env(safe-area-inset-top, 0px) + clamp(4.5rem, 12vh, 8rem));
  text-shadow: 0 2px 18px rgba(0, 0, 0, .7); transition: opacity .6s, transform .9s var(--ease);
}
.intro__copy > * { opacity: 0; animation: rise 1.4s var(--ease) forwards; }
.intro__copy > :nth-child(2) { animation-delay: .35s; }
.intro__copy > :nth-child(3) { animation-delay: .8s; }
.intro__copy > :nth-child(4) { animation-delay: 1.4s; }
.intro__copy > :nth-child(5) { animation-delay: 2s; }
.intro.is-diving .intro__copy { opacity: 0; transform: scale(1.15); }
@media (max-width: 600px) {
  .intro__sep { display: none; }
  .intro__date { display: block; margin-top: .4rem; }
}
.intro__title { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 400; margin: 0 0 .3em; }
.intro__title em { font-family: var(--script); font-style: normal; color: var(--gold-soft); font-size: 1.15em; }
.intro__sub { font-style: italic; font-size: 1.25rem; opacity: .85; margin-bottom: 1.6rem; }
.intro__go { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.intro__hint {
  margin-top: 1rem; font-family: var(--sans); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; opacity: .6;
}
.intro__skip {
  position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: calc(env(safe-area-inset-bottom, 0px) + 1.2rem);
  background: none; border: 0; color: rgba(246, 241, 231, .65); cursor: pointer;
  font-family: var(--sans); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; padding: .6rem;
}
.intro__skip:hover { color: var(--cream); }
.intro.is-diving .intro__skip { opacity: 0; }

/* While the intro plays, the hero waits: dark water around the photo, names held back */
.intro-on .hero { background: #090c0a; }
.hero__shade, .hero__hint, .forest--hero { transition: opacity 1.2s ease; }
.intro-on .hero__content, .intro-on .hero__shade, .intro-on .hero__hint, .intro-on .forest--hero { opacity: 0; }
.intro-on .hero__content > *, .intro-on .hero__hint { animation-play-state: paused; }
.hero__content { transition: opacity .6s ease; }

/* ───────────── Trail through the day (js/trail.js) ───────────── */
.timeline.has-trail::before { display: none; }
.trail { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }
.trail path { fill: none; stroke-linecap: round; }
.trail__faint { stroke: var(--sage); stroke-width: 2.5; stroke-dasharray: .1 10; opacity: .7; }
.trail__lit { stroke: var(--gold); stroke-width: 4; stroke-dasharray: .1 10; }
.trail__reveal { stroke: #fff; stroke-width: 14; }
.timeline__icon { transition: background .5s, color .5s, border-color .5s, box-shadow .5s; }
.timeline__icon.is-lit { background: var(--pine); color: var(--gold-soft); border-color: var(--pine); box-shadow: 0 0 0 6px rgba(201, 169, 107, .18); }
.trail__lantern {
  position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; pointer-events: none;
  transition: opacity .4s;
}
.trail__lantern::before {
  content: ""; position: absolute; left: -9px; top: -12px; width: 18px; height: 24px;
  border-radius: 45% 45% 35% 35%;
  background: radial-gradient(circle at 50% 60%, #fff3c4, #f2b55a 55%, #b8692c);
  box-shadow: 0 0 18px 6px rgba(255, 196, 100, .55), 0 0 40px 14px rgba(255, 196, 100, .25);
  animation: flicker 2.6s ease-in-out infinite;
}
.trail__lantern.is-out { opacity: 0; }
@keyframes flicker { 0%, 100% { filter: brightness(1); } 45% { filter: brightness(1.15); } 60% { filter: brightness(.92); } }

/* ───────────── Golden hour card (js/sunset.js) ───────────── */
.card--golden { background: linear-gradient(160deg, #fbf3df, #f3e0b8); border-color: rgba(201, 169, 107, .5); }
.card--golden h3 { color: #8a5a1c; }
.golden__count { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #8a5a1c !important; }
.golden__tip { font-style: italic; }

/* ───────────── Catch a firefly ───────────── */
.firefly-hint { margin: 2rem 0 0; font-style: italic; color: rgba(246, 241, 231, .55); font-size: 1rem; }
.firefly-note {
  position: fixed; z-index: 90; width: min(320px, calc(100vw - 24px));
  background: rgba(20, 34, 26, .96); color: var(--cream); border-radius: 16px; padding: 1.1rem 1.2rem 1rem;
  border: 1px solid rgba(229, 211, 168, .35); box-shadow: 0 0 40px rgba(255, 210, 120, .25), 0 20px 40px -20px #000;
}
.firefly-note.is-in { animation: rise .5s var(--ease); }
.firefly-note__count { font-family: var(--sans); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 .5rem; }
.firefly-note blockquote { margin: 0; font-style: italic; font-size: 1.2rem; line-height: 1.45; }
.firefly-note cite { display: block; margin-top: .4rem; font-family: var(--sans); font-style: normal; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); }
.firefly-note p { margin: 0; }
.firefly-note img { width: 100%; border-radius: 10px; margin-bottom: .7rem; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 80%; }
.firefly-note__close { position: absolute; right: .4rem; top: .3rem; background: none; border: 0; color: inherit; font-size: 1.4rem; cursor: pointer; opacity: .6; width: 34px; height: 34px; }

/* ───────────── Map animals ───────────── */
.egg {
  position: absolute; z-index: 1; padding: 0; border: 0; cursor: pointer; background: none; border-radius: 30%;
}
.egg:focus-visible { outline: 2px solid var(--gold); }
.critter-cover { position: absolute; z-index: 1; background-size: 100% 100%; pointer-events: none; }
.critter { position: absolute; z-index: 7; pointer-events: none; will-change: transform; }
.critter__body { width: 100%; height: 100%; background-size: 100% 100%; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); }
.egg__say {
  position: absolute; left: 50%; bottom: 100%; white-space: nowrap; pointer-events: none;
  font: .78rem/1.3 var(--sans); letter-spacing: .03em; color: var(--pine);
  background: #fffdf8; padding: .45em .8em; border-radius: 12px; box-shadow: 0 6px 16px -6px rgba(20, 35, 27, .45);
  transform: translate(-50%, -6px) scale(calc(var(--inv, 1) * .9)); transform-origin: 50% 100%;
  opacity: 0; transition: opacity .25s, transform .25s;
}
.egg__say::after { content: ""; position: absolute; left: 50%; top: 100%; border: 6px solid transparent; border-top-color: #fffdf8; transform: translateX(-50%); }
.egg.is-talking .egg__say { opacity: 1; transform: translate(-50%, -10px) scale(var(--inv, 1)); }
.egg--left .egg__say { left: 0; transform: translate(0, -6px) scale(calc(var(--inv, 1) * .9)); transform-origin: 0 100%; }
.egg--left.is-talking .egg__say { transform: translate(0, -10px) scale(var(--inv, 1)); }
.egg--left .egg__say::after { left: 20px; }
.egg--right .egg__say { left: auto; right: 0; transform: translate(0, -6px) scale(calc(var(--inv, 1) * .9)); transform-origin: 100% 100%; }
.egg--right.is-talking .egg__say { transform: translate(0, -10px) scale(var(--inv, 1)); }
.egg--right .egg__say::after { left: auto; right: 14px; transform: none; }
.map-hint { text-align: center; font-style: italic; color: var(--muted); margin: 1.6rem 0 0; }

/* ───────────── Just for fun: quiz & songs ───────────── */
.fun { background: var(--cream); }
.fun__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1.5rem; align-items: start; }
.fun__card .eyebrow { margin-bottom: .4rem; }
.fun__lede { margin-bottom: 1rem; }
.quiz__progress { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--moss); margin: 1.2rem 0 .4rem; }
.quiz__q { font-size: 1.4rem; margin-bottom: 1rem; }
.quiz__options { display: grid; gap: .5rem; }
.quiz__options button {
  text-align: left; font: inherit; font-size: 1.08rem; padding: .7rem 1rem; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(86, 112, 79, .35); background: #fffdf8; color: var(--ink); transition: background .2s, border-color .2s;
}
.quiz__options button:not(:disabled):hover { background: var(--parchment); }
.quiz__options button.is-right { background: #dfe8d2; border-color: var(--moss); font-weight: 600; }
.quiz__options button.is-wrong { background: #f3dcd5; border-color: #b9735f; text-decoration: line-through; }
.quiz__options button:disabled { cursor: default; color: var(--ink); }
.quiz__feedback { margin: 1rem 0 0; }
.quiz__feedback .btn { margin-top: .9rem; display: flex; width: fit-content; }
.quiz__score { font-size: 4rem; line-height: 1; margin: .2rem 0 .6rem; color: var(--pine); }
.quiz__score span { font-size: .4em; color: var(--muted); }

.songs { list-style: none; padding: 0; margin: 0; }
.songs li { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid rgba(86, 112, 79, .18); }
.songs__rank { font-family: var(--sans); font-size: .8rem; color: var(--moss); width: 1.2rem; text-align: right; }
.songs__title { flex: 1; font-size: 1.08rem; }
.songs__vote {
  display: inline-flex; align-items: center; gap: .3rem; border: 1px solid rgba(86, 112, 79, .35); background: #fffdf8;
  border-radius: 999px; padding: .25rem .7rem; cursor: pointer; font: .82rem var(--sans); color: var(--pine);
}
.songs__vote svg { width: 16px; height: 16px; fill: none; stroke: #b9735f; stroke-width: 1.8; }
.songs__vote.is-voted { background: #f6e3dd; cursor: default; }
.songs__vote.is-voted svg { fill: #b9735f; }
.songs__vote:not(:disabled):hover svg { fill: rgba(185, 115, 95, .3); }
.songs__empty { color: var(--muted); font-style: italic; }
.songs .demo-note { border: 0; margin-top: .6rem; }
.songs__more { margin-top: .6rem; }
.songs__form { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.songs__form input {
  flex: 1 1 180px; font: inherit; font-size: 1.05rem; padding: .6rem .9rem; border-radius: 999px;
  border: 1px solid rgba(86, 112, 79, .35); background: #fffdf8; color: var(--ink);
}
.songs__thanks { flex-basis: 100%; margin: .3rem 0 0; color: var(--moss); font-style: italic; }

/* ───────────── Lantern wishes (js/lanterns.js) ───────────── */
.lantern-sky { position: absolute; inset: 0; overflow: hidden; }
.rsvp > .container { position: relative; z-index: 1; pointer-events: none; }
.rsvp > .container > * { pointer-events: auto; }
.lantern {
  position: absolute; bottom: -60px; width: calc(26px * var(--s, 1)); height: calc(34px * var(--s, 1));
  padding: 0; border: 0; background: none; cursor: pointer;
  animation-name: lantern-rise, lantern-sway; animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite; animation-direction: normal, alternate;
}
.lantern__body {
  position: absolute; inset: 0; border-radius: 42% 42% 30% 30%;
  background: radial-gradient(circle at 50% 65%, #fff1c2, #f4b860 50%, #c4732f);
  box-shadow: 0 0 22px 8px rgba(255, 190, 90, .45), 0 0 60px 20px rgba(255, 170, 70, .15);
  opacity: .85; animation: flicker 3s ease-in-out infinite;
}
.lantern:hover .lantern__body, .lantern.is-open .lantern__body { opacity: 1; }
.lantern.is-launch { animation-duration: 40s, 3s !important; }
.lantern.is-launch .lantern__body { opacity: 1; }
@keyframes lantern-rise { from { transform: translateY(0); } to { transform: translateY(var(--rise, -1600px)); } }
@keyframes lantern-sway { from { margin-left: -14px; } to { margin-left: 14px; } }
.lantern__note {
  position: absolute; left: 50%; bottom: calc(100% + 10px); width: max-content; max-width: min(200px, 42vw);
  transform: translateX(-50%); background: rgba(255, 250, 238, .9); color: var(--ink); border-radius: 12px;
  padding: .45rem .7rem; font: italic .9rem/1.35 var(--serif); text-align: center; white-space: normal;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .6); pointer-events: none;
}
.lantern--l .lantern__note { left: -6px; transform: none; text-align: left; }
.lantern--r .lantern__note { left: auto; right: -6px; transform: none; text-align: right; }
.lantern.is-launch { z-index: 2; }
.lantern__note em { display: block; margin-top: .3rem; font: .68rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--moss); font-style: normal; }
.lantern:hover, .lantern.is-open { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .lantern { animation: none; } }

.wish {
  margin-top: 2.5rem; padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 250, 238, .06); border: 1px solid rgba(229, 211, 168, .25);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); text-align: center;
}
.wish h3 { font-family: var(--script); font-weight: 400; font-size: 2.4rem; color: var(--gold-soft); margin-bottom: .3rem; }
.wish p { color: rgba(246, 241, 231, .75); }
.wish textarea, .wish input {
  width: 100%; font: inherit; font-size: 1.08rem; padding: .75rem 1rem; border-radius: 12px; color: var(--ink);
  border: 1px solid rgba(229, 211, 168, .4); background: rgba(255, 250, 238, .95); resize: vertical;
}
.wish__row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .7rem; }
.wish__row input { flex: 1 1 200px; width: auto; }
.wish__thanks { margin: 1rem 0 0; font-style: italic; color: var(--gold-soft) !important; }

/* ───────────── Sound toggle (js/sound.js) ───────────── */
.sound {
  position: fixed; z-index: 95; left: clamp(.8rem, 2vw, 1.4rem); bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(.8rem, 2vw, 1.4rem));
  display: flex; align-items: center; gap: .5rem; padding: .55rem .95rem .55rem .7rem; border-radius: 999px; cursor: pointer;
  background: rgba(20, 34, 26, .82); color: var(--cream); border: 1px solid rgba(229, 211, 168, .3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: .68rem var(--sans); letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6);
}
.sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.sound__waves { opacity: .35; }
.sound[aria-pressed="true"] .sound__waves { opacity: 1; animation: flicker 1.6s ease-in-out infinite; }
.sound[aria-pressed="true"] { color: var(--gold-soft); }
.sound { padding: .6rem; gap: 0; }
.sound__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease), margin .4s; }
.sound:hover .sound__label, .sound:focus-visible .sound__label { max-width: 220px; margin: 0 .3rem 0 .5rem; }

/* ───────────── Your stay (js/stay.js) ───────────── */
.stay { background: var(--parchment); }
.stay__sub { text-align: center; font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: clamp(3rem, 6vw, 4.5rem) 0 1.8rem; }
.stay-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.stay-time { text-align: center; padding: 1.4rem 1rem; border-radius: var(--radius); background: var(--cream); }
.stay-time .eyebrow { margin-bottom: .3rem; }
.stay-time__t { font-size: 2.2rem; line-height: 1.1; margin: 0 0 .3rem; color: var(--pine); }
.stay-time__note { font-size: .98rem; color: var(--muted); margin: 0; font-style: italic; }

.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 1.5rem; }
.room {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); border-radius: var(--radius); overflow: hidden;
  background: #fffdf8; border: 1px solid rgba(86, 112, 79, .2); box-shadow: 0 18px 30px -26px rgba(29, 51, 40, .5);
}
.room__art { background: #e9e4cf; display: grid; place-items: start center; padding: 1.2rem 1rem; border-right: 1px solid rgba(86, 112, 79, .15); }
.room__art > div { width: 100%; max-height: 220px; background-repeat: no-repeat; border-radius: 10px; }
.room__body { padding: 1.4rem 1.5rem 1.3rem; }
.room__body .eyebrow { margin-bottom: .3rem; }
.room__body h3 { font-size: 1.6rem; margin-bottom: .2rem; }
.room__units { font-family: var(--sans); font-size: .8rem; letter-spacing: .06em; color: var(--bark); margin-bottom: .7rem; }
.room__desc { color: var(--muted); font-size: 1.02rem; }
.room__facts { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin: .4rem 0 .8rem; font-size: .98rem; }
.room__facts dt { font-family: var(--sans); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); padding-top: .3rem; }
.room__facts dd { margin: 0; }
.room .features { justify-content: flex-start; }
.room__map { margin-top: .7rem; font-size: .98rem; }
.room--unused { opacity: .7; }
.map__info .room__facts, .finder__result .room__facts { text-align: left; font-size: .95rem; }
.finder__result .room__facts { max-width: 520px; margin-inline: auto; }
@media (max-width: 560px) {
  .room { grid-template-columns: 1fr; }
  .room__art { border-right: 0; border-bottom: 1px solid rgba(86, 112, 79, .15); }
  .room__art > div { max-height: 180px; width: auto; height: 160px; }
}
.every-room { text-align: center; margin-top: 2rem; }
.every-room .features { justify-content: center; }

.stay__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); align-items: start; }
.stay-card { background: #fffdf8; }
.stay-card h3 { font-size: 1.8rem; }
.stay-card__lede { font-size: 1rem; }
.wx { display: flex; gap: 1.6rem; flex-wrap: wrap; margin: .3rem 0 .6rem; }
.wx > div { display: flex; align-items: center; gap: .5rem; }
.wx__n { font-size: 2.6rem; line-height: 1; color: var(--pine); }
.wx__l { font-family: var(--sans); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); line-height: 1.5; }
.wx__sky { font-size: 1.3rem; margin: 0 0 .2rem; color: var(--pine) !important; }
.wx__small { font-size: .9rem !important; font-style: italic; }
.wx__tips { list-style: none; padding: 1rem 0 0; margin: 1rem 0 0; border-top: 1px solid rgba(86, 112, 79, .2); display: grid; gap: .55rem; }
.wx__tips li { padding-left: 1.4rem; position: relative; color: var(--ink); font-size: 1.02rem; }
.wx__tips li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
#packing h4 { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--moss); font-weight: 500; margin: 1.2rem 0 .4rem; }
.pack { list-style: none; padding: 0; margin: 0; }
.pack label { display: flex; gap: .7rem; align-items: flex-start; padding: .4rem 0; cursor: pointer; font-size: 1.04rem; }
.pack input { width: 19px; height: 19px; margin-top: .25rem; flex: none; accent-color: var(--pine); }
.pack input:checked + span { text-decoration: line-through; color: var(--muted); }

.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.2rem 1.6rem; }
.rule { display: flex; gap: 1rem; align-items: flex-start; }
.rule__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--parchment); display: grid; place-items: center; color: var(--moss); }
.rule__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rule h4 { font-size: 1.2rem; font-weight: 500; margin: .2rem 0 .2rem; }
.rule p { color: var(--muted); font-size: 1rem; margin: 0; }
.dogs { margin-top: 2rem; background: var(--cream); text-align: center; }
.dogs h3 { margin-bottom: .4rem; }
.dogs__contact { font-family: var(--sans); font-size: .9rem; letter-spacing: .02em; color: var(--ink) !important; }

/* The intro's 3D boat (js/intro.js) */
.intro-boat { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; transform-origin: 50% 100%; }
.intro-boat__boat { position: absolute; transform-style: preserve-3d; }
.intro-boat__boat img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.intro-boat__shadow { filter: blur(6px); }
.intro-boat__reflection { filter: blur(3px); }

/* Venue photos of the tents & cabins (js/gallery.js) */
.room:has(.room__photo) { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; }
.gallery { position: relative; overflow: hidden; background: var(--parchment); aspect-ratio: 3 / 2; user-select: none; -webkit-user-select: none; }
.gallery__track {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; cursor: zoom-in;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.gallery__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 253, 248, .9); color: var(--pine); font: 1.7rem/1 var(--serif); padding-bottom: 4px;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4); opacity: 0; transition: opacity .25s;
}
.gallery__btn--prev { left: .7rem; }
.gallery__btn--next { right: .7rem; }
.gallery:hover .gallery__btn, .gallery__btn:focus-visible { opacity: 1; }
@media (hover: none) { .gallery__btn { opacity: .85; width: 34px; height: 34px; } }
.gallery__count {
  position: absolute; right: .7rem; top: .7rem; margin: 0; padding: .2em .7em; border-radius: 999px;
  background: rgba(20, 34, 26, .6); color: #fff; font: .72rem var(--sans); letter-spacing: .08em; pointer-events: none;
}
.gallery__dots { position: absolute; left: 0; right: 0; bottom: .7rem; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 3px rgba(0, 0, 0, .4); }
.gallery__dots i.on { background: #fff; transform: scale(1.3); }
.map__info .gallery.map__info-photo { width: calc(100% + 2.8rem); margin: -1.3rem -1.4rem .9rem; aspect-ratio: 2 / 1; border-radius: var(--radius) var(--radius) 0 0; }
.finder__result .gallery.stay__photo { max-width: 520px; margin: 0 auto 1rem; aspect-ratio: 16 / 9; border-radius: 12px; }

.viewer {
  position: fixed; inset: 0; z-index: 120; background: rgba(8, 14, 11, .95); display: none; place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 3.5rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 3.5rem);
}
.viewer.is-open { display: grid; }
.viewer__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.viewer__close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + .6rem); right: .8rem; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 2rem; cursor: pointer; }
.viewer__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font: 2rem/1 var(--serif); padding-bottom: 4px;
}
.viewer__btn:hover { background: rgba(255, 255, 255, .25); }
.viewer__btn--prev { left: 1rem; }
.viewer__btn--next { right: 1rem; }
.viewer__count { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); left: 0; right: 0; text-align: center; margin: 0; color: rgba(255, 255, 255, .8); font: .8rem var(--sans); letter-spacing: .1em; }
.map__info .gallery__count { left: .8rem; right: auto; }
.gallery--single .gallery__btn, .gallery--single .gallery__count, .gallery--single .gallery__dots { display: none; }
/* Close button sits above the photos, always visible */
.map__info .close {
  z-index: 3; top: .6rem; right: .6rem; background: rgba(255, 253, 248, .95); color: var(--pine);
  box-shadow: 0 3px 10px -3px rgba(0, 0, 0, .45); line-height: 1;
}
.map__info .close:hover { background: #fff; }
.map__info .gallery__count { left: .8rem; right: auto; }
.gallery p.gallery__count { color: #fff; font-size: .72rem; margin: 0; }

/* Weather & packing, and Good to know, as their own sections */
.prepare { background: var(--parchment); }
.rules-section { background: var(--cream); }
.stay__grid--top { margin-top: 0; }
.prepare .stay-time, .prepare .card { background: #fffdf8; }
.rules-section .rule__icon { background: var(--parchment); }
.rules-section .dogs { background: var(--parchment); }

/* ───────────── Your day, step by step (js/route.js) ───────────── */
.route { background: var(--cream); }
.route .container { max-width: 1320px; }
.route__layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.route__mapcol { position: sticky; top: 80px; }
.route__map {
  position: relative; aspect-ratio: 3200 / 1943; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(29, 51, 40, .5); background: #6b4a33;
}
.route__img { position: absolute; inset: 0; width: 100%; height: 100%; filter: saturate(.75) brightness(1.02); }
.route__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route__leg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route__under { stroke: rgba(255, 253, 248, .85); stroke-width: 22; opacity: 0; transition: opacity .4s; }
.route__line { stroke: var(--gold); stroke-width: 11; opacity: 0; transition: opacity .4s, stroke .4s; }
.route__leg--walk .route__line { stroke-dasharray: 2 22; stroke-width: 13; }
.route__leg--cart .route__line { stroke-dasharray: 34 18; }
.route__leg.is-done .route__line { opacity: .55; stroke: var(--moss); }
.route__leg.is-done .route__under { opacity: .35; }
.route__leg.is-active .route__line { opacity: 1; }
.route__leg.is-active .route__under { opacity: 1; }
.route__leg--us .route__line { stroke: #b9735f; stroke-dasharray: 2 18; stroke-width: 10; }
.route__leg--us { opacity: 0; transition: opacity .5s; }
.route__leg--us.is-active { opacity: 1; }
.route__canoe-hull { fill: #8a4b2c; stroke: #fffdf8; stroke-width: 4; }
.route__canoe-us { fill: #fffdf8; stroke: #8a4b2c; stroke-width: 3; }
.route__canoe-label { font: 600 46px var(--sans); fill: #fffdf8; text-anchor: middle; paint-order: stroke; stroke: rgba(29, 51, 40, .85); stroke-width: 8px; }
.route__stop { opacity: .0; transition: opacity .4s; }
.route__stop.is-past { opacity: .75; }
.route__stop.is-active { opacity: 1; }
.route__stop-ring { fill: rgba(201, 169, 107, .35); }
.route__stop.is-active .route__stop-ring { animation: route-pulse 1.8s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.route__stop-dot { fill: var(--pine); stroke: #fffdf8; stroke-width: 4; }
.route__stop.is-past .route__stop-dot { fill: var(--moss); }
.route__stop-n { font: 600 26px var(--sans); fill: #fffdf8; text-anchor: middle; }
.route__you { fill: #ffe7a3; stroke: #fff; stroke-width: 5; }
.route__maybe { fill: none; stroke: var(--gold); stroke-width: 5; stroke-dasharray: 6 8; opacity: 0; transition: opacity .4s; }
.route__maybe.is-active { opacity: 1; }
@keyframes route-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }

.route__controls { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: 1rem; }
.route__ctl {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(86, 112, 79, .35); background: #fffdf8; color: var(--pine);
  font: 1.6rem/1 var(--serif); padding-bottom: 4px; cursor: pointer;
}
.route__ctl:hover { background: var(--parchment); }
.route__me { text-align: center; margin: 1rem 0 0; color: var(--muted); font-size: 1rem; }
.route__me label { display: block; margin-bottom: .4rem; }
.route__find input {
  font: inherit; font-size: 1rem; padding: .5rem .9rem; border-radius: 999px; width: min(280px, 100%);
  border: 1px solid rgba(86, 112, 79, .35); background: #fffdf8; color: var(--ink);
}

.route__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.route__step {
  width: 100%; display: flex; gap: .9rem; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: transparent; border: 1px solid transparent; border-radius: 14px; padding: .75rem .9rem;
  transition: background .25s, border-color .25s;
}
.route__step:hover { background: rgba(236, 228, 211, .6); }
.route__step[aria-current="true"] { background: #fffdf8; border-color: rgba(201, 169, 107, .6); box-shadow: 0 10px 24px -18px rgba(29, 51, 40, .5); }
.route__n {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-top: .15rem;
  background: var(--parchment); color: var(--pine); font: 600 .8rem var(--sans);
}
.route__step[aria-current="true"] .route__n { background: var(--pine); color: #fffdf8; }
.route__body { display: grid; gap: .1rem; }
.route__time { font: .68rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--moss); }
.route__title { font-size: 1.2rem; font-weight: 500; }
.route__text { color: var(--muted); font-size: .98rem; line-height: 1.5; display: none; }
.route__step[aria-current="true"] .route__text { display: block; }
@media (max-width: 860px) {
  .route__layout { grid-template-columns: 1fr; }
  .route__mapcol { top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 2; background: var(--cream); padding-bottom: .4rem; }
  .route__controls { margin-top: .6rem; }
  .route__me { font-size: .9rem; margin-top: .5rem; }
}
@media (max-width: 860px) {
  .route__me { margin-top: .4rem; font-size: .85rem; }
  .route__me label { display: inline; margin-right: .4rem; }
  .route__find input { padding: .35rem .8rem; font-size: .9rem; width: min(220px, 60%); }
  .route__under { stroke-width: 46; }
  .route__line { stroke-width: 26; }
  .route__leg--walk .route__line { stroke-dasharray: 2 40; stroke-width: 28; }
  .route__leg--cart .route__line { stroke-dasharray: 60 34; }
  .route__leg--us .route__line { stroke-width: 22; stroke-dasharray: 2 36; }
  .route__you { r: 34; }
}

/* Gifts: wedding & honeymoon fund */
.fund {
  margin: 2.5rem auto 0; max-width: 620px; padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: calc(var(--radius) + 4px);
  background: #fffdf8; border: 1px solid rgba(86, 112, 79, .25); box-shadow: 0 24px 50px -34px rgba(29, 51, 40, .5);
}
.fund__icons { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 2.5rem); flex-wrap: wrap; margin-bottom: 1.6rem; }
.fund__icons span { display: grid; justify-items: center; gap: .5rem; font: .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--moss); }
.fund__icons svg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--parchment); fill: none; stroke: var(--moss); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fund__give { display: grid; justify-items: center; gap: .6rem; }
.fund__how { margin: 0; color: var(--muted); font-style: italic; }
.fund__email { margin: 0 0 .4rem; font-size: clamp(1.3rem, 3.5vw, 1.7rem); color: var(--pine); word-break: break-all; user-select: all; }
.btn--ghost { background: transparent; color: var(--pine); }
.fund__note { margin: 1.2rem 0 0; color: var(--muted); font-size: .98rem; }

/* Song request previews */
.songs__play {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--pine); color: #fffdf8; transition: transform .2s, background .2s;
}
.songs__play:hover { transform: scale(1.08); }
.songs__play svg { width: 15px; height: 15px; fill: currentColor; }
.songs__play.is-playing { background: var(--gold); color: var(--pine); box-shadow: 0 0 0 5px rgba(201, 169, 107, .25); }
.songs__play.is-loading { opacity: .6; }
.songs__play:disabled { opacity: .3; cursor: default; }
.songs__apple { display: block; font: .66rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--moss); margin-top: .1rem; }

/* "Tap anywhere to hear the woods" (until the browser lets the crickets play) */
.intro__sound-hint {
  position: absolute; left: calc(clamp(.8rem, 2vw, 1.4rem) + 54px); bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(.8rem, 2vw, 1.4rem) + 10px);
  margin: 0; font: .7rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(246, 241, 231, .7);
  opacity: 0; transition: opacity .8s; pointer-events: none;
}
.intro__sound-hint.is-visible { opacity: 1; animation: flicker 2.4s ease-in-out infinite; }
.intro__sound-hint.is-gone { opacity: 0 !important; animation: none; }
.sound.is-waiting .sound__waves { opacity: 0; }
.sound.is-waiting::after { content: ""; position: absolute; left: 13px; top: 50%; width: 18px; height: 1.6px; background: currentColor; transform: rotate(-45deg); }
.footer__credit { font: .68rem/1.6 var(--sans); letter-spacing: .04em; opacity: .5; margin: 1.6rem auto 0; max-width: 520px; }
.footer__credit a { color: inherit; }
.stay .every-room { margin-top: 2.2rem; }
.section__head .map-hint { margin: .2rem 0 0; font-size: 1rem; }
.timeline .golden__count { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #8a5a1c; margin-top: .35rem; }
#map .section__head { margin-bottom: 1.4rem; }
@media (max-width: 700px) {
  /* no room beside the boxes on a phone: lanterns float behind them, so the boxes are solid */
  .wish { background: #24402f; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .lantern__note { max-width: 46vw; font-size: .82rem; }
}
.hero__canvas { will-change: transform; }
.intro-boat, .intro-boat__boat { will-change: transform; }

/* ───────────── Wedding-day live banner (js/live.js) ───────────── */
.live {
  position: fixed; z-index: 94; left: 0; right: 0; margin-inline: auto;
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(.8rem, 2vw, 1.4rem));
  width: min(560px, calc(100% - 20rem)); display: flex; align-items: center; gap: .7rem;
  padding: .55rem .6rem .55rem 1rem; border-radius: 18px;
  background: rgba(20, 34, 26, .9); color: var(--cream); border: 1px solid rgba(229, 211, 168, .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6);
  animation: rise .5s var(--ease) both; opacity: 0;
}
.live__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #e7c66f; box-shadow: 0 0 0 0 rgba(231, 198, 111, .7); animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse { to { box-shadow: 0 0 0 12px rgba(231, 198, 111, 0); } }
.live__go {
  flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .55rem; row-gap: .1rem;
  background: none; border: 0; color: inherit; text-align: left; cursor: pointer; padding: 0; font: 1.05rem var(--serif);
}
.live__go strong { font-weight: 600; }
.live__label { font: .62rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
.live__place { font-style: italic; opacity: .8; }
.live__next { flex-basis: 100%; font-size: .92rem; opacity: .85; display: flex; gap: .5rem; align-items: baseline; }
.live__close { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: var(--cream); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.live__close:hover { background: rgba(255, 255, 255, .2); }
@media (max-width: 760px) {
  .live { left: .7rem; right: .7rem; width: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 4.3rem); }
}
/* the timeline on the day: what's happening now glows, what's done fades */
.timeline li.is-now .timeline__icon { background: var(--pine); color: var(--gold-soft); border-color: var(--pine); box-shadow: 0 0 0 6px rgba(201, 169, 107, .25), 0 0 24px 6px rgba(231, 198, 111, .35); }
.timeline li.is-now .timeline__time::after { content: " · Happening now"; color: #8a5a1c; font-weight: 500; }
.js .timeline li.is-past.is-visible, .timeline li.is-past { opacity: .55; }

/* ───────────── Carve your initials (js/carve.js) ───────────── */
.carve { margin-top: 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 2.5rem; align-items: center; }
.carve .eyebrow { margin-bottom: .4rem; }
.carve__form { display: flex; flex-wrap: wrap; gap: .5rem; }
.carve__form input {
  flex: 1 1 160px; font: inherit; font-size: 1.05rem; padding: .6rem .9rem; border-radius: 999px;
  border: 1px solid rgba(86, 112, 79, .35); background: #fffdf8; color: var(--ink);
}
.carve__thanks { flex-basis: 100%; margin: .3rem 0 0; color: var(--moss); font-style: italic; }
.carve__tree { max-width: 560px; width: 100%; margin: 0 auto; }
.carve__svg { display: block; width: 100%; height: auto; overflow: visible; }
.carving { cursor: default; }
.carving__cut { fill: none; stroke: #33231a; stroke-width: 2.2; stroke-linejoin: round; }
.carving path.carving__lip { fill: none; stroke: #b18d6b; stroke-width: 1.6; opacity: .8; }
.carving text { font-family: var(--serif); font-weight: 700; text-anchor: middle; dominant-baseline: middle; letter-spacing: .02em; }
.carving__text { fill: #33231a; }
text.carving__lip { fill: #b18d6b; opacity: .8; }
.carving--us .carving__cut { stroke-width: 1.8; }
.carving.is-fresh .carving__cut { stroke-dasharray: 1; stroke-dashoffset: 1; animation: carve-cut 1.4s .2s ease-in-out forwards; }
.carving.is-fresh .carving__lip, .carving.is-fresh text { opacity: 0; animation: fade-in .6s 1.4s forwards; }
.carving.is-fresh text.carving__lip, .carving.is-fresh path.carving__lip { animation-name: carve-lip; }
@keyframes carve-cut { to { stroke-dashoffset: 0; } }
@keyframes carve-lip { to { opacity: .8; } }
@media (max-width: 760px) { .carve { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .carving.is-fresh * { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; } }

/* ───────────── The sky on our wedding night (js/sky.js) ───────────── */
.sky-section { background: radial-gradient(ellipse at 50% 40%, #1f3a3f 0%, var(--pine) 60%, #142219 100%); overflow: hidden; }
.sky { display: grid; justify-items: center; gap: 1.2rem; }
.sky__chart { position: relative; width: min(640px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.sky__chart canvas { display: block; touch-action: manipulation; cursor: crosshair; }
.sky__tip {
  position: absolute; transform: translate(-50%, -100%); margin: 0; pointer-events: none; white-space: nowrap;
  background: rgba(255, 253, 248, .95); color: var(--pine); font: .82rem var(--sans); letter-spacing: .04em;
  padding: .3em .8em; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5);
}
.sky__controls { width: min(520px, 100%); display: grid; grid-template-columns: 1fr; gap: .35rem; text-align: center; }
.sky__time output { font: 2rem/1 var(--serif); color: var(--gold-soft); }
.sky__controls input[type=range] { width: 100%; accent-color: var(--gold); }
.sky__ends { display: flex; justify-content: space-between; font: .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 241, 231, .55); }
.sky__toggle { justify-self: center; display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; font-size: 1.05rem; color: rgba(246, 241, 231, .85); cursor: pointer; }
.sky__toggle input { width: 18px; height: 18px; accent-color: var(--gold); }
.sky__facts { max-width: 34em; text-align: center; font-style: italic; font-size: 1.15rem; color: rgba(246, 241, 231, .8); margin: 0; min-height: 3em; }

/* ───────────── Tilt your phone (js/tilt.js, iPhones) ───────────── */
.hero__tilt {
  position: absolute; z-index: 4; left: 0; right: 0; margin-inline: auto; width: max-content; bottom: clamp(8.5rem, 17vh, 10.5rem);
  display: flex; align-items: center; gap: .45rem; padding: .5rem .9rem .5rem .7rem; border-radius: 999px; cursor: pointer;
  background: rgba(20, 34, 26, .55); color: var(--cream); border: 1px solid rgba(229, 211, 168, .4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: .66rem var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.hero__tilt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

/* ───────────── Shared photos (js/photos.js) ───────────── */
.photos__drop { max-width: 560px; margin: 0 auto 2rem; text-align: center; }
.photos__soon { font-style: italic; color: var(--muted); font-size: 1.15rem; border: 1px dashed rgba(86, 112, 79, .45); border-radius: var(--radius); padding: 1.4rem 1rem; margin: 0; }
.photos__form { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; align-items: center; }
.photos__form input[type=text] {
  flex: 1 1 220px; font: inherit; font-size: 1.05rem; padding: .7rem 1rem; border-radius: 999px;
  border: 1px solid rgba(86, 112, 79, .35); background: #fffdf8; color: var(--ink);
}
.photos__pick { cursor: pointer; }
.photos__pick.is-busy { opacity: .6; pointer-events: none; }
#photos-input:focus-visible + .photos__status, .photos__form:focus-within .photos__pick { outline: 2px solid var(--gold); outline-offset: 3px; }
.photos__status { flex-basis: 100%; margin: .2rem 0 0; color: var(--moss); font-style: italic; min-height: 1.4em; }
.photos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: .6rem; }
.photos__tile { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: var(--parchment); }
.photos__tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.photos__tile:hover img { transform: scale(1.04); }
.photos__tile span { position: absolute; left: .5rem; bottom: .5rem; padding: .15em .6em; border-radius: 999px; background: rgba(20, 34, 26, .65); color: #fff; font: .72rem var(--sans); letter-spacing: .04em; }
