/* ============================================================
   Barbara & Alex — Son Burguet, Majorque — 7 mai 2027
   ------------------------------------------------------------
   ⚠️  BRAND TOKENS — the only block you need to edit.
   Colours are sampled directly from the faire-part PDF:
   terracotta #CF7144 on blush #F3E3D6.
   ============================================================ */

/* The real thing: the exact Frys Baskerville BT file embedded in the
   faire-part PDF, self-hosted from a licensed copy in assets/fonts/.
   It's a single Roman-only cut — no italic, no bold — which is fine,
   since nothing on the site is set in italic. */
@font-face {
  font-family: "Frys Baskerville";
  src: url("../fonts/FRYBASKN.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Surfaces (from the faire-part) --- */
  --c-blush:     #F3E3D6;  /* page background — the invitation's blush */
  --c-blush-2:   #EBD5C4;  /* alternating band */
  --c-shell:     #FBF4ED;  /* raised cards */

  /* --- Terracotta, in four jobs ---
     The faire-part's #CF7144 is gorgeous but only 2.75:1 on blush, so it
     cannot carry text. Each step below is the lightest value that stays
     legible for the job it does — don't collapse them back into one. */
  --c-brand:      #CF7144;  /* the exact brand terracotta — FILLS + ornament only, never text */
  --c-brand-mid:  #B6633C;  /* display-size accents — 3.5:1, large text only */
  --c-brand-text: #8F4E2F;  /* terracotta text at any size — 5.1:1 on blush */
  --c-brand-deep: #A65A36;  /* fills behind white text — pure white is 5.1:1.
                               Kept as close to #CF7144 as AA allows, which is
                               why text on it is never dimmed with opacity. */

  /* --- Ink: warm browns pulled toward the terracotta hue --- */
  --c-ink:       #3E2517;  /* primary text — 11.3:1 */
  --c-ink-soft:  #6B4630;  /* body copy — 6.6:1 */
  --c-ink-mute:  #825437;  /* small tracked labels — 4.5:1 on every surface */

  --c-alert:     #9A3B1E;  /* wrong-password message — 5.2:1 on blush */

  --c-line:      rgba(62, 37, 23, 0.16);
  --c-line-soft: rgba(62, 37, 23, 0.09);

  --c-accent:    var(--c-brand-text);

  /* --- Type: the faire-part sets Canela Text Light, Frys Baskerville,
     Lora and Pinyon Script. Lora and Pinyon Script are free and used
     here as-is. Frys Baskerville is the licensed file above, used
     everywhere — always Roman, weight 400, never italic (that file has
     no italic cut, and the site doesn't use one). Canela is still
     commercial with no owned copy, so it isn't swapped in. --- */
  --f-display: "Frys Baskerville", "Iowan Old Style", Georgia, serif;
  --f-sans: "Lora", Georgia, "Times New Roman", serif;
  --f-script: "Pinyon Script", "Snell Roundhand", cursive;

  /* --- Spacing (rem so it scales with the user's text size) --- */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --s-section: clamp(5rem, 12vw, 10rem);
  --maxw: 78rem;
  --maxw-narrow: 44rem;

  /* --- Motion: Apple's damping/response mapped to CSS ---
     Critically damped default. Bounce is reserved for JS springs
     driven by real momentum. --- */
  --e-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 140ms;
  --t-base: 340ms;
  --t-slow: 620ms;

  --radius: 2px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--c-blush);
  color: var(--c-ink);
  font: 400 100%/1.65 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; height: 100dvh; }

/* Safari on iOS 26 paints the strip under the clock with the body's
   background (it ignores theme-color). While a photo fills the top of
   the screen (the gate, or the hero before scrolling), match the photo's
   dark top edge instead of showing a blush bar. <main> keeps the page
   itself blush. */
body.is-locked,
body.is-at-hero:not(.is-menu-open) { background: #403830; }
main { background: var(--c-blush); }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--c-brand-text); color: var(--c-shell); }

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

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

.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--c-ink); color: var(--c-shell);
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: transform var(--t-base) var(--e-out);
}
.skip-link:focus { transform: translate(-50%, 0); }


/* ============================================================
   TYPOGRAPHY
   Tracking is size-specific: tight on display, open on micro-labels.
   ============================================================ */

.eyebrow {
  font-family: var(--f-sans);
  font-size: clamp(0.6875rem, 1.1vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  margin-bottom: 1.75rem;
}
.eyebrow span { color: var(--c-line); margin: 0 0.35em; }

.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
  margin-bottom: 1.75rem;
  text-wrap: balance;
}
.display--sm { font-size: clamp(1.875rem, 4vw, 3rem); letter-spacing: -0.015em; }
/* Display text is 36px+, so it can carry the brighter terracotta. */
.display .amp { color: var(--c-brand-mid); }

/* Pinyon Script, straight from the faire-part. Decorative only, and never
   below display size — it is unreadable small. */
.script {
  font-family: var(--f-script);
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--c-brand-mid);
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.62;
  color: var(--c-ink-soft);
  margin-bottom: 1.25rem;
  text-wrap: pretty;
}
.lede--narrow { max-width: 38rem; margin-inline: auto; }

.body {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--c-ink-soft);
  margin-bottom: 1.15rem;
  text-wrap: pretty;
}
/* Lora only ships 400/500 — <strong>'s default 700 would synthesize a
   fake bold, so run-in sub-labels lean on colour + the loaded 500 instead. */
