/* ============ Design tokens ============ */
:root {
  --cream: #e8ded4;
  --cream-deep: #e9e1d3;
  --panel: #ece4d6;
  --ink: #232323;
  --ink-soft: #5c5445;
  --taupe: #8c8171;
  --taupe-light: #cbbfaf;
  --gold: #a98b5d;
  --line: #d9cfbd;
  --white-line: rgba(255, 255, 255, 0.6);

  --font-display: 'Cormorant', 'Cormorant Garamond', 'Georgia', serif;
  --font-script: 'Caveat', cursive;
  --font-sans: 'Montserrat', sans-serif;

  --max-width: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

section { position: relative; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}
.eyebrow--center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  text-align: center;
  margin: 0 0 2.5rem;
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid var(--ink);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--solid {
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  width: 100%;
}
.btn--solid:hover { background: var(--ink-soft); }
.btn--solid:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============ Envelope intro ============ */
/* The flap is cut from the photo along the envelope's real V creases,
   with the wax seal kept whole inside it, so it lifts as one piece. */

body.loader-active { overflow: hidden; }

.envelope-loader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 999;
  cursor: pointer;
  perspective: 1500px;
  perspective-origin: 50% 42%;
  overflow: hidden;
  /* Starts while the flap is still turning, so the page fades up through it. */
  transition: opacity 1.1s ease, visibility 1.1s ease;
}
.envelope-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  /* Room above for the flap as it turns over. */
  padding-top: 18vh;
  transform-style: preserve-3d;
}

.envelope-card {
  position: relative;
  /* 78vh keeps the whole card, plus the room above it, on short screens. */
  width: min(80vw, 440px, 78vh);
  aspect-ratio: 637 / 470;
  transform-style: preserve-3d;
  transform-origin: 50% 56%;
  transition: transform 1.5s cubic-bezier(0.32, 0.02, 0.2, 1),
              opacity 1.05s ease 0.25s;

  /* The envelope's own V creases, bulging around the wax seal so it
     stays whole and lifts together with the flap. */
  --flap-shape: polygon(
    0% 0%, 100% 0%, 100% 10.47%,
    64.46% 50.60%, 64.85% 59.49%, 62.51% 67.15%, 58.01% 72.74%,
    50.94% 75.32%,
    43.88% 72.74%, 39.37% 67.15%, 37.03% 59.49%, 36.92% 53.81%,
    0% 9.13%
  );
}
.env-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 18px 40px rgba(92, 84, 69, 0.22);
}

/* Paper revealed underneath once the flap lifts away. */
.env-inside {
  position: absolute;
  inset: 0;
  clip-path: var(--flap-shape);
  /* Base is the photo's own paper tone, so only the shadow reads as a
     difference — and it eases off gradually instead of banding. */
  background:
    linear-gradient(to bottom,
      rgba(88, 70, 50, 0.085) 0%,
      rgba(88, 70, 50, 0.046) 25%,
      rgba(88, 70, 50, 0.018) 50%,
      rgba(88, 70, 50, 0.005) 75%,
      rgba(88, 70, 50, 0) 100%),
    #d6cabf;
  opacity: 0;
  transition: opacity 0.55s ease 0.1s;
}
.envelope-card.is-open .env-inside { opacity: 1; }

/* No clip-path on the rotating element itself: clipping would flatten
   its 3D context and the underside would cover the photo. */
.env-flap {
  position: absolute;
  inset: 0;
  transform-origin: 50% 0%;
  transform-style: preserve-3d;
  transition: transform 1.15s cubic-bezier(0.34, 0.02, 0.24, 1);
}
/* Two sides: the seal sits on the outer face, so once the flap turns past
   upright only its plain underside shows. The clip-path lives on the faces,
   never on .env-flap itself, or it would flatten the 3D and break this. */
