/*
 * La Luxes Serif is a licensed font. Drop LaLuxesSerif.woff2 (and/or .woff)
 * into assets/fonts/ and it is picked up automatically; until then the
 * headings fall back to Italiana from Google Fonts.
 */
@font-face {
  font-family: "La Luxes Serif";
  src: url("../assets/fonts/LaLuxesSerif.woff2") format("woff2"),
       url("../assets/fonts/LaLuxesSerif.woff") format("woff");
  font-display: swap;
}

:root {
  --limestone: #e1d7ca;
  --limestone-light: #ece5da;
  --camo: #5b5e4b;
  --camo-soft: #7d8069;
  --sage: #acb99e;
  --burgundy: #723333;
  --white: #fffdf9;
  --line: rgba(91, 94, 75, 0.25);

  --font-display: "La Luxes Serif", "Italiana", "Cormorant Garamond", serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --max: 1100px;
  --gutter: clamp(16px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body {
  margin: 0;
  background: var(--limestone);
  color: var(--camo);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 1px;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
body.locked main, body.locked .footer, body.locked .site-header, body.locked .back-to-top { visibility: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

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

/* ------------------------------------------------------------- password */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: #f1ece1;
  color: var(--burgundy);
  padding: 20px;
}
.gate[hidden] { display: none; }
.gate__form {
  width: min(386px, 100%);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.gate__title {
  font-family: var(--font-body);
  font-size: 14px; letter-spacing: 2px; font-weight: 400;
  margin-bottom: 8px;
}
.gate__input {
  width: 100%; height: 44px;
  border: 0; border-bottom: 1px solid #e2e2e2;
  background: transparent;
  color: var(--burgundy);
  font: 400 15px/1 var(--font-body);
  letter-spacing: 1px;
  text-align: center;
  outline: none;
}
.gate__input::placeholder { color: var(--burgundy); opacity: .8; }
.gate__input:focus { border-bottom-color: var(--burgundy); }
.gate__error { min-height: 1.6em; margin: 10px 0 8px; font-size: 12px; }
.gate__button {
  position: relative;
  width: 160px; height: 70px;
  border: 0; background: none; cursor: pointer;
  color: var(--burgundy);
  font: 400 13px/1 var(--font-body);
  letter-spacing: 2px;
}
.gate__button svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gate__button ellipse { fill: none; stroke: var(--burgundy); stroke-width: 1; transition: fill .2s; }
.gate__button:hover ellipse { fill: rgba(114, 51, 51, .06); }
.gate__button span { position: relative; }
.gate--shake .gate__input { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* --------------------------------------------------------------- header */
.site-header {
  background: var(--limestone);
  text-align: center;
  padding: clamp(28px, 5vw, 44px) var(--gutter) 0;
}
.site-title {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.1;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}
.site-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px clamp(14px, 3vw, 34px);
  max-width: var(--max); margin: 0 auto;
  padding-bottom: clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}
.site-nav a {
  font-size: 13px; letter-spacing: 1.5px;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-nav a:hover { border-bottom-color: var(--camo-soft); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--camo); }
section[hidden] { display: none !important; }

/* ----------------------------------------------------------------- hero */
.hero {
  /* The logo is baked into the photo (hero-villa-logo.jpg, 3552x1766). The
     photo is pinned to the top and sized by whichever is larger: the screen
     width, or the screen height minus the header (so the circle stays big on
     narrower windows). Measured as fractions of the photo's height:
       circle lettering top    11.2%   (gap above it: 11.2%)
       circle lettering bottom 63.2%
       fade starts             74.4%   (same 11.2% gap below the circle)
       photo ends              86.0%   (an eased 11.6% fade so there's no hard edge)
     Fade start within the shortened hero: 74.4 / 86.0 = 86.5%. */
  --hero-img-h: max(calc(100vw * 1766 / 3552), calc(100vh - 200px));
  position: relative;
  height: calc(var(--hero-img-h) * 0.86);
  overflow: hidden;
  background: #9fb2c4;
  /* Layer 1: the photo fades out along a smooth S-curve (no visible start or end). */
  --hero-fade: linear-gradient(to bottom,
    rgba(0, 0, 0, 1.000) 86.50%,
    rgba(0, 0, 0, 0.972) 87.85%,
    rgba(0, 0, 0, 0.896) 89.20%,
    rgba(0, 0, 0, 0.784) 90.55%,
    rgba(0, 0, 0, 0.648) 91.90%,
    rgba(0, 0, 0, 0.500) 93.25%,
    rgba(0, 0, 0, 0.352) 94.60%,
    rgba(0, 0, 0, 0.216) 95.95%,
    rgba(0, 0, 0, 0.104) 97.30%,
    rgba(0, 0, 0, 0.028) 98.65%,
    rgba(0, 0, 0, 0.000) 100.00%);
  -webkit-mask-image: var(--hero-fade);
          mask-image: var(--hero-fade);
}
/* newer browsers: use the small viewport height so phone toolbars don't crop
   the hero (older iPhones keep the vh fallback above) */
@supports (height: 100svh) {
  .hero { --hero-img-h: max(calc(100vw * 1766 / 3552), calc(100svh - 200px)); }
}
/* Layer 2: a limestone wash over the same stretch, so what's left of the
   photo near the bottom turns page-colored instead of ending in a faint line. */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14%;
  background: linear-gradient(to bottom, rgba(225, 215, 202, 0), rgba(225, 215, 202, .55) 55%, var(--limestone));
  pointer-events: none;
}
.hero__bg {
  position: absolute; top: 0; left: 50%;
  height: var(--hero-img-h); width: auto; max-width: none;
  transform: translateX(-50.53%);   /* centered on the logo and villa */
}

/* ------------------------------------------------------------- sections */
.section {
  padding: clamp(64px, 10vw, 120px) var(--gutter);
  text-align: center;
}
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--alt { background: var(--limestone-light); }

.eyebrow {
  font-size: 14px; letter-spacing: 2px;
  margin-bottom: 10px;
}
.display {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.2vw, 52px);
  line-height: 1.12;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.caps {
  font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 28px;
}
.lede { max-width: 620px; font-size: 14px; }
.note { font-size: 12px; color: var(--camo); font-style: italic; }
.prose { max-width: 700px; }

/* welcome + countdown */
.section.welcome {
  position: relative;
  padding-top: 16px;   /* close under the photo; its faded edge already adds visual space */
  margin-top: 0;
}
.welcome .lede { margin-bottom: 14px; }
.welcome .display { margin-bottom: 20px; }
.countdown {
  display: flex; justify-content: center; gap: clamp(18px, 5vw, 56px);
  margin-top: 44px !important;
}
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.countdown span {
  font-family: "Cormorant Garamond", serif; font-weight: 500;   /* clearer digits than the display font */
  font-size: clamp(34px, 6vw, 56px); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown small { margin-top: 8px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }

/* cards */
.cards { display: grid; gap: 20px; margin-top: 40px !important; }
.cards--2 { grid-template-columns: repeat(2, 1fr); max-width: 800px !important; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  border: 1px solid var(--line);
  padding: 36px 28px;
  background: rgba(255, 253, 249, .35);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 14px;
}
.card__meta { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--camo); }

/* ---------------------------------------------------------------- story */
.story { background: #efe9dd; color: var(--camo); padding-top: clamp(28px, 4vw, 44px); }
.story__lead {
  width: min(560px, 100%); aspect-ratio: 924 / 700;
  object-fit: cover; object-position: 50% 72%;
  /* Fades on every edge; the top and bottom fades are deeper where the title lines sit. */
  --fade-x: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  --fade-y: linear-gradient(to bottom, transparent 0, #000 18%, #000 62%, transparent 100%);
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
          mask-image: var(--fade-x), var(--fade-y);
          mask-composite: intersect;
  margin-top: 0 !important; margin-bottom: 0 !important;
}
@media (max-width: 600px) {
  .story__lead { width: 78%; }
}
.portrait {
  width: min(375px, 80vw);
  aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 28px;
}
/* Our Story's bottom photo: square corners, soft fade on every edge */
.story__portrait {
  border-radius: 0;
  --fade-x: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  --fade-y: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
          mask-image: var(--fade-x), var(--fade-y);
          mask-composite: intersect;
}
.story__portrait { margin-top: 72px !important; }
.portrait--home { margin-top: 56px !important; }

/* Our Story: two columns of photos either side of the story */
.story-wall {
  display: grid; grid-template-columns: 1fr minmax(0, 600px) 1fr;
  gap: clamp(20px, 3vw, 44px); align-items: start;
  padding-left: clamp(12px, 2vw, 28px); padding-right: clamp(12px, 2vw, 28px);
}
.section.story-wall > * { max-width: none; margin: 0; }
.story-wall__story > * { margin-left: auto; margin-right: auto; }
.story-wall__story .prose { max-width: 600px; }
.story-wall__side { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: start; }  /* JS sets the column count */
.story-wall__col { display: flex; flex-direction: column; gap: 6px; }
.story-wall__col a { display: block; cursor: zoom-in; }
.story-wall__col img { display: block; width: 100%; height: auto; border-radius: 3px; transition: opacity .2s; }
.story-wall__col a:hover img { opacity: .85; }
/* Narrower screens: the story first, then all the photos as one 4-column wall */
@media (max-width: 900px) {
  .story-wall { grid-template-columns: 1fr 1fr; }
  .story-wall__story { grid-column: 1 / -1; order: -1; margin-bottom: 40px; }
  .story-wall__side { gap: 4px; }
  .story-wall__col { gap: 4px; }
  .story-wall { column-gap: 4px; }
}

.carousel { position: relative; margin-top: 80px !important; max-width: 1120px !important; --slide-h: clamp(300px, 46vw, 440px); }
.carousel__track {
  display: flex; align-items: flex-start; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 40%;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 auto; margin: 0;
  scroll-snap-align: center;
  transition: opacity .35s, transform .35s;
  opacity: .4; transform: scale(.94);
  cursor: pointer;
}
.carousel__slide.is-active { opacity: 1; transform: none; cursor: zoom-in; }
/* each photo keeps its own shape (portrait or landscape) at a shared height */
.carousel__slide img { height: var(--slide-h); width: auto; max-width: 86vw; object-fit: cover; border-radius: 16px; }
.carousel__caption {
  min-height: 2.8em; margin-top: 12px; padding: 0 6px;
  max-width: 0; min-width: 100%;   /* wrap to the photo's width */
  font-size: 13px; line-height: 1.5; letter-spacing: .5px; text-align: center;
}
.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.carousel__nav {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid currentColor; background: transparent;
  color: var(--camo); font-size: 24px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding-bottom: 3px;
  transition: background .2s, color .2s;
}
.carousel__nav:hover { background: var(--camo); color: var(--white); }
.carousel__count { margin: 0; min-width: 64px; font-size: 12px; letter-spacing: 2px; }
.carousel__hint { margin-top: 10px; font-size: 11px; letter-spacing: 1px; font-style: italic; }

/* -------------------------------------------------------------- gallery */
/* A compact staggered wall of small photos; tap one to see it larger. */
.gallery { columns: 8; column-gap: 5px; max-width: 920px !important; margin-top: 28px !important; }
@media (max-width: 900px) { .gallery { columns: 6; } }
@media (max-width: 600px) { .gallery { columns: 4; column-gap: 4px; } .gallery a { margin-bottom: 4px; } }
.gallery a { display: block; margin-bottom: 5px; break-inside: avoid; cursor: zoom-in; }
.gallery__blank { display: block; margin-bottom: 5px; break-inside: avoid; }
@media (max-width: 600px) { .gallery__blank { margin-bottom: 4px; } }
.gallery img { width: 100%; height: auto; border-radius: 3px; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(30, 31, 24, .94);
  display: grid; place-items: center; padding: 24px 64px;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; text-align: center; }
.lightbox img { max-height: 80vh; max-width: 100%; width: auto; margin: 0 auto; }
.lightbox__caption { margin-top: 14px; color: #f1ece1; font-size: 14px; letter-spacing: .5px; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.25);
  color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding-bottom: 4px;
}
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__close {
  position: absolute; top: 12px; right: 18px;
  font-size: 40px; color: #fff; background: none; border: 0; cursor: pointer;
}

/* ----------------------------------------------------------------- rsvp */
.rsvp { max-width: 520px !important; margin-top: 36px !important; text-align: left; }
.field { position: relative; margin-bottom: 22px; }
.field label, .party__label {
  display: block; margin-bottom: 6px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
}
.field input, .field textarea {
  width: 100%;
  border: 0; border-bottom: 1px solid var(--camo-soft);
  background: transparent; color: var(--camo);
  font: 400 15px/1.5 var(--font-body); letter-spacing: .5px;
  padding: 8px 2px;
  outline: none; border-radius: 0;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--camo); box-shadow: 0 1px 0 var(--camo); }
.suggestions {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
  list-style: none; margin: 4px 0 0; padding: 6px 0;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(60, 60, 40, .12);
  max-height: 260px; overflow-y: auto;
}
.suggestions[hidden] { display: none; }
.suggestions li { padding: 10px 14px; cursor: pointer; }
.suggestions li small { display: block; font-size: 11px; color: var(--camo); }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--limestone-light); }

.party { margin: 8px 0 28px; }
.guest {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.guest__name { font-size: 14px; }
.guest__choices { display: flex; gap: 6px; flex-shrink: 0; }
.guest__choices label {
  position: relative; cursor: pointer;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
}
.guest__choices input { position: absolute; opacity: 0; pointer-events: none; }
.guest__choices span {
  display: inline-block; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.guest__choices input:checked + span { background: var(--camo); color: var(--white); border-color: var(--camo); }
.guest__choices input:focus-visible + span { outline: 2px solid var(--camo); outline-offset: 2px; }

.button {
  display: inline-block; margin-top: 8px;
  padding: 16px 40px;
  border: 1px solid var(--camo); background: var(--camo); color: var(--white);
  font: 400 12px/1 var(--font-body); letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer; transition: background .2s, color .2s;
}
.button:hover { background: transparent; color: var(--camo); }
.form-error { color: var(--camo); font-size: 12px; min-height: 1.4em; margin: 0 0 6px; }
.thanks { margin-top: 36px !important; font-size: 15px; }
.thanks h3 { font-family: var(--font-display); font-size: 30px; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 12px; }

/* ------------------------------------------------------------------ faq */
.faq { max-width: 720px !important; margin-top: 36px !important; text-align: left; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 36px 22px 0; position: relative;
  font-size: 14px; letter-spacing: 1.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 300; transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 24px; }
.faq__list { margin: 0 0 12px; padding-left: 18px; }
.faq__list li { margin-bottom: 8px; }
.faq__list strong { font-weight: 500; }
.faq__list a { text-underline-offset: 3px; }
.moodboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.moodboard__tile {
  aspect-ratio: 3 / 4; display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--camo-soft); color: var(--camo);
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
}

/* --------------------------------------------------------------- footer */
.footer { padding: 70px 20px 60px; text-align: center; background: var(--limestone); border-top: 1px solid var(--line); }
.footer__mark { width: 48px; margin: 0 auto 18px; }
.footer__date { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--camo); }
.footer__credit { margin-top: 28px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--camo); }

/* --------------------------------------------------------- scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.hero.reveal { transform: none; }   /* the photo just fades, no slide */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------- mobile */
@media (max-width: 800px) {
  .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .moodboard { grid-template-columns: repeat(2, 1fr); }
  .lightbox { padding: 16px 8px; }
  .lightbox__nav { top: auto; bottom: 18px; transform: none; }
  .guest { flex-direction: column; align-items: flex-start; }
}

/* -------------------------------------------------------- accommodation */
.stay-block { margin-top: 64px !important; }
.stay-block > * { margin-left: auto; margin-right: auto; }
.stay-block .caps { margin-bottom: 20px; }
.stay-block .cards { margin-top: 28px !important; }
.stay-block__after { margin-top: 32px !important; }
.address { font-style: normal; font-size: 14px; line-height: 1.8; margin: 4px 0 20px; }
.contact { font-size: 14px; }
.contact a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact a:hover { border-bottom-color: var(--camo); }
.card--link { display: block; text-decoration: none; transition: background .2s, border-color .2s; }
.card--link:hover { background: rgba(255, 253, 249, .7); border-color: var(--camo-soft); }
.card--link h3 { font-size: 20px; }
.card .card__meta { margin-bottom: 10px; }
.card__action { margin-top: 14px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
a.button { text-decoration: none; }
.callout {
  max-width: 720px !important; margin-top: 64px !important;
  padding: 40px clamp(20px, 5vw, 48px);
  border: 1px solid var(--camo-soft);
  background: rgba(255, 253, 249, .45);
}
.callout strong { font-weight: 500; }

/* ------------------------------------------------------------ venue map */
.venue-map {
  height: clamp(320px, 45vw, 440px);
  margin-top: 8px !important; margin-bottom: 28px !important;
  border: 1px solid var(--line);
  background: var(--limestone);
  z-index: 0;
}
.venue-map .leaflet-control-attribution { font-size: 9px; letter-spacing: 0; background: rgba(236, 229, 218, .85); }
.venue-map .leaflet-bar a { color: var(--camo); }
.map-pin { position: relative; }
.map-pin > * { position: absolute; }
.map-pin__point {
  left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--camo); border: 2px solid var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.map-pin__stem { left: -1px; top: -34px; width: 2px; height: 30px; background: var(--camo); }
.map-pin__dot {
  left: -14px; top: -62px;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--camo); color: var(--white);
  border: 2px solid var(--white);
  font: 500 12px/1 var(--font-body); letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.map-pin__label {
  top: -48px; transform: translateY(-50%);
  white-space: nowrap;
  padding: 6px 10px;
  background: var(--white); color: var(--camo);
  border: 1px solid var(--line);
  font: 400 12px/1.3 var(--font-body); letter-spacing: .5px; text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.map-pin__label small { display: block; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--camo); text-align: right; }
.venue-map .leaflet-popup-content { font: 400 13px/1.5 var(--font-body); color: var(--camo); }
.venue-map .leaflet-popup-content a { color: var(--camo); }
.map-pin--stay .map-pin__dot { background: var(--sage); color: var(--camo); }
.venue-map .leaflet-tile-pane { filter: grayscale(.55) sepia(.3) brightness(1.04) contrast(.92); }
.map-key { display: none; }
@media (max-width: 600px) {
  .venue-map { height: 360px; margin-bottom: 16px !important; }
  .venue-map .map-pin__label { display: none; }
  .map-key {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
    list-style: none; padding: 0; margin-bottom: 28px !important;
    text-align: left; font-size: 11px; letter-spacing: .5px;
  }
  .map-key li { display: flex; align-items: center; gap: 8px; }
  .map-key__dot {
    flex: 0 0 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--camo); color: var(--white); font-size: 11px; font-weight: 500;
  }
  .map-key__dot--stay { background: var(--sage); color: var(--camo); }
}

/* Phones: size the photo so the logo fills the width, then crop the hillside
   just below "Shelby & Andy" so guests don't have to scroll past extra photo.
   The logo is 32.83% of the image width, centered at 50.53%. */
@media (max-width: 700px) {
  /* Phones: enlarge the photo so the circle (32.8% of the photo's width) fills the screen. */
  .hero { --hero-img-h: calc(289vw * 1766 / 3552); }
}

/* ----------------------------------------------------- schedule: by day */
.days { max-width: 720px !important; margin-top: 16px !important; }
.day { padding: 56px 0; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; padding-top: 24px; }
.day__date { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--camo); margin-bottom: 12px; }
.day__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 36px); line-height: 1.15;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 8px;
}
.day__subtitle { font-size: 15px; font-style: italic; letter-spacing: 1px; margin-bottom: 16px; }
.day__time { font-size: 15px; letter-spacing: 1.5px; margin-bottom: 18px; }
.day__time span { font-size: 12px; color: var(--camo); }
.day__place { font-size: 13px; line-height: 1.8; margin-bottom: 8px; }
.day__place strong { font-weight: 500; }
.day__place a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line); }
.day__place a:hover { text-decoration-color: var(--camo); }
.day__block { margin-top: 28px; }
.day__block h4 {
  font-size: 12px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase;
  margin: 0 0 10px;
}
.day__photo { width: min(560px, 100%); margin: 32px auto 0; }
.day__sign { width: min(300px, 70%); margin: 24px auto 0; }
/* soft fade on all four edges */
.day__photo,
.day__pool {
  --edge-x: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  --edge-y: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: var(--edge-x), var(--edge-y);
  -webkit-mask-composite: source-in;
          mask-image: var(--edge-x), var(--edge-y);
          mask-composite: intersect;
}
.day__pool { width: min(640px, 100%); margin: 28px auto 0; }


