/* ==========================================================================
   Azaria & Melina — October 9, 2027
   Palette + type sampled from the Canva designs in /design_base
   ========================================================================== */

:root {
  --green:      #425340;
  --green-deep: #38452f;
  --green-card: #4a5a42;
  --cream:      #f6f1e7;
  --tan:        #b8b197; /* exact background of the itinerary icon crops */
  --sage:       #a3a89a;
  --sage-btn:   #8e9681;
  --silk:       #d8d1c9;

  --serif:  "Playfair Display", Georgia, serif;
  --body:   "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", cursive;
  --sans:   "Montserrat", -apple-system, sans-serif;

  --nav-h: 76px;
  --pad:   clamp(1.25rem, 5vw, 4rem);
}

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

/* scroll-padding keeps any in-page anchor clear of the sticky bar. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.65;
  color: var(--cream);
  background: var(--green);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.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;
}

/* --- Password gate ------------------------------------------------------- */
/* Content stays hidden until unlocked. The inline <head> script adds .locked
   before first paint so nothing flashes. */
html.locked { overflow: hidden; }
html.locked body > *:not(#gate) { display: none !important; }

#gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  background:
    linear-gradient(rgba(66, 83, 64, 0.72), rgba(66, 83, 64, 0.72)),
    url("../assets/img/hero-vineyard.png") center / cover no-repeat;
  background-color: var(--green);
}

.gate-box { width: min(30rem, 100%); text-align: center; }

.gate-box .monogram { width: 88px; margin: 0 auto 1.75rem; }

.gate-box h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 1.9rem);
  margin: 0 0 0.4rem;
}

.gate-box p {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  opacity: 0.88;
  font-style: italic;
}

.gate-form { display: flex; flex-direction: column; gap: 0.9rem; }

.gate-field { position: relative; display: flex; }

/* Only the password field needs room for the reveal button. */
.gate-field input { padding-right: 3.25rem; }

.gate-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--body);
  font-size: 1.1rem;
  color: var(--green);
  background: var(--cream);
  border: 1px solid rgba(246, 241, 231, 0.5);
  border-radius: 2px;
}

.gate-form input:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

.gate-reveal {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--green);
  background: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.gate-reveal:hover { opacity: 1; }
.gate-reveal:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; opacity: 1; }
.gate-reveal svg { width: 22px; height: 22px; display: block; }

/* Swap the open/struck-through eye based on the button's pressed state. */
.gate-reveal .eye-off { display: none; }
.gate-reveal[aria-pressed="true"] .eye-on { display: none; }
.gate-reveal[aria-pressed="true"] .eye-off { display: block; }

.gate-form button {
  padding: 0.8rem 1rem;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--sage-btn);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.gate-form button:hover { background: var(--sage); }

.gate-error {
  min-height: 1.5em;
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  font-style: italic;
  color: #f3d9c8;
}

.things-to-do {
  background:
    linear-gradient(rgba(66, 83, 64, 0.72), rgba(66, 83, 64, 0.72)),
    url("../assets/img/things-to-do.png") center / cover no-repeat;
  background-color: var(--green);
}

/* --- Navigation ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nav-h);
  padding: 0 var(--pad);
  background: var(--green);
  transition: background 0.25s, box-shadow 0.25s;
}

/* On the home page the bar floats over the hero illustration, as in the
   design. The negative margin pulls the hero up underneath it so the
   illustration still runs full-bleed to the top of the viewport. */
body.home .nav {
  background: transparent;
  margin-bottom: calc(-1 * var(--nav-h));
}

/* Once scrolled, the bar picks up a background so the links stay legible
   over whatever is passing beneath them. */
body.home .nav.nav--scrolled { background: rgba(66, 83, 64, 0.94); }

@supports (backdrop-filter: blur(6px)) {
  body.home .nav.nav--scrolled { background: rgba(66, 83, 64, 0.8); backdrop-filter: blur(8px); }
}

