/* ==========================================================================
   Emma & Romilo — wedding website
   Tokens and components per design handoff README (source of truth).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  --cream: #FDF4EE;
  --pale-sage: #DCE6C3;
  --olive: #46543A;
  --deep-olive: #3B4630;
  --accent: #4E5C39;
  --heading-ink: #3F4B2E;
  --body-ink: #474F3C;
  --muted-sage: #6E7F52;
  --hairline: #EADFD5;
  --hairline-dark: #C9C0B2;
  --textarea-border: #E1D6CA;
  --on-olive-text: #EDEADF;
  --on-olive-script: #E3EACB;
  --footer-link: #CDD6BC;
  --nav-underline: #B3C48E;
  --trail-dash: #8D9C77;
  --itin-dash: #CFC3B4;
  --map-pin: #9FC3BE;
  --white: #FFFFFF;
  --hover-ink: #2F3A24;
  --btn-hover: #3B4630;
  --placeholder: #6C7060;
  --slot-bg: #EDE6D6;

  --font-body: 'Jost', system-ui, sans-serif;
  --font-script: 'Ephesis', cursive;
  --font-names: 'Alex Brush', cursive;

  --container-wide: 1600px;
  --container-narrow: 900px;
}

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

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--cream);
  color: var(--deep-olive);
  -webkit-font-smoothing: antialiased;
  /* Footer sits at the bottom even when a page is shorter than the screen */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.site-footer { margin-top: auto; }

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .18s;
}
a:hover { color: var(--hover-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container { max-width: var(--container-wide); margin: 0 auto; width: 100%; }
.container--narrow { max-width: var(--container-narrow); }

.section { padding: clamp(72px, 10vh, 120px) 28px; }
.section--compact { padding: clamp(40px, 6vh, 72px) 28px; }
.section--travel { padding: clamp(48px, 7vh, 80px) 28px; }
.section--map { padding: 0 28px clamp(72px, 10vh, 120px); }

.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 44px; }
.section-head--center { align-items: center; text-align: center; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.h1 {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.2;
  color: var(--heading-ink);
}
.h1--on-olive { color: var(--on-olive-script); }

.h2 {
  margin: 0;
  font-weight: 200;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--heading-ink);
}

.h3 {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.h3--ink { color: var(--heading-ink); }

.eyebrow {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
}

.meta {
  margin: 0;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-sage);
}
.meta--card { font-size: 11px; letter-spacing: .2em; }

.body {
  margin: 0;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
  color: var(--body-ink);
  max-width: 60ch;
  text-wrap: pretty;
}
.body--small { font-size: 15px; line-height: 1.7; }
.body--center { margin-inline: auto; text-align: center; }

.link-inline { border-bottom: 1px solid var(--nav-underline); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s, color .18s;
  border: 1px solid transparent;
  border-radius: 0;
  background: none;
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}
.btn--primary:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--cream); }

.btn--outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn--outline:hover { background: var(--accent); color: var(--cream); }

