/* Palette lifted from the save the date illustration */
:root {
  --paper: #fbf3ea;
  /* one step lighter than --paper; the alternating section band */
  --paper-lift: #fdf9f3;
  /* deeper cream, still used behind photos and placeholder art */
  --paper-alt: #f6e9db;
  --blush: #f7dbc6;
  --card: #fffaf3;

  --marigold: #efa02c;
  --marigold-deep: #d9821b;
  --mustard: #e8c23a;
  --sage: #7e8f5e;
  --terracotta: #b93d2b;

  --ink: #3b322b;
  --muted: #7a6a5c;
  --line: #e3d3c1;

  --radius: 4px;
  --shadow: 0 18px 50px rgba(59, 50, 43, 0.1);
  --header-h: 4.5rem;
  --motion-duration: 760ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* type scale: prose, subheading, small print, all-caps labels */
  --fs-prose: 1.3rem;
  --fs-h3: 1.5rem;
  --fs-small: 0.82rem;
  --fs-eyebrow: 0.75rem;
  --track-eyebrow: 0.18em;

  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Parisienne", "Cormorant Garamond", cursive;
  --sans: "Karla", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: clip;
}

body {
  margin: 0;
  /* clip, not hidden: hidden makes body a scroll container, which un-sticks
     the header */
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% 0%, var(--blush) 0%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 100% 8%, rgba(164, 131, 196, 0.16) 0%, transparent 70%);
  background-position:
    center var(--paper-shift, 0),
    right var(--paper-shift, 0);
  background-repeat: no-repeat;
}

body
  :is(
    p,
    h1,
    h2,
    h3,
    h4,
    a,
    button,
    label,
    input,
    legend,
    summary,
    figcaption,
    span,
    time,
    li,
    em,
    strong
  ) {
  color: #000 !important;
}

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

a {
  color: var(--terracotta);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--marigold-deep);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 234, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 211, 193, 0.7);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.wordmark em {
  font-family: var(--script);
  font-size: 1.5rem;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  color: var(--marigold-deep);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--terracotta);
}

.site-nav a[aria-current="location"] {
  color: var(--ink);
}

.site-nav a::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.25rem;
  background: var(--marigold-deep);
  transform: scaleX(0);
  transition: transform 300ms var(--motion-ease);
}

.site-nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: var(--ink);
}

/* ---------- Marigold garlands ---------- */

/* The strings are pinned to the viewport and live entirely in the gutter
   beside the 1120px content column, so they can never sit over the text.
   They hang at a fixed length: the hero image's bottom edge is sized to meet
   the longest marigold tip (see setupHero in script.js), which reads as aligned
   if the strings aren't also changing length. */
.garlands {
  --gutter: calc((100% - 1120px) / 2);
  --bloom-w: 32px;
  --string-gap: 16px;
  /* 18px hairline plus one dropped inner string (32 bloom + 16 gap) */
  --edge-clear: 66px;

  position: fixed;
  inset: 0 0 auto;
  height: 0;
  z-index: 20;
  pointer-events: none;
}

/* Spans the gutter apart from a hairline of clearance beside the text, so the
   strings fill the margin end to end instead of leaving a bare band at the
   viewport edge. `gap` is the minimum spacing and space-between spreads
   whatever is left over, which keeps both margins covered at any width. */
.garlands-side {
  position: absolute;
  top: 0;
  display: flex;
  justify-content: space-between;
  gap: var(--string-gap);
  width: calc(var(--gutter) - var(--edge-clear));
}

/* The first child is the outermost string on both sides, so the breakpoints
   below drop the innermost ones first and what is left stays pinned to the
   far edges. */
.garlands-left {
  left: 0;
}

.garlands-right {
  right: 0;
  flex-direction: row-reverse;
}