.nav.nav--scrolled { box-shadow: 0 2px 18px rgba(40, 52, 38, 0.28); }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3.4vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.06rem;
  text-decoration: none;
  color: var(--cream);
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] { border-bottom-color: var(--cream); }

.nav-toggle {
  display: none;
  position: absolute;
  right: var(--pad);
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--cream);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 11px;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { content: ""; top: -7px; left: 0; }
.nav-toggle span::after  { content: ""; top:  7px; left: 0; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* --- Page shell ---------------------------------------------------------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) var(--pad); }
.section--green { background: var(--green); }
.wrap { max-width: 1180px; margin: 0 auto; }
.wrap--narrow { max-width: 820px; margin: 0 auto; }

/* --- FAQs ---------------------------------------------------------------- */
.faq-page .h-script { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Flexbox (not grid) so that a trailing row with fewer than 3 items centres
   itself: two items sit evenly around the middle, a lone item is centred. */
.faq {
  --faq-col-gap: clamp(1.5rem, 3vw, 2.75rem);
  --faq-row-gap: clamp(2.5rem, 4.5vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--faq-row-gap) var(--faq-col-gap);
  margin: 0;
}

/* One column on mobile; the -1px keeps sub-pixel rounding from wrapping a
   full row early. */
.faq-item {
  flex: 0 1 100%;
  text-align: center;
}

@media (min-width: 640px) {
  .faq-item { flex-basis: calc((100% - var(--faq-col-gap)) / 2 - 1px); }
}

@media (min-width: 960px) {
  .faq-item { flex-basis: calc((100% - 2 * var(--faq-col-gap)) / 3 - 1px); }
}

.faq dt {
  font-family: var(--body); /* Cormorant Garamond, upright */
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.faq dd {
  margin: 0;
  font-family: var(--body);
  font-style: normal;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.6;
}

.faq dd p { margin: 0 0 0.85rem; }
.faq dd p:last-child { margin-bottom: 0; }
.faq dd a { text-decoration: underline; text-underline-offset: 3px; }

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: clamp(0.04em, 1.2vw, 0.14em);
  font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1.5rem;
  text-align: center;
}

.h-script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  text-align: center;
}

.rule { width: min(560px, 80%); height: 1px; margin: 0 auto 2.5rem; background: rgba(246,241,231,0.55); border: 0; }

/* --- Home hero ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Equal vertical padding so the flex-centred text lands on the true
     viewport centre (the monogram is taken out of flow below). */
  padding: calc(var(--nav-h) + 2rem) var(--pad);
  text-align: center;
  background:
    linear-gradient(rgba(66, 83, 64, 0.72), rgba(66, 83, 64, 0.72)),
    url("../assets/img/hero-vineyard.png") center / cover no-repeat;
  background-color: var(--green);
}

/* Keeps the cream type legible over the illustration at any crop. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(66,83,64,0.45), rgba(66,83,64,0.25) 45%, rgba(66,83,64,0.4));
}

.hero > * { position: relative; }

/* Pulled out of the flex flow and pinned near the top, so it sits high on the
   page without shifting the names/date/count, which stay vertically centred. */
.hero .monogram {
  position: absolute;
  top: calc(var(--nav-h) + clamp(1rem, 4vh, 3rem));
  left: 50%;
  transform: translateX(-50%);
  width: clamp(64px, 16vw, 128px);
  margin: 0;
}

/* Phones: dial the monogram down. Desktop keeps the 128px cap above; this only
   affects small screens, and still shrinks with the viewport. */
@media (max-width: 600px) {
  .hero .monogram { width: clamp(52px, 12vw, 78px); }
}

/* .hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 1.9rem);
  margin: 0 0 0.4rem;
} */

.hero-names {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  /* Scale to the line's own width so it never wraps. "AZARIA & MELINA"
     measures 8.82em in Playfair Display and 9.21em in the Georgia fallback,
     letter-spacing included; dividing the available width by 9.4 keeps it on
     one line in either font, including while the webfont is still loading.
     If the wording changes, re-measure and update the divisor.
     The 9.75rem cap is the desktop ceiling (was 7.5rem, +30%); below the
     crossover width the divisor governs and the line already fills the
     available width, so it can't grow further there without wrapping. */
  font-size: min(9.75rem, calc((75vw - 2 * var(--pad)) / 9.4));
  white-space: nowrap;
  line-height: 1;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 18px rgba(40, 52, 38, 0.35);
}

