/* ── Custom Fonts ────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'ElisabethDarlington';
  src: url('fonts/ElisabethDarlington.woff2') format('woff2'),
       url('fonts/ElisabethDarlington.woff')  format('woff'),
       url('fonts/ElisabethDarlington.ttf')   format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ElisabethDarlingtonUpright';
  src: url('fonts/ElisabethDarlingtonUpright.woff2') format('woff2'),
       url('fonts/ElisabethDarlingtonUpright.woff')  format('woff'),
       url('fonts/ElisabethDarlingtonUpright.ttf')   format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --cream:      #faf9f6;
  --white:      #ffffff;
  --black:      #1a1a1a;
  --charcoal:   #3d3d3d;
  --light-grey: #e8e5df;
  --mid-grey:   #9a9590;
  --max:        960px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream);
  color: var(--black);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography helpers ──────────────────────────────────────────────────── */
.script      { font-family: 'ElisabethDarlingtonUpright', 'Great Vibes', cursive; font-weight: normal; line-height: 1.1; }
.serif-caps  { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; }
.muted       { color: var(--mid-grey); }
.eyebrow     { font-family: 'Cormorant Garamond', serif; font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--mid-grey); margin-bottom: 16px; }
.text-center { text-align: center; }

.divider {
  width: 60px; height: 1px;
  background: var(--black);
  margin: 16px auto;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.section { border-top: 1px solid var(--light-grey); }
.section--white { background: var(--cream); }
.section--cream { background: var(--cream); }

.inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-heading { font-size: clamp(2.8rem, 7vw, 5rem); color: var(--black); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--charcoal); }
.btn-large { padding: 16px 48px; font-size: 0.75rem; }
.btn-full  { width: 100%; text-align: center; margin-top: 4px; }

.btn-secondary {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  color: var(--charcoal);
  border: 1px solid var(--light-grey);
  padding: 14px 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover { background: var(--light-grey); }

/* ── Password Gate ───────────────────────────────────────────────────────── */
.pw-gate {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pw-gate.hidden {
  display: none;
}

.pw-gate__card {
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.pw-gate__script {
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--charcoal);
  margin: 0 0 6px;
  line-height: 1;
}

.pw-gate__date {
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--charcoal);
  margin: 0 0 36px;
}

.pw-gate__label {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 10px;
}

.pw-gate__input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0cdc8;
  border-radius: 4px;
  background: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--charcoal);
  text-align: center;
  letter-spacing: 0.12em;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.pw-gate__input:focus {
  border-color: var(--charcoal);
}

.pw-gate__error {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: #b04040;
  margin: 8px 0 0;
}

