/* ============================================================
   LIVVY & FERDI — styles
   Palette and type live here. The look follows the printed
   save-the-date and invitation: flat cool grey card, black
   Helvetica capitals, Carta Nueva script (as SVG outlines, see
   tools/carta_svg.py) and the honeysuckle illustration.
   ============================================================ */

:root {
  --paper:  #F7F7F6;   /* lighter than the printed cards */
  --ink:    #111111;
  --soft:   #5E5E5E;
  --faint:  #8C8C8A;   /* small side notes that should recede */
  --blossom:      #D49CA3;   /* dusty rose, from the honeysuckle — only for the wedding venues;
                                 text on it is black (8.2:1), white would be too faint */
  --hotel:        #E3BF62;   /* the honeysuckle's yellow — the recommended hotels on the map */
  --rule:   #D4D4D4;
  --accent: var(--ink); /* the cards are black type only */

  /* two typefaces only: Carta Nueva script (as SVG outlines) and Helvetica.
     --serif is the body-text face; the name is historical */
  --serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans:  "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans-weight: 500;   /* Helvetica Neue Medium */
  --track: 0.01em;      /* the cards set their capitals at normal spacing */

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* type scale — everything on the site uses one of these five sizes
     (plus the responsive h2 clamp below), instead of one-off values */
  --text-2xs: 0.65rem;  /* photo credits, footer build number, tiny initials */
  --text-xs:  0.8rem;   /* every uppercase label: nav, kicker, buttons,
                            eyebrow labels, field labels, footer, section notes */
  --text-sm:  0.95rem;  /* dense body text: list rows, popup copy, form suggestions */
  --text-md:  1.0625rem; /* base body copy (see body{} below) */
  --text-lg:  1.15rem;  /* sub-headings (h3) */

  /* spacing scale for heading → content relationships */
  --gap-tight: 0.75rem; /* a heading straight to its own caveat/note line */
  --gap-sub:   1rem;    /* a sub-heading (h3) to the content under it */
  --gap-loose: 2.5rem;  /* a heading (or its note) to the next block */
  --gap-label: 0.5rem;  /* a small eyebrow label to the heading under it */
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* --paper-texture is drawn in script.js; plain --paper until then */
  background: var(--paper-texture, none), var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

h1, h2, h3 { font-weight: normal; line-height: 1.2; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.bar__mark {
  font-family: var(--sans); font-weight: var(--sans-weight); letter-spacing: var(--track);
  text-transform: uppercase; line-height: 1.25; font-size: var(--text-xs);
  text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; text-wrap: balance;
}
.bar__nav { display: flex; gap: 1.25rem; align-items: center; }
.bar__nav a {
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs); letter-spacing: var(--track);
  text-transform: uppercase; text-decoration: none; color: var(--soft);
}
.bar__nav a:hover { color: var(--ink); }
.bar__cta { color: var(--ink) !important; }
.bar__lang {
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs); letter-spacing: var(--track);
  background: none; border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.3rem 0.7rem; color: var(--soft); cursor: pointer;
}
.bar__lang:hover { color: var(--ink); border-color: var(--soft); }

@media (max-width: 40rem) {
  .bar__nav a:not(.bar__cta) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 82svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 3rem var(--gutter);
}
.kicker, .hero__meta {
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: var(--track); line-height: 1.3; text-transform: uppercase; color: var(--ink);
}
.kicker { margin: 0 0 clamp(2.5rem, 7vh, 4.5rem); }
.hero__meta { margin: 0; white-space: pre-line; }   /* two lines, like the card */
.hero__names { margin: 0; color: var(--ink); width: 100%; }
.hero__script { display: block; width: min(100%, 46rem); height: auto; margin: 0 auto; }
.hero__blossom {
  display: block; width: clamp(5.5rem, 11vw, 8rem); height: auto;
  margin: clamp(2rem, 6vh, 3.5rem) auto clamp(2.5rem, 7vh, 4.5rem);
}

/* ---------- sections ---------- */
.band {
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter);
  border-top: 1px solid var(--rule);
  max-width: 72rem; margin: 0 auto;
}
/* the map gets the full width of a large screen */
#explore { max-width: 92rem; }
.band h2 {
  font-family: var(--sans); font-weight: var(--sans-weight);
  font-size: clamp(1rem, 2.2vw, 1.2rem); letter-spacing: var(--track);
  text-transform: uppercase; line-height: 1.3;
  margin: 0 0 var(--gap-loose);
  text-align: center;
  text-wrap: balance;
}
/* the honeysuckle illustrations are multiplied onto the page, so the paper's
   tooth and fibres show through them as if they were printed on it */