.hero-names .amp {
  font-family: var(--script);
  text-transform: lowercase;
  letter-spacing: 0;
  font-size: 0.82em;
  padding: 0 0.1em;
}

.hero-date {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 0.9rem + 1.1vw, 1.7rem);
  margin: 0 0 0.35rem;
}

.hero-date sup { font-size: 0.6em; }

.hero-count {
  font-family: var(--serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 0.85rem + 0.6vw, 1.25rem);
  margin: 0;
}

/* --- home --------------------------------------------------------------- */
.home-page {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
  background: var(--silk) url("../assets/img/silk.png") center / cover no-repeat;
}

.home-page-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.home-page-card {
  padding: clamp(1.75rem, 4vw, 3.25rem);
  background: var(--green-card);
  text-align: center;
}

.home-page-card h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem);
  margin: 0 0 1.5rem;
}

.home-page-card p { margin: 0 0 1.35rem; }

.home-page-card .signoff {
  font-family: var(--script);
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  margin: 0.5rem 0 0;
}

.home-page-photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- Travel: about ------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  min-height: 62vh;
  background: var(--green);
}

.about img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.about-copy h1 {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem);
  margin: 0 0 1.5rem;
}

.about-copy p { margin: 0 0 1.5rem; }

/* --- Airports ------------------------------------------------------------ */
.airport { display: flex; align-items: flex-start; gap: clamp(1rem, 3vw, 2.5rem); margin-bottom: 2.75rem; }

.airport-icon { flex: 0 0 auto; width: clamp(48px, 7vw, 88px); color: var(--cream); }
.airport-icon svg { width: 100%; height: auto; }

.airport-body { flex: 1 1 auto; min-width: 0; }

.airport-body h3 {
  margin: 0 0 1rem;
  padding: 0.55rem 1rem;
  background: var(--sage);
  border: 1px solid #7d5c52;
  color: var(--green);
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.15rem);
}

.airport-body h3 span { font-weight: 400; }

.airport-body ul { margin: 0; padding-left: 1.25rem; }
.airport-body li { margin-bottom: 0.4rem; font-weight: 600; }

/* --- Hotels -------------------------------------------------------------- */
.hotels {
  background: var(--green) url("../assets/img/vineyard-band.png") center / cover no-repeat;
  position: relative;
}

.hotels::before { content: ""; position: absolute; inset: 0; background: rgba(66,83,64,0.72); }
.hotels > * { position: relative; }

.hotels .lede { max-width: 62rem; margin: 0 auto 2.75rem; text-align: center; }

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.hotel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 1.25rem;
  background: rgba(72, 88, 60, 0.9);
  text-align: center;
}

.hotel-card img { width: 72px; height: 72px; object-fit: contain; }

.hotel-card h3 {
  margin: 0;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.hotel-card .meta { margin: 0; font-size: 0.9rem; opacity: 0.9; }

.hotel-card hr { width: 100%; height: 1px; margin: 0.35rem 0; background: rgba(246,241,231,0.4); border: 0; }

.hotel-card .addr { margin: 0; font-size: 0.9rem; }

.btn {
  display: inline-block;
  margin-top: auto;
  padding: 0.7rem 1.9rem;
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  background: var(--sage-btn);
  border: 0;
  transition: background 0.2s;
}

.btn:hover { background: var(--sage); color: var(--green); }

/* Booking links aren't open yet. Real <button disabled> so it's genuinely
   inert and announced as disabled, not just styled to look that way. */
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--sage-btn);
  color: var(--cream);
}

/* --- Itinerary ----------------------------------------------------------- */
.weekend-section {
    background: var(--green) url("../assets/img/itinerary.png") center / cover no-repeat;
}

.weekend-card {
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
  background: rgb(184, 177, 151, 0.75);
}

