/* =========================================================
   Lauren & Jordan — Wedding site
   Theme follows Lauren's Canva draft: a pressed-flower scrapbook
   on sage, moss, warm grey and cream paper with wine accents, with a bouncy hand-lettered
   script (Meow Script ≈ Canva's "Rabbits April") and an old
   typewriter face (Special Elite ≈ "Lumios Typewriter Old").
   ========================================================= */
:root {
  --wine: #72243a;
  --wine-deep: #561a2b;
  --sage: #a3ae96;        /* main page green */
  --sage-soft: #c6cfbb;
  --sage-deep: #6d7a5f;   /* accents on cream */
  --moss: #56614a;        /* deep green band */
  --mist: #e1e5dc;        /* pale grey-green */
  --stone: #c9c7bf;       /* warm grey */
  --parchment: #f3e8d4;
  --paper: #fffaf3;
  --cream: #fefbf8;
  --ink: #2a1f1f;
  --ink-soft: #5a4646;
  --rust: #a8321a;
  --sepia: #8c7557;
  --mustard: #d9a443;
  --olive: #7b7a45;

  /* names kept for the JS / older rules */
  --gold: var(--mustard);
  --rose: var(--sage-deep);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --faint: rgba(42, 31, 31, 0.55);

  --script: "Meow Script", "Segoe Script", cursive;
  --type: "Special Elite", "Courier Prime", "Courier New", monospace;
  --body: "Courier Prime", "Courier New", ui-monospace, monospace;

  --r: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16V9l6-3 5 4 6-6 7 4 6-5 7 6 7-4 6 5 7-6 6 4 7-6 7 7 7-4 6 5 7-6 7 4 6-5 6 4 4-1v10z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }   /* menu links land below the fixed menu bar */
body {
  margin: 0;
  min-height: 100vh;
  background: var(--sage);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--wine); color: var(--cream); }

/* ---------- Paper grain over everything ---------- */
.bg { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.blob { display: none; }
.grain {
  position: absolute; inset: 0; opacity: 0.16; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .25 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Colour bands (full-width, like the Canva page blocks) ---------- */
.band {
  --band: var(--paper);
  position: relative; isolation: isolate;
  /* paints the colour out to both screen edges, but not above or below */
  border-image: conic-gradient(var(--band) 0 0) fill 0 / / 0 100vmax;
}
.band > .torn {   /* deckled paper edge where one colour band meets the next */
  position: absolute; z-index: 1; left: -100vmax; right: -100vmax; top: -14px; height: 15px; pointer-events: none;
  background: var(--band);
  -webkit-mask: var(--torn) repeat-x 0 0 / 120px 15px; mask: var(--torn) repeat-x 0 0 / 120px 15px;
}
.band-sage   { --band: var(--sage); }
.band-wine   { --band: var(--wine); color: var(--cream); }
.band-moss   { --band: var(--moss); color: var(--cream); }
.band-stone  { --band: var(--stone); }
.band-cream  { --band: var(--cream); }
.band-mist   { --band: var(--mist); }
.band-paper  { --band: var(--parchment); }

/* ---------- Floating icons (a few per band, on top but only ever placed in open space; see main.js) ---------- */
.band > .floaters { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 100%;   /* main.js widens it to the full page width */
  pointer-events: none; overflow: hidden; }
.floater {
  position: absolute;
  opacity: var(--o, 0.5);
  width: var(--s, 28px); height: var(--s, 28px);
  translate: calc(var(--px, 0) * var(--depth, 1) * 1px) calc(var(--py, 0) * var(--depth, 1) * 1px);
  transition: translate 1.2s var(--ease);
}
.floater svg, .floater img {
  width: 100%; height: 100%;
  animation: bob var(--d, 14s) ease-in-out var(--delay, 0s) infinite alternate;
}
.floater.flutter img { animation: bob var(--d, 14s) ease-in-out var(--delay, 0s) infinite alternate, flap 0.9s ease-in-out infinite; }
@keyframes bob {
  0%   { transform: translateY(0) rotate(var(--r0, -10deg)); }
  100% { transform: translateY(var(--rise, -40px)) rotate(var(--r1, 12deg)); }
}
@keyframes flap { 0%, 100% { scale: 1 1; } 50% { scale: 0.55 1; } }

/* ---------- Particle canvas & progress ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 100; pointer-events: none; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 90; background: rgba(114, 36, 58, 0.12); }
.progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--moss), var(--sage), var(--mustard));
}

/* ---------- Paper cards (".glass" kept as the class name) ---------- */
.glass {
  position: relative;
  background: var(--paper);
  border-radius: var(--r);
  border: 1px solid rgba(114, 36, 58, 0.12);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 22px 40px -24px rgba(70, 20, 35, 0.55), 0 3px 8px -4px rgba(70, 20, 35, 0.18);
}
/* soft light that follows the pointer on tilt cards */
[data-tilt] { transform-style: preserve-3d; transition: transform 0.6s var(--ease), box-shadow 0.4s; will-change: transform; }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.45), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
[data-tilt]:hover::after { opacity: 1; }

/* washi tape strip */
.tape {
  position: absolute; top: -14px; left: 50%; width: 112px; height: 30px; z-index: 2;
  transform: translateX(-50%) rotate(-8deg);
  background: url("../images/pressed/tape-cream-long.webp") no-repeat center / 100% 100%;   /* Lauren's washi tape */
  filter: drop-shadow(0 2px 3px rgba(70, 20, 35, 0.18));
}
.tape.tape-alt { transform: translateX(-50%) rotate(7deg); background-image: url("../images/pressed/tape-wine.webp"); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--type); text-transform: uppercase;
  letter-spacing: 0.2em; font-size: 0.9rem; color: var(--wine);
  margin: 0 0 0.9rem;
}
.center { text-align: center; }
.mono { font-family: var(--type); letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.small { font-size: 0.95rem; }
.muted { color: var(--ink-soft); }
h2 {
  font-family: var(--script); font-weight: 400; color: var(--wine);
  font-size: clamp(2.8rem, 6.4vw, 4.4rem); line-height: 1.05; margin: 0;
}
h3 { font-family: var(--type); font-weight: 400; font-size: 1.2rem; line-height: 1.3; margin: 0 0 0.5rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine); }