.btn--ghost { color: var(--accent); }
.btn--ghost:hover { color: var(--hover-ink); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(253, 244, 238, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-nav__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
/* The E R monogram (logo.svg), painted in currentColor through a mask so it
   follows the colour scheme (e.g. admin dark mode). The link keeps its text
   for browsers without CSS and its aria-label for screen readers. */
.site-nav__brand {
  display: inline-flex;
  width: 40px;
  height: 44px; /* also the tap target */
  font-size: 0;
  color: var(--heading-ink);
}
.site-nav__brand::before {
  content: '';
  flex: 1;
  background: currentColor;
  -webkit-mask: url(../logo.svg) center / contain no-repeat;
  mask: url(../logo.svg) center / contain no-repeat;
}
.site-nav__toggle { display: none; }
.site-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.site-nav__burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
}
.site-nav__links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.site-nav__links a:hover { color: var(--hover-ink); }
.site-nav__links a.is-active {
  color: var(--heading-ink);
  border-bottom: 1px solid var(--nav-underline);
  padding-bottom: 3px;
}
.site-nav__links a.btn--nav {
  padding: 10px 22px;
  font-size: 11px;
  letter-spacing: .22em;
  background: var(--accent);
  color: var(--cream);
  border: 0;
}
.site-nav__links a.btn--nav:hover { background: var(--btn-hover); color: var(--cream); }
.site-nav__links a.btn--nav.is-active {
  background: var(--btn-hover);
  color: var(--cream);
  border-bottom: 0;
  padding-bottom: 10px;
}

/* Language menu, added to the end of the main menu by js/content.js. */
.lang-menu {
  position: relative;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 2px;
  list-style: none;
  color: var(--accent);
  cursor: pointer;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.lang-menu[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.lang-menu summary:hover { color: var(--hover-ink); }
.lang-menu__list {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 170px;
  padding: 8px 0;
  background: var(--cream);
  border: 1px solid var(--hairline);
}
.lang-menu__list button {
  padding: 11px 20px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  color: var(--accent);
  background: none;
  border: 0;
  cursor: pointer;
}
.lang-menu__list button:hover { color: var(--hover-ink); background: var(--pale-sage); }
.lang-menu__list button[aria-current] { color: var(--heading-ink); font-weight: 500; }

@media (max-width: 720px) {
  .site-nav__burger { display: flex; }
  .site-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 28px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .site-nav__toggle:checked ~ .site-nav__links { display: flex; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--deep-olive); color: #EFEDE3; }
.site-footer__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: clamp(20px, 3vh, 40px) 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: baseline;
  justify-content: space-between;
}
.site-footer__name {
  margin: 0;
  font-size: 18px;
  font-weight: 200;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.site-footer__links a {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--footer-link);
}
.site-footer__links a:hover { color: #E4E2D6; }
.site-footer__email { font-size: 15px; font-weight: 300; color: #E4E2D6; }
.site-footer__email:hover { color: var(--white); }

@media (max-width: 720px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .site-footer__links { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Image slots (Supabase Storage photos with cream placeholder fallback)
   -------------------------------------------------------------------------- */
.img-slot {
  position: relative;
  background: var(--slot-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s;
}
.img-slot.has-image img { opacity: 1; }
.img-slot::after {
  content: attr(data-caption);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-sage);
  text-align: center;
  padding: 0 16px;
  line-height: 1.6;
}
.img-slot.has-image::after { content: none; }

/* --------------------------------------------------------------------------
   Cards (Where to stay)
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}
.card__media { height: 180px; flex: 0 0 auto; }
.card__body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 860px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--pale-sage); padding: 44px 28px; }
.cta-band__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.cta-band__text { display: flex; flex-direction: column; gap: 12px; }
.cta-band .eyebrow { color: #45532F; }

/* --------------------------------------------------------------------------
   Home (one-screen shell + hero + countdown)
   -------------------------------------------------------------------------- */
.page-home {
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.page-home .site-nav,
.page-home .site-footer { flex: 0 0 auto; }

.hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(8px, 2vh, 40px) 28px;
  gap: 8px;
}
.hero__kicker {
  margin: 0 0 clamp(8px, 1.6vh, 18px);
  font-size: clamp(11px, 1.5vw, 15px);
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #4A5438;
}
.hero__names { margin: 0; font-weight: 400; }
.hero__name {
  display: block;
  font-family: var(--font-names);
  font-weight: 400;
  font-size: min(clamp(62px, 11.5vw, 134px), 14vh);
  line-height: .96;
  color: var(--heading-ink);
}
.hero__and {
  display: block;
  margin: 10px 0 6px;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.7vw, 19px);
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #4A5438;
}
.hero__date,
.hero__place {
  margin: clamp(10px, 2vh, 26px) 0 0;
  font-weight: 300;
  font-size: clamp(12px, 1.5vh, 16px);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #43502F;
}
.hero__place { margin-top: clamp(4px, 1vh, 10px); }

.countdown {
  margin-top: clamp(10px, 2.5vh, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.4vh, 14px);
}
.countdown__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted-sage);
}
.countdown__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 clamp(12px, 4vw, 48px);
  align-items: baseline;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.countdown__digit {
  font-weight: 200;
  font-size: min(clamp(26px, 4.6vw, 48px), 5.5vh);
  line-height: 1;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--heading-ink);
}
.countdown__label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted-sage);
}
@media (max-width: 620px) {
  .countdown__label { font-size: clamp(8px, 2vw, 10px); }
}
.hero__calendar {
  margin: clamp(10px, 2.2vh, 28px) 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero__calendar a { padding-bottom: 3px; color: var(--accent); }
.hero__calendar a:hover { color: var(--hover-ink); }

/* --------------------------------------------------------------------------
   Our Story
   -------------------------------------------------------------------------- */
.story { padding: clamp(16px, 4vh, 64px) 28px; }
.story__grid {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px 72px;
  align-items: center;
}
.story__photo {
  width: 100%;
  height: min(clamp(260px, 54vh, 540px), 62vh);
}
.story__text {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vh, 22px);
}
.story__text .body {
  font-size: clamp(14px, 1.8vh, 16px);
  max-width: 52ch;
}

/* One-screen mode: >=861px wide and >620px tall */
@media (min-width: 861px) and (min-height: 621px) {
  .page-story {
    height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .page-story .site-nav,
  .page-story .site-footer { flex: 0 0 auto; }
  .page-story main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
  }
  .page-story .story {
    width: 100%;
    max-height: 100%;
    overflow: auto;
  }
}

/* --------------------------------------------------------------------------
   The Weekend — dashed timeline
   -------------------------------------------------------------------------- */
.timeline { display: flex; flex-direction: column; }
.timeline__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  column-gap: 28px;
  align-items: center;
}
.timeline__media,
.timeline__spine,
.timeline__text { grid-row: 1; }