.body strong {
  font-weight: 500;
  color: var(--c-ink);
}
.body--sm { font-size: 0.9375rem; line-height: 1.68; }
.body:last-child, .lede:last-child { margin-bottom: 0; }

.center { text-align: center; margin-inline: auto; }

.link {
  display: inline-block;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--c-accent), var(--c-accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size var(--t-base) var(--e-out), color var(--t-base) var(--e-out);
}
.link:hover { color: var(--c-accent); background-size: 0% 1px; background-position: 100% 100%; }

/* Decorative hairline — the one place the exact faire-part terracotta is
   used untouched, since it carries no text. */
.rule {
  height: 1px;
  background: var(--c-brand);
  opacity: 0.55;
  margin: 1.5rem 0;
}
/* Short centred ornament, in the spirit of the invitation's dividers. */
.rule--short { width: 2.75rem; margin-inline: auto; }


/* ---------- AMPERSAND ----------
   Every "&" is set in the display face — Frys Baskerville, upright, same
   as its surroundings. Kept as its own class (rather than plain text)
   because several headings still tint it with the accent colour below;
   the class is the hook for that, not a font swap. */
.amp {
  font-family: var(--f-display);
  font-weight: 400;
}


/* ============================================================
   BUTTONS
   Respond on pointer-down, not release.
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--f-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--c-brand-deep);
  padding: 0.9375rem 2.25rem;
  border-radius: 999px;
  min-height: 44px;
  transition:
    background-color var(--t-base) var(--e-out),
    transform var(--t-fast) var(--e-out);
  will-change: transform;
}
.btn:hover { background: var(--c-ink); }
.btn:active { transform: scale(0.97); transition-duration: 100ms; }

.btn--pill { padding: 0.75rem 1.75rem; font-size: 0.75rem; }
.btn--lg { padding: 1.125rem 3.25rem; font-size: 0.875rem; }


/* ============================================================
   PASSWORD GATE
   ============================================================ */

/* The opening shot: the hero's aerial view, darkened the same way, so
   unlocking dissolves straight into the matching hero underneath. */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: var(--hero-fallback);
  color: #FFFFFF;
  /* Leaving happens in two beats: the text lifts away first (.gate__inner),
     then the photo fades out over the identical hero frame beneath. Opacity
     and a small translate only: no blur or zoom, which stutter on phones. */
  transition:
    opacity 700ms var(--e-out) 260ms,
    visibility 0s linear 960ms;
}

.gate.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Framed exactly like .hero__img (10% bleed, same focal point, same 1.06
   scale) so the hand-over to the hero is a match cut, not a jump. */
.gate__bg {
  position: absolute;
  inset: -10% 0;
  background: var(--hero-bg, none) center 52% / cover no-repeat;
  transform: scale(1.06);
}
@media (min-width: 48rem) {
  .gate__bg { background-position: center 58%; }
}
@media (max-width: 48rem) {
  /* Safari on iOS 26 won't paint a fixed element behind its floating
     toolbar, so on phones the gate sits in the page instead, as tall as
     the hero (body.is-locked still stops it scrolling). The extra height
     goes into the bottom padding to keep the form centred on screen.
     In the page, its scaled photo would widen the page and let it scroll
     sideways, so it clips it like .hero does. */
  :root { --hero-bleed: 4rem; }
  body.is-locked { height: calc(100lvh + var(--hero-bleed)); }
  .gate {
    position: absolute;
    bottom: auto;
    height: calc(100lvh + var(--hero-bleed));
    padding-bottom: calc(var(--gutter) + var(--hero-bleed));
    overflow: hidden;
  }

  /* Match the phone hero's height (100lvh + --hero-bleed) and its 10% bleed. */
  .gate__bg {
    inset: auto 0;
    top: calc(-0.1 * (100lvh + var(--hero-bleed)));
    height: calc(1.2 * (100lvh + var(--hero-bleed)));
  }
}
.gate__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% 50%, rgba(48, 26, 15, 0.58) 0%, rgba(48, 26, 15, 0.28) 65%, rgba(48, 26, 15, 0.12) 100%),
    linear-gradient(180deg, rgba(48, 26, 15, 0.5) 0%, rgba(48, 26, 15, 0.2) 35%, rgba(48, 26, 15, 0.3) 65%, rgba(48, 26, 15, 0.62) 100%);
}

.gate__inner {
  position: relative;
  width: min(32rem, 100%);
  text-align: center;
  transition:
    opacity 320ms var(--e-out),
    transform 320ms var(--e-out);
}
.gate.is-open .gate__inner {
  opacity: 0;
  transform: translateY(-10px);
}

.gate__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 40px rgba(48, 26, 15, 0.3);
  margin-bottom: 1.5rem;
}
.gate__title .amp { opacity: 0.86; }

/* The faire-part's terracotta, untouched: it carries no text. */
.gate__rule {
  width: 2.75rem;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: var(--c-brand);
}

.gate__lede {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #FFFFFF;
  text-shadow: 0 1px 18px rgba(48, 26, 15, 0.45);
  text-wrap: balance;
  margin-bottom: 2.25rem;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  transition:
    border-color var(--t-base) var(--e-out),
    background-color var(--t-base) var(--e-out),
    transform var(--t-base) var(--e-out);
}
/* No focus ring on the field. The gate auto-focuses it, so a ring would be
   painted before the guest has touched anything. A brighter edge marks it
   instead, and the submit button keeps its own ring for keyboard users. */
.field:focus-within {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.2);
}
.field.is-shake { animation: shake 420ms var(--e-out); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-7px); }
  38% { transform: translateX(6px); }
  58% { transform: translateX(-4px); }
  78% { transform: translateX(2px); }
}

