/* ==========================================================================
   Jason & Tiffany. Fall palette lifted from the engagement photos:
   maple red, pumpkin, marigold willow, burgundy tree, olive grass, rust sweater,
   plus the softer oatmeal sweater and tree-canopy sage that anchor the quieter sections.
   Type: Playfair Display (display, OFL) + Bricolage Grotesque (text, OFL), self-hosted.
   (Caprasimo, the previous display font, is still in /fonts if you want to switch back.)
   ========================================================================== */

@font-face {
  font-family: "Caprasimo";
  src: url("/fonts/caprasimo-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette */
  --ink: #1c0907;          /* deep warm base */
  --wine: #3b0d16;         /* burgundy tree */
  --maple: #8e1b16;        /* maple red, deepened for text contrast */
  --maple-bright: #c3321f; /* maple red, bright */
  --pumpkin: #e8691c;
  --marigold: #f4a81d;     /* willow gold */
  --olive: #2f3109;        /* grass / willow shadow */
  --olive-light: #a3a633;
  --denim: #3e6d9a;
  --rust: #873d3c;         /* Jason's sweater in the schedule photo */
  --cream: #f8e9d0;        /* text and small accents only */
  --sand: #e2c9a0;
  /* softer section tones, pulled from the clothing and beach in the photos */
  --denim-deep: #2f4a68;   /* deep denim blue, from the jeans in the photos; Date & place background */
  --oat: #d9cdbb;          /* Tiffany's oatmeal sweater / beach sand */
  --leaf: #3f5a2a;         /* rich forest green, from the deeper greens of the tree canopy; used by RSVP */
  --mulberry: #5a1e2c;     /* rich burgundy, from the maple tree's red leaves; used by Where to stay */
  --honey: #e3b466;        /* muted willow gold for the RSVP buttons */
  --wheat: #e8c98e;        /* soft gold for accents on the muted sections */

  --font-display: "Playfair Display", "Bodoni MT", Georgia, "Times New Roman", serif;
  --display-weight: 700;   /* Playfair is a variable font; 700 keeps headings well above medium weight */
  --font-text: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;

  --nav-h: 64px;
  --gutter: clamp(20px, 5vw, 72px);
  --focus: var(--marigold);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .08em; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--marigold); color: var(--ink); padding: .7em 1.1em; border-radius: 8px; font-weight: 700;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ----- shared pieces ----- */
.section-title {
  font-family: var(--font-display); font-weight: var(--display-weight); font-variant-numeric: lining-nums;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3rem; padding: .8em 1.6em;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(28, 9, 7, .45); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--lg { min-height: 3.4rem; padding: .9em 2.2em; font-size: 1.1rem; }
.btn--honey { background: var(--honey); color: var(--ink); }
.btn--honey:hover { background: var(--oat); }
.btn--marigold { background: var(--marigold); color: var(--ink); }
.btn--ghost { border-color: rgba(248, 233, 208, .7); color: var(--cream); }
.btn--ghost:hover { background: rgba(248, 233, 208, .12); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(28, 9, 7, .84);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 168, 29, .25);
}
.nav__inner {
  /* Full width: the logo sits at the left page gutter (same edge as the hero text), links at the right gutter. */
  height: 100%; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__mark {
  font-family: var(--font-display); font-weight: var(--display-weight); font-variant-numeric: lining-nums; font-size: 1.7rem; line-height: 1; text-decoration: none; color: var(--marigold);
  letter-spacing: .02em;
}
.nav__mark span { color: var(--cream); margin: 0 .08em; font-size: .8em; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav__links a {
  position: relative; text-decoration: none; font-weight: 600; font-size: .98rem; padding: .35em 0;
}
.nav__links a:not(.nav__rsvp)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px;
  background: var(--marigold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__links a.nav__rsvp {
  background: var(--honey); color: var(--ink); padding: .5em 1.25em; border-radius: 999px; font-weight: 700;
  transition: background-color .2s, transform .2s var(--ease);
}
.nav__links a.nav__rsvp:hover { background: var(--oat); transform: translateY(-1px); }

.nav__toggle { display: none; }
@media (max-width: 759px) {
  .js .nav__toggle {
    display: inline-flex; align-items: center; gap: .65em; min-height: 44px; padding: 0 .9em;
    background: transparent; border: 2px solid rgba(248, 233, 208, .55); border-radius: 999px; cursor: pointer; font-weight: 700;
  }
  .nav__toggle-bars, .nav__toggle-bars::before {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
    transition: transform .25s var(--ease);
  }
  .nav__toggle-bars::before { content: ""; position: absolute; top: 6px; left: 0; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars { transform: translateY(3px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(-6px) rotate(-90deg); top: 6px; }
  .js .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--wine); border-bottom: 3px solid var(--marigold); padding: 8px var(--gutter) 20px;
    display: none;
  }
  .js .nav__links.is-open { display: flex; }
  .js .nav__links a { padding: .9em 0; font-size: 1.15rem; border-bottom: 1px solid rgba(248, 233, 208, .15); }
  .js .nav__links a::after { display: none; }
  .js .nav__links a.nav__rsvp { margin-top: 14px; text-align: center; border-bottom: 0; padding: .8em; }
  /* no-JS: links simply wrap under the mark */
  .no-js .nav { height: auto; }
  .no-js .nav__inner { flex-wrap: wrap; padding-block: 8px; }
  .no-js .nav__links { flex-wrap: wrap; gap: 4px 16px; }
}

/* ==========================================================================
   HERO. Split screen on desktop (type left, tall portrait right).
   Full-bleed portrait on phones, which are portrait too.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--wine);
  overflow: hidden;
  isolation: isolate;
}
.hero__photo { position: relative; height: clamp(420px, 62svh, 760px); flex: none; overflow: hidden; }
.hero__photo picture { display: block; transform-origin: 50% 30%; }
.hero__photo picture, .hero__photo img { width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 50% 24%; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--wine) 0%, rgba(59, 13, 22, .85) 14%, rgba(59, 13, 22, 0) 46%),
    linear-gradient(160deg, rgba(232, 105, 28, .20), rgba(142, 27, 22, .22));
}

.hero__copy {
  position: relative; margin-top: -5.5rem; padding: 0 var(--gutter) clamp(36px, 7vw, 64px);
  max-width: 760px;
}
.hero__names {
  font-family: var(--font-display); font-weight: var(--display-weight); font-variant-numeric: lining-nums;
  font-size: clamp(3.4rem, 18vw, 7rem); line-height: .9; letter-spacing: -.015em;
  color: var(--cream);
  text-shadow: 0 3px 0 rgba(28, 9, 7, .35);
}
.hero__name { display: block; }
.hero__name--b { color: var(--marigold); padding-left: .12em; }
.hero__when {
  margin-top: 1.6rem; display: grid; gap: .15rem;
  font-size: clamp(1.15rem, 3.6vw, 1.45rem); font-weight: 700;
}
.hero__where { font-weight: 500; opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.7rem; }

@media (min-width: 900px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
    /* Exactly one screen tall, so the photo is cropped to fit instead of stretching the hero past the
       fold (which pushed the text low and the couple off-screen on big monitors). */
    grid-template-rows: minmax(0, 1fr); height: 100svh; min-height: 560px;
    background:
      radial-gradient(70% 60% at 20% 90%, rgba(195, 50, 31, .35), transparent 70%),
      var(--wine);
  }
  .hero__photo { grid-column: 2; grid-row: 1; z-index: 0; height: 100%; min-height: 0; }
  /* The desktop photo is already cropped around the couple (see the <source media> in index.html), so keep the
     CSS crop centered: any extra pixels trimmed by "cover" come off the top and bottom equally. */
  .hero__photo img { object-position: 52% 50%; }
  .hero__photo::after {
    background:
      linear-gradient(90deg, rgba(59, 13, 22, .85) 0%, rgba(59, 13, 22, 0) 22%),
      linear-gradient(160deg, rgba(232, 105, 28, .14), rgba(142, 27, 22, .20));
  }
  .hero__copy {
    grid-column: 1; grid-row: 1; align-self: center; z-index: 1;
    margin-top: 0; padding: calc(var(--nav-h) + 24px) clamp(28px, 4vw, 64px) 56px var(--gutter);
    max-width: none;
  }
  .hero__names { font-size: clamp(5.5rem, 8.8vw, 9.4rem); }
  .hero__when { font-size: 1.5rem; margin-top: 2.2rem; }
}

/* Large monitors (1440p, 4K at 100% scaling): let the hero type and buttons grow with the screen
   instead of stopping at their laptop sizes, so the left half is not mostly empty. */
@media (min-width: 1700px) {
  .hero__names { font-size: clamp(9.4rem, 8.8vw, 17rem); }
  .hero__when { font-size: clamp(1.5rem, 1.45vw, 3rem); }
  .hero__actions .btn { font-size: clamp(1rem, .95vw, 2rem); min-height: 3em; }
}

/* ==========================================================================
   PHOTO STRIP
   ========================================================================== */
.strip { background: var(--oat); padding: clamp(40px, 6vw, 84px) 0 clamp(52px, 7vw, 100px); overflow: hidden; --focus: var(--ink); }
.strip__row {
  display: flex; gap: clamp(12px, 1.6vw, 24px); padding: 0 var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.strip__row::-webkit-scrollbar { display: none; }
.strip__item { flex: 0 0 68vw; scroll-snap-align: center; aspect-ratio: 3 / 4; }
.strip__item img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 4px;
  box-shadow: 0 18px 30px -14px rgba(40, 20, 10, .5);
}
.strip__item:nth-child(1) img { object-position: 50% 62%; }
.strip__item:nth-child(2) img { object-position: 50% 50%; }
.strip__item:nth-child(3) img { object-position: 50% 52%; }
.strip__item:nth-child(4) img { object-position: 50% 32%; }
.strip__item:nth-child(5) img { object-position: 50% 55%; }
@media (min-width: 900px) {
  .strip__row { overflow: visible; justify-content: center; max-width: 1560px; margin: 0 auto; }
  .strip__item { flex: 1 1 0; min-width: 0; scroll-snap-align: none; }
  .strip__item:nth-child(odd) { transform: translateY(-26px) rotate(-1.4deg); }
  .strip__item:nth-child(even) { transform: translateY(26px) rotate(1.2deg); }
  .strip__item:nth-child(3) { transform: translateY(0) rotate(-.6deg) scale(1.08); z-index: 1; }
  .strip { padding-block: 84px 96px; }
}

/* ==========================================================================
   DATE / TIME / PLACE
   ========================================================================== */
.details { background: var(--denim-deep); position: relative; }
.details__banner { position: relative; padding-top: clamp(56px, 7vw, 104px); }
.details__date { position: relative; padding: 0 var(--gutter) clamp(28px, 4vw, 56px); width: 100%; }
.bigdate { display: grid; grid-template-columns: auto auto 1fr; grid-template-areas: "md md md" "day yr ."; align-items: baseline; column-gap: .6em; font-family: var(--font-display); font-weight: var(--display-weight); font-variant-numeric: lining-nums; line-height: .86; text-shadow: 0 3px 0 rgba(28, 9, 7, .4); }
.bigdate__md { grid-area: md; font-size: clamp(4.6rem, 22.5vw, 8.5rem); margin-bottom: .12em; color: var(--marigold); letter-spacing: -.02em; }
.bigdate__day { grid-area: day; font-size: clamp(1.6rem, 7vw, 2.4rem); color: var(--marigold); line-height: 1; }
.bigdate__yr { grid-area: yr; font-size: clamp(1.6rem, 7vw, 2.4rem); color: var(--cream); line-height: 1; }

.details__body {
  position: relative; z-index: 2; display: grid; gap: 48px;
  max-width: 1320px; margin: 0 auto; padding: 8px var(--gutter) clamp(64px, 9vw, 120px);
}
.details__body > * { min-width: 0; }
.facts { display: grid; gap: 14px; }
.facts__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid rgba(227, 180, 102, .4); }
.facts dt { font-size: 1.15rem; font-weight: 700; }
.facts dd { font-family: var(--font-display); font-weight: var(--display-weight); font-variant-numeric: lining-nums; font-size: clamp(1.9rem, 7.4vw, 3.2rem); color: var(--marigold); line-height: 1; }
.facts__tz { font-size: .95rem; opacity: .85; }
.venue { margin-top: 32px; display: grid; gap: 2px; font-size: 1.15rem; }
.venue__name { font-family: var(--font-display); font-weight: var(--display-weight); font-variant-numeric: lining-nums; font-size: 2rem; line-height: 1.1; color: var(--cream); margin-bottom: 6px; }
.notes { margin: 24px 0 28px; display: grid; gap: 8px; }
.notes li { padding-left: 1.6em; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: .55em; width: .75em; height: .75em; border-radius: 50%; background: var(--marigold); }

.map { position: relative; }
.map__frame {
  position: relative; width: 100%; aspect-ratio: 4 / 3.4; min-height: 340px; border-radius: 6px; overflow: hidden;
  border: 6px solid var(--honey);
  box-shadow: 10px 10px 0 var(--rust), 0 30px 50px -20px rgba(0, 0, 0, .7);
  background: var(--wine); isolation: isolate;
}
.map__canvas { position: absolute; inset: 0; z-index: 1; background: transparent; }
.map__fallback {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(244, 168, 29, .12) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(244, 168, 29, .12) 39px 40px),
    radial-gradient(circle at 50% 45%, rgba(232, 105, 28, .35), transparent 65%),
    var(--wine);
}
.map__frame.has-map .map__fallback-pin { display: none; }
.map__frame.has-map .map__fallback { place-content: end center; padding-bottom: 28px; }
.map__fallback-name { font-family: var(--font-display); font-weight: var(--display-weight); font-variant-numeric: lining-nums; font-size: 1.6rem; margin-top: 8px; }
.map__caption { margin-top: 22px; font-size: .9rem; opacity: .8; }
/* Map tiles are shown untinted. Only the controls are styled to match the palette. */
.leaflet-container { font-family: var(--font-text); background: transparent; }
.leaflet-bar { border: 2px solid var(--ink) !important; box-shadow: none !important; border-radius: 8px !important; overflow: hidden; }
.leaflet-bar a { background: var(--cream); color: var(--ink); font-weight: 700; width: 36px; height: 36px; line-height: 36px; }
.leaflet-bar a:hover, .leaflet-bar a:focus { background: var(--honey); color: var(--ink); }
.leaflet-bar a.leaflet-disabled { background: #d9c8a8; color: #7a6a52; }
.leaflet-control-attribution { background: rgba(28, 9, 7, .82) !important; color: var(--cream) !important; font-size: 11px; }
.leaflet-control-attribution a { color: var(--honey) !important; }
.leaflet-control-scale-line { background: rgba(248, 233, 208, .9); color: var(--ink); border-color: var(--ink); font-weight: 600; }
.pin { background: none; border: 0; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .45)); }
.pin svg { display: block; }