.garland {
  --bloom-h: 34px;

  position: relative;
  width: var(--bloom-w);
  height: var(--g-max, 40vh);
  transform-origin: top center;
  animation: garland-sway var(--sway-duration, 8s) ease-in-out
    var(--sway-delay, 0s) infinite alternate;
  background-image: var(--bloom), var(--leaf), var(--thread);
  background-size:
    var(--bloom-w) var(--bloom-h),
    var(--bloom-w) var(--bloom-h),
    1px 100%;
  background-position:
    top center,
    top calc(var(--bloom-h) / 2) center,
    top center;
  background-repeat: repeat-y, repeat-y, no-repeat;
}

/* the string ends in a single hanging bloom rather than a hard cut */
.garland::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: calc(var(--bloom-w) * 0.6);
  height: calc(var(--bloom-w) * 0.6);
  background: var(--bloom) no-repeat center / contain;
  transform: translateX(-50%);
}

.garland {
  --leaf: url("assets/bloom-leaf.svg");
  --thread: linear-gradient(rgba(126, 143, 94, 0.45), rgba(126, 143, 94, 0.45));
}

/* a real marigold garland is threaded tight, so the tile is shorter than it
   is wide and the blooms press into each other with no leaves between */
.g-marigold {
  --bloom: url("assets/bloom-marigold.svg");
  --bloom-h: 27px;
  --leaf: none;
  --sway-duration: 6.4s;
}

.g-wisteria {
  --bloom: url("assets/bloom-wisteria.svg");
  --bloom-h: 40px;
  --sway-duration: 7.6s;
}

.g-mogra {
  --bloom: url("assets/bloom-mogra.svg");
  --bloom-h: 38px;
  --sway-duration: 7.0s;
}

.garlands-side > :nth-child(2) {
  --sway-delay: -3.1s;
}

.garlands-side > :nth-child(3) {
  --sway-delay: -5.7s;
}

.garlands-side > :nth-child(4) {
  --sway-delay: -1.8s;
}

.garlands-side > :nth-child(5) {
  --sway-delay: -7.2s;
}

.garlands-side > :nth-child(6) {
  --sway-delay: -4.4s;
}

.garlands-right > .garland {
  animation-direction: alternate-reverse;
}

/* the outermost string on each side is pinned to the viewport edge, so it
   swings at a reduced angle to keep its lowest bloom inside the frame */
.garlands-side > .garland:first-child {
  --sway-angle: 0.5deg;
  --reach-scale: 0.7;
}

@keyframes garland-sway {
  from {
    transform: rotate(calc(var(--sway-angle, 1.2deg) * -1));
  }
  to {
    transform: rotate(var(--sway-angle, 1.2deg));
  }
}

/* A garland is one element painting a tiled bloom background, so it can only
   ever rotate as a rigid piece. setupGarlands re-tiles the string as one node
   per bloom: each node's throw grows with the square of its depth and lags the
   node above it, so the string bends and unrolls like thread on a breeze
   instead of leaning. The background string above stays as the baseline for
   no-JS and reduced motion. */
.garland.is-fluid {
  /* longer strings carry more weight and swing wider */
  --reach: calc(var(--g-max, 40vh) * 0.05 * var(--reach-scale, 1));

  animation: none;
  background-image: none;
}

.garland.is-fluid::after {
  content: none;
}

.garland-bloom {
  --depth: calc(var(--i) / var(--n));
  --throw: calc(var(--depth) * var(--depth) * var(--reach));
  --tilt: calc(var(--depth) * 3deg);
  --from-x: calc(var(--throw) * -1);
  --to-x: var(--throw);
  --from-tilt: calc(var(--tilt) * -1);
  --to-tilt: var(--tilt);

  position: absolute;
  top: calc(var(--i) * var(--bloom-h));
  left: 0;
  width: 100%;
  height: var(--bloom-h);
  transform-origin: top center;
  animation: bloom-sway var(--sway-duration, 8s) ease-in-out
    calc(var(--sway-delay, 0s) - var(--depth) * 0.5s) infinite alternate;
  background-image: var(--bloom), var(--thread);
  background-size:
    100% 100%,
    1px 100%;
  background-position:
    top center,
    top center;
  background-repeat: no-repeat, no-repeat;
}