.field__input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  padding: 1.0625rem 0.5rem 1.0625rem 1.75rem;
  font-family: var(--f-sans);
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: #FFFFFF;
  caret-color: #FFFFFF;
}
.field__input::placeholder { color: rgba(255, 255, 255, 0.8); letter-spacing: 0.06em; }

.field__submit {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: 6px;
  border-radius: 999px;
  color: #FFFFFF;
  background: var(--c-brand-deep);
  flex: none;
  transition:
    background-color var(--t-base) var(--e-out),
    transform var(--t-fast) var(--e-out);
}
.field__submit:hover { background: var(--c-brand-mid); }
.field__submit:active { transform: scale(0.92); transition-duration: 100ms; }
.field__submit:focus-visible { outline-color: #FFFFFF; }

.gate__error {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: #FFD9C6;
  text-shadow: 0 1px 12px rgba(48, 26, 15, 0.6);
  opacity: 0;
  transition: opacity var(--t-base) var(--e-out);
}
.gate__error.is-visible { opacity: 1; }


/* ============================================================
   SITE SHELL
   ============================================================ */

.site {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(6px);
  transition:
    opacity var(--t-slow) var(--e-out),
    transform var(--t-slow) var(--e-out),
    filter var(--t-slow) var(--e-out);
}
.site.is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Programmatic focus target after the gate closes — it's a container, not a
   control, so it takes focus silently. Real controls keep their rings. */
.site:focus,
.site:focus-visible { outline: none; }


/* ============================================================
   NAV — translucent material, content scrolls under
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 0 var(--gutter);
  transition:
    background-color var(--t-slow) var(--e-out),
    backdrop-filter var(--t-slow) var(--e-out),
    color var(--t-slow) var(--e-out);
}

/* Over the hero photo: transparent, light type */
.nav:not(.is-stuck) { color: var(--c-shell); }

/* The menu overlay is light, so the nav must go back to ink while it's
   open — even over the hero, where the nav is otherwise white. */
.nav.is-menu-open,
.nav.is-menu-open:not(.is-stuck) { color: var(--c-ink); }
.nav:not(.is-stuck) .btn {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  color: var(--c-shell);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.nav:not(.is-stuck) .btn:hover { background: rgba(255, 255, 255, 0.28); }

/* Scrolled: material layer. Scroll-edge fade, no hard 1px divider. */
.nav.is-stuck {
  background: rgba(243, 227, 214, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--c-ink);
}
.nav.is-stuck::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 2.5rem;
  background: linear-gradient(180deg, rgba(243, 227, 214,0.62), rgba(243, 227, 214,0));
  pointer-events: none;
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: var(--maxw);
  margin-inline: auto;
  height: 4.75rem;
}

.nav__group { display: flex; align-items: center; gap: 2rem; }
.nav__group--right { justify-content: flex-end; }

.nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  white-space: nowrap;
  position: relative;
  padding: 0.5rem 0;
  /* Vibrancy over translucent chrome: slightly heavier + tracked */
  transition: opacity var(--t-base) var(--e-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.125rem;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--e-out);
}
.nav__link:hover::after { transform: scaleX(1); }

.nav__wordmark {
  font-family: var(--f-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  align-content: center;
  gap: 6px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform var(--t-base) var(--e-out), opacity var(--t-fast) var(--e-out);
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }


/* ---------- LANGUAGE PICKER ----------
   FR | EN pill. Inherits colour from wherever it sits: white over the
   hero and the gate's photo, ink on the solid nav. Each button's visible
   chip is small, its tap area is extended to 44px by ::after. */

html.i18n-pending body { visibility: hidden; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 999px;
}
.lang__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  opacity: 0.72;
  transition:
    background-color var(--t-base) var(--e-out),
    opacity var(--t-base) var(--e-out);
}
.lang__btn::after { content: ""; position: absolute; inset: -13px 0; }
.lang__btn:hover { opacity: 1; }
.lang__btn[aria-pressed="true"] {
  opacity: 1;
  background: color-mix(in srgb, currentColor 14%, transparent);
}
.lang__flag {
  display: block;
  flex: none;
  width: 15px;
  height: 10px;
  border-radius: 2px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18);
}

/* On the password page: top right, white over the photo. */
.lang--gate {
  position: absolute;
  top: max(1.25rem, env(safe-area-inset-top));
  right: var(--gutter);
  z-index: 1;
  color: #FFFFFF;
}


/* ---------- MOBILE MENU ---------- */

/* An author `display` beats the UA rule for [hidden], so without this the
   closed menu stays laid out at opacity 0 over the whole viewport and
   swallows every tap on mobile. */
.menu[hidden] { display: none; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  background: rgba(243, 227, 214, 0.93);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  opacity: 0;
  /* Materialize: blur + scale together */
  transform: scale(1.03);
  transition:
    opacity var(--t-base) var(--e-out),
    transform var(--t-base) var(--e-out);
}
.menu.is-open { opacity: 1; transform: none; }

.menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.menu__link {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
  padding: 0.25rem 1rem;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--t-base) var(--e-out),
    transform var(--t-base) var(--e-out),
    color var(--t-fast) var(--e-out);
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu__link:hover { color: var(--c-accent); }
.menu__link--accent { color: var(--c-accent); }


/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  color: var(--c-shell);
  padding: 8rem var(--gutter) 6rem;
}