.hero__blossom, .sprig { mix-blend-mode: multiply; filter: saturate(0.9) contrast(0.96); }
/* the honeysuckle sprig from the save-the-date, above the welcome */
.sprig { display: block; width: clamp(11rem, 26vw, 17rem); height: auto; margin: 0 auto 3rem; }
/* a heading followed by a small caveat/note sits closer to it than to the
   content after — one shared note style, used under the RSVP h2
   and at the end of a section (stay, explore), see below */


/* small side notes: narrow, light and regular weight, so they recede */
.stay__note {
  max-width: 26rem; margin: var(--gap-loose) auto 0;
  text-align: center; color: var(--faint); line-height: 1.6; text-wrap: balance;
  font-family: var(--sans); font-weight: 400; font-size: var(--text-xs); letter-spacing: var(--track);
}

.band h3 {
  font-family: var(--sans); font-weight: var(--sans-weight);
  font-size: 0.95rem; letter-spacing: var(--track); text-transform: uppercase;
  line-height: 1.3;
  margin: 0 0 var(--gap-sub);
}
/* Helvetica has no true italic, so the schedule's sub-lines stay upright */
.events__what em, .events__what i { font-style: normal; }
.prose { max-width: var(--measure); margin: 0 auto; }
.prose p { margin: 0 0 1rem; }
#welcome .prose { text-align: center; text-wrap: pretty; }   /* centred, like the cards */

.cols {
  display: grid; gap: var(--gap-loose);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.cols p { margin: 0; color: var(--soft); }

.cols .stay__tier {
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs); letter-spacing: var(--track);
  text-transform: uppercase; color: var(--soft); margin: 0 0 var(--gap-label);   /* grey, so it doesn't stack with the caps name below */
}

/* four hotels: one row on a wide screen, two by two on a tablet, stacked on
   a phone, never three and one; prices and links line up along the bottom */
@media (min-width: 36rem) { #stay .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { #stay .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
#stay .cols > div { display: flex; flex-direction: column; align-items: flex-start; }
.cols .stay__price { margin-top: auto; padding-top: 0.75rem; color: var(--ink); }

/* ---------- schedule ---------- */
.day { max-width: var(--measure); margin: 0 auto var(--gap-loose); }
.day h3 {
  /* its own border is the separator to the list below, so it opts out of
     the shared h3-to-content margin rather than stacking on top of it */
  margin: 0;
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs); letter-spacing: var(--track);
  text-transform: uppercase; color: var(--accent);
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule);
}
.events { list-style: none; margin: 0; padding: 0; }
.events li {
  display: grid; grid-template-columns: 5.5rem 1fr auto;
  align-items: center; gap: 1rem; padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.events__time {
  align-self: start;
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs); letter-spacing: var(--track);
  color: var(--soft); padding-top: 0.2rem;
}
.events__what strong { display: block; font-weight: normal; }
.events__what em { color: var(--soft); font-size: var(--text-sm); }

@media (max-width: 30rem) {
  .events li { grid-template-columns: 1fr auto; gap: 0.2rem 0.75rem; }
  .events li .events__time { grid-column: 1; }
  .events li .events__what { grid-column: 1; }
  .events li .venue-photo { grid-column: 2; grid-row: 1 / 3; }
}

/* ---------- venue photo thumbnails ---------- */
.venue-photo {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--rule);
  background: var(--ink); padding: 0; margin: 0;
  overflow: hidden; cursor: pointer; font: inherit;
}
.venue-photo:hover, .venue-photo:focus-visible { border-color: var(--accent); }
.venue-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: none;
}
.venue-photo img.is-loaded { display: block; }
.venue-photo span {
  position: relative; z-index: 0;
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-2xs); letter-spacing: var(--track);
  color: var(--paper);
}

/* ---------- ceremony → reception route ---------- */
.route {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 1rem 0 0;
}
/* the walk, in the Explore map's style; a click opens Google Maps */
.route__map {
  height: 15rem; margin-bottom: 0.6rem; border-radius: 3px; cursor: pointer;
  background: #f1f1f0; z-index: 0; transition: opacity 0.2s ease;
}
.route__map:hover { opacity: 0.92; }
@media (min-width: 52rem) { .route__map { height: 17rem; } }
.route a {
  color: var(--accent); text-underline-offset: 0.2rem; font-family: var(--sans); font-weight: var(--sans-weight);
  font-size: var(--text-xs); letter-spacing: var(--track);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(20, 20, 18, 0.72); }