.pw-gate__btn {
  margin-top: 16px;
  width: 100%;
  padding: 13px 24px;
  background: var(--charcoal);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pw-gate__btn:hover {
  opacity: 0.85;
}

/* Card fade-out when password correct */
.pw-gate__card {
  transition: opacity 0.3s ease;
}
.pw-gate__card.fading {
  opacity: 0;
  pointer-events: none;
}

/* Whole gate fade-out after clink */
.pw-gate {
  transition: opacity 0.7s ease;
}
.pw-gate.exiting {
  opacity: 0;
  pointer-events: none;
}

/* ── Clink celebration ──────────────────────────────────────────────────── */
.pw-celebrate {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.pw-celebrate.active {
  display: flex;
}

/* Two-glass scene */
.pw-clink-scene {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Each glass wrapper — rotates from its base */
.pw-glass-wrap {
  height: min(200px, 34vh);
  transform-origin: 50% 100%; /* pivot at base */
  flex-shrink: 0;
}

.pw-glass-wrap--left {
  opacity: 0;
  animation: glassLeft 1.1s cubic-bezier(0.34, 1.3, 0.64, 1) 0.2s forwards;
}

.pw-glass-wrap--right {
  opacity: 0;
  animation: glassRight 1.1s cubic-bezier(0.34, 1.3, 0.64, 1) 0.2s forwards;
}

.pw-glass-img {
  height: 100%;
  width: auto;
  display: block;
  filter: invert(1);
}

/* Mirror the right glass so they face each other */
.pw-glass-img--flip {
  transform: scaleX(-1);
}

/* Left: slides from left, nudges right as it tilts so rims meet */
@keyframes glassLeft {
  0%   { opacity: 0; transform: translateX(-200px) rotate(0deg); }
  38%  { opacity: 1; transform: translateX(0) rotate(0deg); }
  52%  {             transform: translateX(0) rotate(0deg); }
  78%  {             transform: translateX(40px) rotate(26deg); }
  88%  {             transform: translateX(37px) rotate(21deg); }
  100% { opacity: 1; transform: translateX(39px) rotate(23deg); }
}

/* Right: slides from right, nudges left as it tilts so rims meet */
@keyframes glassRight {
  0%   { opacity: 0; transform: translateX(200px) rotate(0deg); }
  38%  { opacity: 1; transform: translateX(0) rotate(0deg); }
  52%  {             transform: translateX(0) rotate(0deg); }
  78%  {             transform: translateX(-40px) rotate(-26deg); }
  88%  {             transform: translateX(-37px) rotate(-21deg); }
  100% { opacity: 1; transform: translateX(-39px) rotate(-23deg); }
}

/* Sparkles — positioned at the top-center of the scene (where rims meet) */
.pw-spark {
  position: absolute;
  top: 5%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9a84c;
  opacity: 0;
  animation: sparkFly 0.8s ease-out var(--delay) forwards;
}

@keyframes sparkFly {
  0%   { opacity: 1; transform: translate(-50%, 0) translate(0, 0) scale(1); }
  55%  { opacity: 0.9; }
  100% { opacity: 0; transform: translate(-50%, 0) translate(var(--dx), var(--dy)) scale(0.1); }
}

/* Bubbles float up from rim area after clink */
.pw-bubble {
  position: absolute;
  left: var(--x);
  top: 4%;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.38);
  border: 1px solid rgba(201, 168, 76, 0.55);
  opacity: 0;
  animation: floatUp var(--dur) ease-out var(--delay) forwards;
}

@keyframes floatUp {
  0%   { opacity: 0.9; transform: translateY(0) scale(1); }
  65%  { opacity: 0.4; }
  100% { opacity: 0;   transform: translateY(-110px) scale(0.2); }
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
  padding: 0 24px;
}
.navbar.scrolled {
  background: rgba(250,249,246,0.96);
  box-shadow: 0 1px 0 var(--light-grey);
  backdrop-filter: blur(6px);
}
.navbar__inner {
  max-width: var(--max); margin: 0 auto;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.navbar__logo { font-size: 2rem; color: var(--black); }
.navbar__links { list-style: none; display: flex; align-items: center; gap: 32px; }
.navbar__links a {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--charcoal); transition: color 0.2s;
}
.navbar__links a:hover { color: var(--black); }
.navbar__rsvp { padding: 10px 20px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1px; background: var(--black); transition: transform 0.25s, opacity 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  display: none; flex-direction: column; align-items: center; gap: 24px;
  padding: 32px 24px; background: rgba(250,249,246,0.98);
  border-top: 1px solid var(--light-grey);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--charcoal); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--cream); overflow: hidden; padding-top: 64px;
}
.hero__content {
  text-align: center; padding: 60px 24px 48px;
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero__names { font-size: clamp(4rem, 12vw, 9rem); color: var(--black); }
.amp { font-size: 0.85em; color: var(--black); }
/* Alternate J — uses ElisabethDarlington (non-upright) with swash/alternate glyphs enabled */
.joshua-j {
  font-family: 'ElisabethDarlington', cursive;
  font-style: normal;
  font-feature-settings: "swsh" 1, "salt" 1, "ss06" 1;
}
.hero__date {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--black);
  margin-top: 12px;
}
.hero__blacktie {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--black);
  margin-top: 6px;
}
.hero__rsvp-btn {
  margin-top: 32px;
  padding: 18px 64px;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
}

/* Dancing strip */
.hero__strip-wrap {
  width: 100%;
  height: clamp(280px, 36vw, 420px);   /* visible window — clips top & bottom */
  overflow: hidden;
  background: var(--cream);
}
.hero__strip-track {
  display: flex;
  width: max-content;
  animation: scroll-left 40s linear infinite;
  margin-top: -52px;    /* fixed crop — removes top whitespace above the figures */
}
.hero__strip-img {
  height: clamp(400px, 52vw, 620px);   /* taller than wrap so overflow clips whitespace */
  width: auto;
  flex-shrink: 0;
  display: block;
  filter: url(#cream-filter);          /* perfectly converts white → #faf9f6 cream */
}
/* 4 images on desktop → move one image width = -25% of total strip */
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

/* ── Key Details ─────────────────────────────────────────────────────────── */
.details-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; margin-top: 56px;
}
.details-card { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.details-icon { width: 44px; height: 44px; color: var(--black); }
.details-icon svg { width: 100%; height: 100%; }
.details-label { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--charcoal); font-weight: 500; }
.details-value { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 400; line-height: 1.5; }