/* ---------- Buttons: painted wine strips, like the Canva ones ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  font: 400 1.05rem/1 var(--type); letter-spacing: 0.06em;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  cursor: pointer; border: 0;
  clip-path: polygon(1% 8%, 6% 0, 30% 5%, 58% 1%, 84% 6%, 99% 0, 100% 46%, 98% 92%, 74% 100%, 46% 95%, 20% 100%, 2% 94%, 0 52%);
  transform: translate(var(--bx), var(--by));
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn-solid { color: var(--cream); background: var(--wine); }
.btn-solid:hover { background: var(--wine-deep); }
.btn-ghost { color: var(--wine); background: var(--parchment); }
.btn-ghost:hover { background: #ead9bd; }
.btn:active { transform: translate(var(--bx), var(--by)) scale(0.96); }
.btn:focus-visible, input:focus-visible, .nav a:focus-visible { outline: 2px dashed var(--wine); outline-offset: 3px; }
.btn:focus-visible { clip-path: none; }
.btn-wide { width: 100%; }
.small-btn { padding: 0.8rem 1.3rem; font-size: 0.95rem; }
.ico-inline { width: 18px; height: 18px; }

/* =========================================================
   KEY GATE
   ========================================================= */
.gate {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: var(--gutter);
  background: radial-gradient(ellipse at center, rgba(198, 207, 187, 0.45), rgba(62, 72, 52, 0.6));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.gate.open { opacity: 0; visibility: hidden; pointer-events: none; }
.gate.open .gate-card { transform: scale(1.08) translateY(-10px); filter: blur(8px); }
.gate-card {
  width: min(450px, 100%); text-align: center;
  padding: clamp(2.2rem, 6vw, 3rem) clamp(1.4rem, 5vw, 2.6rem) clamp(1.8rem, 5vw, 2.4rem);
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
  animation: rise 1.2s var(--ease) both;
}
.gate-card::before {   /* pressed flower tucked in the corner */
  content: ""; position: absolute; top: -40px; right: -26px; width: 96px; height: 100px;
  background: url("../images/pressed/flower-pink-blossom.webp") no-repeat center / contain; transform: rotate(24deg);
  filter: drop-shadow(0 6px 8px rgba(42, 31, 31, 0.18));
}
.gate-names { font-family: var(--script); font-weight: 400; color: var(--wine); font-size: clamp(3.4rem, 13vw, 4.6rem); line-height: 1.05; margin: 0.2rem 0 0.4rem; }
.gate-names span { color: var(--sage-deep); }
.gate-date { font-family: var(--type); letter-spacing: 0.4em; color: var(--ink-soft); margin: 0 0 1.4rem; font-size: 1rem; }

.keyhole { position: relative; width: 96px; height: 96px; margin: 0 auto 1.5rem; display: grid; place-items: center; }
.keyhole-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(114, 36, 58, 0.45);
  background: radial-gradient(circle, rgba(217, 164, 67, 0.22), transparent 70%);
  animation: pulse 2.6s ease-in-out infinite;
}
.keyhole-ring::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1.5px dashed rgba(109, 122, 95, 0.6);
  animation: spin 22s linear infinite;
}
.key-icon { width: 44px; height: 44px; color: var(--wine); stroke-width: 1.6; transition: transform 0.8s var(--spring); }
.keyhole.turn .key-icon { transform: rotate(-90deg) scale(1.15); }
.keyhole.turn .keyhole-ring { animation: flash 0.7s var(--ease) forwards; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.07); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flash { 50% { transform: scale(1.35); background: radial-gradient(circle, rgba(217,164,67,0.6), transparent 70%); } 100% { transform: scale(1.6); opacity: 0; } }