.lightbox__panel {
  position: relative; background: var(--paper); border-radius: 4px;
  max-width: 26rem; width: 100%; padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.lightbox__media {
  position: relative; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden;
  background: var(--ink); margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: none;
}
.lightbox__media img.is-loaded { display: block; }
.lightbox__media span {
  position: relative; font-family: var(--serif); font-size: 2.25rem; color: var(--paper);
}
.lightbox__panel h3 { margin: 0 0 0.35rem; }
.lightbox__panel p { margin: 0 0 1rem; color: var(--soft); font-size: var(--text-sm); }
.lightbox__panel a {
  color: var(--accent); text-underline-offset: 0.2rem; font-family: var(--sans); font-weight: var(--sans-weight);
  font-size: var(--text-xs); letter-spacing: var(--track);
}
.lightbox__credit {
  margin: 0.75rem 0 0 !important;
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-2xs); color: var(--soft); opacity: 0.7;
}
.lightbox__close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 2rem; height: 2rem; border-radius: 50%; border: 0;
  background: transparent; color: var(--soft); font-size: 1.3rem;
  line-height: 1; cursor: pointer;
}
.lightbox__close:hover { color: var(--ink); }

/* ---------- text links ---------- */
.text-link {
  display: inline-block; margin-top: var(--gap-label);
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--accent); font-family: var(--sans); font-weight: var(--sans-weight);
  font-size: var(--text-xs); letter-spacing: var(--track); text-decoration: underline;
  text-underline-offset: 0.2rem;
}
.text-link:hover { color: var(--ink); }

/* ---------- explore: map of favourite places ---------- */
/* places live in index.html (li.place with data-lat/lng/group); script.js
   reads them and draws the pins, so the list works even without the map */
.band h2:has(+ .explore__intro) { margin-bottom: var(--gap-tight); }
.explore__intro {
  text-align: center; color: var(--soft); margin: 0 auto 1.75rem;
  max-width: var(--measure);
}
/* the category pills: separate chips that wrap onto two lines on phones */
.explore__tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
  max-width: 40rem; margin: 0 auto 1.75rem;
}
.explore__tab {
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs); letter-spacing: var(--track);
  text-transform: uppercase; color: var(--soft); cursor: pointer;
  background: rgba(255, 255, 255, 0.5); border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.55rem 1.1rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.explore__tab:hover { color: var(--ink); border-color: var(--soft); }
.explore__tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.explore__layout { display: grid; gap: 1.5rem; }
.explore__mapwrap { position: relative; min-width: 0; }
.explore__map {
  height: 26rem; background: var(--rule); z-index: 0; border-radius: 3px;
}
.map.leaflet-container { background: #f1f1f0; font-family: var(--serif); }
@media (min-width: 52rem) {
  .explore__layout { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 2.5rem; }
  .explore__map { height: clamp(30rem, 72vh, 46rem); }
  .places { max-height: clamp(30rem, 72vh, 46rem); overflow-y: auto; padding-right: 0.5rem; }
}

/* over the map: a one-line hint until it's in use, and "Show all" once zoomed in */
.explore__hint, .explore__all {
  position: absolute; z-index: 500; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-2xs);
  letter-spacing: var(--track); text-transform: uppercase; white-space: nowrap;
  border-radius: 999px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.explore__hint {
  bottom: 1.1rem; margin: 0; padding: 0.45rem 0.9rem; pointer-events: none;
  background: rgba(247, 247, 246, 0.92); color: var(--soft);
}
.explore__all {
  top: 0.9rem; left: auto; right: 0.9rem; transform: none; padding: 0.5rem 1rem; cursor: pointer; border: 0;
  background: var(--ink); color: var(--paper);
}
.explore__map.is-live { cursor: grab; }

/* place names on hover */
.map .leaflet-tooltip.pin-tip {
  padding: 0.3rem 0.6rem; border: 0; border-radius: 2px;
  background: var(--ink); color: var(--paper); box-shadow: none;
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-2xs); letter-spacing: var(--track);
}
.map .leaflet-tooltip.pin-tip::before { border-top-color: var(--ink); }

.places { list-style: none; margin: 0; padding: 0; }
/* a picked row fills in white between its divider lines, with a stripe in
   its pin's colour (rose venue, yellow hotel, black for the rest) */