/* the leaf straddles two blooms, so it rides a pseudo-element that is free to
   paint outside the tile rather than a background the tile would clip */
.garland-bloom::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: var(--bloom-h);
  background: var(--leaf) no-repeat top center / 100% 100%;
}

/* the string ends in a single smaller hanging bloom rather than a hard cut */
.garland-bloom.is-tip {
  height: calc(var(--bloom-w) * 0.6);
  background-image: var(--bloom);
  background-size: calc(var(--bloom-w) * 0.6) 100%;
}

.garland-bloom.is-tip::before {
  content: none;
}

.garlands-right .garland-bloom {
  animation-direction: alternate-reverse;
}

/* The outermost string hangs flush with the viewport edge, so a symmetric
   swing would carry a third of each lower bloom out of frame. Collapsing one
   end of its travel lets it swing inward only, at full reach. */
.garlands-left > .garland:first-child .garland-bloom {
  --from-x: 0px;
  --from-tilt: 0deg;
}

.garlands-right > .garland:first-child .garland-bloom {
  --to-x: 0px;
  --to-tilt: 0deg;
}

@keyframes bloom-sway {
  from {
    transform: translate3d(var(--from-x), 0, 0) rotate(var(--from-tilt));
  }
  to {
    transform: translate3d(var(--to-x), 0, 0) rotate(var(--to-tilt));
  }
}

/* n strings need a gutter of 32n + 16(n-1) + 66 = 48n + 50, and the gutter is
   (100vw - scrollbar - 1120) / 2, so the nth string can only appear from
   96n + 1235 px of viewport upwards. Both sides read the same rules, which
   is what keeps the count symmetric. */
@media (max-width: 1810px) {
  .garlands-side > .garland:nth-child(6) {
    display: none;
  }
}

@media (max-width: 1714px) {
  .garlands-side > .garland:nth-child(5) {
    display: none;
  }
}

@media (max-width: 1618px) {
  .garlands-side > .garland:nth-child(4) {
    display: none;
  }
}

@media (max-width: 1522px) {
  .garlands-side > .garland:nth-child(3) {
    display: none;
  }
}

@media (max-width: 1426px) {
  .garlands-side > .garland:nth-child(2) {
    display: none;
  }
}

@media (max-width: 1330px) {
  .garlands {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  --hero-scroll: 0;

  position: relative;
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.hero-copy {
  width: 100%;
  text-align: center;
  transform: translate3d(0, calc(var(--hero-scroll) * -2rem), 0);
}

.names {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 7.2vw, 4.25rem);
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-wrap: balance;
}

.names span {
  white-space: nowrap;
}

.names em {
  font-family: var(--serif);
  font-size: 0.52em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--muted);
  padding-inline: 0.12em;
}

.hero-meta {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-meta sup {
  font-size: 0.55em;
  vertical-align: super;
}

.hero-place {
  margin: 0.3rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--marigold-deep);
  border-radius: 999px;
  background: var(--marigold);
  color: #43301a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  background: var(--marigold-deep);
  color: #fff;
}

/* ---------- Floating planner contact ---------- */

.planner-contact {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 9.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(59, 50, 43, 0.22);
  transition: transform 0.18s ease, background 0.18s ease;
}

.fab[hidden] {
  display: none;
}

.fab:hover,
.fab:focus-visible {
  transform: translateY(-2px);
}

.fab-email {
  background: var(--marigold-deep);
}

.fab-email:hover {
  background: var(--terracotta);
}

.fab-whatsapp {
  background: #128c7e;
}

.fab-whatsapp:hover {
  background: #0e6e63;
}

body.nav-open .planner-contact {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .fab {
    transition: none;
  }

  .fab:hover,
  .fab:focus-visible {
    transform: none;
  }
}

.stay-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
}

.stay-copy p {
  margin: 0;
}