@media (min-width: 900px) {
  .details__date { padding-bottom: 130px; } /* just enough to clear the map that is pulled up beside the date (see .map) */
  .bigdate { grid-template-columns: auto 1fr; grid-template-areas: "md day" "md yr"; column-gap: clamp(28px, 3.4vw, 64px); }
  .bigdate__md { font-size: clamp(8rem, 15vw, 15rem); margin-bottom: 0; }
  .bigdate__day { align-self: end; }
  .bigdate__yr { align-self: start; padding-top: .15em; }
  .bigdate__day, .bigdate__yr { font-size: clamp(2.2rem, 3.8vw, 3.8rem); }
  .details__body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-top: 56px; }
  /* The map is pulled up into the photo by 150px. Give the info column the same pull, then center both in the row,
     so the times and venue text sit vertically centered on the map instead of hanging below it. */
  .map, .details__info { margin-top: -150px; }
  .map__frame { aspect-ratio: 5 / 4.4; }
}

/* ==========================================================================
   SCHEDULE
   ========================================================================== */
.schedule { background: var(--rust); color: var(--cream); --focus: var(--cream); display: grid; }
.schedule__photo { height: clamp(300px, 78vw, 520px); overflow: hidden; }
.schedule__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.schedule__main { padding: clamp(48px, 8vw, 110px) var(--gutter); align-self: center; max-width: 820px; }
.timeline { margin-top: clamp(28px, 4vw, 48px); border-top: 3px solid var(--honey); }
.timeline__item {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: clamp(20px, 4vw, 56px);
  padding: 22px 0; border-bottom: 3px solid var(--honey);
}
.timeline__time { white-space: nowrap; font-family: var(--font-display); font-weight: var(--display-weight); font-variant-numeric: lining-nums; font-size: clamp(2.9rem, 12.5vw, 6.4rem); line-height: .95; letter-spacing: -.02em; color: var(--marigold); }
.timeline__time small { font-size: .32em; letter-spacing: 0; margin-left: .15em; }
.timeline__what h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-variant-numeric: lining-nums; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.05; }
.timeline__what p { font-weight: 600; margin-top: 4px; }
.schedule__note { margin-top: 24px; font-weight: 500; }
@media (min-width: 900px) {
  .schedule { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 78vh; }
  .schedule__photo { height: auto; min-height: 100%; }
  .schedule__photo img { object-position: 50% 28%; }
}