/* About the Venue: laid out like Our Story, with photos that fade on every edge */
.venue-page__lead { object-position: 50% 50%; }
.venue-page__gates {
  width: min(560px, 100%); margin-top: 64px !important;
  --fade-x: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  --fade-y: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
          mask-image: var(--fade-x), var(--fade-y);
          mask-composite: intersect;
}
.venue-page__subhead { margin-top: 48px !important; margin-bottom: 20px; }
@media (max-width: 600px) { .venue-page__gates { width: 88%; } }



/* Footer: page links and back to top */
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px clamp(14px, 3vw, 30px);
  max-width: var(--max); margin: 0 auto 22px;
}
.footer-nav a { font-size: 12px; letter-spacing: 1.5px; text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.footer-nav a:hover { border-bottom-color: var(--camo); }
.back-to-top {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--camo); background: rgba(236, 229, 218, .92); color: var(--camo);
  font: 400 20px/1 var(--font-body); cursor: pointer;
  box-shadow: 0 4px 14px rgba(60, 60, 40, .18);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s, color .2s;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--camo); color: var(--white); }

/* label beside the numbered circle (which sits 48px above the spot) */
.map-pin--right .map-pin__label { left: 22px; text-align: right; }
.map-pin--left  .map-pin__label { right: 22px; text-align: right; }
.map-pin--top   .map-pin__label { top: auto; bottom: 70px; left: 0; transform: translateX(-50%); text-align: center; }
/* pins that hang below their spot (used where two places are close together) */
.map-pin--down .map-pin__stem { top: 4px; }
.map-pin--down .map-pin__dot { top: 34px; }
.map-pin--down .map-pin__label { top: 48px; }
/* circle off to the left and slightly below its spot (the Borgo), on an angled stem */
.map-pin--downleft .map-pin__stem { left: 0; top: -1px; width: 46px; height: 2px; transform-origin: 0 50%; transform: rotate(162deg); }
.map-pin--downleft .map-pin__dot { left: -58px; top: 0; }
.map-pin--downleft .map-pin__label { right: 64px; top: 14px; }
.map-pin--under .map-pin__label { top: 70px; left: 0; right: auto; transform: translateX(-50%); text-align: center; }