.stay-block {
  display: grid;
  gap: 0.6rem;
}

.stay-block h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.03em;
}

#travel .editorial-row {
  grid-template-columns: 1fr;
  row-gap: clamp(2rem, 4vw, 5rem);
}

#travel .editorial-copy {
  grid-column: 1;
  grid-row: 1;
}

#travel .editorial-copy h2 {
  text-align: center;
}

#travel .editorial-copy h2::after {
  margin-inline: auto;
}

/* The landscape band of the illustrated card (couple, tractor, mustard field),
   cut at Amar's feet. setupHero sets --hero-scene-w so the bottom edge
   lands on the end of the longest marigold string; the value below is the
   pre-measurement fallback. */
.hero-scene {
  position: relative;
  width: min(var(--hero-scene-w, 40rem), 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translate3d(0, calc(var(--hero-scroll) * 1.15rem), 0);
}

.hero-scene img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(calc(1.025 - var(--hero-scroll) * 0.015));
}

/* feather the cut edges into the paper instead of ending on a hard line */
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
      to right,
      rgba(251, 243, 234, 0.5) 0%,
      transparent 12%,
      transparent 88%,
      rgba(251, 243, 234, 0.5) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(251, 243, 234, 0.4) 0%,
      transparent 10%,
      transparent 90%,
      rgba(251, 243, 234, 0.4) 100%
    );
}

/* Only JavaScript-enabled pages receive entrance states. Without JS, every
   word and image remains visible. */
.js .hero-copy > *,
.js .hero-scene {
  opacity: 0;
  transform: translateY(1.25rem);
}

.js .hero-ready .hero-copy > *,
.js .hero-ready .hero-scene {
  opacity: 1;
  transition:
    opacity 900ms var(--motion-ease),
    transform 1100ms var(--motion-ease);
}

.js .hero-ready .hero-copy > * {
  transform: none;
}

.js .hero-ready .hero-scene {
  transform: translate3d(0, calc(var(--hero-scroll) * 1.15rem), 0);
}

.js .hero-ready .hero-copy > :nth-child(2) {
  transition-delay: 120ms;
}

.js .hero-ready .hero-copy > :nth-child(3) {
  transition-delay: 230ms;
}

.js .hero-ready .hero-scene {
  transition-delay: 320ms;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3rem, 7vw, 4.75rem) 0;
}

.section-alt {
  background: var(--paper-lift);
  border-block: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* marigold flourish under every section heading */
.section h2::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 7px;
  margin: 0.85rem auto 1.6rem;
  background-image: radial-gradient(
    circle at 50% 50%,
    var(--marigold) 0 42%,
    transparent 45%
  );
  background-size: 15px 7px;
  background-repeat: repeat-x;
  background-position: center;
}

/* a bloom either side of the main section headings, a different flower per
   section. The heading shrinks to its text so the blooms hug the words; fixed
   line-height keeps them centred on the first line. */
.editorial-copy > h2,
.quiz-intro > h2 {
  --h2-bloom: 1.05em;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: calc(var(--h2-bloom) + 0.65em);
  line-height: 1.2;
  background:
    var(--h2-flower) left top calc((1.2em - var(--h2-bloom)) / 2) /
      var(--h2-bloom) no-repeat,
    var(--h2-flower) right top calc((1.2em - var(--h2-bloom)) / 2) /
      var(--h2-bloom) no-repeat;
}

.section {
  --h2-flower: url("assets/bloom-marigold.svg");
}

#story,
#faq {
  --h2-flower: url("assets/bloom-wisteria.svg");
}

#travel {
  --h2-flower: url("assets/bloom-mogra.svg");
}

.section p {
  margin: 0 0 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.section-intro {
  max-width: 46rem;
  margin: 0 auto 2.25rem !important;
  text-align: center;
  color: var(--muted);
}

.editorial-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6rem);
}

