/* =========================================================
   Adrian & Victoria — Wedding Site
   Palette: soft blue · champagne · sage green · dusty pink · ivory
   ========================================================= */

:root {
  /* Muted, sophisticated watercolor palette — dusty, softened versions of
     the wildflower invitation. Airy white base; color used only as delicate
     accents. (Var names kept so existing markup needs no changes.) */
  --soft-blue:   #8fa2c0;   /* dusty slate blue */
  --soft-blue-d: #61748f;   /* deeper slate (headings / buttons) */
  --champagne:   #f3ece0;   /* soft warm cream tint */
  --champagne-d: #e3d9c8;   /* soft border */
  --sage:        #a3b193;   /* soft muted sage */
  --sage-d:      #77896a;   /* deeper sage */
  --dusty-pink:  #cf9aab;   /* muted dusty rose */
  --dusty-pink-d:#b0778a;   /* deeper rose */
  --ivory:       #fdfbf7;   /* near-white cream */
  --ink:         #3a3640;   /* soft charcoal */
  --ink-soft:    #736c78;

  --gold:        #b89b63;   /* antique soft gold */
  --gold-light:  #cdb684;
  --coral:       #cc9280;   /* muted terracotta */
  --lavender:    #a695bd;   /* muted mauve */

  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1100px;
  --shadow: 0 18px 44px rgba(33, 26, 34, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0.7rem auto 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.95rem 2.6rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--light { background: rgba(255,255,255,0.92); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--soft-blue-d); color: #fff; }
.btn--dark:hover { background: var(--sage-d); }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(251, 248, 244, 0.95);
  box-shadow: 0 2px 20px rgba(74,69,64,0.08);
  backdrop-filter: blur(8px);
  padding: 0.6rem 2rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.nav__logo {
  width: auto;
  height: 52px;
  /* Logo art is dark; show it white over the hero photo */
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0,0,0,0.35));
  transition: filter 0.3s ease, height 0.3s ease;
}
/* Once scrolled onto the cream nav, render it in deep emerald */
.nav.is-scrolled .nav__logo {
  height: 42px;
  filter: brightness(0) saturate(100%) invert(24%) sepia(22%) saturate(1200%) hue-rotate(110deg) brightness(95%) contrast(92%);
}
.nav__menu { display: flex; gap: 1.8rem; align-items: center; }
.nav__menu a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: #fff;
  transition: color 0.25s ease;
}
.nav.is-scrolled .nav__menu a { color: var(--ink); }
.nav__menu a:hover { color: var(--dusty-pink-d); }
.nav__cta {
  border: 1px solid currentColor;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
}
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav__toggle span { width: 26px; height: 2px; background: #fff; transition: background 0.3s ease; }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease-in-out, transform 7s ease-in-out;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(58,54,64,0.38), rgba(97,116,143,0.38));
}
.hero__content { position: relative; z-index: 2; color: #fff; padding: 1rem; }
/* Cinematic entrance: children fade/scale in, staggered */
.hero__content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__content > *:nth-child(1) { animation-delay: 0.2s; }
.hero__content > *:nth-child(2) { animation-delay: 0.5s; }
.hero__content > *:nth-child(3) { animation-delay: 0.9s; }
.hero__content > *:nth-child(4) { animation-delay: 1.2s; }
.hero__content > *:nth-child(5) { animation-delay: 1.6s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__names { animation-name: heroInScale !important; }
@keyframes heroInScale {
  from { opacity: 0; transform: translateY(18px) scale(0.97); letter-spacing: 0.12em; }
  to   { opacity: 1; transform: translateY(0) scale(1); letter-spacing: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__content > * { animation: none; opacity: 1; transform: none; }
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}
.hero__names {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 500;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero__names span { font-family: var(--script); font-weight: 400; display: inline-block; margin: 0 0.3rem; color: var(--gold-light); }
.hero__tagline { font-family: var(--script); font-size: clamp(1.6rem, 4vw, 2.6rem); margin-top: 0.2rem; }
.hero__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.8rem 0;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
}
.hero__date strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin: 0.4rem 0;
  text-transform: none;
}
.hero__countdown {
  position: absolute;
  bottom: 2rem; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: #fff;
}
.hero__countdown .cd { text-align: center; min-width: 60px; }
.hero__countdown .cd b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.hero__countdown .cd span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; }

/* ===== Sections ===== */
.section { padding: 6rem 1.5rem; max-width: var(--maxw); margin: 0 auto; }
.section__head { text-align: center; margin-bottom: 3.5rem; }
.section__head h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.04em;
}
/* ===== Scripture / Quote Banner ===== */
.verse {
  background: linear-gradient(135deg, var(--soft-blue-d), var(--sage-d));
  color: var(--ivory);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 1.5rem;
}
.verse__text {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.5;
  quotes: "\201C" "\201D";
}
.verse__text::before { content: open-quote; opacity: 0.5; }
.verse__text::after { content: close-quote; opacity: 0.5; }
.verse__cite {
  margin-top: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--gold-light);
}

