/* ================================================================
   HAVA & JOSEPH — 25 & 27 AOÛT 2026
   Direction artistique : éditorial / luxe discret / Assouline
   ================================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Palette — rose pâle & doré chaud */
  --c-bg:          #f4dcd2;   /* rose pâle principal */
  --c-bg-warm:     #eccfc1;   /* rose plus profond */
  --c-bg-cream:    #faeae0;   /* rose crème */
  --c-ink:         #3a2a20;   /* brun espresso (texte) */
  --c-ink-soft:    #6b5347;   /* brun tiède (texte secondaire) */
  --c-gold:        #b58a4a;   /* doré chaud (accents) */
  --c-gold-deep:   #8c6a36;   /* doré profond (hover) */
  --c-gold-light:  #d9b87a;   /* doré lumineux (séparateurs) */
  --c-line:        rgba(181, 138, 74, 0.35);

  /* Typographies */
  --f-display: "Italiana", "Cormorant Garamond", serif;
  --f-serif:   "Cormorant Garamond", "Italiana", serif;
  --f-sans:    "Jost", -apple-system, "Helvetica Neue", sans-serif;

  /* Rythme */
  --pad-x:     clamp(1.5rem, 6vw, 6rem);
  --sp-xs:     clamp(0.5rem, 1vw, 0.75rem);
  --sp-s:      clamp(1rem,  2vw, 1.5rem);
  --sp-m:      clamp(1.5rem, 3vw, 2.5rem);
  --sp-l:      clamp(2.5rem, 5vw, 4.5rem);
  --sp-xl:     clamp(4rem,  9vw, 8rem);
  --sp-xxl:    clamp(6rem, 12vw, 11rem);

  /* Courbes */
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--c-ink);
}

p, address {
  margin: 0;
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--c-gold-light);
  color: var(--c-ink);
}

/* ---------- GLOBAL REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1.4s var(--ease-slow),
    transform 1.4s var(--ease-slow);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   NAV — header desktop + burger mobile
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--pad-x);
  transition: background-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}

.nav.is-scrolled {
  background: rgba(244, 220, 210, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}

.nav__monogram {
  display: inline-flex;
  align-items: center;
  color: #fbf5ef;
  transition: color 0.5s var(--ease), text-shadow 0.5s var(--ease);
  position: relative;
  z-index: 60;
}

.nav__logo {
  height: clamp(58px, 8vw, 92px);
  width: auto;
  display: block;
  filter:
    brightness(0) saturate(100%) invert(100%)
    drop-shadow(0 2px 12px rgba(0, 0, 0, 0.25));
  transition: filter 0.5s var(--ease), opacity 0.5s var(--ease);
}

.nav.is-scrolled .nav__monogram {
  color: var(--c-ink);
  text-shadow: none;
}

.nav.is-scrolled .nav__logo {
  filter:
    brightness(0) saturate(100%)
    invert(59%) sepia(27%) saturate(818%) hue-rotate(356deg) brightness(94%) contrast(90%);
}

.nav.is-open .nav__logo {
  filter:
    brightness(0) saturate(100%)
    invert(59%) sepia(27%) saturate(818%) hue-rotate(356deg) brightness(94%) contrast(90%);
}

/* ---------- Desktop menu ---------- */
.nav__desktop {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

.nav__desktop a {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: #fbf5ef;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  position: relative;
  padding-bottom: 0.4em;
  transition: color 0.5s var(--ease), text-shadow 0.5s var(--ease);
}

.nav__desktop a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--c-gold-light);
  transition: width 0.5s var(--ease), left 0.5s var(--ease), background-color 0.5s var(--ease);
}

.nav__desktop a:hover::after {
  width: 100%;
  left: 0;
}

.nav.is-scrolled .nav__desktop a {
  color: var(--c-ink);
  text-shadow: none;
}

.nav.is-scrolled .nav__desktop a::after {
  background: var(--c-gold);
}