.place {
  --pin: var(--ink);
  position: relative; border-bottom: 1px solid var(--rule);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.place--venue { --pin: var(--blossom); }
.place--hotel { --pin: var(--hotel); }
.place:last-child { border-bottom: 0; }
.place.is-hover { background: rgba(255, 255, 255, 0.45); }
.place.is-active { background: rgba(255, 255, 255, 0.85); box-shadow: inset 3px 0 0 var(--pin); }
.place__btn {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; padding: 0.85rem 0.9rem; color: inherit; font: inherit;
}
/* "Google Maps ↗": a quiet link level with the tag, top right of the row,
   shown when the row is picked or hovered */
.place__maps {
  position: absolute; top: calc(0.85rem + 4px); right: 0.9rem; padding: 0.2rem 0;   /* level with the tag text */
  display: none; color: var(--soft); white-space: nowrap;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-2xs);
  letter-spacing: var(--track); text-transform: uppercase;
}
.place__maps span { display: inline-block; margin-left: 0.2rem; transition: transform 0.2s ease; }
.place__maps:hover { color: var(--ink); }
.place__maps:hover span { transform: translate(2px, -2px); }
.place.is-active .place__maps { color: var(--ink); }
.place.is-active .place__maps, .place.is-hover .place__maps, .places.is-static .place__maps { display: block; }
/* keep the tag clear of the link */
.place .place__tag { max-width: calc(100% - 7rem); }
@media (max-width: 51.99rem) { .place__maps { display: block; } }
.place__name { display: block; color: var(--ink); }
/* the two venues lead the list, marked with the same pink */
.place__tag--hotel { background: var(--hotel) !important; }
/* what kind of place it is (café, bar, museum…): a quiet outline, so the
   rose venue and yellow hotel tags still stand out */
.place__tag--kind { background: transparent !important; color: var(--soft) !important; box-shadow: inset 0 0 0 1px var(--rule); }
.place__tag {
  display: inline-block; margin: 0 0 0.4rem; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--blossom); color: var(--ink);
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-2xs);
  letter-spacing: var(--track); text-transform: uppercase;
}
.place__desc { display: block; color: var(--soft); font-size: var(--text-sm); }

/* pins: small black dots with a paper ring, like the map's own place dots */
.dot-pin .pin__dot {
  display: block; width: 13px; height: 13px; margin: 4.5px;
  border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2.5px var(--paper), 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.dot-pin.is-active .pin__dot, .dot-pin.is-hover .pin__dot { transform: scale(1.45); }
.leaflet-marker-icon.is-active, .leaflet-marker-icon.is-hover { z-index: 10000 !important; }
/* the recommended hotels: yellow pins with a fine dark edge so they hold on the grey map */
.dot-pin--hotel .pin__dot { background: var(--hotel); box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 3.5px rgba(17, 17, 17, 0.35), 0 1px 4px rgba(0, 0, 0, 0.25); }
/* the ceremony and the party: bigger pink pins with a soft, breathing halo */
.dot-pin--venue .pin__dot {
  position: relative; width: 18px; height: 18px; margin: 6px;
  background: var(--blossom); box-shadow: 0 0 0 3px var(--paper), 0 2px 6px rgba(0, 0, 0, 0.25);
}
.dot-pin--venue .pin__dot::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  background: var(--blossom); opacity: 0.22; animation: halo 2.6s ease-in-out infinite;
}
@keyframes halo { 50% { transform: scale(1.35); opacity: 0.08; } }
@media (prefers-reduced-motion: reduce) { .dot-pin--venue .pin__dot::after { animation: none; } }
.map .leaflet-tooltip.venue-tip {
  padding: 0.3rem 0.65rem; border: 0; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: var(--blossom); color: var(--ink);
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-2xs);
  letter-spacing: var(--track); text-transform: uppercase;
}
.map .leaflet-tooltip.venue-tip::before { display: none; }
/* names on the pins: small pills beside the dot; script.js picks the side
   (data-side) so they don't overlap, and hides one with no room until hover */