.gate-input {
  display: flex; gap: 6px; padding: 6px;
  background: var(--cream); border: 1.5px solid rgba(114, 36, 58, 0.3); border-radius: 4px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.gate-input:focus-within { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(114, 36, 58, 0.12); }
.gate-input input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: var(--ink); font: 400 1.05rem var(--type); letter-spacing: 0.14em;
  padding: 0 0.6rem 0 0.9rem;
}
.gate-input input::placeholder { color: var(--faint); letter-spacing: 0.06em; }
.gate-input .btn { padding: 0.85rem 1.3rem; }
.gate-hint { font-size: 1rem; color: var(--ink-soft); margin: 1rem 0 0; min-height: 1.3em; transition: color 0.3s; }
.gate-card.error { animation: shake 0.5s; }
.gate-card.error .gate-input { border-color: var(--rust); box-shadow: 0 0 0 4px rgba(168, 50, 26, 0.14); }
.gate-card.error .gate-hint { color: var(--rust); }
@keyframes shake { 20%,60% { transform: translateX(-10px); } 40%,80% { transform: translateX(10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: none; } }

/* Hide site until unlocked */
body.locked #site, body.locked .nav { opacity: 0; }
#site, .nav { transition: opacity 1s var(--ease) 0.3s; }

/* =========================================================
   NAV (frosted cream pill)
   ========================================================= */
.nav {
  position: fixed; z-index: 70; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none;
  background: rgba(254, 250, 244, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 30px -16px rgba(70, 20, 35, 0.5);
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; padding: 0.55rem 1rem; border-radius: 999px;
  font: 400 0.9rem var(--type); letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
  transition: background 0.3s, color 0.3s;
}
.nav a:hover { color: var(--wine); background: rgba(114, 36, 58, 0.07); }
.nav a.active { color: var(--wine); background: rgba(163, 174, 150, 0.38); }
.nav a.nav-cta { color: var(--cream); background: var(--wine); }
.nav-links { display: flex; gap: 2px; }
.nav-brand, .nav-rsvp, .nav-toggle { display: none; }   /* phone-only parts of the menu */

/* =========================================================
   SECTIONS
   ========================================================= */
main { position: relative; overflow-x: hidden; overflow-x: clip; }   /* decorations never cause sideways scroll */
.section { position: relative; padding: clamp(3.4rem, 7vw, 5.6rem) var(--gutter); max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 2.8rem); }
.section-head .eyebrow { color: var(--sepia); }
/* centred section titles sit on a strip of parchment tape, like "About the Reception" */
.section-head:not(.left) h2 {
  display: inline-block; position: relative;
  padding: 0.12em 0.75em 0.22em;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent), var(--parchment);
  clip-path: polygon(0 6%, 3% 0, 97% 3%, 100% 0, 98% 50%, 100% 96%, 96% 100%, 4% 96%, 0 100%, 2% 48%);
  transform: rotate(-1.5deg);
}
.section-head.left { text-align: left; margin-bottom: 2rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
[data-tilt].reveal.in { transition: opacity 1s var(--ease), transform 0.6s var(--ease); }

/* ---------- Pressed-flower decorations ---------- */
.deco::before, .deco::after {   /* on top of cards and photos, like flowers pressed onto the page */
  content: ""; position: absolute; z-index: 3; pointer-events: none;
  background: no-repeat center / contain;
  width: clamp(70px, 9vw, 120px); aspect-ratio: 100 / 160;
}
/* Lauren's own pressed flowers and art from her Canva design (images/pressed/; originals in images/canva/, not uploaded) */
.deco::before, .deco::after { filter: drop-shadow(0 6px 8px rgba(42, 31, 31, 0.18)); }
.deco-flowers::before { background-image: url("../images/pressed/flower-queen-annes-lace.webp"); aspect-ratio: 275 / 300; width: clamp(80px, 10vw, 140px); left: clamp(4px, 2vw, 30px); top: 14%; transform: rotate(-14deg); }
.deco-flowers::after  { background-image: url("../images/pressed/flower-pink-sprig.webp"); aspect-ratio: 340 / 301; width: clamp(90px, 11vw, 150px); right: clamp(4px, 2vw, 30px); top: 10%; transform: rotate(18deg); }
.deco-moon::before    { background-image: url("../images/pressed/moon-embroidered.webp"); aspect-ratio: 271 / 300; width: clamp(80px, 10vw, 140px); right: clamp(6px, 3vw, 40px); top: 1.4rem; transform: rotate(-8deg); }
.deco-moon::after     { background-image: url("../images/pressed/butterfly-yellow.webp"); aspect-ratio: 200 / 151; width: clamp(70px, 8vw, 100px); left: clamp(6px, 3vw, 40px); bottom: 1.6rem; transform: rotate(-16deg); }
.deco-daisy::before   { background-image: url("../images/pressed/flower-purple-larkspur.webp"); aspect-ratio: 246 / 340; width: clamp(70px, 9vw, 120px); left: clamp(4px, 2vw, 30px); top: 8%; transform: rotate(-12deg); }
.deco-daisy::after    { background-image: url("../images/pressed/flower-yellow-daisy.webp"); aspect-ratio: 275 / 300; width: clamp(80px, 9vw, 120px); right: clamp(4px, 2vw, 30px); bottom: 8%; transform: rotate(14deg); }
.deco-sprig::before   { background-image: url("../images/pressed/flower-white-umbel.webp"); aspect-ratio: 198 / 340; width: clamp(60px, 7vw, 96px); left: clamp(6px, 3vw, 40px); top: 1.4rem; transform: rotate(-8deg); }
.deco-sprig::after    { background-image: url("../images/pressed/flower-yellow-branch.webp"); aspect-ratio: 340 / 282; width: clamp(90px, 11vw, 150px); right: clamp(4px, 2vw, 30px); top: 1rem; transform: rotate(10deg); }
.deco-pink::before    { background-image: url("../images/pressed/flower-red-stems.webp"); aspect-ratio: 187 / 320; width: clamp(50px, 6vw, 76px); left: clamp(0px, 1vw, 14px); top: 0.6rem; transform: rotate(-12deg); }
.deco-pink::after     { background-image: url("../images/pressed/flower-hydrangea-petal.webp"); aspect-ratio: 300 / 290; width: clamp(64px, 7vw, 96px); right: clamp(8px, 3vw, 40px); bottom: 2rem; transform: rotate(12deg); }
.deco-footer::before  { background-image: url("../images/pressed/ribbon-bow.webp"); aspect-ratio: 260 / 133; width: clamp(64px, 7vw, 100px); left: clamp(8px, 4vw, 60px); bottom: 2.2rem; transform: rotate(-8deg); }
.deco-footer::after   { background-image: url("../images/pressed/snail.webp"); aspect-ratio: 200 / 178; width: clamp(56px, 6vw, 84px); right: clamp(8px, 4vw, 60px); bottom: 1.6rem; transform: rotate(3deg) scaleX(-1); }
.section > *, .hero > * { position: relative; }

/* ---------- Hero ---------- */
.hero {
  position: relative;   /* sized by its content: a full-screen hero left a big gap under the menu on tall windows */
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center; gap: clamp(2rem, 5vw, 5rem);
  padding: 104px var(--gutter) 96px; max-width: 1180px; margin: 0 auto;
}
.hero::before, .hero::after { content: ""; position: absolute; z-index: 3; pointer-events: none; background: no-repeat center / contain; }
.hero::before { background-image: url("../images/pressed/flower-white-sprig.webp"); width: clamp(56px, 6vw, 84px); aspect-ratio: 161 / 420; left: clamp(0px, 1vw, 20px); bottom: 6px; transform: rotate(-10deg); }
.hero::after  { background-image: url("../images/pressed/flower-rust-carnation.webp"); width: clamp(80px, 9vw, 120px); aspect-ratio: 292 / 340; right: clamp(-10px, -0.5vw, 0px); top: 44px; transform: rotate(16deg); }
.hero::before, .hero::after { filter: drop-shadow(0 6px 8px rgba(42, 31, 31, 0.18)); }
.hero-photo { position: relative; justify-self: center; }
.polaroid {
  margin: 0; width: min(340px, 72vw);
  background: #fffdf8; padding: 14px 14px 0; border-radius: 3px;
  box-shadow: 0 30px 60px -28px rgba(60, 15, 30, 0.6), 0 2px 6px rgba(60, 15, 30, 0.12);
  transform: rotate(-5deg);
}
.float-slow { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.polaroid-img { position: relative; aspect-ratio: 4/4.4; overflow: hidden; background: #e8dcd4; }
.polaroid-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .polaroid-img img { object-position: 50% 62%; }   /* keep both faces in frame */
.polaroid-alt { transform: rotate(4deg); animation-delay: -3.5s; }
.photo-fallback { display: none; position: absolute; inset: 0; place-items: center; align-content: center; gap: 0.3rem; text-align: center;
  background: linear-gradient(135deg, var(--mist), var(--sage-deep) 60%, var(--wine)); color: #fff; }
.photo-fallback span { font-family: var(--script); font-size: 4rem; line-height: 1; }
.polaroid.no-photo img { display: none; }
.polaroid.no-photo .photo-fallback { display: grid; }
.polaroid figcaption { font-family: var(--script); color: var(--wine); font-size: 2rem; line-height: 1.2; text-align: center; padding: 0.45rem 0 0.75rem; }

.hero-card { padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.4rem, 4vw, 3.2rem); text-align: center; }
.hero-card .eyebrow { color: var(--ink-soft); letter-spacing: 0.14em; }
.names {
  font-family: var(--script); font-weight: 400; margin: 0.1rem 0 1.2rem;
  font-size: clamp(4rem, 12vw, 8rem); line-height: 1.02;
  display: flex; flex-direction: column; align-items: center;
  color: var(--wine); overflow: visible;
}
.names .amp { font-size: 0.6em; color: var(--sage-deep); margin: -0.32em 0 -0.2em; }
.hero-meta { display: grid; gap: 0.35rem; margin-bottom: 1.8rem; }
.hero-meta .mono:first-child { font-size: 1.2rem; color: var(--ink); }
.dot { color: var(--sage-deep); margin: 0 0.4em; }
.venue-name { font-family: var(--script); font-size: 2.6rem; color: var(--wine); margin: 0.2rem 0 0; line-height: 1.15; }
.hero-meta .small { color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.deadline { margin: 1.4rem 0 0; font-size: 1.02rem; color: var(--ink-soft); font-family: var(--type); }
.deadline strong { color: var(--wine); font-weight: 400; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(114, 36, 58, 0.5); border-radius: 20px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--wine); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Countdown ---------- */
.countdown-section { padding-top: 0; }
.countdown-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); align-items: center;
  gap: clamp(1.4rem, 3vw, 2.6rem); padding: clamp(1.6rem, 3.5vw, 2.4rem) clamp(1.4rem, 3.5vw, 2.8rem);
  background: var(--parchment);
}
.cd-intro .eyebrow { margin-bottom: 0.3rem; color: var(--sepia); }
.cd-date { font-family: var(--script); color: var(--wine); font-size: clamp(2.2rem, 3.4vw, 2.8rem); line-height: 1.1; margin: 0; text-wrap: balance; }
.cd-sub { color: var(--ink-soft); margin: 0.3rem 0 1.1rem; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.5rem, 1.4vw, 1rem); text-align: center; }
.cd-tile {   /* little ticket stubs */
  position: relative; padding: clamp(1rem, 2.4vw, 1.5rem) 0.4rem; display: grid; gap: 0.3rem; overflow: hidden;
  background: var(--cream); border: 1.5px dashed rgba(114, 36, 58, 0.35); border-radius: 4px;
  box-shadow: 0 8px 16px -12px rgba(70, 20, 35, 0.5);
}
.cd-tile:nth-child(odd) { transform: rotate(-1.2deg); }
.cd-tile:nth-child(even) { transform: rotate(1deg); }
.cd-num {
  display: block; font-family: var(--type); color: var(--wine);
  font-size: clamp(2rem, 6.4vw, 4.2rem); line-height: 1; font-variant-numeric: tabular-nums;
}
.cd-num.tick { animation: tick 0.6s var(--ease); }
@keyframes tick { 0% { transform: translateY(-35%); opacity: 0; filter: blur(3px); } 100% { transform: none; opacity: 1; filter: none; } }
.cd-label { font-family: var(--type); font-size: clamp(0.7rem, 1.9vw, 0.88rem); letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust); }
.countdown.done { display: block; }
.countdown .married { font-family: var(--script); color: var(--wine); font-size: clamp(3rem, 9vw, 5rem); padding: 1.5rem; }