/* Schedule: estate address above the map */
.estate-address { margin: 18px auto 32px !important; }
.estate-address a { font-weight: 500; text-underline-offset: 3px; }
/* every page's first section sits close under the header, like Our Story */
#schedule, #accommodation, #travel, #rsvp, #activities, #faq { padding-top: clamp(28px, 4vw, 44px); }

/* RSVP meal choice under each guest who accepts */
.guest { flex-wrap: wrap; }
.guest__meal { flex-basis: 100%; margin-top: 10px; }
.guest__meal-label { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.guest__meal select {
  flex: 1; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--camo-soft);
  background: transparent; color: var(--camo); font: 400 14px/1.4 var(--font-body);
}
.guest__meal select:disabled { opacity: .7; font-style: italic; cursor: not-allowed; }
.guest__diet { display: block; margin-top: 14px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.guest__diet input {
  display: block; width: 100%; margin-top: 4px; padding: 6px 2px;
  border: 0; border-bottom: 1px solid var(--camo-soft); border-radius: 0; outline: none;
  background: transparent; color: var(--camo); font: 400 14px/1.4 var(--font-body);
  letter-spacing: .5px; text-transform: none;
}
.guest__diet input:focus { border-bottom-color: var(--camo); }
.guest__plusone {
  flex: 1; min-width: 140px; padding: 6px 2px;
  border: 0; border-bottom: 1px solid var(--camo-soft); border-radius: 0;
  background: transparent; color: var(--camo); font: 400 14px/1.4 var(--font-body); outline: none;
}
.guest__plusone:focus { border-bottom-color: var(--camo); }

/* Our Story / About the Venue: small line + main heading above the photo, like the other pages */
.story .display { margin-bottom: 24px; }
.story__lead + .prose { margin-top: 28px !important; }
.venue-page .display { margin-bottom: 0; }
.venue-page__lead { margin-top: -14px !important; }   /* heading sits right on the faded top of the photo */

/* Countdown floating in the sky above the circle logo. The ring's lettering
   starts 11.2% of the way down the photo, so this fits in the top ~10%. */
.countdown--hero {
  position: absolute; z-index: 1; left: 50%; transform: translateX(-50%);
  top: calc(var(--hero-img-h) * 0.012);
  margin: 0 !important;
  gap: calc(var(--hero-img-h) * 0.04);
  color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .28);
}
.countdown--hero div { min-width: 0; }
.countdown--hero span { font-size: calc(var(--hero-img-h) * 0.05); }
.countdown--hero small { margin-top: 2px; font-size: max(8px, calc(var(--hero-img-h) * 0.0135)); letter-spacing: 1.5px; }