.pin__label {
  position: absolute; white-space: nowrap; cursor: pointer;
  padding: 0.18rem 0.5rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: 0.68rem; line-height: 1.3;
  letter-spacing: var(--track); transition: opacity 0.2s ease;
}
.pin__label:empty { display: none; }
.pin__label[data-side="right"]  { left: 100%; top: 50%; transform: translate(3px, -50%); }
.pin__label[data-side="left"]   { right: 100%; top: 50%; transform: translate(-3px, -50%); }
.pin__label[data-side="top"]    { bottom: 100%; left: 50%; transform: translate(-50%, -1px); }
.pin__label[data-side="bottom"] { top: 100%; left: 50%; transform: translate(-50%, 1px); }
.pin__label[data-side="top-right"]    { bottom: 60%; left: 70%; }
.pin__label[data-side="bottom-right"] { top: 60%; left: 70%; }
.pin__label[data-side="top-left"]     { bottom: 60%; right: 70%; }
.pin__label[data-side="bottom-left"]  { top: 60%; right: 70%; }
.pin__label.is-hidden { opacity: 0; pointer-events: none; }
.dot-pin { cursor: pointer; }
.leaflet-marker-icon:hover { z-index: 10000 !important; }
.leaflet-marker-icon:hover .pin__label { opacity: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); }
.dot-pin--venue .pin__label { background: var(--blossom); text-transform: uppercase; font-size: 0.62rem; }
.dot-pin--hotel .pin__label { background: var(--hotel); }
/* the picked (or hovered-in-the-list) place: its label turns black, like its row's stripe */
.dot-pin.is-active .pin__label, .dot-pin.is-hover .pin__label {
  opacity: 1; background: var(--ink); color: var(--paper); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Salzburg on the wider maps: an open ring with its name */
.home-pin span {
  display: block; width: 14px; height: 14px; margin: 4px;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--paper);
}
.home-pin em {
  position: absolute; left: 24px; top: 3px; white-space: nowrap; font-style: normal;
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-2xs);
  letter-spacing: var(--track); text-transform: uppercase; color: var(--ink);
  text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper);
}
/* quiet the default Leaflet chrome (the fallback tiles get greyed here) */
.map--tiles .leaflet-tile-pane { filter: grayscale(1) contrast(0.88) brightness(1.08); }
.map .leaflet-bar { border: 0; border-radius: 2px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.map .leaflet-bar a {
  width: 28px; height: 28px; line-height: 28px; font-size: 16px; font-weight: 300;
  color: var(--soft); border-bottom-color: #eee;
}
.map .leaflet-bar a:hover { color: var(--ink); }
.map .leaflet-control-attribution {
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: 0.55rem; color: #999; background: rgba(243, 243, 243, 0.85);
}
.map .leaflet-control-attribution a { color: inherit; }
.map .leaflet-control-attribution * { font-size: inherit !important; line-height: 1.4; }   /* the base map adds its own, larger credits */
.map .leaflet-control-attribution svg { display: none !important; }


/* ---------- faq ---------- */
details {
  max-width: var(--measure); margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
summary {
  cursor: pointer; padding: 1rem 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 1.25rem; color: var(--soft); max-width: 46ch; }
details p a { color: var(--accent); text-underline-offset: 0.2rem; }
.day__notes { max-width: none; }
.day__notes ul { margin: 0 0 1.25rem; padding-left: 1.1rem; color: var(--soft); }
.day__notes li { margin: 0 0 0.5rem; }

/* ---------- rsvp ---------- */
.band--rsvp { background: transparent; }
.form { max-width: var(--measure); margin: 0 auto; }
.field { margin-bottom: 1.5rem; position: relative; border: 0; padding: 0; }
.field label, .field legend {
  display: block; margin-bottom: 0.45rem;
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs); letter-spacing: var(--track);
  text-transform: uppercase; color: var(--soft);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  font-family: var(--serif); font-size: var(--text-md); color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 2px;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field__hint { font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs); color: var(--soft); margin: 0.4rem 0 0; }

.field .radio {   /* beats .field label */
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-size: var(--text-md); text-transform: none;
  letter-spacing: normal; color: var(--ink); margin-bottom: 0.5rem;
}
.radio input { accent-color: var(--accent); }

.suggestions {
  position: absolute; z-index: 20; left: 0; right: 0;
  margin: 0.25rem 0 0; padding: 0; list-style: none;
  background: #fff; border: 1px solid var(--rule); border-radius: 2px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  max-height: 14rem; overflow-y: auto;
}
.suggestions li { padding: 0.6rem 0.85rem; cursor: pointer; font-size: var(--text-sm); }
.suggestions li:hover, .suggestions li[aria-selected="true"] { background: #F3F3EF; }

.btn {
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs); letter-spacing: var(--track);
  text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 2px; padding: 0.9rem 2.25rem; cursor: pointer;
}
.btn:hover { background: #333; }
.btn[disabled] { opacity: 0.5; cursor: default; }

.form__status { font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-sm); margin-top: 1rem; }
.form__status.ok  { color: var(--accent); }
.form__status.err { color: #A4443A; }

/* ---------- sending state ---------- */
.form--sending .field,
.form--sending .btn { display: none; }

.form__loading {
  display: none;
  flex-direction: column; align-items: center; gap: 1.1rem;
  padding: 2.5rem 0;
}
.form--sending .form__loading { display: flex; }
.form__loading p {
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs); letter-spacing: var(--track);
  color: var(--soft); margin: 0;
}
.form__loading-rings {
  position: relative; width: 3.4rem; height: 2.2rem; flex-shrink: 0;
}
.form__loading-rings span {
  position: absolute; top: 0; width: 2.2rem; height: 2.2rem;
  border: 2px solid var(--accent); border-radius: 50%;
  animation: ringPulse 1.4s ease-in-out infinite;
}
.form__loading-rings span:first-child { left: 0; animation-delay: 0s; }
.form__loading-rings span:last-child  { left: 1.2rem; animation-delay: 0.3s; }

@keyframes ringPulse {
  0%, 100% { transform: scale(0.82); opacity: 0.45; }
  50%      { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .form__loading-rings span { animation: none; opacity: 0.9; }
}

/* ---------- the cats: Teddy and Moose pop up while an RSVP is being sent ---------- */
/* cut-out animated heads (Teddy is blue, Moose is brown); they bounce up from
   below, lean in towards each other and bob along while the bubble shows */
.cats { position: relative; width: 100%; max-width: 25rem; height: clamp(14rem, 60vw, 16.5rem); margin: 0 auto; overflow: hidden; }
.cats__head {
  position: absolute; bottom: 0; width: clamp(9rem, 42vw, 11.5rem); height: auto;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.18));
  opacity: 0; transform: translateY(115%);
}
.cats__head--blue  { right: calc(50% - 1.1rem); z-index: 1; }
.cats__head--brown { left:  calc(50% - 1.1rem); }