/* ---------- Story (wine band, torn parchment note) ---------- */
.story {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
}
.story-photo { position: relative; justify-self: center; }
.story-note { filter: drop-shadow(0 18px 22px rgba(20, 0, 8, 0.45)); }
.story-card {
  text-align: center; padding: clamp(2.6rem, 6vw, 4.2rem) clamp(1.6rem, 5vw, 3.8rem);
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(90% 80% at 90% 100%, rgba(186, 150, 104, 0.25), transparent 60%),
    #f1e5cc;
  border: 0; border-radius: 0; box-shadow: none;
  clip-path: polygon(0% 1%, 2.5% 2.1%, 5% 1.7%, 7.5% 2%, 10% 0.1%, 12.5% 0.1%, 15% 2%, 17.5% 1.6%, 20% 0.5%, 22.5% 0.7%, 25% 0.3%, 27.5% 0.3%, 30% 0.7%, 32.5% 0.7%, 35% 1.3%, 37.5% 1.5%, 40% 0.3%, 42.5% 0%, 45% 0.7%, 47.5% 1.7%, 50% 0%, 52.5% 0.1%, 55% 1.7%, 57.5% 0.2%, 60% 0.6%, 62.5% 1%, 65% 2%, 67.5% 1.3%, 70% 0.3%, 72.5% 0%, 75% 2.1%, 77.5% 2.2%, 80% 0%, 82.5% 0.1%, 85% 1.2%, 87.5% 0.4%, 90% 2.2%, 92.5% 1.1%, 95% 1.3%, 97.5% 0.7%, 100% 1.2%, 99.4% 4%, 99.7% 8%, 99.4% 12%, 99.8% 16%, 100% 20%, 99.6% 24%, 99.3% 28%, 99.5% 32%, 99.5% 36%, 99.1% 40%, 99.8% 44%, 99.1% 48%, 99.4% 52%, 99.2% 56%, 99.3% 60%, 100% 64%, 99% 68%, 99.1% 72%, 99.4% 76%, 99.9% 80%, 99.5% 84%, 99.2% 88%, 98.8% 92%, 99.5% 96%, 100% 98.8%, 97.5% 98.8%, 95% 97.9%, 92.5% 99.4%, 90% 99.7%, 87.5% 98.4%, 85% 98.6%, 82.5% 97.8%, 80% 98.7%, 77.5% 99.4%, 75% 97.9%, 72.5% 99.4%, 70% 99.7%, 67.5% 98.8%, 65% 98.2%, 62.5% 97.9%, 60% 99.8%, 57.5% 97.9%, 55% 99.4%, 52.5% 99.9%, 50% 99%, 47.5% 99.7%, 45% 98.2%, 42.5% 99.4%, 40% 98.7%, 37.5% 98.2%, 35% 99.2%, 32.5% 98.3%, 30% 99.7%, 27.5% 99.2%, 25% 99.6%, 22.5% 98.5%, 20% 98.4%, 17.5% 100%, 15% 98.6%, 12.5% 99%, 10% 100%, 7.5% 98%, 5% 99.4%, 2.5% 100%, 0% 100%, 0.3% 96%, 1.2% 92%, 0.9% 88%, 1.1% 84%, 0.5% 80%, 1.1% 76%, 0.9% 72%, 1% 68%, 0.1% 64%, 1% 60%, 0.6% 56%, 1.2% 52%, 1.2% 48%, 0.3% 44%, 0.9% 40%, 1.2% 36%, 0.5% 32%, 1.1% 28%, 0.2% 24%, 0.2% 20%, 0.2% 16%, 0.3% 12%, 0% 8%, 1.2% 4%);
}
.story-card[data-tilt]::after { display: none; }
.story-flourish { width: 120px; height: 40px; color: var(--sepia); margin-bottom: 0.6rem; stroke-width: 1.4; stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset 2.2s var(--ease) 0.4s; }
.story-card.in .story-flourish { stroke-dashoffset: 0; }
.story-title { color: var(--ink); font-size: clamp(2.8rem, 6.4vw, 4.4rem); line-height: 1.05; }
.story-title em { font-style: normal; color: var(--wine); }
.story-body { font-size: clamp(1.05rem, 2.2vw, 1.18rem); color: var(--ink-soft); max-width: 540px; margin: 1.4rem auto 0.8rem; }
.script-sign { font-family: var(--script); font-size: 2.6rem; line-height: 1.1; color: var(--wine); margin: 0; }
.story .polaroid figcaption { color: var(--wine); }

