/* =====================================================================
   Googs at 70  ·  Paperless Post / Evite energy
   Green linen stage · black card hero with gold "seventy" + photo ·
   cream envelope tucked behind, flap open to marbled gold liner.
   ===================================================================== */

:root {
  --linen-image: none;
  --olive:       #4a5c2c;
  --olive-deep:  #38491f;
  --olive-shadow:#28361a;

  --ivory:       #f6f1e6;
  --paper:       #faf5ea;
  --cream:       #f7eed4;
  --cream-deep:  #ead9ad;

  --ink:         #0d0d0d;
  --ink-soft:    #2a2620;
  --ink-mute:    #5a5145;
  --muted:       #8c8268;

  --gold-1:      #f6e3a0;
  --gold-2:      #c9a44e;
  --gold-3:      #a07a2a;
  --gold-deep:   #876417;
  --gold-line:   rgba(160,122,42,0.35);

  --hairline:        rgba(13,13,13,0.16);
  --hairline-light:  rgba(13,13,13,0.08);

  --env-cream:   #faf2dc;
  --env-edge:    rgba(70,50,15,0.28);
  --env-shadow:  0 24px 40px -16px rgba(0,0,0,0.55),
                 0 8px 18px -8px rgba(0,0,0,0.35);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: 56px; }
html, body { background: #efe4cb; color: var(--ink); }
body {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
em { font-style: italic; }

/* =====================================================================
   STAGE :: green linen / velvet backdrop
   ===================================================================== */
.stage {
  position: relative;
  min-height: 100vh;     /* fallback for old browsers */
  min-height: 100dvh;    /* dynamic viewport — always = current visible area */
  height: 100vh;
  height: 100dvh;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
}

/* Marble background — the gold-marble liner is the hero canvas */
.linen {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #efe4cb;
  background-image: url('liner-marble.jpg?v=2');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Cream wash on top so the marble reads as a soft texture, not a loud pattern */
.linen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(247,238,212,0.32) 0%, rgba(220,195,140,0.42) 100%),
    linear-gradient(180deg, rgba(252,244,222,0.36) 0%, rgba(220,190,130,0.42) 100%);
  pointer-events: none;
}

/* =====================================================================
   COMPOSITION :: card centered, envelope tucked behind
   ===================================================================== */
.composition {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 440px;
  height: 88vh;
  height: 88dvh;
  z-index: 2;
}

@media (min-width: 720px) {
  .composition { max-width: 480px; }
}

/* ---------- ENVELOPE (real layered assets: marble + shadow + cream PNG) ---------- */
.envelope {
  position: absolute;
  /* envelope visibly to the left of the card; card overlaps its right edge */
  top: 4%;
  left: -34%;
  width: 72%;
  aspect-ratio: 620 / 765;   /* matches the PNG asset dimensions */
  transform: rotate(-3deg);
  z-index: 1;
  filter:
    drop-shadow(0 22px 30px rgba(0,0,0,0.4))
    drop-shadow(0 6px 12px rgba(0,0,0,0.22));
  opacity: 0;
  animation: env-enter 1.0s cubic-bezier(.2,.7,.2,1) 0.15s forwards;
}
@keyframes env-enter {
  0%   { opacity: 0; transform: rotate(-8deg) translate(-14px, 6px) scale(0.94); }
  100% { opacity: 1; transform: rotate(-3deg) translate(0, 0)        scale(1); }
}

@media (min-width: 720px) {
  .envelope { left: -32%; width: 68%; }
}

.envelope img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  object-fit: cover;
}
/* Layering:
   1. envelope.png — cream envelope (fully opaque house shape, drawn with grey interior in the flap)
   2. marble — gold marble texture, ON TOP, CLIPPED to the open-flap shape (pentagon)
              so it only paints over the grey flap interior, not the cream body
   3. shadow.png — soft edge shading layered on top of the marble for depth (the shadow asset
              is mostly transparent with bright edges around the diamond)
*/
.env-shape  { z-index: 1; }
.env-liner  {
  z-index: 2;
  /* Triangle matching the open-flap interior in envelope.png — wide top, V at center */
  clip-path: polygon(8% 11%, 92% 11%, 50% 54%);
  -webkit-clip-path: polygon(8% 11%, 92% 11%, 50% 54%);
}
.env-shadow { z-index: 3; }