.timeline__spine {
  grid-column: 2;
  align-self: stretch;
  min-height: 160px;
  position: relative;
}
.timeline__spine::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 2px dashed var(--itin-dash);
}
.timeline__spine::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--cream);
}

.timeline__media {
  grid-column: 1;
  justify-self: end;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  margin: 26px 0;
}
.timeline__text {
  grid-column: 3;
  justify-self: start;
  max-width: 46ch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.timeline__row--flip .timeline__media {
  grid-column: 3;
  justify-self: start;
}
.timeline__row--flip .timeline__text {
  grid-column: 1;
  justify-self: end;
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 720px) {
  .timeline__row,
  .timeline__row--flip { display: flex; flex-direction: column; align-items: center; }
  .timeline__spine { display: none; }
  .timeline__media,
  .timeline__row--flip .timeline__media { margin: 26px 0 20px; }
  .timeline__text,
  .timeline__row--flip .timeline__text {
    align-items: center;
    text-align: center;
    margin-bottom: 26px;
  }
}

/* --------------------------------------------------------------------------
   Zakynthos — sights list
   -------------------------------------------------------------------------- */
.sights { display: flex; flex-direction: column; gap: 18px; }
.sights__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.sights__item .body { max-width: 68ch; line-height: 1.75; }

.map-hint {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted-sage);
}

/* --------------------------------------------------------------------------
   Zakynthos — island map
   -------------------------------------------------------------------------- */
.island-map {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 480 / 360;
}
.island-map > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.island-map__label {
  position: absolute;
  transform: translate(-50%, -50%);
  width: min(150px, 20vw);
  text-align: center;
  pointer-events: none;
}
.island-map__name {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.35;
  color: var(--accent);
}
.island-map__label--big .island-map__name {
  font-size: clamp(16px, 2vw, 21px);
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--heading-ink);
}
.island-map__labelmeta {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--accent);
}
.island-map__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.island-map__pin.is-active { z-index: 20; }
.island-map__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 1px var(--accent);
}
.island-map__popup {
  position: absolute;
  z-index: 5;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: var(--white);
  border: 1px solid var(--hairline);
  box-shadow: 0 8px 24px rgba(59, 70, 48, .16);
  padding: 14px 16px;
  text-align: left;
  cursor: default;
}
.island-map__popup h4 {
  margin: 0 0 6px;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.island-map__popup p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--body-ink);
  letter-spacing: normal;
  text-transform: none;
}
@media (max-width: 620px) {
  .island-map__label { width: 92px; }
  .island-map__label p { font-size: 10px; line-height: 1.3; }
}