.hero__media {
  position: absolute;
  inset: -10% 0 -10% 0;   /* room for parallax travel */
  z-index: 0;
}

/* object-fit, not background-image: this is a <video> now. The gradient
   sits behind it as a background — visible only if the video and its
   poster both fail, since a <video> paints over its own background
   the moment it has any frame (poster or decoded) to show. */
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  background: var(--hero-fallback);
  /* The parallax script takes this over on mouse and trackpad. */
  transform: scale(1.06);
  will-change: transform;
}

@media (min-width: 48rem) {
  .hero__img { object-position: center 58%; }
}

/* Painterly stand-in for the cove: shown only if the video, its poster,
   and the network all fail at once. */
:root {
  --hero-fallback:
    radial-gradient(60% 45% at 12% 8%,  #3F5138 0%, rgba(63,81,56,0) 62%),
    radial-gradient(52% 40% at 88% 12%, #4A5B3C 0%, rgba(74,91,60,0) 60%),
    radial-gradient(75% 45% at 50% 34%, #A79372 0%, rgba(167,147,114,0) 68%),
    radial-gradient(90% 42% at 38% 72%, #7FBFB6 0%, rgba(127,191,182,0) 70%),
    radial-gradient(70% 34% at 78% 88%, #E4D9C2 0%, rgba(228,217,194,0) 72%),
    linear-gradient(178deg, #B9CBD4 0%, #6E8A5C 26%, #93A882 44%, #6FB2AB 66%, #DCCFB4 100%);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    /* The cove is bright — pale water and sand sit exactly where the title
       goes. A radial pool keeps the type legible without flattening the
       photo's edges. */
    radial-gradient(72% 52% at 50% 55%, rgba(48, 26, 15, 0.52) 0%, rgba(48, 26, 15, 0.18) 62%, rgba(48, 26, 15, 0) 100%),
    linear-gradient(180deg, rgba(48, 26, 15,0.46) 0%, rgba(48, 26, 15,0.12) 30%, rgba(48, 26, 15,0.2) 62%, rgba(48, 26, 15,0.56) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  /* Arrives once the gate's own title has gone, so the names never show twice. */
  transition:
    opacity 900ms var(--e-out) 480ms,
    transform 900ms var(--e-out) 480ms;
}
.site:not(.is-revealed) .hero__content {
  opacity: 0;
  transform: translateY(12px);
}

.hero__date {
  color: rgba(255, 255, 255, 0.92);
  /* Vibrancy: text over a variable photo needs weight + tracking, not grey */
  font-weight: 500;
  /* The only line beside the names, so it's sized to partner the title
     (roughly a fifth of its size) rather than read as a small label. */
  font-size: clamp(1.0625rem, 2.3vw, 1.625rem);
  letter-spacing: 0.18em;
  text-shadow: 0 1px 24px rgba(48, 26, 15, 0.35);
  margin-bottom: clamp(1.25rem, 2.4vw, 2rem);
}
.hero__date span { color: rgba(255, 255, 255, 0.45); }

.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;   /* negative tracking grows with size */
  font-optical-sizing: auto;
  text-shadow: 0 2px 40px rgba(48, 26, 15, 0.3);
}
.hero__title .amp { opacity: 0.86; }

.hero__cue {
  position: absolute;
  bottom: 2.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px; height: 64px;
}
.hero__cue-line {
  display: block;
  width: 1px; height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 100%);
  transform-origin: top;
  animation: cue 2.8s var(--e-out) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  75%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(48px); opacity: 0; }
}


/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--s-section) var(--gutter);
}
.section--narrow { max-width: calc(var(--maxw-narrow) + var(--gutter) * 2); }

/* The sticker already carries its own top margin and visual weight, so the
   section's usual bottom padding on top of that leaves too much air before
   the next section. Tighten the bottom only — top stays the default. */
#invitation {
  text-align: center;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

/* A playful cut-out photo, centred under the "how we met" copy. A slight
   tilt and a soft grounding shadow read as a printed sticker rather than
   a stock rectangle. No hover animation here — this is a touch device
   first and foremost, and hover states don't fire on tap anyway.

   Shadow and rotation are still kept on separate elements even though
   nothing animates them now: Chromium and WebKit both rasterize
   filter: drop-shadow() against the element's compositing-layer bounding
   box rather than its alpha silhouette once that same element also has a
   transform, and a static rotate can still get swept into that on some
   builds. Keeping the shadow on a plain wrapper sidesteps it entirely. */
.sticker {
  width: min(15rem, 60vw);
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  filter: drop-shadow(0 18px 26px rgba(62, 37, 23, 0.22));
}
.sticker__img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-4deg);
}


/* ---------- SHARED SMALL LABEL ---------- */

.label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
}


/* ---------- ESSENTIALS (Quand & Où) ----------
   Hairline-divided columns, centred like the faire-part. Deliberately not
   boxes: nothing else on the page is a raised surface, so cards read as a
   different design language sitting in the middle of the layout. */

.essentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.essential {
  padding: clamp(2.25rem, 4vw, 3.5rem) clamp(1rem, 2.4vw, 2.5rem);
  text-align: center;
}
.essential + .essential { border-left: 1px solid var(--c-line); }

.essential__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Times stack under their label rather than sitting in a ruled table —
   a ledger row reads as UI, these should read as an invitation. */
.deflist { display: grid; gap: 1.125rem; }
.deflist div { display: block; }
.deflist dt {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--c-ink-soft);
}
.deflist dd {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-brand-text);
}