.section--story { background: var(--ivory); }
.section--proposal, .section--gallery, .section--rsvp, .section--travel { position: relative; }

/* Light, airy background bands (full-bleed) — barely-there washes for a
   refined, editorial feel. Color lives in the accents, not the blocks. */
.section--proposal { max-width: none; background: linear-gradient(150deg, #f4f6fa, #fdfbf7 60%); }
.section--proposal > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section--proposal .proposal__text p strong { color: var(--soft-blue-d); }
.section--travel { max-width: none; background: linear-gradient(150deg, #f4f6ef, #fdfbf7 60%); }
.section--travel > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section--rsvp { max-width: none; background: linear-gradient(150deg, #faf2f4, #fdfbf7 60%); }
.section--rsvp > * { max-width: 640px; margin-left: auto; margin-right: auto; }

/* RSVP "coming soon" (Save the Date mode) */
.rsvp-soon {
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  padding: 2.5rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.rsvp-soon p { margin-bottom: 1rem; font-size: 1.05rem; color: var(--ink); }
.rsvp-soon p:last-child { margin-bottom: 0; }
.rsvp-soon__lead { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--sage-d); }
.rsvp-soon strong { color: var(--dusty-pink-d); }
.add-cal { margin-top: 1.8rem; }
.add-cal__label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sage-d);
  margin-bottom: 0.9rem;
}
.add-cal__btns { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.add-cal .btn--light { border: 1px solid var(--sage-d); color: var(--sage-d); background: #fff; }
.add-cal .btn--light:hover { background: var(--sage-d); color: #fff; }

/* ===== Our Story ===== */
.story, .proposal {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.story__img, .proposal__img {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.story__text p, .proposal__text p { margin-bottom: 1.2rem; font-size: 1.08rem; }
.story__sign { font-family: var(--script); font-size: 1.8rem; color: var(--soft-blue-d); }
/* Shift the proposal photo crop so the couple is centered in the portrait frame */
.proposal__img img { object-position: 34% center; }

/* ===== Gallery ===== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.gallery-filter {
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--champagne-d);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s ease;
}
.gallery-filter:hover { border-color: var(--soft-blue); color: var(--soft-blue-d); }
.gallery-filter.is-active { background: var(--soft-blue-d); border-color: var(--soft-blue-d); color: #fff; }
.gallery__item.is-hidden { display: none; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery__item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(74,69,64,0.08);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}
.gallery__item img { transition: transform 0.6s ease; }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* Subtle magnify hint on hover */
.gallery__item::after {
  content: "⤢";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(15,74,60,0.75);
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.gallery__item:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery__note { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--ink-soft); }
.gallery__note code { background: var(--champagne); padding: 0.1rem 0.4rem; border-radius: 4px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 14, 20, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 2rem;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  max-width: 90vw;
  max-height: 88vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__caption {
  display: none;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, transform 0.25s ease;
  border-radius: 50%;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(230,196,106,0.35); }
.lightbox__close {
  top: 1.2rem; right: 1.5rem;
  width: 48px; height: 48px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  font-size: 2.4rem;
  line-height: 1;
}
.lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }
.lightbox__count {
  position: absolute;
  bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}
@media (max-width: 640px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.8rem; }
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
  .lightbox__close { top: 0.6rem; right: 0.8rem; }
}

/* ===== Details ===== */
.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.detail-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.detail-card:hover { transform: translateY(-6px); }
.detail-card__icon { font-size: 2.2rem; margin-bottom: 0.6rem; }
.detail-card h3 { font-size: 1.5rem; color: var(--soft-blue-d); margin-bottom: 0.3rem; }
.detail-card__time { font-family: var(--serif); font-size: 1.15rem; color: var(--dusty-pink-d); margin-bottom: 0.6rem; }
.detail-card p { font-size: 0.92rem; color: var(--ink-soft); }
/* Venue map */
.venue-map {
  margin-top: 2.5rem;
  text-align: center;
}
.venue-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
}
.venue-map__btn { margin-top: 1.4rem; }

/* ===== FAQ ===== */
.section--faq { max-width: none; background: linear-gradient(150deg, #f4f6ef, #fdfbf7 60%); }
.section--faq .section__head, .faq { max-width: 780px; margin-left: auto; margin-right: auto; }
.faq__item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 0.9rem;
  box-shadow: 0 8px 20px rgba(33,26,34,0.06);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  padding: 1.2rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}
.faq__item summary:hover { color: var(--soft-blue-d); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.5rem;
  color: var(--soft-blue-d);
  transition: transform 0.25s ease;
  margin-left: 1rem;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); line-height: 1.6; }

/* ===== Playlist ===== */
.section--playlist { max-width: none; background: linear-gradient(150deg, #faf2f4, #fdfbf7 60%); text-align: center; }
.section--playlist .section__head { max-width: var(--maxw); margin: 0 auto; }
.playlist__intro { margin-top: 1rem; color: var(--ink-soft); max-width: 520px; margin: 1rem auto 0; }
.playlist { max-width: 760px; margin: 0 auto; }
.playlist iframe { width: 100%; border: 0; border-radius: 12px; box-shadow: var(--shadow); }
.playlist__placeholder {
  background: #fff;
  border: 2px dashed var(--champagne-d);
  border-radius: 12px;
  padding: 3rem 2rem;
  color: var(--ink-soft);
}
.playlist__icon { font-size: 2.6rem; margin-bottom: 0.8rem; }
.playlist__placeholder p { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin-bottom: 0.4rem; }
.playlist__placeholder span { font-size: 0.9rem; }
.playlist__cta { margin-top: 1.2rem; font-size: 1.05rem; color: var(--ink); }
.playlist__cta a { color: var(--soft-blue-d); text-decoration: underline; text-underline-offset: 2px; }
.playlist__cta a:hover { color: var(--dusty-pink-d); }

/* ===== Travel ===== */
.travel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.travel__card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.travel__card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; color: var(--sage-d); }
.travel__card p { color: var(--ink); }
.travel__card strong { color: var(--sage-d); }
.travel__card a { color: var(--soft-blue-d); text-decoration: underline; text-underline-offset: 2px; }
.travel__card a:hover { color: var(--dusty-pink-d); }
.travel__intl {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ===== RSVP ===== */
.rsvp__deadline { margin-top: 0.8rem; color: var(--ink-soft); }
.rsvp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  background: rgba(255,255,255,0.9);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
/* Netlify spam honeypot — hidden from real users */
.hidden-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.field label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--champagne-d);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: border 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--soft-blue-d);
  box-shadow: 0 0 0 3px rgba(174,191,206,0.3);
}
.field__radios { display: flex; gap: 1.5rem; padding-top: 0.4rem; }
.radio { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; text-transform: none; letter-spacing: 0; color: var(--ink); cursor: pointer; }
.rsvp-form .btn { grid-column: 1 / -1; justify-self: center; }
.rsvp-form__msg { grid-column: 1 / -1; text-align: center; font-size: 0.95rem; min-height: 1.2rem; }
.rsvp-form__msg.is-ok { color: var(--sage-d); font-weight: 500; }
.rsvp-form__msg.is-err { color: var(--dusty-pink-d); font-weight: 500; }

/* ===== Guestbook ===== */
.section--guestbook { max-width: none; background: linear-gradient(150deg, #f6f3ee, #fdfbf7 60%); }
.section--guestbook > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.guestbook__intro { margin-top: 1rem; color: var(--ink-soft); max-width: 520px; margin-left: auto; margin-right: auto; }
.guestbook-form {
  max-width: 620px;
  margin: 0 auto 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  background: #fff;
  padding: 2rem 2.2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.guestbook-form .btn { justify-self: center; }
.guestbook-form__msg { text-align: center; font-size: 0.95rem; min-height: 1.2rem; }
.guestbook-form__msg.is-ok { color: var(--sage-d); font-weight: 500; }
.guestbook-form__msg.is-err { color: var(--dusty-pink-d); font-weight: 500; }
.guestbook-wall {
  columns: 3 240px;
  column-gap: 1.4rem;
}
.gb-note {
  break-inside: avoid;
  margin: 0 0 1.4rem;
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--dusty-pink);
}
.gb-note blockquote {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
}
.gb-note figcaption {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--soft-blue-d);
}
.gb-note:nth-child(3n+2) { border-top-color: var(--soft-blue); }
.gb-note:nth-child(3n+3) { border-top-color: var(--sage-d); }
.gb-note--new { animation: gbFadeIn 0.6s ease; }
@keyframes gbFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--ink);
  color: var(--ivory);
}
.footer__names { font-family: var(--script); font-size: 2.4rem; margin-bottom: 0.4rem; }
.footer__date { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; opacity: 0.8; }
.footer__heart { margin-top: 1rem; font-size: 0.85rem; opacity: 0.7; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .details { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: var(--ivory);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a { color: var(--ink) !important; font-size: 1rem; }
  .story, .proposal, .travel, .rsvp-form { grid-template-columns: 1fr; }
  /* On phones the columns stack, so the photo must scroll with the text
     instead of sticking over it. */
  .story__img, .proposal__img { position: static; top: auto; }
  .proposal__img { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__countdown { gap: 1.2rem; }
}
@media (max-width: 480px) {
  .details { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.2rem; }
}