@media (min-width: 901px) {
  .editorial-row > .editorial-media {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.editorial-row-media-right > .editorial-media {
  grid-column: 2;
  grid-row: 1;
}

.editorial-row-media-right > .editorial-copy {
  grid-column: 1;
  grid-row: 1;
}

.editorial-copy {
  min-width: 0;
  font-family: var(--serif);
  font-size: var(--fs-prose);
  line-height: 1.6;
}

.editorial-copy .section-intro {
  margin-bottom: 2rem !important;
}

.editorial-media {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-alt);
  box-shadow: 0 8px 24px rgba(59, 50, 43, 0.08);
}

.editorial-media img {
  display: block;
  width: 100%;
  height: auto;
}

.editorial-media figcaption {
  padding: 0.7rem 0.9rem 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.45;
  text-align: center;
  text-wrap: pretty;
}

/* The story column stretches to the height of the prose. The first and last
   photos stay fixed; the collage between them grows to fill whatever is left
   after 0.5 cm of air under the court-wedding caption and above the engagement
   shot. */
.story-media {
  --story-media-gap: 0.5cm;

  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.story-media > .editorial-media:first-child {
  flex: 0 0 auto;
  margin-bottom: var(--story-media-gap);
}

.story-media > .editorial-media:last-child {
  flex: 0 0 auto;
}

.story-media > .story-collage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: var(--story-media-gap);
}

.story-collage-grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 3px;
  min-height: 0;
  overflow: hidden;
  background: var(--line);
}

.story-collage-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-row-media-right > .story-media {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
}

/* Weather follows the Travel & Stay copy and spans the full content width.
   The forecast remains a horizontal reel instead of making the page wider. */
.travel-weather {
  grid-column: 1 !important;
  grid-row: 2 !important;
  position: static !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0;
  padding: clamp(1rem, 2vw, 1.4rem);
  overflow: hidden;
}

.travel-weather > .weather {
  min-width: 0;
}

.travel-weather h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
}

.travel-weather > .weather > p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.travel-weather .cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.travel-weather .card {
  padding: 0.75rem;
}

.travel-weather .card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.travel-weather .card p {
  font-size: 0.78rem;
  line-height: 1.4;
}

.travel-weather .forecast {
  margin-top: 1rem;
  padding: 0.85rem;
}

.travel-weather .forecast > h3 {
  font-size: 1.3rem;
}

.travel-weather .forecast-now,
.travel-weather .forecast-note {
  font-size: 0.8rem;
}

.travel-weather .forecast-days {
  gap: 0.45rem;
}

.travel-weather .forecast-days li {
  flex-basis: 7.25rem;
  min-height: 6.25rem;
  padding: 0.6rem;
}

.travel-weather .forecast-date,
.travel-weather .forecast-pop {
  font-size: 0.65rem;
}

.travel-weather .forecast-sky {
  font-size: 0.75rem;
}

.travel-weather .forecast-temp {
  font-size: 1.05rem;
}

.motion-ready [data-reveal] {
  opacity: 0;
  transition:
    opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease),
    clip-path 1050ms var(--motion-ease);
}

.motion-ready [data-reveal="copy"] {
  transform: translate3d(var(--reveal-copy-x, 1.5rem), 1rem, 0);
}

.motion-ready [data-reveal="media"] {
  transform: translate3d(var(--reveal-media-x, -1.5rem), 1rem, 0);
  clip-path: inset(0 18% 0 0);
}

.motion-ready .editorial-row-media-right {
  --reveal-copy-x: -1.5rem;
  --reveal-media-x: 1.5rem;
}

.motion-ready .editorial-row-media-right [data-reveal="media"] {
  clip-path: inset(0 0 0 18%);
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0);
}

.motion-ready [data-reveal="media"] img {
  transform: scale(1.035);
  transition: transform 1250ms var(--motion-ease);
}

.motion-ready [data-reveal="media"].is-visible img {
  transform: scale(1);
}

.story .editorial-copy p {
  margin: 0 0 1.15rem;
  text-wrap: pretty;
}