/* ---------- CARDS (travel) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
/* Three short hotel suggestions rather than two longer travel cards. */
.cards--3 { grid-template-columns: repeat(3, 1fr); }

/* Extra breathing room before a labelled subsection break inside a
   section that already has its own intro (e.g. "Hébergement" inside
   "Voyage & Hébergement") — .section's own padding only separates whole
   sections, not subsections nested within one. */
.subsection { margin-top: clamp(4rem, 9vw, 7rem); }

/* "Autres alternatives": a short intro, then three compact hotel cards. */
.alt-intro {
  max-width: 40rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.alt-hotels { margin-top: 1.25rem; }

/* Recommended hotel: text beside a square print of the hotel, framed like
   the other photos (off-white border, soft shadow). */
.card--hotel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.card--hotel__text { grid-column: 1; grid-row: 1; }
.hotel-photo {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 0.4rem solid var(--c-shell);
  box-shadow: 0 18px 32px rgba(62, 37, 23, 0.2);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}
.alt-hotels .card__title { margin-bottom: 1.25rem; }

.card {
  border-top: 1px solid var(--c-line);
  padding: clamp(1.75rem, 3vw, 2.75rem) 0;
}

.card__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin-bottom: 0.875rem;
}

/* Flight times — a compact pair list, left-aligned inside a travel card. */
.facts {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--c-line-soft);
}
.facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.facts dt { font-size: 0.9375rem; color: var(--c-ink-soft); }
.facts dd {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand-text);
  white-space: nowrap;
}


/* ---------- NOTE ----------
   A single centred aside for the "merci de noter que" shuttle info. */

.note {
  max-width: 44rem;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--c-line);
  text-align: center;
}
.note .rule--short { margin-block: 1.25rem; }


/* ---------- COUNTDOWN STRIP ---------- */

/* The countdown is a terracotta band, like the RSVP panel it leads to.
   Everything on it is pure white: same contrast rule as .rsvp. */
.strip {
  background: var(--c-brand-deep);
  color: #FFFFFF;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
}
.strip__inner { max-width: var(--maxw); margin-inline: auto; }

.count {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.5rem, 2vw, 2rem);
  text-align: center;
}
.count li { display: flex; flex-direction: column; gap: 0.5rem; }
.count li + li { border-left: 1px solid rgba(255, 255, 255, 0.28); }

.count__num {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.count__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FFFFFF;
}


/* ---------- TIMELINE ---------- */

.timeline {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: 0;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  /* Column gap only — a shorthand `gap` would also space the title,
     meta and body rows apart inside the item. */
  column-gap: clamp(1rem, 4vw, 3rem);
  row-gap: 0;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-top: 1px solid var(--c-line);
  align-items: start;
}
.timeline__item:last-child { border-bottom: 1px solid var(--c-line); }

.timeline__day {
  grid-row: span 3;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  padding-top: 0.5rem;
}

.timeline__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 3.4vw, 2.375rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.timeline__meta {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  margin-bottom: 0.875rem;
}


/* ---------- SPLIT (story) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split + .split { margin-top: clamp(4rem, 9vw, 8rem); }

.split__text .display { margin-bottom: 1.5rem; }


/* ---------- PHOTOGRAPHY ---------- */

.photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* Printed-photo edge, same as the guide's .polaroids */
  border: 0.4rem solid var(--c-shell);
  box-shadow: 0 18px 32px rgba(62, 37, 23, 0.2);
}

.photo__caption {
  margin-top: 0.875rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
}

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

.faq {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--c-line);
}

.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item h3 { font: inherit; }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-height: 44px;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--f-display);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color var(--t-base) var(--e-out);
}
.faq__q:hover { color: var(--c-accent); }

/* Whole-pixel strokes and an opacity-only fade: rotating a 1px hairline
   that sat on a half pixel left stray dark pixels behind in WebKit. */
.faq__icon {
  position: relative;
  flex: none;
  width: 15px; height: 15px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.faq__icon::before { left: 0; right: 0; top: 7px; height: 1px; }
.faq__icon::after {
  top: 0; bottom: 0; left: 7px; width: 1px;
  transition: opacity var(--t-base) var(--e-out);
}
.faq__q[aria-expanded="true"] .faq__icon::after { opacity: 0; }

/* Height is driven by JS springs — no CSS transition here, so it stays
   interruptible and always animates from the live on-screen value. */
.faq__a {
  height: 0;
  overflow: hidden;
}
.faq__a-inner {
  padding-bottom: 1.75rem;
  padding-right: clamp(0rem, 6vw, 3.5rem);
}
.faq__a-inner p {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--c-ink-soft);
  text-wrap: pretty;
}
/* Several answers run to two paragraphs; the global reset zeroes p margins. */
.faq__a-inner p + p { margin-top: 0.875rem; }

/* Honeymoon contribution: PayPal link + IBAN */
.gift {
  display: grid;
  gap: 0.875rem;
  margin-top: 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--c-line-soft);
}
.gift div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
}
.gift dt {
  min-width: 4.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
}
.gift dd { margin: 0; }
.gift--promo { margin-block: 0 1.5rem; max-width: 24rem; }
.gift__name { color: var(--c-ink); }
/* One tap selects the whole IBAN or code, ready to paste. */
.gift__iban,
.gift__code {
  font-size: clamp(0.875rem, 3.9vw, 1rem);
  white-space: nowrap;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--c-ink);
  user-select: all;
  -webkit-user-select: all;
}


/* ---------- RSVP ---------- */