.rsvp-block { margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.rsvp-deadline { font-size: 0.7rem; letter-spacing: 0.15em; color: var(--charcoal); }
.rsvp-deadline strong { font-weight: 500; }

/* ── Illustrated Venue Map ───────────────────────────────────────────────── */
/*
  3-column grid:  [illustration 200px] [spine 44px] [content 1fr]
  Rows:           [ceremony] [wine-aside] [reception]
  Wine card floats in the content column of the middle row, right-aligned.
*/
.vim {
  display: grid;
  grid-template-columns: 300px 44px 1fr;
  grid-template-rows: auto auto auto;
  max-width: 820px;
  margin: 64px auto 0;
  padding: 0 24px 80px;
  background: var(--cream);
}

/* ── Illustrations (left column) ─────────────────────────────── */
.vim__illus {
  padding-right: 16px;
  padding-top: 4px;
  background: var(--cream);
}
.vim__illus-img {
  width: 100%;
  height: auto;
  display: block;
  filter: url(#cream-filter);
}
/* State Library: show only left (exterior) half */
.vim__illus-crop {
  overflow: hidden;
  background: var(--cream);
}
.vim__illus-crop img {
  width: 200%;
  max-width: none;
  display: block;
  filter: url(#cream-filter);
}

/* ── Spine (middle column) ───────────────────────────────────── */
.vim__spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--cream);
}
.vim__dot {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  background: var(--cream);
  flex-shrink: 0;
  margin-top: 6px;
}
.vim__spine-line {
  flex: 1;
  width: 0;
  border-left: 1.5px dashed var(--light-grey);
  min-height: 16px;
}

/* ── Content (right column) ──────────────────────────────────── */
.vim__content {
  padding-left: 24px;
  padding-bottom: 40px;
  background: var(--cream);
}
.vim__time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--black);
  margin-bottom: 8px;
}
.vim__pin-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.vim__pin-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--charcoal);
  margin-top: 3px;
}
.vim__vname {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 3px;
}
.vim__addr {
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.5;
}
.vim__desc {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.6;
  margin: 8px 0 20px;
}

/* ── Wine bar aside row (middle row, content column) ─────────── */
.vim__wine-aside {
  grid-column: 3;
  padding-left: 24px;
  padding-bottom: 32px;
  display: flex;
  justify-content: flex-start;   /* align left with maps */
  background: var(--cream);
}
.vim__wine-card {
  border: 1px solid var(--light-grey);
  padding: 18px 22px;
  width: 100%;
  max-width: 500px;              /* match map width */
}
.vim__wine-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 14px;
  line-height: 1.5;
}
.vim__wine-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0 8px;
}
.vim__wine-list li {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--charcoal);
  white-space: nowrap;
  text-align: center;
}
.vim__wine-list li span {
  display: block;
  font-size: 0.78rem;
  color: var(--mid-grey);
}

/* ── Map label ───────────────────────────────────────────────── */
.vim__map-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 8px;
  font-family: 'Cormorant Garamond', serif;
}

/* ── Success message ─────────────────────────────────────────── */
.rsvp-success__heading { font-size: clamp(3.5rem, 10vw, 5rem); }
.rsvp-success__sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--charcoal);
  max-width: 320px;
  text-align: center;
  line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────────── */

/* Mobile-only time label — hidden on desktop (display:none removes it from grid flow entirely) */
.vim__time-mobile {
  display: none;
}