/* the trailing margin would push the copy past its last line and break the
   bottom alignment with the final photo */
.story .editorial-copy > :last-child {
  margin-bottom: 0;
}

.story blockquote {
  margin: 0 0 1.15rem;
  padding: 0;
}

.story blockquote p {
  margin: 0;
}

.faq details p + p {
  margin-top: 0.75rem !important;
}

/* ---------- Live forecast ---------- */

.forecast {
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--marigold);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 95% 0%, rgba(232, 194, 58, 0.2), transparent 35%),
    var(--card);
  box-shadow: var(--shadow);
}

.forecast > h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.forecast-now {
  margin: 0.35rem 0 0 !important;
  color: var(--ink);
  font-weight: 600;
}

.forecast-note {
  margin: 0.25rem 0 1rem !important;
  color: var(--muted);
  font-size: 0.95rem;
}

.forecast-days {
  display: flex;
  gap: 0.65rem;
  margin: 0;
  padding: 0 0 0.45rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-color: var(--marigold) var(--paper-alt);
  list-style: none;
}

.forecast-days li {
  display: grid;
  flex: 0 0 10rem;
  gap: 0.2rem;
  min-height: 8rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  scroll-snap-align: start;
}

.forecast-days .is-wedding {
  border: 2px solid var(--terracotta);
  background: rgba(239, 160, 44, 0.18);
  box-shadow: inset 0 0 0 2px var(--card);
}

.forecast-date {
  color: var(--marigold-deep);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.forecast-sky {
  color: var(--muted);
  font-size: 0.9rem;
}

.forecast-temp {
  align-self: end;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.forecast-pop {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------- Schedule ---------- */

#schedule .editorial-row {
  grid-template-columns: 1fr;
}

#schedule .editorial-copy {
  width: 100%;
  text-align: center;
}

#schedule .section-intro {
  width: 100%;
  max-width: none;
}

.days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.day {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow);
}

.day-head {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.day-num {
  margin: 0;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--marigold-deep);
}

.day-date {
  margin: 0.35rem 0 0 !important;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  letter-spacing: 0.02em;
}

.events {
  display: grid;
  gap: 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.event h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.event p {
  margin: 0 !important;
  line-height: 1.4;
}

.event-time {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--marigold-deep);
}

.event-venue {
  font-size: 1.1rem;
  color: var(--muted);
}

.schedule-note {
  margin: 1.5rem 0 0 !important;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--muted);
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.card p {
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  padding: 0.9rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  min-height: 44px;
  font-family: var(--serif);
  font-size: var(--fs-prose);
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--marigold-deep);
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details p {
  margin: 0.7rem 0 0.2rem !important;
  color: var(--muted);
}

/* ---------- Couple quiz ---------- */

.quiz-section {
  font-family: var(--serif);
  font-size: var(--fs-prose);
  line-height: 1.6;
  text-align: center;
}

.quiz-section p {
  width: 100%;
  margin: 0;
  text-wrap: pretty;
}

.quiz-section .sr-only {
  width: 1px;
}

.quiz-section [hidden] {
  display: none;
}

.quiz-intro,
#quiz-question-form,
#quiz-result {
  width: 100%;
  margin-inline: auto;
}

.quiz-intro {
  padding-inline: clamp(0rem, 3vw, 2rem);
}

#quiz-intro-copy {
  color: var(--muted);
  white-space: pre-line;
}

.quiz-photo {
  width: min(100%, 40rem);
  margin: 2rem auto 0;
}

.quiz-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#quiz-name-form {
  display: grid;
  gap: 0.55rem;
  width: min(100%, 28rem);
  margin: 2rem auto 0;
  text-align: left;
}

#quiz-name-form label {
  padding-left: 0.15rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
}

#quiz-name-form input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: center;
  box-shadow: 0 8px 24px rgba(59, 50, 43, 0.04);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