/* ---------- Info grid ---------- */
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.info-card { padding: 2rem 1.5rem 1.8rem; text-align: center; background: var(--cream); }
.info-card p { margin: 0; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.6; }
.info-card p .muted { font-size: 0.95rem; }
.info-icon {   /* postage-stamp badge */
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.1rem;
  background: var(--mist); color: var(--wine);
  outline: 1.5px dashed rgba(114, 36, 58, 0.45); outline-offset: 4px;
  transform: translateZ(30px);
}
.info-icon svg { width: 28px; height: 28px; }
.info-icon.big { width: 72px; height: 72px; margin: 0 auto 1.3rem; }
.info-icon.big svg { width: 34px; height: 34px; }
/* Lauren's illustrations from her Canva design stand in for icons: map pin, dress rack, horse & carriage, frog */
.info-art {
  display: block; height: 92px; width: auto; max-width: 100%; margin: 0 auto 1rem; object-fit: contain;
  filter: drop-shadow(0 5px 6px rgba(42, 31, 31, 0.16)); transform: rotate(-3deg);
  transition: transform 0.5s var(--ease);
}
.info-art-wide { height: 84px; margin-top: 8px; }
.info-card:nth-child(even) .info-art { transform: rotate(3deg); }
.info-card:hover .info-art { transform: rotate(0) scale(1.06); }
.info-card:nth-child(2) { --rd: 0.08s; } .info-card:nth-child(3) { --rd: 0.16s; } .info-card:nth-child(4) { --rd: 0.24s; }

/* ---------- Program of events (dotted list, like the Canva page) ---------- */
.timeline {
  list-style: none; margin: 0 auto; max-width: 720px; position: relative;
  padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1.2rem, 5vw, 3rem);
  background: transparent;
}
.tl-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: clamp(0.8rem, 2.4vw, 1.4rem); padding: 0.9rem 0; border-bottom: 2px dotted rgba(42, 31, 31, 0.45); }
.tl-item:last-child { border-bottom: 0; }
.tl-dot {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mist); color: var(--wine);
}
.tl-dot svg { width: 24px; height: 24px; }
.tl-card {
  display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); align-items: baseline; gap: 1rem;
  padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
}
.tl-card time { font-family: var(--type); color: var(--rust); letter-spacing: 0.06em; font-size: 1.15rem; }
.tl-card h3 { font-family: var(--type); color: var(--ink); text-transform: none; letter-spacing: 0.05em; font-size: 1.25rem; margin: 0; }
.tl-item:nth-child(2) { --rd: 0.08s; } .tl-item:nth-child(3) { --rd: 0.16s; }
.tl-item:nth-child(4) { --rd: 0.24s; } .tl-item:nth-child(5) { --rd: 0.32s; }

/* ---------- Venue ---------- */
.venue-card { display: grid; grid-template-columns: 1.4fr 1fr; overflow: hidden; background: var(--cream); }
.map-wrap { min-height: 340px; position: relative; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(0.3) saturate(0.95) contrast(0.95); }
.venue-info { padding: clamp(1.8rem, 4vw, 3rem); display: grid; align-content: center; gap: 1.1rem; justify-items: start; }
.venue-info .mono { font-size: 1.1rem; line-height: 1.7; color: var(--wine); }
.venue-info p { margin: 0; }