@media (max-width: 660px) {
  /* 2 images on mobile → move -50%; hide the extra two copies */
  .hero__strip-img:nth-child(n+3) { display: none; }
  @keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  /* Hero text — keep names on one line, keep all 4 detail lines the same size */
  .hero__content { padding-left: 8px; padding-right: 8px; }
  .hero__names { font-size: 10vw; white-space: nowrap; }
  .hero__date,
  .hero__blacktie { font-size: 5.5vw; letter-spacing: 0.04em; white-space: nowrap; }

  /* Switch vim from 3-col grid to vertical flex stack */
  .vim {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    gap: 0;
  }

  /* Show mobile-only time heading */
  .vim__time-mobile {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--black);
    margin-top: 40px;
    margin-bottom: 12px;
    text-align: center;
  }

  /* Show illustration full-width */
  .vim__illus {
    display: block;
    width: 100%;
    padding: 0;
  }
  .vim__illus-img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .vim__illus-crop {
    overflow: hidden;
    width: 100%;
  }
  .vim__illus-crop img {
    width: 100%;
    max-width: 100%;
  }

  /* Hide spine and filler cells on mobile */
  .vim__spine,
  .vim__filler {
    display: none;
  }

  /* Content full-width, hide the desktop time (shown via mobile label) */
  .vim__content {
    padding-left: 0;
    padding-bottom: 24px;
    width: 100%;
    text-align: center;
  }
  .vim__content .vim__time {
    display: none;
  }
  .vim__pin-row {
    justify-content: center;
  }
  .vim__pin-icon {
    display: none;
  }
  .vim__map-label {
    text-align: center;
  }

  /* Wine aside full-width */
  .vim__wine-aside {
    grid-column: unset;
    padding-left: 0;
    padding-bottom: 24px;
    width: 100%;
  }
  .vim__wine-card {
    max-width: 100%;
    width: 100%;
  }
  .vim__wine-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  /* Maps: constrain to screen width */
  .map-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .map-iframe {
    width: 100%;
    max-width: 100%;
  }
}

/* ── Venue Journey ───────────────────────────────────────────────────────── */
.venues-journey {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 72px;
  padding: 0 24px 64px;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.venue-stop {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 400px;
}
.venue-stop__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 24px;
}
.venue-stop__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Crop State Library — show left (exterior) half only */
.venue-stop__img--statelib {
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
.venue-stop__tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 6px;
}
.venue-stop__event {
  font-family: 'ElisabethDarlingtonUpright', 'Great Vibes', cursive;
  font-size: 2.6rem;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 4px;
}
.venue-stop__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--charcoal);
}

/* Connector arrow between venues */
.venues-journey__connector {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
  padding-bottom: 100px; /* offset to align with illustration centres */
  color: var(--light-grey);
}
.venues-journey__connector svg {
  width: 48px;
  height: auto;
}

@media (max-width: 640px) {
  .venues-journey {
    flex-direction: column;
    gap: 48px;
  }
  .venues-journey__connector {
    padding: 0;
    padding-bottom: 0;
    transform: rotate(90deg);
  }
  .venue-stop {
    max-width: 100%;
    width: 100%;
  }
}

/* ── Schedule / Timeline ─────────────────────────────────────────────────── */
.timeline { margin-top: 64px; display: flex; flex-direction: column; text-align: left; }

/* 3-column: [illustration] [spine] [content] */
.timeline-event {
  display: grid;
  grid-template-columns: 200px 48px 1fr;
  gap: 0;
  align-items: start;
}

/* Left column — venue illustration */
.timeline-illus {
  padding-top: 6px;
  padding-right: 20px;
}
.timeline-illus-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  filter: sepia(8%) brightness(0.99);
}
/* Crop State Library to left (exterior) half */
.timeline-illus-crop {
  width: 100%;
  overflow: hidden;
}
.timeline-illus-crop img {
  width: 200%;
  max-width: none;
  display: block;
  mix-blend-mode: multiply;
  filter: sepia(8%) brightness(0.99);
}