/* The invitation's reply card: white on terracotta. #CF7144 itself is too
   light behind white text, so the panel uses the deep step (white = 7.1:1). */
.rsvp {
  background: var(--c-brand-deep);
  color: #FFFFFF;
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  text-align: center;
}
.rsvp__inner { max-width: 40rem; margin-inline: auto; }

/* "Répondez / s'il vous plaît", set exactly as on the reply card.
   Pinyon's swashes overshoot the line box, so it gets its own padding. */
.rsvp__title { line-height: 1.08; margin-bottom: 1.5rem; }
.rsvp__title .script {
  display: block;
  font-size: 1.3em;
  line-height: 1.2;
  color: #FFFFFF;
  margin-top: 0.06em;
  padding-bottom: 0.14em;
}
/* Hierarchy here comes from size and tracking, not opacity — dimmed white
   would drop below 4.5:1 on this terracotta. */
.rsvp .eyebrow { color: #FFFFFF; }
.rsvp .display .amp { color: #FFFFFF; }
.rsvp .lede { color: #FFFFFF; margin-bottom: 2.5rem; }
/* Label uses the deeper terracotta: --c-brand-deep is only 4.05:1 on blush. */
.rsvp .btn { background: var(--c-blush); color: var(--c-brand-text); }
.rsvp .btn:hover { background: #FFFFFF; color: var(--c-brand-text); }

.rsvp__note {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: #FFFFFF;
}
.rsvp__note .link {
  color: #FFFFFF;
  font-size: inherit;
  text-transform: none;
  letter-spacing: 0;
  background-image: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7));
}
.rsvp__note .link:hover { color: #FFFFFF; }


/* ---------- RSVP MODAL ----------
   Same overlay recipe as .menu: an author `display` beats the UA rule for
   [hidden], so without this the closed modal would stay laid out at
   opacity 0 and swallow taps. Materializes with blur + scale together,
   not a plain fade. */
.rsvp-modal[hidden] { display: none; }

.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  opacity: 0;
  transform: scale(1.02);
  transition: opacity var(--t-base) var(--e-out), transform var(--t-base) var(--e-out);
}
.rsvp-modal.is-open { opacity: 1; transform: none; }

.rsvp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(243, 227, 214, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.rsvp-modal__panel {
  position: relative;
  width: min(38rem, 100%);
  max-height: min(44rem, 85vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--c-shell);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
}

/* Sticky needs a normal in-flow box to stick relative to — float took it
   out of flow and broke the stickiness, so it's right-aligned with an
   auto left-margin instead. */
.rsvp-modal__close {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -0.5rem -0.75rem 0.75rem auto;
  border-radius: 999px;
  color: var(--c-ink-mute);
  background: var(--c-shell);
  transition: color var(--t-fast) var(--e-out), background-color var(--t-fast) var(--e-out);
}
.rsvp-modal__close:hover { color: var(--c-shell); background: var(--c-ink); }

.rsvp-form__intro { margin-bottom: 2rem; }
.rsvp-form__intro .eyebrow { margin-bottom: 1rem; }
.rsvp-form__intro .display { margin-bottom: 0.75rem; }
/* Pinyon Script reads thin next to the serif line above it at equal size —
   same fix as .rsvp__title .script on the RSVP section. */
.rsvp-form__intro .script {
  display: block;
  font-size: 1.3em;
  line-height: 1.2;
  margin-top: 0.1em;
}

/* Reset the UA fieldset chrome, then rebuild spacing by hand. */
.rsvp-field {
  border: 0;
  padding: 0;
  margin: 0 0 clamp(1.75rem, 4vw, 2.25rem);
}
.rsvp-field__label {
  display: block;
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.rsvp-group-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  letter-spacing: -0.01em;
  padding-top: 1.75rem;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--c-line);
}
/* The first group title sits right after the master attendance question —
   no need for a second hairline immediately under the first. */
#rsvp-if-attending > .rsvp-group-title:first-child { border-top: 0; padding-top: 0; }

/* ---------- Guests ---------- */
.rsvp-guest { margin-bottom: 1rem; }
.rsvp-guest:last-child { margin-bottom: 0; }
.rsvp-guest__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  margin-bottom: 0.5rem;
}
.rsvp-guest__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  align-items: end;
}
.rsvp-guest__row .rsvp-remove { grid-column: 1 / -1; justify-self: start; }

.rsvp-add,
.rsvp-remove {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-brand-text);
  transition: color var(--t-fast) var(--e-out);
}
.rsvp-add:hover,
.rsvp-remove:hover { color: var(--c-ink); }
.rsvp-remove { color: var(--c-ink-mute); }

/* ---------- Text inputs ---------- */
.rsvp-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  padding: 0.5rem 0.125rem;
  font-family: var(--f-sans);
  font-size: 1rem;
  color: var(--c-ink);
  transition: border-color var(--t-base) var(--e-out);
}
.rsvp-input::placeholder { color: var(--c-ink-mute); }
.rsvp-input:focus { outline: none; border-color: var(--c-brand-text); }
.rsvp-field__followup { margin-top: 1rem; }

.rsvp-textarea {
  width: 100%;
  min-height: 6rem;
  background: var(--c-blush);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-ink);
  resize: vertical;
  transition: border-color var(--t-base) var(--e-out);
}
.rsvp-textarea::placeholder { color: var(--c-ink-mute); }
.rsvp-textarea:focus { outline: none; border-color: var(--c-brand-text); }

/* ---------- Radios ----------
   Native input, kept fully interactive/keyboard-operable — only the paint
   is replaced. The dot is a ::before on the input itself rather than an
   extra span, which modern engines support fine once appearance is none. */