.cats.is-walking .cats__head--blue  { animation: peekL 0.8s cubic-bezier(0.25, 1.6, 0.45, 1) both; }
.cats.is-walking .cats__head--brown { animation: peekR 0.8s cubic-bezier(0.25, 1.6, 0.45, 1) 0.3s both; }
@keyframes peekL { from { opacity: 0; transform: translateY(115%) rotate(-10deg); } 35% { opacity: 1; } to { opacity: 1; transform: rotate(5deg); } }
@keyframes peekR { from { opacity: 0; transform: translateY(115%) rotate(10deg); }  35% { opacity: 1; } to { opacity: 1; transform: rotate(-5deg); } }
/* then they lean in and bob along, slightly out of step */
.cats.is-still .cats__head--blue  { opacity: 1; animation: bobL 1.2s ease-in-out infinite alternate; }
.cats.is-still .cats__head--brown { opacity: 1; animation: bobR 1.2s ease-in-out -0.6s infinite alternate; }
@keyframes bobL { from { transform: rotate(5deg) translateY(0); }  to { transform: rotate(8deg) translateY(-6px) scale(1.02); } }
@keyframes bobR { from { transform: rotate(-5deg) translateY(0); } to { transform: rotate(-8deg) translateY(-6px) scale(1.02); } }

.cats__bubble {
  position: absolute; top: 0; left: 50%; z-index: 1; margin: 0; max-width: 17rem;
  padding: 0.6rem 1rem; border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-sm); line-height: 1.35;
  text-align: center; text-wrap: balance;
  transform: translateX(-50%) scale(0.6); opacity: 0; transform-origin: 50% 100%;
}
.cats__bubble::after {   /* the little tail of the speech bubble */
  content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px;
  border: 7px solid transparent; border-bottom: 0; border-top-color: #fff;
}
.cats.is-still .cats__bubble { animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
@keyframes pop { to { transform: translateX(-50%) scale(1); opacity: 1; } }
.cats__status {
  margin: 0.9rem 0 0; color: var(--faint);
  font-family: var(--sans); font-size: var(--text-xs); letter-spacing: var(--track);
}
@media (prefers-reduced-motion: reduce) {
  .cats.is-walking .cats__head, .cats.is-still .cats__head { animation: none; opacity: 1; transform: none; }
  .cats.is-still .cats__bubble { animation: none; transform: translateX(-50%); opacity: 1; }
}

/* ---------- rsvp: invitation + step-by-step pop-up ---------- */
/* the invitation card: a slightly brighter card resting on the page */
.invite {
  position: relative; max-width: 38rem; margin: 0 auto; text-align: center;
  /* square, like a printed card; content centred inside (it grows taller
     rather than squeezing if a phone is too narrow for it to fit) */
  aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 7vw, 4.5rem);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -18px rgba(0, 0, 0, 0.14);
}
/* a fine inner rule, like the border printed on a card */
.invite::before {
  content: ""; position: absolute; inset: 0.6rem; pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.07); border-radius: 2px;
}
.invite__script { display: block; width: min(100%, 25rem); height: auto; margin: 0 auto 1.75rem; color: var(--ink); }
html[lang="de"] .invite__script--en, html:not([lang="de"]) .invite__script--de { display: none; }
.invite__text { max-width: 26rem; margin: 0 auto; color: var(--soft); font-size: var(--text-md); text-wrap: balance; }
.invite__blossom, .done__blossom {
  display: block; width: 6.5rem; height: auto; margin: 2rem auto 2.25rem;
  mix-blend-mode: multiply; filter: saturate(0.9) contrast(0.96);
}
.done__blossom { margin-top: 0; }
.invite__btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1.7rem 0.95rem 2rem; cursor: pointer;
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(17, 17, 17, 0.55); border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.invite__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.invite__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.invite__arrow { display: inline-block; font-size: 1rem; line-height: 1; transition: transform 0.25s ease; }
.invite__btn:hover .invite__arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .invite__btn, .invite__arrow { transition: none; }
  .invite__btn:hover .invite__arrow { transform: none; }
}

