/* ===== White & Gold Theme =====
   Change these to restyle the whole site. */
:root {
  --white: #ffffff;
  --cream: #fbf8f1;
  --blush: #efe6df;
  /* The name shine and the damask glints share one clock so they sweep together */
  --shine-cycle: 7s;
  --shine-delay: 1.2s;
  --gold: #b8964c;
  --gold-light: #d9c08a;
  --gold-dark: #7f6326;
  --text: #241f1a;
  --text-soft: #4d453b;
  --border: #ece3cf;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* Victorian ornaments (gold SVG; change %23b8964c to recolor) */
  --flourish: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 32' fill='none' stroke='%23b8964c' stroke-width='1.2'><g id='h'><path d='M108 16H30'/><path d='M106 16c-4-9-16-11-20-4s4 10 8 6s0-7-4-5'/><path d='M80 16c-3 6-11 7-14 3s2-7 5-4'/><path d='M30 16c-6 0-10-3-10-7s4-5 6-3'/><circle cx='18' cy='16' r='1.8' fill='%23b8964c'/></g><use href='%23h' transform='matrix(-1 0 0 1 240 0)'/><path d='M120 5l6 11-6 11-6-11z' fill='%23b8964c' stroke='none'/></svg>");
  --corner-tl: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23b8964c' stroke-width='1.4'><g><path d='M8 96V36Q8 8 36 8H96'/><path d='M16 84V50M50 16H84' stroke-width='.8'/><path d='M30 44a14 14 0 1 1 14-14a10 10 0 0 1-10 10a6 6 0 0 1-6-6a3 3 0 0 1 3-3'/><path d='M8 64q9-3 12-12q-9 2-12 12zM64 8q-3 9-12 12q2-9 12-12z' fill='%23b8964c'/><circle cx='8' cy='98' r='1.6' fill='%23b8964c'/><circle cx='98' cy='8' r='1.6' fill='%23b8964c'/></g></svg>");
  --corner-tr: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23b8964c' stroke-width='1.4'><g transform='matrix(-1 0 0 1 100 0)'><path d='M8 96V36Q8 8 36 8H96'/><path d='M16 84V50M50 16H84' stroke-width='.8'/><path d='M30 44a14 14 0 1 1 14-14a10 10 0 0 1-10 10a6 6 0 0 1-6-6a3 3 0 0 1 3-3'/><path d='M8 64q9-3 12-12q-9 2-12 12zM64 8q-3 9-12 12q2-9 12-12z' fill='%23b8964c'/><circle cx='8' cy='98' r='1.6' fill='%23b8964c'/><circle cx='98' cy='8' r='1.6' fill='%23b8964c'/></g></svg>");
  --corner-bl: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23b8964c' stroke-width='1.4'><g transform='matrix(1 0 0 -1 0 100)'><path d='M8 96V36Q8 8 36 8H96'/><path d='M16 84V50M50 16H84' stroke-width='.8'/><path d='M30 44a14 14 0 1 1 14-14a10 10 0 0 1-10 10a6 6 0 0 1-6-6a3 3 0 0 1 3-3'/><path d='M8 64q9-3 12-12q-9 2-12 12zM64 8q-3 9-12 12q2-9 12-12z' fill='%23b8964c'/><circle cx='8' cy='98' r='1.6' fill='%23b8964c'/><circle cx='98' cy='8' r='1.6' fill='%23b8964c'/></g></svg>");
  --corner-br: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23b8964c' stroke-width='1.4'><g transform='matrix(-1 0 0 -1 100 100)'><path d='M8 96V36Q8 8 36 8H96'/><path d='M16 84V50M50 16H84' stroke-width='.8'/><path d='M30 44a14 14 0 1 1 14-14a10 10 0 0 1-10 10a6 6 0 0 1-6-6a3 3 0 0 1 3-3'/><path d='M8 64q9-3 12-12q-9 2-12 12zM64 8q-3 9-12 12q2-9 12-12z' fill='%23b8964c'/><circle cx='8' cy='98' r='1.6' fill='%23b8964c'/><circle cx='98' cy='8' r='1.6' fill='%23b8964c'/></g></svg>");
}