/* Middle column — spine */
.timeline-spine { display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.timeline-dot { width: 12px; height: 12px; border: 1.5px solid var(--black); border-radius: 50%; background: var(--cream); flex-shrink: 0; }
.timeline-line { flex: 1; width: 1px; background: var(--light-grey); margin: 8px 0; min-height: 40px; }

/* Right column — content */
.timeline-content { padding-bottom: 64px; padding-left: 20px; }
.timeline-meta { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.timeline-time { font-size: 2rem; letter-spacing: 0.12em; color: var(--black); white-space: nowrap; font-weight: 500; }
.timeline-label { font-size: 2rem; font-weight: 400; letter-spacing: 0.12em; }
.timeline-venue { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-style: italic; color: var(--charcoal); margin-bottom: 4px; }
.timeline-address { font-size: 0.85rem; letter-spacing: 0.05em; margin-bottom: 12px; }
.timeline-desc { font-size: 1rem; color: var(--charcoal); line-height: 1.7; max-width: 540px; margin-bottom: 24px; }

.map-wrap {
  max-width: 500px;
  height: 320px;   /* fixed height — tall enough for zoom controls to show */
  border: 1px solid var(--light-grey);
  /* no overflow:hidden — avoids clipping bottom-right zoom buttons */
}
.map-iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── Q&A Accordion ───────────────────────────────────────────────────────── */
/* Q&A heading — use the italic Darlington for the Q which has a nicer loop */
.qanda-heading {
  font-family: 'ElisabethDarlington', 'ElisabethDarlingtonUpright', cursive;
  font-weight: normal;
  line-height: 1.1;
}
.qanda-q, .qanda-a {
  font-family: 'ElisabethDarlington', cursive;
  font-size: 1em;
}
.qanda-amp {
  font-family: 'ElisabethDarlington', cursive;
  font-size: 0.65em;
  vertical-align: middle;
  margin: 0 0.05em;
  color: var(--black);
}

.qanda-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--charcoal);
  max-width: 520px;
  margin: 24px auto 0;
  line-height: 1.7;
}
.accordion { margin-top: 40px; text-align: left; max-width: 680px; margin-left: auto; margin-right: auto; }
.accordion-item { border-top: 1px solid var(--light-grey); }
.accordion-item:last-child { border-bottom: 1px solid var(--light-grey); }
.accordion-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; background: none; border: none; cursor: pointer;
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 400;
  color: var(--black); text-align: left; letter-spacing: 0.02em; transition: color 0.2s;
}
.accordion-q:hover { color: var(--charcoal); }
.accordion-chevron { width: 16px; height: 16px; flex-shrink: 0; color: var(--mid-grey); transition: transform 0.25s; }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-a { display: none; padding-bottom: 20px; }
.accordion-item.open .accordion-a { display: block; animation: expand 0.2s ease; }
.accordion-a p { font-size: 1rem; color: var(--charcoal); line-height: 1.8; max-width: 560px; }
@keyframes expand { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:translateY(0)} }

/* ── Registry ────────────────────────────────────────────────────────────── */
.registry-note {
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-style: italic;
  color: var(--charcoal); line-height: 1.8; max-width: 560px; margin: 32px auto 0;
}
.payid-card {
  margin: 48px auto 0; max-width: 460px; border: 1px solid var(--light-grey);
  padding: 36px 32px; background: var(--white); display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.payid-label { font-size: 0.65rem; letter-spacing: 0.2em; color: var(--mid-grey); }
.payid-sub   { font-size: 0.82rem; color: var(--charcoal); text-align: center; max-width: 280px; }
.payid-value {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 400; color: var(--black);
}
.copy-btn {
  width: 28px; height: 28px; background: none; border: 1px solid var(--light-grey);
  cursor: pointer; color: var(--mid-grey); padding: 4px; transition: color 0.2s, border-color 0.2s; flex-shrink: 0;
}
.copy-btn:hover { color: var(--black); border-color: var(--black); }
.copy-btn svg { width: 100%; height: 100%; }
.payid-name { font-size: 0.82rem; color: var(--charcoal); }
.payid-name strong { font-weight: 500; }
.payid-note { font-size: 0.72rem; letter-spacing: 0.04em; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--black); color: var(--white);
  text-align: center; padding: 56px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.footer-names { font-size: 3rem; color: var(--white); }
.footer-date  { font-size: 0.65rem; letter-spacing: 0.3em; color: rgba(255,255,255,0.5); }
.footer-made  { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-top: 16px; }

/* ── RSVP Modal ──────────────────────────────────────────────────────────── */
.rsvp-overlay {
  position: fixed; inset: 0; background: rgba(26,26,26,0.55);
  backdrop-filter: blur(4px); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.rsvp-modal {
  background: var(--cream); width: 100%; max-width: 520px; max-height: 90svh;
  overflow-y: auto; padding: 48px 40px 40px; position: relative;
  animation: slide-up 0.25s ease;
}
@keyframes slide-up { from{transform:translateY(16px);opacity:0} to{transform:translateY(0);opacity:1} }
.rsvp-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer;
  color: var(--mid-grey); padding: 4px; transition: color 0.2s;
}
.rsvp-close:hover { color: var(--black); }
.rsvp-close svg { width: 100%; height: 100%; }
.rsvp-eyebrow { font-size: 0.88rem; letter-spacing: 0.08em; color: var(--charcoal); margin-bottom: 8px; }
.rsvp-title   { font-size: clamp(2.4rem,8vw,3.6rem); color: var(--black); margin-bottom: 16px; text-align: center; font-family: 'ElisabethDarlingtonUpright', 'Great Vibes', cursive; }
.rsvp-body    { font-size: 0.88rem; color: var(--charcoal); line-height: 1.65; margin-bottom: 28px; }

.form-label { display: block; font-size: 0.75rem; letter-spacing: 0.18em; color: var(--black); font-weight: 600; margin-bottom: 6px; }
.form-input, .form-select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--light-grey);
  background: var(--white); font-family: 'Montserrat', sans-serif; font-size: 0.9rem;
  color: var(--black); outline: none; transition: border-color 0.2s;
  appearance: none; -webkit-appearance: none; margin-bottom: 16px; display: block;
}
.form-input:focus, .form-select:focus { border-color: var(--black); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9590' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form-error { font-size: 0.8rem; color: #c0392b; line-height: 1.5; margin-bottom: 12px; }

/* Guest card */
.guest-card { border: 1px solid var(--light-grey); padding: 24px; margin-bottom: 16px; }
.guest-name { font-family: 'Cormorant Garamond', serif; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 14px; color: var(--black); }
.attend-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 0; }
.attend-btn {
  font-family: 'Montserrat', sans-serif; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--white); color: var(--charcoal); border: 1px solid var(--light-grey);
  padding: 10px 8px; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.attend-btn.active         { background: var(--black); color: var(--white); border-color: var(--black); }