/* wide band */
.band { position: relative; height: clamp(260px, 46vw, 600px); overflow: hidden; background: var(--olive); }
.band__img { position: absolute; inset: -4% 0; }
.band__img img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 38%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244, 168, 29, .0), rgba(47, 49, 9, .45)); }

/* ==========================================================================
   WHERE TO STAY
   ========================================================================== */
.stay {
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(217, 205, 187, .14), transparent 70%),
    radial-gradient(70% 60% at 20% 95%, rgba(195, 70, 50, .22), transparent 70%),
    var(--mulberry);
  display: grid;
}
.stay__main { padding: clamp(52px, 8vw, 110px) var(--gutter); align-self: center; max-width: 820px; }
.stay__lede { margin-top: 20px; font-size: 1.2rem; max-width: 36ch; }
.hotel-list { margin-top: 32px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.hotel {
  padding: 24px 24px 26px; border-radius: 6px;
  background: rgba(248, 233, 208, .07); border: 2px solid rgba(248, 233, 208, .22); border-left: 8px solid var(--marigold);
  display: grid; gap: 10px; align-content: start;
}
.hotel__name { font-family: var(--font-display); font-weight: var(--display-weight); font-variant-numeric: lining-nums; font-size: 1.7rem; line-height: 1.1; color: var(--marigold); }
.hotel__distance { font-weight: 700; }
.hotel__facts { display: grid; gap: 6px; font-size: .98rem; }
.hotel .btn { justify-self: start; margin-top: 6px; }
.hotel--soon { border: 2px dashed var(--marigold); border-left-width: 2px; background: rgba(244, 168, 29, .09); grid-column: 1 / -1; padding: 30px; }
.hotel--soon p { max-width: 44ch; }
.details .btn--marigold { background: var(--honey); }
.stay .section-title, .rsvp .section-title { color: var(--marigold); }
.stay__hint { margin-top: 28px; font-size: .98rem; max-width: 52ch; opacity: .92; }
.stay__photo { position: relative; height: clamp(340px, 100vw, 640px); overflow: hidden; }
.stay__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--mulberry) 0%, rgba(90, 30, 44, 0) 38%); }
.stay__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (min-width: 900px) {
  .stay { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 80vh; }
  .stay__photo { height: auto; min-height: 100%; order: 2; }
  .stay__photo img { object-position: 50% 68%; }
  .stay__photo::after { background: linear-gradient(90deg, var(--mulberry) 0%, rgba(90, 30, 44, 0) 32%); }
}