.weekend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2rem); }

.day { text-align: center; display: flex; flex-direction: column; }

.day h3 {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem);
  margin: 0 0 1.5rem;
}

.day ul { margin: 0 0 1.75rem; padding: 0; list-style: none; font-family: var(--sans); font-weight: 300; }
.day li { margin-bottom: 1.5rem; font-size: clamp(0.85rem, 0.75rem + 0.5vw, 1.05rem); }

.day img { width: clamp(52px, 7vw, 82px); margin: auto auto 0; }

.attire { text-align: center; }
.attire h3 { font-family: var(--script); font-weight: 400; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem); margin: 2.5rem 0 0.5rem; }
.attire p { margin: 0 0 1rem; }

/* --- RSVP ---------------------------------------------------------------- */
.rsvp {
  display: grid;
  grid-template-columns: 45.5% 1fr;
  min-height: calc(100svh - var(--nav-h));
}

.rsvp-panel { padding: clamp(2.5rem, 5vw, 4rem) var(--pad); background: var(--green); }

.rsvp-panel h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4rem);
  margin: 0 0 1.5rem;
  text-align: center;
}

.rsvp-panel p { margin: 0 0 1.5rem; }
.rsvp-panel .deadline { font-style: italic; text-align: center; margin-top: 2.5rem; }
.rsvp-panel .btn { margin: 0.5rem 0 2rem; }

/* Recreates the striped panel from the design in pure CSS. */
.rsvp-stripes {
  background: repeating-linear-gradient(
    90deg,
    var(--cream) 0 50px,
    var(--sage)  50px 100px
  );
}

/* --- RSVP form ----------------------------------------------------------- */
.rsvp-page { text-align: left; }
.rsvp-page .h-display { text-align: center; }

.rsvp-intro {
  max-width: 40rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.rsvp-form .field { margin-bottom: 1.6rem; }

/* Two-up on wide screens, stacked on mobile. */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}
.field-row .field { margin-bottom: 1.6rem; }

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.field-hint {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  font-style: italic;
  opacity: 0.82;
}

.optional { font-style: italic; opacity: 0.7; font-size: 0.9em; }

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--body);
  font-size: 1.08rem;
  color: var(--green);
  background: var(--cream);
  border: 1px solid rgba(246, 241, 231, 0.5);
  border-radius: 2px;
}
.form-control:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.form-control--narrow { max-width: 8rem; }
textarea.form-control { resize: vertical; min-height: 5.5rem; line-height: 1.5; }

/* Radios / checkboxes */
.rsvp-form fieldset { border: 0; margin: 0; padding: 0; }
.rsvp-form legend { padding: 0; }

.choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0;
  cursor: pointer;
}
.choice input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--sage-btn);
}

.rsvp-submit { margin-top: 0.5rem; border: 0; cursor: pointer; }
.rsvp-submit:disabled { opacity: 0.5; cursor: default; }

.rsvp-status {
  min-height: 1.4em;
  margin: 1rem 0 0;
  font-style: italic;
}
.rsvp-status.is-error { color: #f3d9c8; font-style: normal; }

.rsvp-success { text-align: center; padding: 1rem 0; }
.rsvp-success .h-script { margin-bottom: 1rem; }
.rsvp-success-msg { max-width: 34rem; margin: 0 auto 2rem; }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* --- Coming soon --------------------------------------------------------- */
.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--nav-h) - 22rem);
  padding: clamp(3rem, 10vw, 7rem) var(--pad);
  background: var(--green);
  text-align: center;
}

.coming-soon p { max-width: 34rem; margin: 0 auto; }

/* --- Registry ------------------------------------------------------------ */
.registry {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
  background: #7d827c url("../assets/img/cypress.jpg") center / cover no-repeat;
}

/* The photo is 16:9 and the cypress sits on its right third, so a centred
   crop on a tall screen shows nothing but open water. Bias toward the tree. */
@media (max-aspect-ratio: 1 / 1) {
  .registry { background-position: 72% center; }
}