/* Gold scrollwork in all four corners. --corner-size / --corner-inset tune it per element. */
.card, .venue-box, .story-photo, .embed-placeholder {
  --corner-size: 52px;
  --corner-inset: 8px;
  background-image: var(--corner-tl), var(--corner-tr), var(--corner-bl), var(--corner-br);
  background-repeat: no-repeat;
  background-size: var(--corner-size);
  background-position:
    top var(--corner-inset) left var(--corner-inset),
    top var(--corner-inset) right var(--corner-inset),
    bottom var(--corner-inset) left var(--corner-inset),
    bottom var(--corner-inset) right var(--corner-inset);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; font-size: 112.5%; } /* 18px base: everything one size bigger */

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--text); }
h2 { font-size: clamp(2.2rem, 5vw, 3rem); text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }

a { color: var(--gold-dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: 90px 0; }
.section.alt { background: var(--cream); }

.divider {
  width: 240px;
  max-width: 80%;
  height: 32px;
  margin: 12px auto 30px;
  background: var(--flourish) center / contain no-repeat;
}

.lead { text-align: center; font-size: 1.1rem; color: var(--text-soft); margin-bottom: 36px; }
.note { font-size: 0.85rem; color: var(--text-soft); margin-top: 14px; font-style: italic; }
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 34px;
  background: var(--gold);
  color: var(--white);
  border: 1px solid var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--gold-dark); }
.btn-outline:hover { background: var(--gold); color: var(--white); }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.1em;
}
.nav-logo span { color: var(--gold); font-style: italic; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links .nav-rsvp { border: 1px solid var(--gold); padding: 7px 16px; color: var(--gold-dark); }
.nav-links .nav-rsvp:hover { background: var(--gold); color: var(--white); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--text); margin: 5px 0; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding-bottom: 80px;
  background-color: var(--blush);
}
.damask {
  display: block;
  width: 100%;
  max-width: none;
  height: clamp(170px, 23vw, 476px);
  object-fit: cover;
  object-position: center top;
}
/* Same image flipped upside down, rising from the bottom of the page */
/* Wrapper for the damask art; the bottom copy is flipped to mirror the top */
.foil { position: relative; }
.foil-bottom { transform: scaleY(-1); margin-top: 50px; }
/* A band of light that glides across only the gold parts (masked by the art itself) */
.foil::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask: url("images/damask.png") center top / cover no-repeat;
  mask: url("images/damask.png") center top / cover no-repeat;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 244, 214, 0.65) 50%, transparent 75%) no-repeat;
  background-size: 30% 100%;
  background-position: -80% 0;
  mix-blend-mode: screen;
}
.hero-inner { padding: 50px 20px 0; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 1.2;
  margin-bottom: 30px;
  color: #2b2422;
}
/* A band of gold light sweeps across the names every few seconds */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero h1 {
    background-image: linear-gradient(110deg,
      #2b2422 0%, #2b2422 42%, #b8964c 46%, #f6e7c1 50%, #b8964c 54%, #2b2422 58%, #2b2422 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  @media (prefers-reduced-motion: no-preference) {
    .hero h1 {
      cursor: pointer;
      animation: name-shine var(--shine-cycle) ease-in-out var(--shine-delay) infinite;
    }
    /* Clicking the names (script.js) flips between these two classes; the change of
       animation name restarts the sweep immediately, names and damask together. */
    .shine-a .hero h1 { animation-name: name-shine-2; animation-delay: 0s; }
    .shine-b .hero h1 { animation-name: name-shine; animation-delay: 0s; }
  }
}
@keyframes name-shine {
  0% { background-position: 100% 0; }
  35%, 100% { background-position: 0 0; }
}
@keyframes name-shine-2 {
  0% { background-position: 100% 0; }
  35%, 100% { background-position: 0 0; }
}
.hero-details, .hero-countdown {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-variant-numeric: lining-nums;
  color: #2b2422;
}
.hero .btn { margin-top: 34px; }
.cd-num { display: inline-block; font-variant-numeric: tabular-nums; }
/* Once the roll-up lands, the number shimmers gold for a moment */
.cd-num.cd-done { animation: cd-shimmer 1.4s ease-out; }
@keyframes cd-shimmer {
  0% { color: inherit; scale: 1; }
  30% { color: var(--gold); scale: 1.12; text-shadow: 0 0 12px rgba(217, 192, 138, 0.8); }
  100% { color: inherit; scale: 1; }
}
.confetti { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
.hero-std {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: none;
  margin-bottom: 14px;
}
.hero-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-soft);
  margin-top: 26px;
}