.rsvp-dialog {
  width: min(100% - 2rem, 31rem); max-width: none; max-height: min(100dvh - 2rem, 46rem);
  padding: 0; border: 0; border-radius: 6px; overflow: auto;
  background: var(--paper-texture, none), var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
}
.rsvp-dialog::backdrop { background: rgba(20, 20, 18, 0.32); backdrop-filter: blur(4px); }
.rsvp-dialog[open] { animation: rsvpRise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes rsvpRise { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
/* on phones it rises from the bottom as a sheet */
@media (max-width: 30rem) {
  .rsvp-dialog {
    width: 100%; max-height: 92dvh; margin: auto 0 0;
    border-radius: 14px 14px 0 0;
  }
}
.rsvp-dialog [hidden] { display: none !important; }

.rsvp-dialog__panel {
  min-height: 28rem; display: flex; flex-direction: column;
  padding: 1.1rem clamp(1.25rem, 5vw, 2.5rem) 2rem;
}
.rsvp-dialog__top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  margin-bottom: clamp(1.5rem, 5vh, 2.5rem);
}
.rsvp-dialog__back, .step__skip {
  background: none; border: 0; padding: 0.3rem 0; cursor: pointer; color: var(--soft);
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs);
  letter-spacing: var(--track); text-transform: uppercase;
}
.rsvp-dialog__back { justify-self: start; }
.rsvp-dialog__back::before { content: "\2190\00a0"; }
.rsvp-dialog__back:hover, .step__skip:hover, .rsvp-dialog__close:hover { color: var(--ink); }
/* keeps its place in the top row so the dots stay centred */
.rsvp-dialog .rsvp-dialog__back[hidden] { display: block !important; visibility: hidden; }
.rsvp-dialog__close {
  justify-self: end; width: 2rem; height: 2rem; margin-right: -0.4rem;
  background: none; border: 0; cursor: pointer; color: var(--soft); font-size: 1.6rem; line-height: 1;
}
.rsvp-dialog__dots { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.rsvp-dialog__dots li {
  width: 6px; height: 6px; border-radius: 50%; background: var(--rule);
  transition: background 0.3s ease, transform 0.3s ease;
}
.rsvp-dialog__dots li.is-done { background: var(--soft); }
.rsvp-dialog__dots li.is-now { background: var(--ink); transform: scale(1.4); }

.rsvp-dialog .form { max-width: none; width: 100%; margin: 0; flex: 1; display: flex; flex-direction: column; }
.step { text-align: center; }
.step.is-in { animation: stepIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes stepIn { from { opacity: 0; transform: translateX(20px); } }
@media (prefers-reduced-motion: reduce) {
  .rsvp-dialog[open], .step.is-in { animation: none; }
}
.step__eyebrow {
  margin: 0 0 0.75rem; color: var(--soft);
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs);
  letter-spacing: var(--track); text-transform: uppercase;
}
.step__q {
  font-family: var(--serif); font-weight: normal; font-size: clamp(1.45rem, 4.6vw, 1.85rem);
  line-height: 1.25; margin: 0 0 1.75rem; text-wrap: balance;
}
.step .field { text-align: left; margin-bottom: 1rem; }
.step .field input[type="text"], .step .field input[type="email"], .step .field input[type="number"] {
  text-align: center; background: rgba(255, 255, 255, 0.6);
}
.step .field textarea { background: rgba(255, 255, 255, 0.6); }
.step .field__hint { text-align: center; margin-top: 0.6rem; }

/* name search in progress: a small turning ring in the field, and
   "Looking you up…" with dots that count up underneath */
.step .field { position: relative; }
.lookup__spin {
  position: absolute; top: 0; right: 0.9rem; height: 2.95rem;
  display: flex; align-items: center; pointer-events: none;
  opacity: 0; transition: opacity 0.2s ease;
}
.lookup__spin::before {
  content: ""; width: 1rem; height: 1rem; border-radius: 50%;
  border: 1.5px solid var(--rule); border-top-color: var(--ink);
  animation: spin 0.8s linear infinite;
}
.is-searching .lookup__spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-searching .field__hint::after, .who__loading p::after {
  content: ""; display: inline-block; width: 1.2em; text-align: left;
  animation: dots 1.2s steps(4, end) infinite;
}
@keyframes dots {
  0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; }
}
@media (prefers-reduced-motion: reduce) {
  .lookup__spin::before { animation-duration: 2.4s; }
  .is-searching .field__hint::after, .who__loading p::after { animation: none; content: "\2026"; }
}