.env-flap-face,
.env-flap-back {
  position: absolute;
  inset: 0;
  clip-path: var(--flap-shape);
  backface-visibility: hidden;
}
.env-flap-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.env-flap-back {
  /* Darker towards the fold, matching the paper measured in the photo. */
  background: linear-gradient(to bottom, #c8bbad 0%, #d4c8bc 48%, #dbd1c6 100%);
  /* rotateY, not rotateX: turning it about the vertical axis leaves the
     clipped V in place, where rotateX would flip the shape upside down. */
  transform: rotateY(180deg);
}
.envelope-card.is-open .env-flap {
  transform: rotateX(126deg);
}

/* The envelope grows towards you and dissolves as it opens. */
.envelope-card.is-open {
  transform: scale(1.9);
  opacity: 0;
}

.envelope-hint {
  position: relative;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: envelope-hint-pulse 1.8s ease-in-out infinite;
}
.envelope-hint.is-hidden-hint {
  opacity: 0;
  animation: none;
  transition: opacity 0.3s ease;
}
@keyframes envelope-hint-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============ Nav ============ */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem;
}
.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(242, 237, 229, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-links {
  position: absolute;
  top: 60px;
  right: 1.2rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0;
  min-width: 180px;
  box-shadow: 0 12px 30px rgba(58, 51, 39, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
}
.nav-links.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-link {
  display: block;
  padding: 0.65rem 1.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.nav-link:hover { color: var(--gold); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem 4rem;
  overflow: hidden;
  background: var(--cream);
}

.hero-letter {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 105vw);
  opacity: 0.9;
  pointer-events: none;
}
.hero-letter--top { top: 3%; transform: translateX(-50%) translateX(-18px); }
.hero-letter--bottom { bottom: 2%; transform: translateX(-50%) translateX(45px); }
.hero-letter .monogram { width: 100%; height: auto; }

@media (min-width: 860px) and (max-height: 950px) {
  .hero-letter { width: min(260px, 105vw); }
}
@media (min-width: 860px) and (max-height: 820px) {
  .hero-letter { width: min(200px, 105vw); }
}

@media (max-width: 480px) {
  .hero-letter--top { top: -2%; transform: translateX(-50%) translateX(-64px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 480px) {
  .hero-content { margin-top: 2.2rem; }
}

.hero-content .eyebrow { margin-bottom: 0.8rem; }

.couple-names {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.4rem, 7.6vw, 3.8rem);
  white-space: nowrap;
  margin: 0 0 1.6rem;
  line-height: 1.15;
  color: #6b6458;
}
@media (max-width: 480px) {
  .couple-names { font-size: clamp(1rem, 5.6vw, 3.8rem); }
}
.couple-names .amp {
  color: #6b6458;
  font-size: 0.85em;
  padding: 0 0.15em;
}

.hero-date-block {
  margin-bottom: 1.6rem;
}
.hero-datestamp {
  font-family: 'Cardo', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 3.1rem);
  letter-spacing: 0.03em;
  color: #6b6458;
  margin: 0 0 0.85rem;
}
.hero-meta {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin: 0 0 2.2rem;
}

.hero-note {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--taupe);
  margin: 0 0 2.2rem;
}

/* ============ Details / Timeline ============ */
.details {
  padding: 6rem 1.5rem 5rem;
  background: var(--cream);
}
.details .section-title {
  color: var(--gold);
}

.tl-photo-wrap {
  max-width: 420px;
  margin: 0 auto;
}
.tl-photo {
  width: 100%;
  height: auto;
}

.tl-calendar {
  max-width: 400px;
  margin: 0 auto 3rem;
  text-align: center;
}
.tl-calendar-month {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}
.tl-calendar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tl-calendar-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
}
.tl-calendar-dow {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
}
.tl-calendar-date {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.tl-calendar-date--heart {
  position: relative;
  background: none;
  width: 34px;
  height: 34px;
}
.tl-calendar-heart-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  fill: var(--gold);
}
.tl-calendar-date-num {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  transform: translateY(-1px);
}

.tl3 {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  padding-bottom: 2.5rem;
}
.tl3-curve {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.tl3-curve path { fill: none; }
#tl3CurvePath { stroke: var(--line); stroke-width: 1.4; }
#tl3Heart { stroke: var(--gold); stroke-width: 1.4; }
#tl3Flick { stroke: var(--line); stroke-width: 1.4; }

.tl3-station {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 10px 1fr;
  align-items: center;
  column-gap: 0.6rem;
  margin-bottom: 3rem;
}
.tl3-station:last-child { margin-bottom: 0; }

.tl3-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.tl3-station--left .tl3-group { grid-column: 1; justify-content: flex-end; margin-right: 14px; }
.tl3-station--left .tl3-dot { grid-column: 2; justify-self: start; }
.tl3-station--left .tl3-text { text-align: right; }

.tl3-station--right .tl3-group { grid-column: 3; justify-content: flex-start; }
.tl3-station--right .tl3-dot { grid-column: 2; justify-self: end; }
.tl3-station--right .tl3-text { text-align: left; }

.tl3-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}
.tl3-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tl3-icon svg {
  width: 78%;
  height: 78%;
  color: #141414;
}

.tl3-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.tl3-text { min-width: 0; }
.tl3-time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.tl3-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.4;
}
.tl3-label span {
  display: block;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

.map-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  border-bottom: 1px solid transparent;
}
.map-link:hover { border-bottom-color: var(--gold); }

@media (max-width: 480px) {
  .tl3-icon { width: 40px; height: 40px; }
  .tl3-label { font-size: 0.66rem; }
  .tl3-label span { font-size: 0.78rem; }
}

.rsvp-deadline {
  max-width: var(--max-width);
  margin: 3.5rem auto 0;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.rsvp-deadline p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}
.rsvp-deadline strong { color: var(--ink); }