/* ===== Story ===== */
.story-photo { position: relative; height: 380px; margin-bottom: 50px; }
/* With a photo: a gold-framed mat that shrinks to fit the photo, so nothing is cropped */
.story-photo:not(.photo-placeholder) {
  width: fit-content;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  padding: 28px;
  border: 1px solid var(--gold-light);
  background-color: var(--cream);
}
.story-photo img { width: auto; max-width: 100%; max-height: 640px; }
.timeline { border-left: 1px solid var(--gold-light); margin-left: 10px; }
.timeline-item { position: relative; padding: 0 0 36px 34px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px; top: 10px;
  width: 11px; height: 11px;
  background: var(--white);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.poem {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--text);
}
.when { font-size: 0.8rem; letter-spacing: 0.2em; color: var(--gold-dark); margin-bottom: 6px; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 46px 36px;
  text-align: center;
}
.section:not(.alt) .card { background-color: var(--cream); }
.card p { margin-bottom: 8px; }
.card .btn { margin-top: 12px; }
.card-icon { font-size: 1.8rem; color: var(--gold); margin-bottom: 10px; }
.subhead { text-align: center; font-size: 2rem; margin: 60px 0 26px; }

/* ===== Schedule ===== */
.schedule { list-style: none; margin-bottom: 50px; }
.schedule li {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.schedule .time { min-width: 110px; color: var(--gold-dark); font-weight: 400; letter-spacing: 0.05em; }
.schedule .event { font-family: var(--serif); font-size: 1.35rem; }
.venue-box { text-align: center; margin-bottom: 30px; padding: 44px 30px; border: 1px solid var(--border); }
.venue-box p { color: var(--text-soft); margin-bottom: 18px; }
.map iframe { width: 100%; height: 340px; border: 1px solid var(--border); filter: grayscale(0.3); }

/* ===== Registry / Playlist ===== */
.registry-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 24px; }

.embed-placeholder {
  border: 1px dashed var(--gold-light);
  padding: 50px 20px;
  color: var(--text-soft);
  font-style: italic;
  background-color: var(--white);
}
.embed-frame { width: 100%; border: 0; }

/* ===== Photos ===== */
/* Justified rows: script.js sizes each photo so full rows fill the width at one
   shared height (about --row tall) and nothing is cropped. */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  background: #000; /* black between and around the photos */
  --row: 300px;
}
.gallery > * { flex: none; width: 200px; height: 300px; }
.gallery-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Photos lift up a little on hover (mouse only, not touch screens) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery-item:hover {
    z-index: 2;
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 14px 30px rgba(43, 36, 34, 0.35);
  }
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery > .gallery-empty { flex: 1 1 100%; height: 220px; }
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f2e6;
  border: 1px solid var(--gold-light);
  outline: 1px solid var(--border);
  outline-offset: -6px;
  color: var(--gold-dark);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* ===== FAQ ===== */
details { border-bottom: 1px solid var(--border); padding: 20px 0; }
summary {
  font-family: var(--serif);
  font-size: 1.35rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 1.6rem; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--text-soft); }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 70px 0 0;
  background: var(--blush);
  color: var(--text-soft);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}
.footer-names { font-family: var(--serif); font-size: 2rem; color: var(--gold-dark); letter-spacing: 0.05em; }

/* ===== Scroll animations =====
   script.js adds .anim to <html> (skipped when the visitor prefers reduced motion)
   and .in-view to each element as it scrolls into sight. Uses the separate
   translate/scale properties so the gallery's hover lift (transform) still works. */