/* "Finding your party…" while that party's names load */
.who__loading {
  display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.5rem 0 0.5rem;
}
.who__loading p {
  margin: 0; color: var(--soft);
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs); letter-spacing: var(--track);
}
.form__status.note { color: var(--soft); }
.step .field legend.step__note {
  width: 100%; margin: 0 0 0.9rem; padding: 0; text-align: center;
  text-transform: none; color: var(--soft);
}

/* answer cards: the radio is hidden, the whole card is the button */
.choices { display: grid; gap: 0.75rem; }
.choice {
  position: relative; display: block; padding: 1.1rem 1.25rem; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 4px; background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s ease, background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.choice:hover { border-color: var(--soft); }
.choice:active { transform: scale(0.985); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice__title { display: block; font-family: var(--serif); font-size: var(--text-lg); }
.choice__sub {
  display: block; margin-top: 0.25rem; color: var(--soft);
  font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs); letter-spacing: var(--track);
}
.choice:has(input:checked) .choice__sub { color: rgba(247, 247, 246, 0.75); }

/* who's coming: one card per person — tap to fill it in, like the answer cards */
#peopleField { min-width: 0; width: 100%; }
#peopleList { display: grid; gap: 0.6rem; width: 100%; }
.field .person {   /* beats .field label */
  margin: 0; font-family: var(--serif); font-size: var(--text-lg); font-weight: normal; letter-spacing: normal;
  text-transform: none; color: var(--ink);
}
.person {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 0.95rem 1.25rem; cursor: pointer; font-size: var(--text-lg);
  border: 1px solid var(--rule); border-radius: 4px; background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s ease, background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}
.person:hover { border-color: var(--soft); }
.person:active { transform: scale(0.985); }
.person input { position: absolute; opacity: 0; pointer-events: none; }
.person:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
/* a small ring that becomes a tick */
.person span::before {
  content: ""; display: inline-block; width: 1.05rem; height: 1.05rem; margin-right: 0.65rem;
  vertical-align: -0.12rem; border: 1px solid var(--soft); border-radius: 50%;
  font-family: var(--sans); font-size: 0.7rem; line-height: 1.05rem; text-align: center;
}
.field .person:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.person:has(input:checked) span::before { content: "\2713"; border-color: var(--paper); }

/* "can't make it" under the people, only while nobody is tapped */
.choice--decline {
  width: 100%; margin-top: 1.25rem; font: inherit; color: inherit; text-align: center;
  background: transparent; border-style: dashed;
}
.choice--decline.is-picked { border-style: solid; border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice--decline.is-picked .choice__sub { color: rgba(247, 247, 246, 0.75); }
#partySizeField { margin-top: 1.25rem; }

.step__nav {
  margin-top: auto; padding-top: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.step__nav .btn { min-width: 12rem; }
.rsvp-dialog .form__status { text-align: center; margin: 1rem 0 0; }
.form--sending .step, .form--sending .step__nav, .form--sending .form__status { display: none; }

.step--done { margin: auto 0; }
.done__script { display: block; width: min(80%, 15rem); height: auto; margin: 0.5rem auto 1.5rem; color: var(--ink); }
html[lang="de"] .done__script--en, html:not([lang="de"]) .done__script--de { display: none; }
.done__text { max-width: 24rem; margin: 0 auto 1.75rem; color: var(--soft); }
.done__text:has(+ .done__note:not([hidden])) { margin-bottom: 0.9rem; }
/* "check your inbox": a small card so it isn't missed */
.done__note {
  max-width: 24rem; margin: 0 auto 1.75rem; padding: 1rem 1.25rem 1.05rem;
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--rule); border-radius: 6px;
  color: var(--ink); text-align: center;
}
.done__note-icon { display: block; margin: 0 auto 0.4rem; color: var(--ink); }
.done__note-title {
  margin: 0 0 0.3rem; font-family: var(--sans); font-weight: var(--sans-weight);
  font-size: var(--text-xs); letter-spacing: var(--track); text-transform: uppercase;
}
.done__note-text { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--soft); text-wrap: pretty; }

/* honeypot — hidden from humans */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.foot {
  padding: 3rem var(--gutter);
  border-top: 1px solid var(--rule);
  text-align: center; color: var(--soft);
}
.foot__mono { display: block; width: auto; height: 6.5rem; margin: 0 auto 1.75rem; color: var(--ink); }
.foot p { margin: 0 0 0.5rem; font-family: var(--sans); font-weight: var(--sans-weight); font-size: var(--text-xs); letter-spacing: var(--track); }
.foot__build { opacity: 0.4; font-size: var(--text-2xs) !important; }