/* ============ Countdown ============ */
.countdown {
  position: relative;
  padding: 6.5rem 1.5rem;
  background: var(--taupe-light);
  text-align: center;
  overflow: hidden;
}
.countdown::before,
.countdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 50px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.countdown::before {
  top: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 50' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L400,0 L400,10 C340,28 300,2 240,14 C180,26 140,8 80,18 C40,24 20,10 0,14 Z' fill='%23e8ded4'/%3E%3C/svg%3E");
}
.countdown::after {
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 50' preserveAspectRatio='none'%3E%3Cpath d='M0,50 L400,50 L400,40 C340,22 300,48 240,36 C180,24 140,42 80,32 C40,26 20,40 0,36 Z' fill='%23e8ded4'/%3E%3C/svg%3E");
}
.countdown .section-title {
  position: relative;
  z-index: 1;
  color: var(--ink);
}
.countdown-grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  max-width: 480px;
  margin: 0 auto;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  flex: 1;
}
.countdown-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 8vw, 2.8rem);
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  margin-top: 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============ Venue / Location ============ */
.venue {
  padding: 5rem 1.5rem 6rem;
  background: var(--taupe-light);
  border-radius: 32px 32px 32px 32px;
}
.venue .section-title { color: var(--ink); }
.venue .btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}
.venue .btn--outline:hover {
  background: var(--ink);
  color: #ffffff;
}

.venue-toggle {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  max-width: 360px;
  margin: 0 auto 2rem;
}
.venue-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(35, 35, 35, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s ease;
}
.venue-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.venue-card {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  min-height: 190px;
}
.venue-panel {
  position: absolute;
  inset: 0;
  text-align: center;
  padding: 2rem 1.6rem;
  border: 1px solid rgba(35, 35, 35, 0.2);
  border-radius: 16px;
  background: rgba(35, 35, 35, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.venue-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}
.venue-time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.venue-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 0.3rem;
}
.venue-address {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}

@media (max-width: 480px) {
  [data-panel="reception"] .venue-name { font-size: 1.9rem; }
}

/* ============ Family ============ */
.family {
  padding: 5rem 1.5rem 6rem;
  background: var(--cream);
}
.family .section-title {
  color: var(--gold);
}
.family-grid {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.family-card {
  text-align: center;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.family-names {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
}
.family-amp {
  display: block;
  color: var(--gold);
  font-size: 1rem;
  margin: 0.15rem 0;
}

/* ============ RSVP ============ */
.rsvp {
  padding: 6rem 1.5rem 7rem;
  background: var(--taupe-light);
  border-radius: 32px;
  margin: 0 1rem;
}
.rsvp .section-title {
  color: var(--ink);
}
.rsvp-intro {
  max-width: 480px;
  margin: 0 auto 2.8rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}
.rsvp-open-wrap .btn--solid,
.rsvp-form .btn--solid {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}
.rsvp-open-wrap .btn--solid:hover,
.rsvp-form .btn--solid:hover { background: var(--ink-soft); }

.nowrap { white-space: nowrap; }

.rsvp-open-wrap {
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}
.rsvp-open-wrap .btn { width: 100%; }
.rsvp-open-wrap.is-hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  margin: 0 auto;
}

.rsvp-form-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s ease, opacity 0.4s ease;
}
.rsvp-form-wrap > form { overflow: hidden; min-height: 0; }
.rsvp-form-wrap.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 2rem;
}

.rsvp-form {
  position: relative;
  max-width: 480px;
  margin: 2.6rem auto 0;
  background: rgba(35, 35, 35, 0.05);
  border: 1px solid rgba(35, 35, 35, 0.18);
  border-radius: 4px 4px 18px 18px;
  padding: 2.6rem 1.8rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.rsvp-form::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -2.4rem;
  height: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C50,8 100,8 150,22 C200,36 250,4 300,14 C350,24 380,30 400,18 L400,40 Z' fill='rgba(35,35,35,0.05)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.rsvp-form .form-row label,
.rsvp-form .field-hint {
  color: #3a2f22;
}
.rsvp-form .radio-option { color: var(--ink); }

.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--taupe);
}
.form-row input[type="text"],
.form-row input[type="number"],
.form-row textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #cfcac0;
  opacity: 1;
}
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
.radio-option input { accent-color: var(--gold); width: 16px; height: 16px; }

.form-status {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  min-height: 1.2em;
}
.form-status.success { color: #5c7a52; }
.form-status.error { color: #a05c4a; }

.field-hint {
  font-size: 0.72rem;
  color: var(--taupe);
  letter-spacing: normal;
  text-transform: none;
}

.extra-fields {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s ease, opacity 0.3s ease;
}
.extra-fields > * { overflow: hidden; }
.extra-fields.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.extra-fields-inner {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  min-height: 0;
}

/* ============ Footer ============ */
.site-footer {
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  background: var(--cream);
}
.footer-monogram-img {
  width: 70px;
  height: auto;
  margin: 0 auto 0.6rem;
  filter: brightness(0) opacity(0.65);
}
.site-footer p {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin: 0;
}

/* ============ Reveal-on-scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 560px) {
  .rsvp-form { padding: 1.8rem 1.3rem; }
}

@media (min-width: 900px) {
  .details, .rsvp { padding-left: 3rem; padding-right: 3rem; }
}