.anim .reveal {
  opacity: 0;
  translate: 0 30px;
  transition: opacity 1.6s ease, translate 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.anim .gallery-item.reveal {
  translate: none;
  scale: 0.94;
  transition: opacity 1.3s ease, scale 1.3s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.3s ease, box-shadow 0.3s ease;
}
.anim .reveal.in-view { opacity: 1; translate: none; scale: none; }

/* Flourish dividers draw themselves: the diamond pops, then the scrollwork
   draws outward and the end dots appear */
.divider.drawn { background: none; color: var(--gold); }
.divider svg { display: block; width: 100%; height: 100%; overflow: visible; }
.anim .divider path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s ease 0.3s; }
.anim .divider .fl-gem {
  opacity: 0;
  scale: 0.2;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.6s ease, scale 0.8s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.anim .divider .fl-dot { opacity: 0; transition: opacity 0.6s ease 2.1s; }
.anim .divider.in-view path { stroke-dashoffset: 0; }
.anim .divider.in-view .fl-gem,
.anim .divider.in-view .fl-dot { opacity: 1; scale: 1; }

/* Scrollwork corners (inline, added by script.js) redraw from the corner outward */
.has-corners { position: relative; background-image: none !important; }
/* Keep the content (text, photo) above the corner drawings */
.has-corners > :not(.corner):not(.edit-controls) { position: relative; z-index: 1; }
.corner {
  position: absolute;
  width: var(--corner-size);
  height: var(--corner-size);
  color: var(--gold);
  overflow: visible;
  pointer-events: none;
}
.corner.tl { top: var(--corner-inset); left: var(--corner-inset); }
.corner.tr { top: var(--corner-inset); right: var(--corner-inset); transform: scaleX(-1); }
.corner.bl { bottom: var(--corner-inset); left: var(--corner-inset); transform: scaleY(-1); }
.corner.br { bottom: var(--corner-inset); right: var(--corner-inset); transform: scale(-1); }
.anim .corner path:not(.c-fill) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s ease 0.4s; }
.anim .corner .c-fill { opacity: 0; transition: opacity 0.8s ease 1.8s; }
.anim .in-view > .corner path:not(.c-fill) { stroke-dashoffset: 0; }
.anim .in-view > .corner .c-fill { opacity: 1; }

/* Foil glint: every 9 seconds, the top one first and the bottom one a beat later */
.anim .foil::after { animation: foil-glint var(--shine-cycle) ease-in-out var(--shine-delay) infinite; }
.anim.shine-a .foil::after { animation-name: foil-glint-2; animation-delay: 0s; }
.anim.shine-b .foil::after { animation-name: foil-glint; animation-delay: 0s; }
@keyframes foil-glint {
  0% { background-position: -80% 0; }
  35%, 100% { background-position: 180% 0; }
}
@keyframes foil-glint-2 {
  0% { background-position: -80% 0; }
  35%, 100% { background-position: 180% 0; }
}