.rsvp-radios { display: grid; gap: 0.75rem; }
.rsvp-radio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  font-size: 0.9375rem;
  color: var(--c-ink-soft);
  cursor: pointer;
}
.rsvp-radio input[type="radio"] {
  appearance: none;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  border: 1.5px solid var(--c-line);
  border-radius: 50%;
  display: grid;
  place-content: center;
  transition: border-color var(--t-fast) var(--e-out);
}
.rsvp-radio input[type="radio"]::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--c-brand-text);
  transform: scale(0);
  transition: transform var(--t-fast) var(--e-out);
}
.rsvp-radio input[type="radio"]:checked { border-color: var(--c-brand-text); }
.rsvp-radio input[type="radio"]:checked::before { transform: scale(1); }
.rsvp-radio input[type="radio"]:focus-visible { outline: 2px solid var(--c-brand-text); outline-offset: 2px; }

.rsvp-form__note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--c-ink-mute);
}
.rsvp-form__note.is-error { color: var(--c-alert); font-weight: 500; }

/* Spam trap: off-screen rather than display:none, which some bots skip. */
.rsvp-hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Shown in place of the form once the reply is saved. */
.rsvp-thanks {
  padding: clamp(2rem, 6vw, 3.5rem) 0 1rem;
  text-align: center;
}
.rsvp-thanks:focus,
.rsvp-modal__panel:focus { outline: none; }
.rsvp-thanks .lede { margin-bottom: 2rem; }


/* ---------- GUIDE TEASER (home page, just before the FAQ) ---------- */

.guide-teaser { background: var(--c-blush-2); }
.guide-teaser .btn { margin-top: 0.75rem; }

/* Same Pinyon treatment as the reply card's "s'il vous plaît". Swashes
   overshoot the line box, hence the padding. */
.script-line {
  display: block;
  font-size: 1.3em;
  line-height: 1.2;
  margin-top: 0.06em;
  padding-bottom: 0.14em;
}

/* Two holiday snaps dropped on the table, in the spirit of the sticker.
   box-shadow (not filter: drop-shadow) so rotating them is safe. */
.polaroids {
  position: relative;
  width: min(25rem, 82vw);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.polaroids img {
  position: absolute;
  width: 60%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 0.4rem solid var(--c-shell);
  box-shadow: 0 18px 32px rgba(62, 37, 23, 0.2);
}
.polaroids img:first-child { left: 2%; top: 0; transform: rotate(-5deg); }
.polaroids img:last-child  { right: 2%; bottom: 0; transform: rotate(4deg); }


/* ============================================================
   GUIDE PAGE (guide.html)
   ============================================================ */

.guide-intro {
  text-align: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  transition: color var(--t-base) var(--e-out);
}
.guide-back:hover { color: var(--c-accent); }

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  margin-top: 2.25rem;
}

/* A loose strip of photos; every other one drops a little, like prints
   laid out on a table rather than a grid of thumbnails. */
.guide-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: start;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter);
}
.guide-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  /* Printed-photo edge, same as .polaroids and .photo */
  border: 0.4rem solid var(--c-shell);
  box-shadow: 0 18px 32px rgba(62, 37, 23, 0.2);
}
.guide-photos img:nth-child(even) { margin-top: clamp(1.5rem, 5vw, 4rem); }

/* Each region: title and intro on the left (sticky while its addresses
   scroll past), places on the right. */
.region {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.region + .region {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-top: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--c-line);
}
.region__head { position: sticky; top: 7.5rem; }
.region__head .display { margin-bottom: 1.25rem; }
/* A print under a region's intro. That makes the head too tall to stay
   pinned on a laptop screen, so those heads scroll normally. */
.region__head:has(.region__photo) { position: static; }
.region__photo {
  width: min(15rem, 100%);
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  border: 0.4rem solid var(--c-shell);
  box-shadow: 0 18px 32px rgba(62, 37, 23, 0.2);
  transform: rotate(-2.5deg);
}
.region__body > * + * { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.place__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.place__sub {
  margin: 1.75rem 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
}

/* Address list: the whole row is the link, so it's an easy tap target. */
.spots { border-top: 1px solid var(--c-line); }
.spots li { border-bottom: 1px solid var(--c-line-soft); }
.spots--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
}

.spot {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1.5rem;
  align-items: center;
  min-height: 44px;
  padding: 0.875rem 0;
}
.spot__name {
  font-family: var(--f-display);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  transition: color var(--t-base) var(--e-out);
}
.spot__note {
  grid-column: 1;
  margin-top: 0.125rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--c-ink-soft);
}
.spot__cta {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-brand-text);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--c-accent), var(--c-accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size var(--t-base) var(--e-out);
}
.spot:hover .spot__name { color: var(--c-accent); }
.spot:hover .spot__cta { background-size: 0% 1px; background-position: 100% 100%; }

.tip {
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  background: var(--c-blush-2);
  border-radius: var(--radius);
}
.tip .label { margin-bottom: 0.5rem; }

/* Tip with a small print beside it, tilted like the home page's .polaroids. */
.tip--photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 11.5rem);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}
.tip__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 0.35rem solid var(--c-shell);
  box-shadow: 0 14px 26px rgba(62, 37, 23, 0.2);
  transform: rotate(3deg);
}

.guide-outro {
  text-align: center;
  padding-top: 0;
}
.guide-outro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-top: 0.75rem;
}


/* ---------- FOOTER ---------- */