/* ---------- Burger toggle (mobile only) ---------- */
.nav__toggle {
  display: none;
  position: relative;
  z-index: 60;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__toggle-line {
  display: block;
  width: 26px;
  height: 1px;
  background: #fbf5ef;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.45s var(--ease),
    width 0.45s var(--ease),
    background-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.nav.is-scrolled .nav__toggle-line {
  background: var(--c-ink);
  box-shadow: none;
}

.nav__toggle-line:nth-child(2) {
  width: 18px;
  align-self: flex-end;
}

.nav.is-open .nav__toggle-line {
  background: var(--c-ink);
  box-shadow: none;
}

.nav.is-open .nav__toggle-line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
  width: 26px;
}

.nav.is-open .nav__toggle-line:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
  width: 26px;
  align-self: center;
}

/* ---------- Drawer (mobile) ---------- */
.nav__drawer {
  position: fixed;
  inset: 0;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-l);
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    visibility 0s linear 0.5s;
  padding: var(--sp-xl) var(--pad-x);
}

.nav.is-open .nav__drawer {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    visibility 0s linear 0s;
}

.music-toggle {
  position: fixed;
  right: clamp(0.8rem, 2.4vw, 1.4rem);
  bottom: clamp(0.8rem, 2.8vw, 1.6rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--c-gold);
  background: rgba(251, 245, 239, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--c-ink);
  padding: 0.62rem 0.95rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.music-toggle:hover {
  transform: translateY(-1px);
  background: rgba(251, 245, 239, 0.96);
}

.music-toggle__icon {
  font-family: var(--f-display);
  color: var(--c-gold-deep);
  font-size: 1rem;
  line-height: 1;
}

.music-toggle__label {
  font-family: var(--f-sans);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.23em;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-m);
  text-align: center;
}

.nav__list li {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.25rem;
  font-family: var(--f-display);
  font-size: clamp(2rem, 7vw, 3.2rem);
  color: var(--c-ink);
  line-height: 1;
}

.nav__list li span {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.5em;
  color: var(--c-gold);
  letter-spacing: 0.1em;
}

.nav__list a {
  position: relative;
  padding-bottom: 0.1em;
  transition: color 0.5s var(--ease);
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--c-gold);
  transition: width 0.5s var(--ease), left 0.5s var(--ease);
}

.nav__list a:hover {
  color: var(--c-gold-deep);
}

.nav__list a:hover::after {
  width: 100%;
  left: 0;
}

.nav__dates {
  margin-top: var(--sp-m);
  font-family: var(--f-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--c-gold);
  font-weight: 300;
  text-align: center;
}

body.is-locked {
  overflow: hidden;
}

/* ---------- Breakpoint : burger on small screens ---------- */
@media (max-width: 860px) {
  .nav__desktop {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
}

@media (min-width: 861px) {
  .nav__drawer {
    display: none !important;
  }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: #fbf5ef;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
  animation: heroZoom 16s var(--ease-slow) forwards;
  filter: saturate(0.92) contrast(0.98);
}

@keyframes heroZoom {
  0%   { transform: scale(1.02); }
  100% { transform: scale(1.14); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.10) 0%,
      rgba(0, 0, 0, 0.38) 65%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.08) 38%,
      rgba(0, 0, 0, 0.55) 100%
    );
}

.hero__veil::after {
  /* grain subtil type papier */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: heroFade 2.6s var(--ease-slow) both;
}

@keyframes heroFade {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--c-gold-light);
  margin-bottom: var(--sp-m);
  opacity: 0.9;
}

.hero__overline {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.15em;
  margin-bottom: var(--sp-s);
  color: #f6e9d9;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #fbf5ef;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

.hero__amp {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  color: #ffffff;
  font-size: 0.85em;
  transform: translateY(-0.05em);
}

.hero__dates {
  margin-top: var(--sp-m);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: #ffffff;
}

/* Countdown */
.countdown {
  margin-top: var(--sp-l);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.75rem);
  color: #fbf5ef;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3rem;
}