/* ---------- RSVP ---------- */
.reply-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; }
.reply-main { display: grid; gap: clamp(1.6rem, 3vw, 2.2rem); }
.reply-side { display: grid; gap: clamp(1.6rem, 3vw, 2.2rem); }
.rsvp-card { padding: clamp(2rem, 5vw, 3.2rem); scroll-margin-top: 90px; }
.rsvp-card h2 { font-size: clamp(3.2rem, 7vw, 4.6rem); }
.reply-photo { position: relative; justify-self: center; margin-top: 0.6rem; }
.polaroid-small { width: min(300px, 70vw); transform: rotate(3deg); }
.polaroid-small .polaroid-img { aspect-ratio: 1 / 0.95; }
.know-card { padding: clamp(1.6rem, 4vw, 2.2rem); background: var(--cream); }
.know-card .eyebrow { color: var(--sepia); }
.know-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.know-list li { display: grid; grid-template-columns: 40px 1fr; gap: 0.9rem; align-items: start; color: var(--ink-soft); line-height: 1.55; }
.know-list strong { color: var(--wine); font-weight: 700; }
.know-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--wine); background: var(--mist); }
.know-icon svg { width: 20px; height: 20px; }
.field { border: 0; padding: 0; margin: 0 0 1.5rem; }
.field label, .field legend {
  display: block; padding: 0; margin-bottom: 0.6rem;
  font-family: var(--type); font-size: 1.05rem; letter-spacing: 0.03em; color: var(--wine);
}
.field input[type="text"], .field textarea {
  width: 100%; padding: 0.95rem 1.1rem; border-radius: 4px;
  background: #fffdf9; border: 1.5px solid rgba(114, 36, 58, 0.22);
  color: var(--ink); font: 400 1.06rem/1.5 var(--body);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input[type="text"]::placeholder, .field textarea::placeholder { color: rgba(42, 31, 31, 0.45); }
.field input[type="text"]:focus, .field textarea:focus { outline: 0; border-color: var(--wine); background: #fff; box-shadow: 0 0 0 4px rgba(114, 36, 58, 0.1); }
.optional { color: var(--faint); font-size: 0.92em; }
.party-field:not([hidden]) { animation: rise 0.6s var(--ease); }
.stepper { display: inline-flex; align-items: center; gap: 0.4rem; padding: 5px; border-radius: 999px; background: #fffdf9; border: 1.5px solid rgba(114, 36, 58, 0.22); }
.stepper input {
  width: 3.2rem; text-align: center; background: transparent; border: 0; color: var(--wine);
  font: 400 1.35rem var(--type); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 0; }
.step-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--mist); color: var(--wine); font: 400 1.4rem/1 var(--type); cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--spring);
}
.step-btn:hover { background: var(--sage-soft); }
.step-btn:active { transform: scale(0.9); }
.step-btn:focus-visible { outline: 2px dashed var(--wine); outline-offset: 2px; }
.field.invalid input[type="text"], .field.invalid .choice span { border-color: var(--rust); }
.choice-row { display: grid; gap: 0.6rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.95rem 1.15rem; border-radius: 4px; font-size: 1.06rem;
  background: #fffdf9; border: 1.5px solid rgba(114, 36, 58, 0.22);
  transition: all 0.35s var(--ease);
}
.choice span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(114, 36, 58, 0.55); transition: all 0.35s var(--spring);
}
.choice:hover span { background: #fff; border-color: rgba(114, 36, 58, 0.4); }
.choice input:checked + span { background: var(--mist); border-color: var(--wine); color: var(--wine); }
.choice input:checked + span::before { border-color: var(--wine); background: var(--wine); box-shadow: inset 0 0 0 3px var(--mist); transform: scale(1.1); }
.choice input:focus-visible + span { outline: 2px dashed var(--wine); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; }
.form-msg { min-height: 1.4em; margin: 0.9rem 0 0; text-align: center; font-size: 1rem; color: var(--rust); }
.rsvp-done { text-align: center; padding: 1rem 0; animation: rise 0.9s var(--ease); }
.script-big { font-family: var(--script); font-size: clamp(3.6rem, 10vw, 5.2rem); line-height: 1; margin: 0 0 0.6rem; color: var(--wine); }
#rsvpBtn[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Registry + contribution ---------- */
.registry-card { text-align: center; padding: clamp(1.9rem, 4vw, 2.6rem) clamp(1.4rem, 4vw, 2.4rem); scroll-margin-top: 90px; }
.registry-card .info-icon.big { width: 62px; height: 62px; margin-bottom: 1rem; }
.registry-card h2 { font-size: clamp(2.8rem, 5vw, 3.4rem); }
.registry-card p { margin: 0.6rem auto 1.3rem; max-width: 380px; }
.gift-or { display: flex; align-items: center; gap: 0.8rem; margin: 1.8rem 0 1.3rem; font-family: var(--script); font-size: 1.9rem; color: var(--sage-deep); line-height: 1; }
.gift-or::before, .gift-or::after { content: ""; flex: 1; border-top: 2px dotted rgba(114, 36, 58, 0.35); }
.contribute { display: grid; justify-items: center; gap: 1rem; }
.contribute p { margin: 0; max-width: 360px; color: var(--ink-soft); }
.contribute p strong { color: var(--wine); }
/* QR on Lauren's torn paper, with Queen Anne's lace tucked behind and larkspur laid over the corner (from her Canva) */
.qr-bouquet { position: relative; isolation: isolate; margin: 1.6rem 0 2.6rem; padding: 0 2.4rem; }
.qr-bouquet::before, .qr-bouquet::after { content: ""; position: absolute; pointer-events: none; background: no-repeat center / contain; filter: drop-shadow(0 4px 5px rgba(42, 31, 31, 0.18)); }
.qr-bouquet::before {   /* behind the paper */
  z-index: -1; background-image: url("../images/pressed/flower-queen-annes-lace.webp");
  width: 150px; aspect-ratio: 275 / 300; left: -6px; top: -46px; transform: rotate(-18deg);
}
.qr-bouquet::after {    /* over the paper's corner, clear of the code itself */
  z-index: 2; background-image: url("../images/pressed/flower-purple-larkspur.webp");
  width: 80px; aspect-ratio: 246 / 340; right: -6px; bottom: -70px; transform: rotate(14deg);
}
.qr-frame {
  position: relative; display: block; width: 214px; padding: 16px 18px 46px 16px;
  background: url("../images/pressed/paper-white-torn.webp") no-repeat center / 100% 100%;
  text-decoration: none; color: var(--ink-soft);
  filter: drop-shadow(0 12px 14px rgba(70, 20, 35, 0.22));
  transform: rotate(-2.5deg); transition: transform 0.4s var(--spring);
}
a.qr-frame[href]:hover { transform: rotate(0) scale(1.03); }
.qr-frame img { width: 100%; aspect-ratio: 1; image-rendering: pixelated; }
.qr-frame small { display: block; font-family: var(--type); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.3rem; }
.contribute-link { font-family: var(--type); color: var(--wine); font-size: 0.98rem; }

/* ---------- Contact: phone numbers on paper notes, as in Lauren's Canva ---------- */
.contact-lede { font-family: var(--type); letter-spacing: 0.08em; color: var(--ink); margin: 1.2rem auto 0; max-width: 34ch; }
.contact-table {
  position: relative; display: grid; grid-template-columns: auto auto auto; justify-content: center; align-items: center;
  gap: clamp(1.4rem, 4vw, 3.4rem); padding: 1rem 0 2rem;
}
.contact-table::before, .contact-table::after {   /* her pressed flowers laid between the notes */
  content: ""; position: absolute; z-index: 3; pointer-events: none; background: no-repeat center / contain;
  filter: drop-shadow(0 5px 7px rgba(42, 31, 31, 0.18));
}
.contact-table::before { background-image: url("../images/pressed/flower-pink-sprig.webp"); aspect-ratio: 340 / 301; width: clamp(110px, 13vw, 170px); left: 51%; top: 0.2rem; transform: rotate(-24deg); }
.contact-table::after  { background-image: url("../images/pressed/flower-hydrangea-petal.webp"); aspect-ratio: 300 / 290; width: clamp(54px, 5.5vw, 72px); left: 47%; bottom: -0.6rem; transform: rotate(18deg); }
.contact-photo { width: clamp(150px, 15vw, 190px); padding: 10px 10px 30px; transform: none; rotate: -7deg; position: relative; }
.contact-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.contact-photo .tape { width: 78px; height: 24px; top: -10px; }
.contact-note { position: relative; }
/* more of Lauren's pieces scattered around the photo and notes, like her Canva layout */
.contact-photo-wrap { position: relative; }
.cd { position: absolute; z-index: 2; pointer-events: none; background: no-repeat center / contain; filter: drop-shadow(0 5px 6px rgba(42, 31, 31, 0.18)); }
.cd-umbel  { z-index: 0; background-image: url("../images/pressed/flower-white-umbel.webp"); aspect-ratio: 198 / 340; width: 92px; left: -54px; top: 18%; transform: rotate(-28deg); }
.cd-heart  { background-image: url("../images/pressed/heart-map.webp"); aspect-ratio: 200 / 184; width: 58px; left: -20px; top: -22px; transform: rotate(-14deg); }
.cd-moon   { background-image: url("../images/pressed/moon-embroidered.webp"); aspect-ratio: 271 / 300; width: 48px; right: -22px; bottom: -6px; transform: rotate(18deg); }
.cd-stamp  { z-index: 0; background-image: url("../images/pressed/stamp-flowers.webp"); aspect-ratio: 152 / 200; width: 50px; left: -6px; top: -14px; transform: rotate(-16deg); }
.cd-daisy  { background-image: url("../images/pressed/flower-yellow-daisy.webp"); aspect-ratio: 275 / 300; width: 62px; left: 2.2rem; bottom: -30px; transform: rotate(-20deg); }
.cd-branch { background-image: url("../images/pressed/flower-yellow-branch.webp"); aspect-ratio: 340 / 282; width: 112px; right: -64px; top: -62px; transform: rotate(14deg); }
.cd-wing   { background-image: url("../images/pressed/butterfly-wing.webp"); aspect-ratio: 207 / 260; width: 50px; left: -40px; bottom: -30px; transform: rotate(-22deg); }
.cd-lark   { background-image: url("../images/pressed/flower-purple-larkspur.webp"); aspect-ratio: 246 / 340; width: 56px; right: -40px; bottom: -58px; transform: rotate(24deg); }
.note-jordan { padding: 2.4rem 0 0 4.6rem; }   /* room for the envelope peeking out behind */
.note-jordan::before {
  content: ""; position: absolute; z-index: 0; left: 0; top: 0; width: clamp(150px, 15vw, 190px); aspect-ratio: 335 / 420;
  background: url("../images/pressed/envelope.webp") no-repeat center / contain; transform: rotate(-10deg);
  filter: drop-shadow(0 10px 12px rgba(42, 31, 31, 0.2));
}
.note-card {
  position: relative; z-index: 1; display: grid; place-content: center; gap: 0.35rem; text-align: center; text-decoration: none;
  width: clamp(180px, 19vw, 220px); aspect-ratio: 276 / 230; padding: 1rem;
  transform: rotate(2deg); transition: transform 0.45s var(--spring);
}
/* the paper (and its shadow) is its own layer: a drop-shadow on the text's own box made the writing vanish in Chrome */
.note-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../images/pressed/paper-cream-note.webp") no-repeat center / 100% 100%;
  filter: drop-shadow(0 10px 12px rgba(42, 31, 31, 0.22));
}
.note-lauren .note-card { transform: rotate(-5deg); }
.note-lauren .note-card::before { background-image: url("../images/pressed/paper-pink-note.webp"); }
.note-card:hover, .note-card:focus-visible { transform: rotate(0) scale(1.05); }
.note-card:focus-visible { outline: 2px dashed var(--wine); outline-offset: 4px; }
.note-name { font-family: var(--script); font-size: clamp(2.3rem, 3vw, 2.8rem); line-height: 1; color: var(--wine); }
.note-phone { font-family: var(--type); font-size: 1.05rem; letter-spacing: 0.06em; color: var(--wine-deep); white-space: nowrap; }
@media (max-width: 820px) {
  .contact-table { grid-template-columns: auto auto; }
  .contact-photo-wrap { grid-column: 1 / -1; justify-self: center; }
  .note-jordan { padding: 2rem 0 0 3.4rem; }
  .contact-table::before { left: auto; right: -4px; top: auto; bottom: 28%; width: 110px; }
  .contact-table::after { display: none; }
}
@media (max-width: 560px) {
  .contact-table { grid-template-columns: 1fr; justify-items: center; gap: 2.2rem; }
  .contact-table::before { right: -26px; bottom: 37%; width: 90px; }
  .contact-table .contact-photo { width: 200px; }
}

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 2.6rem var(--gutter) 4rem; color: var(--ink-soft); }
.footer-sprig { width: 220px; height: 36px; color: var(--sepia); stroke-width: 1.3; margin-bottom: 0.4rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; margin-top: 1.2rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-family: var(--type); font-size: 0.95rem; border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.footer-links a:hover { color: var(--wine); border-color: var(--wine); }
.small-names { font-size: 3.6rem; flex-direction: row; justify-content: center; gap: 0.15em; margin-bottom: 0.4rem; }
.small-names .amp { margin: 0; }

/* ---------- Gallery: a scattered pile of prints ---------- */
.deco-gallery::before { background-image: url("../images/pressed/butterfly-wing.webp"); aspect-ratio: 207 / 260; width: clamp(60px, 7vw, 96px); left: clamp(6px, 3vw, 40px); top: 2.4rem; transform: rotate(-14deg); }
.deco-gallery::after  { background-image: url("../images/pressed/flower-pink-hibiscus.webp"); aspect-ratio: 300 / 295; width: clamp(80px, 9vw, 120px); right: clamp(4px, 2vw, 30px); top: 1.2rem; transform: rotate(16deg); }
.gal-filters { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin: -0.6rem 0 clamp(1.6rem, 3vw, 2.2rem); }
.gal-filters button {
  font: 400 0.98rem var(--type); letter-spacing: 0.06em; color: var(--wine); cursor: pointer;
  padding: 0.55rem 1.15rem; border: 1.5px solid rgba(114, 36, 58, 0.3); border-radius: 999px; background: var(--cream);
  transition: background 0.25s, color 0.25s;
}
.gal-filters button:hover { background: var(--mist); }
.gal-filters button.on { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.gal-filters button:focus-visible { outline: 2px dashed var(--wine); outline-offset: 3px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 40vw), 1fr)); gap: clamp(0.9rem, 2.4vw, 1.6rem); }
.gal-item { min-width: 0; }
.gal-item:nth-child(4n+2) { --rd: 0.06s; } .gal-item:nth-child(4n+3) { --rd: 0.12s; } .gal-item:nth-child(4n) { --rd: 0.18s; }
.gal-tile {
  display: block; width: 100%; padding: 9px 9px 26px; border: 0; cursor: zoom-in;
  background: #fffdf8; border-radius: 2px;
  box-shadow: 0 14px 24px -16px rgba(60, 15, 30, 0.55), 0 1px 4px rgba(60, 15, 30, 0.12);
  rotate: var(--tilt, 0deg);
  transition: rotate 0.45s var(--spring), transform 0.45s var(--spring), box-shadow 0.35s;
}
.gal-tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #eadfd6; }
.gal-tile:hover, .gal-tile:focus-visible { rotate: 0deg; transform: translateY(-6px) scale(1.03); box-shadow: 0 24px 34px -18px rgba(60, 15, 30, 0.6); }
.gal-tile:focus-visible { outline: 2px dashed var(--wine); outline-offset: 4px; }