/* Home: invitation wording in an elegant serif */
.invite { max-width: 640px !important; font-family: "Cormorant Garamond", Georgia, serif; letter-spacing: .02em; }
.invite p { margin: 0; }
.invite__line { font-style: italic; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; }
.invite__names {
  margin: 14px 0 12px !important;
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 42px); line-height: 1.2;
  letter-spacing: .12em; text-transform: uppercase;
}
.invite__name, .invite__and { display: block; }
.invite__name { white-space: nowrap; }
.invite__names .invite__and { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; text-transform: none; letter-spacing: .02em; font-size: .7em; margin: 2px 0; }
.invite__when { margin-top: 26px !important; font-family: var(--font-body); font-size: 14px; letter-spacing: 2px; font-weight: 400; }

/* FAQ: what to wear, one block per evening */
.attire { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; margin: 18px 0 28px; }
.attire__look { margin: 0; }
.attire__look img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  --fade-x: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  --fade-y: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: var(--fade-x), var(--fade-y); -webkit-mask-composite: source-in;
          mask-image: var(--fade-x), var(--fade-y);         mask-composite: intersect;
}
.attire__when { margin: 0 0 4px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.attire__text h4 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 600px) {
  .attire { grid-template-columns: 1fr; text-align: center; }
  .attire__look { width: min(260px, 80%); margin: 0 auto; }
}