.countdown__value {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  font-weight: 400;
  color: #ffffff;
}

.countdown__label {
  margin-top: 0.6rem;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: #ffffff;
  opacity: 1;
}

.countdown__sep {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
  color: #ffffff;
  opacity: 1;
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vw, 3rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  z-index: 3;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: var(--c-gold-light);
  opacity: 0.7;
  animation: scrollPulse 2.4s var(--ease-slow) infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0.2); opacity: 0.2; }
  50%  { transform: scaleY(1);   opacity: 0.9; }
  100% { transform: scaleY(0.2); opacity: 0.2; transform-origin: bottom; }
}

.hero__scroll-text {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: #f6e9d9;
  opacity: 0.85;
}

/* ================================================================
   OUVERTURE — préambule éditorial
   ================================================================ */
.overture {
  padding: var(--sp-xxl) var(--pad-x) var(--sp-xl);
  background: var(--c-bg);
  text-align: center;
}

.overture__inner {
  max-width: 640px;
  margin: 0 auto;
}

.overture__mark {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--c-gold);
  letter-spacing: 0.18em;
  margin-bottom: var(--sp-l);
}

.overture__text {
  font-family: var(--f-serif);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.7;
  color: var(--c-ink);
  font-weight: 300;
  margin-bottom: var(--sp-m);
}

.overture__text em {
  font-style: italic;
}

.overture__ref {
  font-family: var(--f-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--c-gold);
  font-weight: 300;
}

/* ================================================================
   INTERLUDE — planche photo pleine largeur entre sections
   ================================================================ */
.interlude {
  margin: 0;
  width: 100%;
  overflow: hidden;
  background: var(--c-bg);
}

.interlude__img {
  width: 100%;
  max-height: 92vh;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  filter: saturate(0.92) contrast(0.98);
  transition: transform 1.6s var(--ease-slow);
}

.interlude:hover .interlude__img {
  transform: scale(1.015);
}

@media (max-width: 720px) {
  .interlude__img {
    aspect-ratio: 4 / 5;
    max-height: 85vh;
  }
}

/* ================================================================
   SECTIONS — structure éditoriale (photo header + texte)
   ================================================================ */
.section {
  padding-bottom: var(--sp-xxl);
  background: var(--c-bg);
}

.section--houppa {
  background: var(--c-bg);
}

.section--rsvp {
  background: var(--c-bg-cream);
  padding-top: var(--sp-xxl);
}

.section__header {
  margin: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.section__header-img {
  width: 100%;
  max-height: 92vh;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  filter: saturate(0.92) contrast(0.98);
  transition: transform 1.6s var(--ease-slow);
}

.section__header:hover .section__header-img {
  transform: scale(1.015);
}

.section__body {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-xxl) var(--pad-x) 0;
  text-align: center;
}

.section__chapter {
  font-family: var(--f-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--c-gold);
  margin-bottom: var(--sp-s);
}

.section__title {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1;
  font-weight: 400;
  color: var(--c-gold);
  margin-bottom: var(--sp-m);
}

.section__rule {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--c-gold);
  margin: 0 auto var(--sp-l);
  position: relative;
}

.section__rule::before,
.section__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--c-gold);
  border-radius: 50%;
  transform: translateY(-50%);
}

.section__rule::before { left: -12px; }
.section__rule::after  { right: -12px; }

.section__date {
  font-family: var(--f-display);
  font-size: clamp(1.95rem, 4.2vw, 3rem);
  font-weight: 400;
  color: var(--c-ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.section__time {
  font-family: var(--f-display);
  font-style: normal;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--c-gold);
  margin-bottom: var(--sp-m);
  letter-spacing: 0.03em;
}

.section__address {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--c-ink-soft);
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-m);
}