.footer {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  background: var(--c-blush);
}
.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__mark {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.footer__mark .amp { color: var(--c-accent); }

.footer__meta {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
}

.footer__credit {
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--c-ink-mute);
}
/* brand-mid rather than brand: a graphic needs 3:1 on blush, #CF7144 is 2.75:1 */
.footer__heart {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin: 0 0.15em;
  vertical-align: -0.12em;
  color: var(--c-brand-mid);
}


/* ============================================================
   SCROLL REVEALS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity var(--t-slow) var(--e-out),
    transform var(--t-slow) var(--e-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}
/* The gate itself needs JS, so without it we show a plain notice
   (see <noscript> in the markup) rather than an empty page. */
.noscript {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: var(--gutter);
  background: var(--c-blush);
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--c-ink-soft);
}
.noscript strong {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--c-ink);
}
.noscript a { color: var(--c-accent); text-decoration: underline; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 44rem) {
  /* Two columns get too narrow for the address before this point. */
  .essentials { grid-template-columns: 1fr; }
  .essential + .essential {
    border-left: 0;
    border-top: 1px solid var(--c-line);
  }
}

@media (max-width: 60rem) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split__media { max-width: 26rem; }
  .timeline__item { grid-template-columns: 1fr; column-gap: 0; row-gap: 0.625rem; }
  .timeline__day { grid-row: auto; padding-top: 0; }
  .region { grid-template-columns: 1fr; gap: 2rem; }
  .region__head { position: static; }
  .region__photo { width: min(15rem, 70%); margin-inline: auto; }
}

@media (max-width: 48rem) {
  .nav__group--left { display: none; }
  .nav__wordmark { justify-self: start; }
  .nav__inner { grid-template-columns: 1fr auto; height: 4rem; }
  .nav__rsvp { display: none; }
  .nav__burger { display: grid; }
  .nav__group--right { gap: 0.75rem; }

  .count { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .count li + li { border-left: 0; }
  .count li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.28); }
  .cards { grid-template-columns: 1fr; gap: 1rem; }
  /* Taller than the screen, so the photo runs behind Safari's floating
     toolbar and the strip beneath it; the extra goes into the bottom
     padding so the title stays centred in what's visible. */
  .hero {
    min-height: calc(100lvh + var(--hero-bleed));
    padding-bottom: calc(6rem + var(--hero-bleed));
  }
  .hero__cue { bottom: calc(2.75rem + var(--hero-bleed)); }
  .guide-photos { grid-template-columns: repeat(2, 1fr); }
  .spots--grid { grid-template-columns: 1fr; }
  .tip--photo { grid-template-columns: 1fr; }
  .card--hotel { grid-template-columns: 1fr; gap: 1.75rem; }
  .card--hotel__text, .hotel-photo { grid-column: 1; grid-row: auto; }
  .hotel-photo { max-width: 26rem; }
  .tip__photo { width: min(12rem, 62%); justify-self: center; margin-block: 0.5rem 0.75rem; }

  .rsvp-modal { padding: 0; }
  .rsvp-modal__panel { max-height: 100vh; height: 100%; width: 100%; border-radius: 0; }
  .rsvp-guest__row { grid-template-columns: 1fr; gap: 0.75rem; }
}

@media (min-width: 48.0625rem) {
  .menu { display: none !important; }
}

/* Four links beside the centred wordmark only just fit on small laptops. */
@media (min-width: 48.0625rem) and (max-width: 64rem) {
  .nav__group { gap: 1.25rem; }
  .nav__link { letter-spacing: 0.06em; }
}


/* ============================================================
   ACCESSIBILITY PREFERENCES
   Reduced motion ≠ no feedback — cross-fade instead of travel.
   ============================================================ */

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

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

  .reveal { transform: none !important; }
  .site, .gate, .menu, .rsvp-modal { transform: none !important; filter: none !important; }
  .hero__img, .gate__bg { transform: none !important; }
  .gate__inner, .hero__content { transform: none !important; }
  .hero__cue-line { animation: none; opacity: 0.7; }
  .card:hover { transform: none; }
  .field.is-shake { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav.is-stuck,
  .menu,
  .field,
  .rsvp-modal__backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.is-stuck { background: var(--c-blush); }
  .menu { background: var(--c-blush); }
  .field { background: rgba(48, 26, 15, 0.62); }
  .rsvp-modal__backdrop { background: var(--c-blush); }
  .nav:not(.is-stuck) .btn { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(48, 26, 15,0.55); }
}

@media (prefers-contrast: more) {
  :root {
    --c-ink-soft: #33382F;
    --c-ink-mute: #4A5044;
    --c-line: rgba(62, 37, 23, 0.4);
    --c-line-soft: rgba(62, 37, 23, 0.24);
  }
  .nav.is-stuck { background: var(--c-blush); backdrop-filter: none; }
  .field { border-width: 2px; border-color: #FFFFFF; background: rgba(48, 26, 15, 0.75); backdrop-filter: none; }
  .gate__bg::after { background: rgba(48, 26, 15, 0.7); }
  .hero__scrim { background: linear-gradient(180deg, rgba(48, 26, 15,0.62), rgba(48, 26, 15,0.68)); }
  .rsvp-radio input[type="radio"] { border-width: 2px; }
  .rsvp-input, .rsvp-textarea { border-width: 2px; }
}

@media print {
  .gate, .nav, .menu, .hero__cue, .rsvp-modal { display: none !important; }
  .site { opacity: 1 !important; filter: none !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