/* ==========================================================================
   RSVP
   ========================================================================== */
.rsvp {
  background:
    radial-gradient(70% 60% at 80% 95%, rgba(244, 168, 29, .12), transparent 70%),
    var(--leaf);
  display: grid;
}
.rsvp__photo { position: relative; height: clamp(280px, 80vw, 520px); overflow: hidden; }
.rsvp__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.rsvp__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(63, 90, 42, 0) 55%, var(--leaf) 100%); }
.rsvp__panel { padding: clamp(36px, 6vw, 96px) var(--gutter) clamp(56px, 8vw, 110px); max-width: 780px; }
.rsvp__deadline { margin-top: 18px; font-size: 1.3rem; }
.rsvp__deadline strong { font-weight: 800; color: var(--marigold); }
.rsvp__contact { margin-top: 8px; max-width: 48ch; }
.rsvp__contact a { font-weight: 700; }

.form { margin-top: 34px; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; padding: 0; }
.req, .opt { font-weight: 500; opacity: .85; font-size: .9em; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: .8em .95em; border-radius: 8px; border: 2px solid rgba(248, 233, 208, .5);
  background: rgba(28, 9, 7, .55); color: var(--cream); font-size: 1.05rem; line-height: 1.4;
  transition: border-color .15s, background-color .15s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cream) 50%), linear-gradient(135deg, var(--cream) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; max-width: 8rem; padding-right: 2.4em; }