/* ===== Bumble bees (Our Story) ===== */
.story-stage { position: relative; }
#story { overflow-x: clip; } /* bees fly in from off screen without widening the page */
.bees {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.bee-tree { color: var(--gold); }
.bee-tree .dots { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0 7; }
.bee-flower { color: var(--gold); }
.bee-flower .dots { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 6; }
.flower-petal { fill: #fff; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0 4.2; }
.bee-trail { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0 7; opacity: 0.85; }
.bees:not(.flying) .bee { opacity: 0; }
.bee { transition: opacity 0.4s ease; }
/* On landing, script.js turns the bee to face the flower; then it bobs gently */
.bee-turn { transition: rotate 0.8s ease-in-out; }
.bee.landed .bee-body { animation: bee-bob 1.6s ease-in-out infinite alternate; }
@keyframes bee-bob { from { translate: 0 -1.5px; } to { translate: 0 1.5px; } }
.bee .wings { transform-box: fill-box; transform-origin: center; animation: bee-wings 0.45s ease-in-out infinite alternate; }
@keyframes bee-wings { to { scale: 1 0.55; } }
/* Without animation: just the tree and the finished trails */
.bees.still .bee { display: none; }

/* ===== Soft RSVP ===== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.interest-note {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 18px;
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold-light);
  outline-offset: 3px;
  color: var(--gold-dark);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.interest-form { text-align: left; }
.interest-choices {
  border: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto 30px;
}
.interest-choices label span { display: block; text-align: center; }
.interest-choices label { cursor: pointer; display: block; }
.interest-choices input { position: absolute; opacity: 0; pointer-events: none; }
.interest-choices span {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  border-radius: 30px;
  background: var(--white);
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 1.15rem;
  transition: background 0.2s, color 0.2s;
}
.interest-choices label:hover span { background: var(--cream); }
.interest-choices input:checked + span { background: var(--gold); color: var(--white); }
.interest-choices input:focus-visible + span { outline: 2px solid var(--gold-dark); outline-offset: 3px; }

.interest-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 28px; }
.interest-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.interest-fields label:first-child, .interest-fields label:last-child { grid-column: 1 / -1; }
.interest-fields small { text-transform: none; letter-spacing: 0; }
.interest-fields input, .interest-fields textarea {
  font: inherit;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
  padding: 11px 12px;
  border: 1px solid var(--border);
  background: var(--white);
}
.interest-fields input:focus, .interest-fields textarea:focus { outline: none; border-color: var(--gold); }
.interest-form .btn { display: block; margin: 0 auto; cursor: pointer; font-family: var(--sans); }
.interest-error { text-align: center; color: #a33; margin-top: 14px; }
.interest-thanks-title { font-family: var(--serif); font-size: 2rem; color: var(--gold-dark); }
.interest-again {
  margin-top: 14px; border: none; background: none; cursor: pointer;
  color: var(--text-soft); text-decoration: underline; font: inherit; font-size: 0.85rem;
}
@media (max-width: 600px) {
  .interest-fields { grid-template-columns: 1fr; }
  .interest-choices span { font-size: 1.05rem; }
}

/* ===== Photo viewer ===== */
.gallery-item img, .story-photo img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(22, 18, 16, 0.95);
  font-family: var(--sans);
}
.lb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.lb-img {
  max-width: 92vw;
  max-height: 84vh;
  transform-origin: center;
  cursor: zoom-in;
  -webkit-user-drag: none;
}
.lightbox.zoomed .lb-img { cursor: grab; }
.lightbox.zoomed .lb-img:active { cursor: grabbing; }

.lb-btn {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.lb-btn:hover { background: rgba(184, 150, 76, 0.75); }
.lb-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; font-size: 2rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 2.4rem; padding-bottom: 4px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-bar {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.lb-bar .lb-btn { position: static; width: 40px; height: 40px; font-size: 1.4rem; }
.lb-count { color: rgba(255, 255, 255, 0.8); font-size: 0.8rem; letter-spacing: 0.15em; min-width: 60px; text-align: center; }

@media (max-width: 600px) {
  .lb-prev, .lb-next { display: none; } /* swipe instead */
  .lb-img { max-width: 100vw; max-height: 78vh; }
}

/* ===== Music button ===== */
.music-toggle {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 16px;
  border: 1px solid var(--gold);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gold-dark);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(120, 90, 40, 0.18);
  animation: music-pulse 2.4s ease-in-out infinite;
}
.music-icon { font-size: 1.4rem; line-height: 1; }
/* After the first tap, shrink to just the icon */
.music-toggle.used { width: 52px; padding: 0; justify-content: center; animation: none; }
.music-toggle.used .music-label { display: none; }
.music-toggle.playing .music-icon { animation: music-bob 1.2s ease-in-out infinite; }
.music-toggle:not(.playing).used .music-icon { opacity: 0.55; }

@keyframes music-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(120, 90, 40, 0.18), 0 0 0 0 rgba(184, 150, 76, 0.35); }
  50% { box-shadow: 0 4px 14px rgba(120, 90, 40, 0.18), 0 0 0 10px rgba(184, 150, 76, 0); }
}
@keyframes music-bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-3px) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .music-toggle, .music-toggle .music-icon { animation: none !important; }
}

/* ===== Mobile ===== */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px; width: 100%; text-align: center; }
  .nav-links .nav-rsvp { border: none; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero h1 { letter-spacing: 0.1em; }
  .hero-details, .hero-countdown { letter-spacing: 0.08em; }
  .schedule li { flex-direction: column; gap: 2px; }
  .gallery { --row: 170px; gap: 6px; padding: 6px; }
}

/* Discreet link to Pages CMS for Shani & Maria (editing needs their GitHub login) */
.footer-edit {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0.55;
  text-decoration: none;
}
.footer-edit:hover { opacity: 1; color: var(--gold-dark); }