.section__note {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--c-ink-soft);
  margin-bottom: var(--sp-l);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 1.05rem 2.4rem;
  border: 1px solid var(--c-gold);
  color: var(--c-ink);
  background: transparent;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition:
    color 0.6s var(--ease),
    border-color 0.6s var(--ease),
    letter-spacing 0.6s var(--ease);
}

.btn span {
  position: relative;
  z-index: 2;
  display: block;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-gold);
  transform: translateY(101%);
  transition: transform 0.7s var(--ease-slow);
  z-index: 1;
}

.btn:hover {
  color: #fbf5ef;
  border-color: var(--c-gold);
  letter-spacing: 0.45em;
}

.btn:hover::before {
  transform: translateY(0);
}

/* ================================================================
   HOUPPA — invitation éditoriale
   ================================================================ */
.section__body--invitation {
  max-width: 760px;
}

.families {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
  margin-bottom: var(--sp-l);
}

.families__col {
  text-align: center;
}

.families__parents {
  font-family: var(--f-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: var(--c-ink);
  margin-bottom: var(--sp-s);
  font-weight: 400;
}

.families__line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.families__amp {
  color: var(--c-gold);
}

.families__grand {
  font-family: var(--f-serif);
  font-style: normal;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--c-ink);
  line-height: 1.6;
}

.families__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.families__divider span {
  display: block;
  width: 1px;
  height: 70px;
  background: var(--c-gold);
  opacity: 0.55;
}

.invitation__intro {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin: var(--sp-l) 0 var(--sp-l);
}

.invitation__names {
  margin: var(--sp-l) 0 var(--sp-l);
}

.invitation__title {
  font-family: var(--f-display);
  font-size: clamp(4.1rem, 11vw, 8.6rem);
  line-height: 1;
  font-weight: 400;
  color: var(--c-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  margin-bottom: var(--sp-s);
}

.invitation__amp {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--c-gold);
  font-size: 0.85em;
  transform: translateY(-0.05em);
}

.invitation__hebrew {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--c-gold);
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.invitation__text {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--c-ink-soft);
  margin: var(--sp-l) 0 var(--sp-m);
}

/* ---------- In memoriam ---------- */
.memoriam {
  margin-top: var(--sp-xxl);
  padding-top: var(--sp-l);
  position: relative;
}

.memoriam__rule {
  display: block;
  width: 1px;
  height: 50px;
  background: var(--c-gold);
  opacity: 0.5;
  margin: 0 auto var(--sp-l);
}

.memoriam__intro {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--c-ink-soft);
  line-height: 1.8;
  margin-bottom: var(--sp-m);
}

/* ================================================================
   RSVP
   ================================================================ */
.rsvp {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--sp-xl) var(--pad-x) var(--sp-xxl);
  background: var(--c-bg-cream);
  text-align: center;
  position: relative;
  border: 1px solid var(--c-line);
  box-shadow: 0 60px 120px -80px rgba(58, 42, 32, 0.35);
}

.section--rsvp {
  padding: var(--sp-xl) var(--pad-x);
  background: var(--c-bg);
}

.rsvp .section__chapter,
.rsvp .section__title,
.rsvp .section__rule {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.rsvp__intro {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--c-ink);
  line-height: 1.8;
  margin-bottom: var(--sp-l);
}

.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-m);
  text-align: left;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-m);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.field label,
.field legend {
  font-family: var(--f-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--c-ink);
  font-weight: 300;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-line);
  padding: 0.6rem 0;
  font-family: var(--f-serif);
  font-size: 1.1rem;
  color: var(--c-ink);
  transition: border-color 0.5s var(--ease);
  border-radius: 0;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--c-gold);
}

.field select {
  appearance: none;
  max-width: 90px;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
  border: 1px solid var(--c-line);
  padding: 0.9rem 1rem;
}

.field--radio,
.field--checkbox {
  border: none;
  padding: 0;
  margin: 0;
}

.field--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.field--inline legend {
  width: 100%;
}

.event-block {
  border-top: 1px solid var(--c-line);
  padding-top: var(--sp-m);
}