.registry-card {
  width: min(63rem, 100%);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  background: rgba(74, 90, 66, 0.86);
  text-align: center;
}

.registry-card .title-rule { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 0.5rem; }
.registry-card .title-rule::before,
.registry-card .title-rule::after { content: ""; flex: 1; height: 1px; background: var(--cream); }
.registry-card .title-rule h1 { font-family: var(--script); font-weight: 400; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); margin: 0; }

.registry-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin: 2.5rem 0;
}

.registry-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Normalise on width — the three logos have very different proportions,
     and matching widths keeps the row balanced the way the design does. */
  width: clamp(110px, 16vw, 180px);
  opacity: 0.95;
  transition: opacity 0.2s, transform 0.2s;
}

.registry-links img { width: 100%; height: auto; }

.registry-links a:hover { opacity: 1; transform: translateY(-2px); }
.registry-links a:focus-visible { outline: 2px solid var(--cream); outline-offset: 6px; }

.registry-card .signoff { font-family: var(--script); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem); margin: 0.25rem 0 0; }

/* --- Photos -------------------------------------------------------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.photo-grid figure { margin: 0; aspect-ratio: 3 / 4; background: rgba(246,241,231,0.08); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }

.photo-status { text-align: center; font-style: italic; opacity: 0.9; }

/* --- Things to do -------------------------------------------------------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }

.tile { padding: clamp(1.5rem, 3vw, 2.25rem); background: rgba(72, 88, 60, 0.75); text-align: center; }
.tile h3 { font-family: var(--script); font-weight: 400; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem); margin: 0 0 1rem; }
.tile ul { margin: 0; padding: 0; list-style: none; }
.tile li { margin-bottom: 1rem; }
.tile a { text-decoration: underline; text-underline-offset: 4px; }
.tile .note { display: block; font-size: 0.85em; opacity: 0.85; }

.lede-centred { max-width: 46rem; margin: 0 auto 3rem; text-align: center; font-style: italic; }

/* --- Footer -------------------------------------------------------------- */
.footer {
  padding: clamp(3rem, 7vw, 5rem) var(--pad);
  background: var(--green);
  text-align: center;
}

.footer h2 { font-family: var(--script); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin: 0 0 0.75rem; }
.footer p { max-width: 34rem; margin: 0 auto 2.5rem; }
.footer .monogram { width: 62px; margin: 0 auto; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1000px) {
  /* Drives the bar height and the home page's negative offset together. */
  :root { --nav-h: 64px; }

  .nav { justify-content: flex-start; }
  .nav-toggle { display: block; }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0 1.25rem;
    background: var(--green);
    box-shadow: 0 12px 24px rgba(40, 52, 38, 0.3);
  }

  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; text-align: center; }
  .nav-list a { display: block; padding: 0.85rem 1rem; font-size: 1.2rem; border-bottom: 0; }
  .nav-list a[aria-current="page"] { background: rgba(246,241,231,0.12); }

  /* The home hero's nav overlays the illustration, so give it a scrim. */
  body.home .nav-list { background: rgba(66, 83, 64, 0.97); }

  /* Stack in source order — alley photo, copy, then the door photo — so the
     left-hand image stays above the text the way it reads on desktop. */
  .about { grid-template-columns: 1fr; }
  .about img { max-height: 300px; }

  .rsvp { grid-template-columns: 1fr; min-height: 0; }
  .rsvp-stripes { min-height: 140px; }
}

@media (max-width: 760px) {
  .home-page-grid { grid-template-columns: 1fr; }
  .home-page-photo { max-height: 60vh; }

  .weekend-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .day { padding-bottom: 1.5rem; border-bottom: 1px solid rgba(66,83,64,0.25); }
  .day:last-child { border-bottom: 0; }
  .day ul { margin-bottom: 1.25rem; }
  .day li { margin-bottom: 1rem; }

  .airport { flex-direction: column; align-items: center; text-align: center; }
  .airport-body ul { display: inline-block; text-align: left; }

  .registry-card .title-rule::before,
  .registry-card .title-rule::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