/* --------------------------------------------------------------------------
   Zakynthos — journey trail
   -------------------------------------------------------------------------- */
.travel-title {
  margin: 0 0 12px;
  text-align: center;
}
.trail {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 1000 / 310;
}
.trail > svg { display: block; width: 100%; height: 100%; }
.trail__cap {
  position: absolute;
  width: 20%;
  min-width: 150px;
  text-align: center;
  transform: translate(-50%, -100%);
}
.trail__cap--below { transform: translate(-50%, 0); }
.trail__cap p {
  margin: 0;
  font-size: clamp(12px, 1.4vw, 16px);
  line-height: 1.55;
  font-weight: 300;
  color: var(--on-olive-text);
}
/* Positions derived from stop centres: left = cx/10 %, top = ((cy -/+ 44) - 150) / 3.1 % */
.trail__cap--1 { left: 13%; top: 66.45%; }
.trail__cap--2 { left: 30%; top: 75.48%; }
.trail__cap--3 { left: 45%; top: 26.13%; }
.trail__cap--4 { left: 62%; top: 41.61%; }
.trail__cap--5 { left: 78%; top: 18.06%; }
.trail__pin {
  position: absolute;
  left: 94.5%;
  top: 75%;
  transform: translate(-50%, -50%);
  color: var(--map-pin);
}

.trail-list {
  display: none;
  flex-direction: column;
  max-width: 460px;
  margin: 0 auto;
}
.trail-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  column-gap: 14px;
  align-items: stretch;
}
.trail-list__row p {
  margin: 0;
  padding-bottom: 34px;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--on-olive-text);
}
.trail-list__left { text-align: right; }
.trail-list__right { text-align: left; }
.trail-list__spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  min-height: 64px;
}
.trail-list__dot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pale-sage);
}
.trail-list__line {
  flex: 1 1 auto;
  width: 0;
  border-left: 3px dashed var(--trail-dash);
  margin: 6px 0 -6px;
}
.trail-list__end {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
}
.trail-list__end p {
  margin: 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--on-olive-script);
}
.trail-list__endpin {
  display: flex;
  justify-content: center;
  color: var(--map-pin);
}

@media (max-width: 760px) {
  .trail { display: none; }
  .trail-list { display: flex; }
}

/* --------------------------------------------------------------------------
   Questions — accordion
   -------------------------------------------------------------------------- */
.accordion {
  max-width: 820px;
  margin: 0 auto;
  border-bottom: 1px solid var(--hairline);
}
.accordion__item { border-top: 1px solid var(--hairline); }
.accordion__heading { margin: 0; }
.accordion__button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.accordion__icon {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  transition: transform .2s;
}
.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: var(--muted-sage);
}
.accordion__icon::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  margin-top: -.75px;
}
.accordion__icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  margin-left: -.75px;
  transition: opacity .2s;
}
.accordion__button[aria-expanded="true"] .accordion__icon { transform: rotate(180deg); }
.accordion__button[aria-expanded="true"] .accordion__icon::after { opacity: 0; }
.accordion__panel { padding-bottom: 26px; }
.accordion__panel .body { max-width: 64ch; }

.questions-close { margin-top: 48px; }

/* --------------------------------------------------------------------------
   RSVP — form + registry
   -------------------------------------------------------------------------- */
.form {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.field { display: flex; flex-direction: column; }
.field__label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.field__input {
  border: 0;
  border-bottom: 1px solid var(--hairline-dark);
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--body-ink);
}
.field__input:focus-visible {
  outline: none;
  border-bottom-color: var(--accent);
}
.field__input::placeholder { color: var(--placeholder); opacity: 1; }
.field__error {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted-sage);
}
[hidden] { display: none !important; }

.pill-row { display: flex; flex-wrap: wrap; gap: 14px; }
.pill {
  border-color: var(--hairline-dark);
  color: #414A36;
  background: transparent;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}

.form__submit { align-self: flex-start; }
.btn:disabled { cursor: default; opacity: .6; }
.form__status { margin: 0; }
.form:focus, .rsvp-done:focus { outline: none; }