#quiz-name-form input:focus {
  border-color: var(--marigold-deep);
  box-shadow: 0 10px 28px rgba(217, 130, 27, 0.12);
}

#quiz-name-form .btn {
  justify-self: center;
  margin-top: 0.8rem;
}

#quiz-question-form {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 250, 243, 0.88), rgba(255, 250, 243, 0.88)),
    radial-gradient(circle at top left, var(--blush), transparent 48%);
  box-shadow: var(--shadow);
}

.quiz-progress {
  width: min(100%, 22rem);
  margin: 0 auto 2rem;
}

.quiz-progress p {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
}

.quiz-progress progress {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--marigold-deep);
  appearance: none;
}

.quiz-progress progress::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--paper-alt);
}

.quiz-progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mustard), var(--marigold-deep));
  transition: width var(--motion-duration) var(--motion-ease);
}

.quiz-progress progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mustard), var(--marigold-deep));
}

#quiz-question fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  animation: quiz-arrive 420ms var(--motion-ease) both;
}

#quiz-question legend {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.quiz-answers {
  display: grid;
  gap: 0.85rem;
  text-align: left;
}

.quiz-answers label {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(59, 50, 43, 0.035);
  transition:
    transform 220ms var(--motion-ease),
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 220ms ease;
}

.quiz-answers input {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  appearance: none;
}

.quiz-answers input:checked {
  border: 4px solid var(--card);
  background: var(--marigold-deep);
  box-shadow: 0 0 0 1px var(--marigold-deep);
}

.quiz-answers label:has(input:checked) {
  border-color: var(--marigold-deep);
  background: #fff7e9;
  box-shadow: 0 11px 28px rgba(217, 130, 27, 0.13);
  transform: translateY(-2px);
}

.quiz-answers label:has(input:focus-visible) {
  outline: 2px solid var(--marigold-deep);
  outline-offset: 3px;
}

.quiz-answers input:focus-visible {
  outline: none;
}

@media (hover: hover) {
  .quiz-answers label:hover {
    border-color: var(--marigold);
    box-shadow: 0 10px 26px rgba(59, 50, 43, 0.08);
    transform: translateY(-2px);
  }
}

.quiz-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.quiz-secondary {
  background: transparent;
  color: var(--ink);
}

.quiz-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}

#quiz-result {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 10% 15%, rgba(239, 160, 44, 0.2) 0 4px, transparent 5px),
    radial-gradient(circle at 88% 22%, rgba(164, 131, 196, 0.22) 0 5px, transparent 6px),
    radial-gradient(circle at 18% 85%, rgba(126, 143, 94, 0.2) 0 4px, transparent 5px),
    radial-gradient(circle at 92% 78%, rgba(185, 61, 43, 0.16) 0 3px, transparent 4px),
    linear-gradient(145deg, var(--card), var(--paper-alt));
  box-shadow: var(--shadow);
  animation: quiz-celebrate 620ms var(--motion-ease) both;
}

#quiz-result::before,
#quiz-result::after {
  position: absolute;
  color: var(--marigold);
  font-family: var(--script);
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
  opacity: 0.55;
}

#quiz-result::before {
  content: "❋";
  top: 0.25rem;
  left: 0.75rem;
  transform: rotate(-12deg);
}

#quiz-result::after {
  content: "❋";
  right: 0.75rem;
  bottom: 0.25rem;
  transform: rotate(12deg);
}

#quiz-result-name {
  position: relative;
  z-index: 1;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
}

#quiz-result-title {
  position: relative;
  z-index: 1;
}

#quiz-result-copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  text-wrap: pretty;
}

#quiz-result .btn {
  position: relative;
  z-index: 1;
}

@keyframes quiz-arrive {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
}

@keyframes quiz-celebrate {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(1rem);
  }
}