/* Home invitation framed by curly scroll edges on either side */
.invite { position: relative; padding: 18px 64px !important; }
.invite::before, .invite::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 34px;
  background: url("../assets/img/scroll-edge.svg") center / 100% 100% no-repeat;
  opacity: .75; pointer-events: none;
}
.invite::before { left: 0; }
.invite::after { right: 0; transform: scaleX(-1); }
@media (max-width: 600px) {
  .invite { padding: 14px 34px !important; }
  .invite::before, .invite::after { width: 22px; }
}

/* Accommodation: fixed map of the Borgo and the hotel */
.stay-map { height: clamp(280px, 38vw, 380px); margin-top: 28px !important; cursor: default; }
#accommodation .card { padding: 20px 28px; }   /* tighter top and bottom in the option boxes */
#accommodation .card .card__meta { margin-bottom: 6px; }
/* Accommodation map label spots: hotel's above and to the left, Borgo's below and to the right */
.map-pin--aboveleft .map-pin__label { top: auto; bottom: 70px; right: -8px; transform: none; text-align: right; }
.map-pin--belowright .map-pin__label { top: 34px; left: -44px; right: auto; transform: translateX(-50%); text-align: center; }

/* RSVP: Cancel on the left, Send RSVP on the right */
.rsvp__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.rsvp__actions .button { margin-top: 0; }
.button--cancel { background: var(--limestone); color: var(--camo); border-color: var(--limestone); }
.button--cancel:hover { background: transparent; border-color: var(--camo); }

/* RSVP page hidden until the invitations go out (window.RSVP_OPEN in js/guests.js) */
.rsvp-closed [data-nav="rsvp"], .rsvp-closed .footer a[href="/rsvp"], .rsvp-closed #rsvp,
.rsvp-closed [data-rsvp] { display: none !important; }

/* Activities page hidden for now (ACTIVITIES_OPEN in js/main.js) */
.activities-closed [data-nav="activities"], .activities-closed .footer a[href="/activities"], .activities-closed #activities { display: none !important; }

/* Travel: venue heading and Google Maps names */
.travel__venue { margin-top: clamp(32px, 5vw, 48px) !important; text-align: center; }
.travel__venue + .estate-address { margin-top: 10px !important; margin-bottom: 20px !important; }
.travel__maps a { font-weight: 500; text-underline-offset: 3px; }
.travel__first { margin-top: 8px !important; }

.carousel[hidden] { display: none !important; }