.rsvp-guests { display: flex; flex-direction: column; gap: 56px; }
.rsvp-guest {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.rsvp-guest legend { float: left; width: 100%; padding: 0; margin-bottom: 22px; }
.rsvp-guest > .field,
.rsvp-guest > .pill-row { clear: both; margin-bottom: 22px; }
.rsvp-guest > :last-child { margin-bottom: 0; }
.rsvp-choices { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rsvp-done { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }

.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 72px;
  align-items: start;
}
.registry-grid__intro { display: flex; flex-direction: column; gap: 16px; }
.registry-grid__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

/* Sections added in admin → Website text (js/content.js) */
.custom-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Registry page — gift cards
   -------------------------------------------------------------------------- */
.registry-status { margin-bottom: 32px; }
.gift-card .card__body { flex: 1; }
.gift-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: auto;
  padding-top: 10px;
}
.gift-card__actions .link-inline {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* tap target; underline instead of border so it hugs the text */
  border-bottom: 0;
  text-decoration: underline;
  text-decoration-color: var(--nav-underline);
  text-underline-offset: 5px;
}
.fund-progress { height: 6px; background: var(--hairline); overflow: hidden; }
.fund-progress span { display: block; height: 100%; background: var(--accent); }
.pay-link { align-self: flex-start; }
.pay-details {
  white-space: pre-line; /* keep line breaks in bank details */
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--hairline);
}
#pay-step:focus { outline: none; }

/* Chosen: full-contrast text on the page colour instead of a white card. */
.gift-card--claimed { background: transparent; border-color: var(--hairline-dark); }

/* --------------------------------------------------------------------------
   Badges and dialogs (registry, admin)
   -------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted-sage);
  border: 1px solid var(--hairline-dark);
}
.badge--yes { background: var(--pale-sage); border-color: var(--pale-sage); color: var(--heading-ink); }
.badge--no { background: var(--slot-bg); border-color: var(--slot-bg); color: var(--body-ink); }

.dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 32px clamp(20px, 4vw, 40px);
  background: var(--cream);
  color: var(--deep-olive);
  border: 1px solid var(--hairline);
}
.dialog--sm { width: min(440px, calc(100% - 32px)); }
.dialog::backdrop { background: rgba(59, 70, 48, .45); }
.dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

/* --------------------------------------------------------------------------
   Page utilities
   -------------------------------------------------------------------------- */
.bg-sage { background: var(--pale-sage); }
.bg-olive { background: var(--olive); color: #F4F1E9; }
.bt-hairline { border-top: 1px solid var(--hairline); }

.timeline-title { margin: 0 0 48px; text-align: center; }
.weekend-close { margin: 48px auto 0; text-align: center; }
.stay-close { margin-top: 32px; }

.zk-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.zk-intro .body { max-width: 56ch; }

/* --------------------------------------------------------------------------
   Touch targets: at least 44px tall on phones and touch screens
   -------------------------------------------------------------------------- */
@media (max-width: 720px), (pointer: coarse) {
  .site-footer__links a,
  .site-footer__email { display: inline-block; padding-block: 14px; }
  .site-footer__links { row-gap: 0; }
  .field__input { padding-block: 11px; }

}
@media (max-width: 720px) {
  /* Open hamburger menu: tall rows; underline instead of a border so the
     active marker stays close to its word. */
  .site-nav__links a:not(.btn--nav) { line-height: 44px; padding-bottom: 0; }
  .site-nav__links a.is-active {
    border-bottom: 0;
    text-decoration: underline;
    text-decoration-color: var(--nav-underline);
    text-underline-offset: 6px;
  }
  .site-nav__links { gap: 0; }
  .site-nav__links a.btn--nav { margin-top: 10px; padding-block: 15px; }
  .lang-menu { margin-top: 10px; align-self: stretch; }
  .lang-menu summary { min-height: 44px; padding-inline: 0; }
  .lang-menu__list { position: static; min-width: 0; padding: 0; border: 0; }
  .lang-menu__list button { min-height: 44px; padding: 0 0 0 16px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