@media (max-width: 600px) {
  .quiz-section {
    font-size: 1.15rem;
  }

  #quiz-question-form {
    padding: 1.15rem;
  }

  .quiz-progress {
    margin-bottom: 1.5rem;
  }

  .quiz-answers label {
    gap: 0.8rem;
    min-height: 4.5rem;
    padding: 0.85rem;
  }

  .quiz-actions {
    flex-wrap: wrap;
  }

  .quiz-actions .btn {
    flex: 1 1 8rem;
  }

  #quiz-result::before,
  #quiz-result::after {
    font-size: 3.25rem;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.75rem 0 3.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-names {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-names em {
  font-family: var(--script);
  font-size: 1.3rem;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  color: var(--marigold-deep);
}

.footer-meta {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-quiet {
  margin: 1.4rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-quiet a {
  color: var(--muted);
}

.footer-quiet a:hover {
  color: var(--terracotta);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .editorial-row,
  .editorial-row-media-right {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .editorial-row-media-right > .editorial-media,
  .editorial-row-media-right > .story-media,
  .editorial-row-media-right > .editorial-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .editorial-row-media-right > .editorial-media {
    grid-row: 1;
  }

  .editorial-row-media-right > .editorial-copy {
    grid-row: 2;
  }

  /* one photo can lead a section, but the story's three would bury the text,
     so they follow it and the captioned engagement shot closes the section */
  .story > .editorial-copy {
    grid-row: 1;
  }

  .story > .story-media {
    grid-row: 2;
  }

  .travel-weather .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .days {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  /* icon-only round buttons; the label stays for screen readers */
  .planner-contact {
    gap: 0.45rem;
  }

  .fab {
    min-width: 0;
    width: 2.6rem;
    min-height: 0;
    height: 2.6rem;
    padding: 0;
    border-radius: 50%;
  }

  .fab svg {
    width: 20px;
    height: 20px;
  }

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

  :root {
    --header-h: 4rem;
  }

  .stay-copy {
    grid-template-columns: 1fr;
  }

  .wrap {
    width: min(100% - 1.5rem, 42rem);
  }

  .site-header {
    backdrop-filter: blur(16px);
  }

  .header-inner {
    gap: 0.5rem;
  }

  .wordmark {
    gap: 0.25rem;
    font-size: 1.05rem;
    letter-spacing: 0.09em;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: calc(var(--header-h) - 1px) 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 0.75rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    border-bottom: 1px solid rgba(227, 211, 193, 0.7);
    font-size: 0.85rem;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero-copy {
    padding-inline: 1.6rem;
  }

  .hero {
    padding: 3.25rem 0 3rem;
  }

  .hero-inner {
    gap: 2.25rem;
  }

  .names {
    font-size: clamp(2.2rem, 13vw, 3.25rem);
    line-height: 0.93;
    letter-spacing: 0.04em;
  }

  .names span,
  .names em {
    display: block;
  }

  .names em {
    margin-block: 0.35rem;
    font-size: 0.46em;
    line-height: 1;
  }

  .hero-meta {
    font-size: 1.05rem;
    letter-spacing: 0.1em;
  }

  .hero-place {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.25rem 1.1rem;
  }

  .forecast {
    padding-inline: 1rem;
  }

  .forecast-days {
    margin-inline: -1rem;
    padding-inline: 1rem;
    scroll-padding-inline: 1rem;
  }

  .forecast-days li {
    flex-basis: min(10rem, 72vw);
  }

  .faq details {
    padding: 0.65rem 1rem;
  }

  .faq summary {
    align-items: center;
    padding-block: 0.25rem;
  }

  .motion-ready [data-reveal="copy"],
  .motion-ready [data-reveal="media"],
  .motion-ready .editorial-row-media-right [data-reveal="media"] {
    transform: translate3d(0, 1.25rem, 0);
    clip-path: inset(8% 0 0);
  }

  .motion-ready [data-reveal="copy"].is-visible,
  .motion-ready [data-reveal="media"].is-visible {
    transform: none;
    clip-path: inset(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .hero-copy > *,
  .js .hero-scene,
  .motion-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