/* ---------- Lightbox ---------- */
body.lb-open { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--cream); overflow: hidden;
}
.lightbox::backdrop { background: rgba(42, 12, 24, 0.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; animation: lbFade 0.3s var(--ease); }
@keyframes lbFade { from { opacity: 0; } }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 0.8rem; padding: 64px 72px 24px; max-width: 100%; pointer-events: none; }
.lb-figure img {
  max-width: min(1400px, calc(100vw - 144px)); max-height: calc(100dvh - 150px); width: auto; height: auto;
  background: #fffdf8; padding: 10px; border-radius: 2px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  pointer-events: auto; user-select: none; -webkit-user-drag: none;
}
.lb-in { animation: lbPop 0.45s var(--ease); }
.lb-in.lb-left { animation-name: lbFromLeft; }
.lb-in.lb-right { animation-name: lbFromRight; }
@keyframes lbPop { from { opacity: 0; transform: scale(0.94) rotate(-1deg); } }
@keyframes lbFromRight { from { opacity: 0; transform: translateX(40px); } }
@keyframes lbFromLeft { from { opacity: 0; transform: translateX(-40px); } }
.lb-figure figcaption { font-family: var(--script); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; text-align: center; max-width: 720px; }
.lb-count { font-family: var(--type); font-size: 0.85rem; letter-spacing: 0.14em; opacity: 0.75; margin-left: 0.4em; white-space: nowrap; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.12); color: var(--cream);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background 0.25s, transform 0.25s var(--spring);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lb-btn:active { transform: scale(0.92); }
.lb-btn:focus-visible { outline: 2px dashed var(--cream); outline-offset: 3px; }
.lb-btn svg { width: 24px; height: 24px; stroke-width: 2; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal-tile { padding: 6px 6px 16px; }
  .lb-figure { padding: 64px 10px 92px; }
  .lb-figure img { max-width: calc(100vw - 20px); max-height: calc(100dvh - 210px); padding: 6px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; translate: none; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 95; left: 50%; bottom: 24px;
  padding: 0.9rem 1.4rem; border-radius: 4px; font-size: 1rem; max-width: calc(100vw - 32px); text-align: center;
  background: var(--wine); color: var(--cream); border: 0;
  transition: transform 0.5s var(--spring), visibility 0.5s;
  visibility: hidden; transform: translate(-50%, 220%);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reply-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .venue-card { grid-template-columns: 1fr; }
  .map-wrap { min-height: 280px; }
  .hero::after { top: 12px; width: 76px; }   /* tuck the carnation above the invitation card so it never touches the words */
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 96px; text-align: center; gap: 2.4rem; }
  .polaroid { width: min(260px, 64vw); }
  .story { grid-template-columns: 1fr; gap: 2.6rem; }
  .countdown-band { grid-template-columns: 1fr; text-align: center; }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  /* Phone menu: a slim bar at the top with initials, RSVP and a hamburger that drops down all the sections */
  .nav {
    top: 10px; left: 12px; right: 12px; transform: none; max-width: none; overflow: visible;
    flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 24px;
  }
  .nav-brand {
    display: block; margin-right: auto; padding: 0 !important; background: none !important;
    font: 400 1.9rem/1.25 var(--script) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--wine) !important;
  }
  .nav-brand span { color: var(--sage-deep); font-size: 0.8em; }
  .nav .nav-rsvp { display: block; color: var(--cream); background: var(--wine); padding: 0.55rem 1rem; }
  .nav-toggle {
    display: grid; align-content: center; justify-items: center; gap: 5px; width: 42px; height: 42px; flex: none;
    border: 0; border-radius: 50%; background: rgba(163, 174, 150, 0.38); cursor: pointer; padding: 0;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--wine); transition: transform 0.35s var(--ease), opacity 0.2s; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:focus-visible { outline: 2px dashed var(--wine); outline-offset: 2px; }
  .nav-links { display: none; order: 10; flex-basis: 100%; flex-direction: column; gap: 2px; padding: 4px 6px 8px 0; border-top: 1px dotted rgba(42, 31, 31, 0.3); margin-top: 4px; }
  .nav.open .nav-links { display: flex; animation: rise 0.35s var(--ease); }
  .nav.open { border-radius: 22px; background: rgba(254, 250, 244, 0.95); }
  .nav-links a { padding: 0.8rem 1rem; font-size: 1rem; }
  .nav-links a.nav-cta { display: none; }   /* RSVP is already in the bar */
  .info-grid { grid-template-columns: 1fr; }
  .countdown { gap: 0.45rem; }
  .hero::before, .hero::after { width: 62px; }
  /* Phones: pressed flowers move to the top corners, above the headings, so they never cover text */
  .deco { padding-top: 6rem; }
  .deco::before, .deco::after { width: 46px; top: 0.5rem; bottom: auto; }
  .deco::before { left: 8px; right: auto; }
  .deco::after { right: 8px; left: auto; }
  .hero::before, .hero::after { display: none; }
  /* the daisy is pinned to the photo corner instead of floating loose at the screen edge */
  .hero-photo .polaroid { position: relative; }
  .hero-photo .polaroid::after {
    content: ""; position: absolute; z-index: 3; pointer-events: none; top: -26px; right: -22px; width: 66px; aspect-ratio: 292 / 340;
    background: url("../images/pressed/flower-rust-carnation.webp") no-repeat center / contain; transform: rotate(24deg);
    filter: drop-shadow(0 4px 6px rgba(42, 31, 31, 0.2));
  }
  .tl-item { grid-template-columns: 42px minmax(0, 1fr); }
  .tl-dot { width: 42px; height: 42px; }
  .tl-card { grid-template-columns: 1fr; gap: 0.1rem; }
  .tl-card time { font-size: 1rem; }
  .gate-input { flex-direction: column; }
  .gate-input input { padding: 0.9rem 1rem; text-align: center; }
  .hero-actions .btn { flex: 1 1 140px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