/* ---------- THE CARD :: the hero ---------- */
.card {
  position: absolute;
  inset: 0;
  background-color: #0a0908;
  background-image: url('card-bg.png');
  background-size: 79px 79px;
  background-repeat: repeat;
  /* rounded top corners only — card is anchored to bottom of the stage */
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  padding: 38px 30px 32px;
  z-index: 3;
  box-shadow:
    inset 0 1px 0 rgba(255,234,180,0.08),
    0 -20px 50px -10px rgba(0,0,0,0.55),
    0 -6px 16px -6px rgba(0,0,0,0.35);
  /* slides up from below the viewport on load */
  transform: translateY(100%);
  animation: card-slide-up 1.1s cubic-bezier(.2,.7,.2,1) 0.25s forwards;
}
@keyframes card-slide-up {
  0%   { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

@media (min-width: 720px) {
  .card { border-radius: 28px 28px 0 0; padding: 44px 36px 36px; }
}
.card > * { position: relative; z-index: 2; }

/* TOP eyebrow — refined sans, smaller per user feedback */
.card-top { text-align: left; }
.card-eyebrow {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-transform: uppercase;
}
@media (min-width: 720px) {
  .card-eyebrow { font-size: 14px; }
}

/* MID :: gold "seventy" image (left) + photo (right), matches Evite reference */
.card-mid {
  position: relative;
  flex: 1;
  margin: 18px 0 14px;
  min-height: 380px;
}

/* User's actual gold-foil seventy image. screen blend mode drops the black
   background pixels of the JPG so only the gold letters show on the card. */
.seventy-img {
  position: absolute;
  top: 0;
  left: -2%;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left top;
  z-index: 1;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
}

/* CSS fallback for when seventy.jpg isn't present */
.seventy {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 12vw, 56px);
  line-height: 0.82;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.seventy .ltr {
  display: block;
  background: linear-gradient(150deg, #f7e3a0 0%, #d3ab57 22%, #f8e8b2 40%, #a47823 60%, #f4dd91 78%, #c39a44 92%, #f7e2a0 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* Photo on the right, slightly overlapping the seventy (matches reference) */
.card-photo {
  position: absolute;
  right: -2px;
  top: 18%;
  width: 64%;
  aspect-ratio: 369 / 459;        /* matches the stamp asset */
  overflow: visible;
  background: transparent;
  z-index: 2;
  border-radius: 0;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.55));
}
.card-photo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

/* BOTTOM — clean sans toast + italic serif date/venue on TWO lines */
.card-bottom { margin-top: auto; text-align: left; position: relative; }
.card-tiger {
  position: absolute;
  right: -12px;
  bottom: 12px;
  width: 72px;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 720px) {
  .card-tiger { width: 86px; right: -10px; bottom: 14px; }
}
.card-toast {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.14em;
  color: #ffffff;
  text-transform: uppercase;
}
.card-when {
  margin-top: 14px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.005em;
  line-height: 1.55;
}
.card-when em { display: block; }
.card-sep { display: none; }
@media (min-width: 720px) {
  .card-toast { font-size: 13px; }
  .card-when  { font-size: 15px; }
}

/* ---------- scroll hint — sits in the marble strip above the card ---------- */
.scroll-hint {
  position: absolute;
  top: 3vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(60,40,15,0.65);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: hint-show 0.6s ease 1.8s forwards;
  z-index: 3;
}
@keyframes hint-show { to { opacity: 1; } }
.scroll-hint svg { stroke: rgba(60,40,15,0.65); animation: nudge 2.4s ease-in-out infinite 2.4s; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* =====================================================================
   STICKY NAV — fixed top, hidden by default, slides DOWN once past the hero.
   Opaque background so nothing behind it bleeds through.
   ===================================================================== */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #f6ecd2;
  border-bottom: 1px solid rgba(176,140,60,0.22);
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
}
.sticky-nav.is-visible { transform: translateY(0); }
.sticky-nav-inner {
  display: flex;
  justify-content: center;
  gap: 28px;
  max-width: 460px;
  margin: 0 auto;
  padding: 14px 16px;
}
.nav-link {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 2px;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--gold-2);
  border-radius: 1px;
}
@media (min-width: 480px) {
  .sticky-nav-inner { gap: 36px; padding: 16px 16px; }
  .nav-link { font-size: 12px; }
}

/* =====================================================================
   FLOATING RSVP BUTTON — visible after hero, hidden on RSVP section
   ===================================================================== */
.rsvp-fab {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  background: var(--ink);
  color: var(--ivory);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow:
    0 12px 28px -6px rgba(0,0,0,0.45),
    0 4px 10px -2px rgba(0,0,0,0.28);
  z-index: 80;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.18s ease;
}
@media (min-width: 480px) {
  .rsvp-fab { padding: 18px 36px; }
}
.rsvp-fab.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.rsvp-fab:hover { background: var(--gold-deep); }
.rsvp-fab__label {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rsvp-fab__arrow { font-style: normal; opacity: 0.85; font-size: 14px; }
@media (min-width: 480px) {
  .rsvp-fab__label { font-size: 14.5px; }
}

/* =====================================================================
   PAGE :: cream paper for details + RSVP (NOT the velvet — velvet is hero only)
   ===================================================================== */
.page {
  background:
    radial-gradient(ellipse at 22% 12%, #fcf8ec, transparent 45%),
    radial-gradient(ellipse at 82% 92%, #ebe1c6, transparent 55%),
    linear-gradient(180deg, #faf5ea 0%, #f4ebd2 60%, #efe2c4 100%);
  padding: 0 0 80px;
  position: relative;
}
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='8' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.36  0 0 0 0 0.30  0 0 0 0 0.20  0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  opacity: 0.45;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.paper {
  max-width: 460px;
  margin: 0 auto;
  background: transparent;
  position: relative;
  padding: 56px 24px 60px;
}
.paper > * { position: relative; z-index: 1; }

@media (min-width: 480px) {
  .page { padding: 0 0 80px; }
  .paper { padding: 64px 32px 60px; }
}

/* ---------- Celebrate (champagne moment) ---------- */
.celebrate {
  text-align: center;
  padding: 8px 0 36px;
  border-bottom: 1px solid var(--hairline-light);
  margin-bottom: 6px;
}
.celebrate-video {
  position: relative;
  margin: 0 auto 18px;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 822 / 1130;
  border: 1px solid var(--gold-line);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow:
    0 12px 28px -10px rgba(60,40,15,0.32),
    inset 0 1px 0 rgba(255,255,255,0.35);
}
.celebrate-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.celebrate-tag {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0 auto;
}
.celebrate-tag em {
  font-style: italic;
  color: var(--gold-3);
}

.paper-head {
  text-align: center;
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--hairline-light);
}
.mono {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--gold-3);
  text-transform: uppercase;
}
.page-title {
  margin-top: 18px;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(30px, 8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.page-title em { font-style: italic; color: var(--ink-soft); }
.page-lede {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

/* Retro portrait — places the photo in a thin gold-edged frame */
.retro-portrait {
  margin: 28px auto 10px;
  max-width: 280px;
  text-align: center;
}
.retro-portrait img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--gold-line);
  box-shadow:
    0 8px 18px -6px rgba(60,40,15,0.28),
    inset 0 1px 0 rgba(255,255,255,0.35);
  filter: contrast(1.02);
}
.retro-portrait figcaption {
  margin-top: 12px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.block { padding: 38px 0; border-bottom: 1px solid var(--hairline-light); scroll-margin-top: 70px; }
.block-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-3);
  text-align: center;
  margin-bottom: 22px;
}

/* ledger */
.ledger { display: grid; gap: 22px; }
.ledger > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: start;
}
.ledger dt {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  padding-top: 2px;
}
.ledger dd {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
}
.ledger dd sup { font-size: 11px; vertical-align: super; font-feature-settings: "sups" on; }
.ledger .muted { color: var(--muted); font-size: 14px; font-style: italic; }

/* gallery — video + images, thin gold-edged frames, full width */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 32px 0;
}
.gallery figure {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--cream-deep);
  border: 1px solid var(--gold-line);
  border-radius: 0.5rem;
  box-shadow:
    0 6px 18px -6px rgba(60,40,15,0.28),
    inset 0 1px 0 rgba(255,255,255,0.35);
}
.gallery figure:nth-child(1) { aspect-ratio: 18 / 7; }    /* kabini video */
.gallery figure:nth-child(2) { aspect-ratio: 4 / 3; }      /* safari hut */
.gallery figure:nth-child(3) { aspect-ratio: 16 / 10; }    /* deck */
.gallery figure:nth-child(4) { aspect-ratio: 16 / 9; }     /* sunset */
.gallery img,
.gallery video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96);
  display: block;
}
.gallery figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 14px 10px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  pointer-events: none;
}