.event-block__title {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  color: var(--c-ink);
  margin-bottom: 0.85rem;
}

.event-count {
  margin-top: 0.3rem;
}

.guest-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.guest-list__title {
  font-family: var(--f-sans);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--c-ink);
  opacity: 0.75;
  margin-top: 0.45rem;
}

.field--radio legend,
.field--checkbox legend {
  margin-bottom: 0.8rem;
}

.radio,
.check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-serif);
  font-size: 1.05rem;
  color: var(--c-ink);
  cursor: pointer;
  padding: 0.35rem 0;
}

.radio input,
.check input {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--c-gold);
  background: transparent;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.4s var(--ease);
}

.radio input { border-radius: 50%; }

.radio input:checked,
.check input:checked {
  background: var(--c-gold);
}

.radio input:checked::after,
.check input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--c-bg-cream);
  border-radius: inherit;
}

.check input { border-radius: 0; }

.btn--submit {
  align-self: center;
  margin-top: var(--sp-s);
}

.rsvp__confirm {
  margin-top: var(--sp-m);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--c-ink);
  text-align: center;
}

/* ================================================================
   COLOPHON (footer)
   ================================================================ */
.colophon {
  padding: var(--sp-xl) var(--pad-x);
  text-align: center;
  background: var(--c-bg);
  color: var(--c-ink-soft);
}

.colophon__rule {
  display: block;
  width: 1px;
  height: 60px;
  background: var(--c-gold);
  opacity: 0.5;
  margin: 0 auto var(--sp-m);
}

.colophon__monogram {
  color: var(--c-ink);
  margin-bottom: var(--sp-xs);
}

.colophon__logo {
  height: clamp(110px, 18vw, 190px);
  width: auto;
  margin: 0 auto;
  filter:
    brightness(0) saturate(100%)
    invert(59%) sepia(27%) saturate(818%) hue-rotate(356deg) brightness(94%) contrast(90%);
}

.colophon__line {
  font-family: var(--f-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--c-gold);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 720px) {
  body { font-size: 16px; }

  .hero__title { font-size: clamp(3rem, 15vw, 5rem); }
  .hero__eyebrow { letter-spacing: 0.4em; }

  .countdown {
    gap: 0.25rem;
    margin-top: var(--sp-m);
  }

  .countdown__item { min-width: 2.4rem; }
  .countdown__label { font-size: 0.55rem; letter-spacing: 0.25em; }

  .section__date { font-size: clamp(2.05rem, 8vw, 2.55rem); }
  .section__time { font-size: clamp(1.95rem, 7vw, 2.25rem); }

  .families {
    grid-template-columns: 1fr;
    gap: var(--sp-m);
  }

  .families__divider span {
    width: 40px;
    height: 1px;
    margin: 0 auto;
  }

  .section__header-img {
    aspect-ratio: 4 / 5;
    max-height: 85vh;
  }

  .rsvp { padding: var(--sp-l) 1.5rem; }
  .field-grid { grid-template-columns: 1fr; }
  .nav__logo { height: clamp(68px, 20vw, 106px); }
  .colophon__logo { height: clamp(132px, 38vw, 220px); }
  .music-toggle { padding: 0.58rem 0.78rem; }
  .music-toggle__label { font-size: 0.56rem; letter-spacing: 0.2em; }
}

@media (min-width: 721px) {
  .section__chapter { font-size: 0.76rem; }
  .section__date { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
  .section__time { font-size: clamp(1.95rem, 3.2vw, 2.55rem); }
  .section__address { font-size: 1.08rem; }
  .section__note { font-size: 1.14rem; }
  .invitation__intro,
  .invitation__text,
  .memoriam__intro,
  .rsvp__intro { font-size: clamp(1.08rem, 2.1vw, 1.3rem); }
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="number"],
  .field select,
  .field textarea { font-size: 1.2rem; }
  .radio,
  .check { font-size: 1.14rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}