.attend-btn.active.decline { background: var(--mid-grey); border-color: var(--mid-grey); }
/* Name results list */
.name-results {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.name-result-item {
  padding: 12px 16px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--charcoal);
  border-bottom: 1px solid #eee;
  transition: background 0.15s;
}

.name-result-item:last-child {
  border-bottom: none;
}

.name-result-item:hover {
  background: var(--cream);
}

.dietary-wrap { margin-top: 16px; }

.plusone-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e8e4de;
}

.plusone-details {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rsvp-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }

/* Success */
.rsvp-success { text-align: center; padding: 16px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* ── Registry modal ──────────────────────────────────────────────────────── */
.registry-modal-overlay {
  position: fixed; inset: 0; background: rgba(26,26,26,0.55);
  backdrop-filter: blur(4px); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.registry-modal {
  background: var(--cream); width: 100%; max-width: 460px;
  padding: 48px 40px 40px; position: relative;
  animation: slide-up 0.25s ease;
  text-align: center;
}
.registry-modal h2 { font-size: 3rem; color: var(--black); margin-bottom: 8px; }
.registry-modal__sub { font-size: 0.8rem; letter-spacing: 0.15em; color: var(--charcoal); margin-bottom: 32px; }
.registry-payid-box {
  border: 1px solid var(--light-grey);
  padding: 28px 24px;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.registry-payid-label { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--mid-grey); }
.registry-payid-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 400; color: var(--black);
  display: flex; align-items: center; gap: 10px;
}
.registry-payid-acct { font-size: 0.9rem; color: var(--charcoal); }
.registry-payid-acct strong { font-weight: 500; }
.registry-payid-note { font-size: 0.78rem; color: var(--mid-grey); }
.registry-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer;
  color: var(--mid-grey); padding: 4px; transition: color 0.2s;
}
.registry-modal__close:hover { color: var(--black); }
.registry-modal__close svg { width: 100%; height: 100%; }
.registry-modal__btn-row { margin-top: 28px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .navbar__links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 720px) {
  .details-grid { grid-template-columns: repeat(2,1fr); gap: 32px; }
}
@media (max-width: 680px) {
  /* Stack timeline: hide left illustration, show inline above content */
  .timeline-event {
    grid-template-columns: 32px 1fr;
  }
  .timeline-illus { display: none; }
  .timeline-content { padding-left: 12px; }
}
@media (max-width: 420px) {
  .details-grid { grid-template-columns: 1fr; }
  .rsvp-modal { padding: 40px 24px 32px; }
  .attend-toggle { grid-template-columns: 1fr; }
  .rsvp-actions { flex-direction: column-reverse; }
  .btn-secondary, .btn-primary { width: 100%; text-align: center; }
  .registry-modal { padding: 40px 24px 32px; }
}