/* map block */
.map-block { text-align: center; }
.map-figure {
  margin: 0 auto;
  width: 100%;
  border: 1px solid var(--gold-line);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f3e5c6;
  box-shadow:
    0 6px 18px -6px rgba(60,40,15,0.28),
    inset 0 1px 0 rgba(255,255,255,0.35);
}
.map-figure img { width: 100%; height: auto; display: block; }
.map-note {
  margin-top: 16px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}
.map-note em { color: var(--ink-soft); font-style: italic; }

/* compliments */
.compliments { list-style: none; display: grid; gap: 22px; }
.compliments li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
  align-items: start;
}
.dot-li {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-1), var(--gold-2) 60%, var(--gold-3));
  margin-top: 11px;
  box-shadow: 0 0 0 1px rgba(160,120,40,0.4);
}
.compliments b {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}
.compliments p {
  font-family: 'Fraunces', serif;
  font-size: 15.5px;
  font-style: italic;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* =====================================================================
   RSVP
   ===================================================================== */
.rsvp { padding-bottom: 44px; }
.rsvp-q {
  margin-bottom: 24px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  text-align: center;
}
.rsvp-blocked {
  text-align: center;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding: 14px 8px;
}
.rsvp-blocked a { color: var(--gold-3); text-decoration: underline; text-underline-offset: 3px; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; }

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px 8px 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.choice-pill .serif {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--ink);
  line-height: 1;
}
.choice-pill .serif em { color: var(--ink-soft); }
.choice-pill .micro {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.choice input:checked + .choice-pill { background: var(--ink); border-color: var(--ink); }
.choice input:checked + .choice-pill .serif { color: var(--ivory); }
.choice input:checked + .choice-pill .serif em { color: var(--gold-1); }
.choice input:checked + .choice-pill .micro  { color: rgba(244,234,210,0.7); }
.choice input:focus-visible + .choice-pill { outline: 2px solid var(--gold-2); outline-offset: 3px; }

.field { display: block; margin-top: 18px; border: none; }
.field-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.field-label .muted {
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
}
.field-help {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 14px;
}
.field input[type=text],
.field input[type=number],
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s ease;
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--muted); font-style: italic; opacity: 0.7;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--gold-3); }
.field textarea {
  resize: vertical;
  min-height: 72px;
  border: 1px solid var(--hairline);
  padding: 12px 14px;
  background: rgba(255,255,255,0.5);
}
.field textarea:focus { border-color: var(--gold-3); }

.radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini { cursor: pointer; position: relative; }
.mini input { position: absolute; opacity: 0; pointer-events: none; }
.mini span {
  display: block;
  text-align: center;
  padding: 12px 8px;
  font-family: 'Fraunces', serif;
  font-size: 14.5px;
  font-style: italic;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  line-height: 1.2;
  transition: background 0.18s ease, color 0.18s ease;
}
.mini input:checked + span {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
  font-style: normal;
}

.submit-btn {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 18px 24px;
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--ink);
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  border-radius: 2px;
}
.submit-btn:hover { background: transparent; color: var(--ink); }
.submit-btn[disabled] { opacity: 0.6; cursor: wait; }

.form-msg {
  margin-top: 14px;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14.5px;
  min-height: 18px;
  color: var(--muted);
}
.form-msg.is-error { color: #a04030; }

.rsvp-success { text-align: center; padding: 18px 4px 8px; }
.success-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-3);
}
.success-title {
  margin-top: 14px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 36px;
  color: var(--ink);
}
.success-body {
  margin-top: 14px;
  font-size: 16px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

/* footer — no top border (the section above already provides a hairline) */
.paper-foot {
  margin-top: 32px;
  padding-top: 28px;
  text-align: center;
}
.paper-foot p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
}
.foot-names { margin-top: 8px; }
.foot-names a { color: var(--ink); text-decoration: none; font-style: normal; font-weight: 500; }
.foot-names a:hover { color: var(--gold-3); }
.foot-names span { margin: 0 10px; color: var(--muted); }
.foot-tiny {
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

/* =====================================================================
   RSVP BOTTOM-SHEET MODAL
   ===================================================================== */
.rsvp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 6, 0.55);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 90;
}
.rsvp-backdrop.is-open { opacity: 1; pointer-events: auto; }

.rsvp-modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92vh;
  height: 92dvh;
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  border-radius: 22px 22px 0 0;
  box-shadow:
    0 -22px 50px -8px rgba(0,0,0,0.45),
    0 -4px 12px -2px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rsvp-modal.is-open { transform: translateY(0); }

.rsvp-modal__grab {
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: rgba(13,13,13,0.18);
  margin: 12px auto 8px;
  flex-shrink: 0;
}
.rsvp-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.18s ease;
}
.rsvp-modal__close:hover { background: rgba(0,0,0,0.06); }

.rsvp-modal__scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.rsvp-modal__inner {
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 28px 32px;
}

/* Modal footer — pinned at the bottom of the sheet, with consistent padding all
   around. The form scrolls above it; the CTA stays visible. */
.rsvp-modal__footer {
  flex-shrink: 0;
  padding: 18px 28px max(28px, env(safe-area-inset-bottom));
  background: var(--cream);
  border-top: 1px solid var(--hairline-light);
  box-shadow: 0 -10px 18px -10px rgba(60,40,15,0.18);
}
.rsvp-modal__footer .submit-btn { margin-top: 0; width: 100%; max-width: 460px; margin-left: auto; margin-right: auto; display: block; }
.rsvp-modal__footer .form-msg  { margin-top: 0; margin-bottom: 10px; min-height: 0; }
.rsvp-modal__footer .form-msg:empty { display: none; }
.rsvp-modal .rsvp-q {
  margin-top: 6px;
}

/* lock body scroll while modal is open */
body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .card { opacity: 1; transform: none; }
  .envelope { opacity: 1; transform: rotate(-7deg); }
  .scroll-hint { opacity: 1; }
}