.field select option { background: var(--wine); color: var(--cream); }
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--cream); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--marigold); background: rgba(28, 9, 7, .75); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #ffc9a8; background: rgba(28, 9, 7, .8); }
.field__error { color: #ffd9c2; font-weight: 600; font-size: .95rem; }
.field__error::before { content: "Please check: "; font-weight: 800; }

.choice__row { display: flex; flex-wrap: wrap; gap: 12px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: inline-flex; align-items: center; justify-content: center; flex: 1 1 13rem; min-height: 3.1rem; padding: .6em 1.5em; border: 2px solid rgba(248, 233, 208, .6); border-radius: 999px;
  cursor: pointer; font-weight: 700; background: rgba(28, 9, 7, .35); transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.choice label:hover { border-color: var(--cream); transform: translateY(-1px); }
.choice input:checked + label { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.choice input:focus-visible + label { outline: 3px solid var(--marigold); outline-offset: 3px; }
.form__yes { display: grid; gap: 22px; padding-left: 18px; border-left: 4px solid var(--marigold); }
.form__yes[hidden], .field[hidden], .thanks[hidden], .form[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 16px; padding-top: 6px; }
.form__status { font-weight: 700; padding: 14px 16px; border-radius: 8px; background: rgba(28, 9, 7, .55); border-left: 6px solid var(--marigold); }
.form__status.is-error { border-left-color: #ffc9a8; color: #ffe3d2; }
.thanks { margin-top: 34px; padding: clamp(24px, 4vw, 40px); border-radius: 8px; background: var(--ink); border: 3px solid var(--marigold); box-shadow: 10px 10px 0 var(--honey); }
.thanks__title { font-family: var(--font-display); font-weight: var(--display-weight); font-variant-numeric: lining-nums; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; color: var(--marigold); margin-bottom: 10px; }
.thanks p { font-size: 1.15rem; max-width: 40ch; }

@media (min-width: 900px) {
  .rsvp { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100vh; }
  .rsvp__photo { height: auto; min-height: 100%; }
  .rsvp__photo::after { background: linear-gradient(90deg, rgba(63, 90, 42, 0) 70%, var(--leaf) 100%); }
  .rsvp__photo img { object-position: 50% 28%; }
  .rsvp__panel { align-self: center; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
/* Light text on a dark gradient that lives only in the bottom-left corner, behind the text (the photo is clear
   everywhere else, and the couple stays on the right). On phones the text would cover the couple, so there it
   sits in its own dark panel directly under the photo instead. */
.footer { position: relative; isolation: isolate; min-height: clamp(520px, 70vw, 720px); display: flex; align-items: flex-end; background: var(--ink); overflow: hidden; }
.footer__bg { position: absolute; inset: 0; z-index: -1; }
.footer__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.footer__inner { width: 100%; padding: 120px var(--gutter) 36px; display: grid; gap: 10px; max-width: 1440px; margin: 0 auto; }
.footer__names { font-family: var(--font-display); font-weight: var(--display-weight); font-variant-numeric: lining-nums; font-size: clamp(3.4rem, 12vw, 6.6rem); line-height: .95; letter-spacing: -.015em; color: var(--cream); text-shadow: 0 3px 0 rgba(28, 9, 7, .35); display: grid; }
.footer__name { display: block; }
.footer__name--b { color: var(--marigold); padding-left: .12em; }
.footer__date { font-size: 1.2rem; font-weight: 600; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 700; }
.footer__contact a { color: var(--marigold); }
.footer__fine { margin-top: 28px; font-size: .85rem; opacity: .85; max-width: 70ch; }
.footer__fine a { color: var(--marigold); }
@media (min-width: 900px) {
  .footer__inner { padding-right: 40%; }
  /* The photo already fills the footer's width, so it can't slide sideways. Zooming it from the bottom-left corner
     carries the couple toward the right edge instead (away from the text and the gradient). The vertical position
     keeps their heads and feet in frame; the zoom is gentler on very wide screens, where it would crop their heads. */
  .footer__bg img { object-position: 68% 72%; transform: scale(1.2); transform-origin: 0% 100%; }
  .footer__bg::after {
    content: ""; position: absolute; inset: 0;
    /* A soft oval anchored in the bottom-left corner: darkest right behind the text, fading to clear by 80% of the
       width and 95% of the height, so the rest of the photo is untouched. */
    background: radial-gradient(ellipse 80% 95% at 0% 100%, rgba(28, 9, 7, .94) 0%, rgba(40, 10, 14, .88) 60%, rgba(59, 13, 22, .50) 85%, rgba(59, 13, 22, 0) 100%);
  }
}
@media (min-width: 1600px) {
  .footer__bg img { transform: scale(1.06); }
}
@media (max-width: 899px) {
  .footer { display: block; min-height: 0; }
  .footer__bg { position: relative; z-index: auto; height: clamp(320px, 100vw, 560px); }
  .footer__inner { padding-top: 32px; }
}

/* ==========================================================================
   MOTION (all of it off for prefers-reduced-motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__name, .js .hero__when, .js .hero__actions { animation: rise .9s var(--ease) both; }
  .js .hero__name--a { animation-delay: .15s; }
  .js .hero__name--b { animation-delay: .3s; }
  .js .hero__when { animation-delay: .5s; }
  .js .hero__actions { animation-delay: .62s; }
  .js .hero__photo picture { animation: settle 1.6s var(--ease) both; }
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  [data-parallax] img { will-change: transform; }
}
@keyframes rise { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.1); opacity: .2; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
