/* ─────────────────────────────────────────────────────────
   Sophie & Alexander's Wedding
   Palette and type taken from the save-the-date invitation.
   ───────────────────────────────────────────────────────── */

:root {
  --cream:      #F6F4F0;
  --cream-deep: #F0EDE6;
  --green:      #57683B;   /* the names on the invitation */
  --green-soft: #7D8B63;
  --pink:       #C06A87;   /* the letterspaced caps        */
  --pink-soft:  #D9A2B2;
  --ink:        #4A4740;
  --ink-soft:   #7B766C;
  --line:       #DCD6C9;

  --serif:  "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --script: "Petit Formal Script", "Cormorant Garamond", cursive;

  --wrap: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Vine frame: rails hug the edges, content is inset to sit inside them. */
  --vine-gap: 1rem;
  --vine-w: clamp(140px, 14vw, 220px);
  --frame-gutter: calc(var(--vine-gap) + var(--vine-w) + 1.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

html { background: var(--cream); scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  position: relative; /* anchor for the page-scrolling vine rails */
  margin: 0;
  background: transparent; /* html carries the canvas colour so rails sit above it */
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, 1.15vw, 19px);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Continuous vine rails ─────────────────────────────────
   A single floral element repeats down each side. The rails
   are absolute (not fixed) so they scroll with the page, and
   paint ABOVE the section bands so the vines keep one
   consistent colour on every background. */
.vine-rail {
  position: absolute; top: 0; bottom: 0;
  width: var(--vine-w);
  z-index: 1;
  pointer-events: none; user-select: none;
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: top center;
  /* the elements ship on a solid white background — multiply drops the
     white into the cream canvas so only the watercolour shows */
  mix-blend-mode: multiply;
}
.vine-l { left: var(--vine-gap); background-image: url(assets/vine-left-element.png); }
.vine-r { right: var(--vine-gap); background-image: url(assets/vine-right-element.png); }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--green); color: var(--cream);
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--frame-gutter)); margin-inline: auto; position: relative; z-index: 2; }
.wrap.narrow { width: min(720px, 100% - 2 * var(--frame-gutter)); }
.center { text-align: center; }

/* ── Typography ─────────────────────────────────────────── */

h2 {
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  font-weight: 300;
  color: var(--green);
  letter-spacing: .06em;
  line-height: 1.1;
  margin: .1em 0 0;
}

h3 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 .9rem;
}

p { margin: 0 0 1.15em; }

.kicker,
.eyebrow {
  font-size: clamp(.72rem, 1.1vw, .84rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0;
  line-height: 2.1;
}

.lede { font-size: 1.16em; color: var(--ink); }

.rule {
  width: 78px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink-soft) 22%, var(--pink-soft) 78%, transparent);
  margin: 1.6rem auto 2.2rem;
  position: relative;
}
.rule::after {
  content: "❋";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--cream);
  color: var(--pink-soft);
  font-size: .7rem; line-height: 1;
  padding: 0 .5rem;
}
.soft .rule::after { background: var(--cream-deep); }

.signature {
  font-family: var(--script);
  font-size: 1.5rem;
  color: var(--green-soft);
  line-height: 1.6;
  margin-top: 2rem;
}

/* ── Navigation ─────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(246, 244, 240, .93);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.nav-mark {
  font-size: 1.35rem; letter-spacing: .28em;
  color: var(--green); text-decoration: none;
  white-space: nowrap;
}
.nav-mark span { font-family: var(--script); letter-spacing: 0; color: var(--pink); }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); margin-left: auto; }

.nav-links a {
  font-size: .82rem; letter-spacing: .21em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--pink); border-color: var(--pink-soft); }

.nav-links .nav-cta {
  color: var(--pink);
  border: 1px solid var(--pink-soft);
  border-radius: 999px;
  padding: .5rem 1.2rem;
}
.nav-links .nav-cta:hover { background: none; color: var(--pink); border-color: var(--pink); }

.nav-toggle {
  display: none;
  font-family: var(--serif); font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase;
  background: none; color: var(--green);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1.1rem; cursor: pointer;
}

/* ── Nav colour ─────────────────────────────────────────── */
.nav.nav-green { backdrop-filter: none; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.nav.nav-green { background: var(--green); }

.nav.nav-green .nav-mark { color: var(--cream); }
.nav.nav-green .nav-mark span { color: var(--cream); }

.nav.nav-green .nav-links a { color: rgba(246, 244, 240, .82); }
.nav.nav-green .nav-links a:hover { color: var(--pink-soft); border-color: var(--pink-soft); }

.nav.nav-green .nav-cta { color: var(--cream); border-color: rgba(246, 244, 240, .55); }
.nav.nav-green .nav-cta:hover { background: none; color: var(--pink-soft); border-color: var(--pink-soft); }

/* ── Music toggle ───────────────────────────────────────── */

.nav-actions { display: flex; align-items: center; gap: .6rem; }

.nav-music {
  display: inline-grid; place-items: center;
  width: 2.3rem; height: 2.3rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink-soft);
  border-radius: 50%;
  transition: color .3s, background .3s;
}
.nav-music:hover { color: var(--green); background: rgba(87, 104, 59, .08); }
.nav-music svg { width: 1.2rem; height: 1.2rem; display: block; }
.nav-music .music-off { display: none; }
.nav-music.is-muted .music-on { display: none; }
.nav-music.is-muted .music-off { display: block; }

.nav.nav-green .nav-music { color: rgba(246, 244, 240, .82); }
.nav.nav-green .nav-music:hover { color: var(--cream); background: rgba(246, 244, 240, .14); }

.nav.nav-green .nav-toggle { color: var(--cream); border-color: rgba(246, 244, 240, .5); }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  /* matches the couple sketch's own background so the image floats seamlessly */
  background: #F6F4F1;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center;
  padding: clamp(6rem, 13vh, 9rem) max(1.5rem, var(--frame-gutter)) clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}

/* Arch + legs are one continuous path per side. The reveal is a clip-path
   wipe rather than a stroke-dash animation because the frame uses
   preserveAspectRatio="none" + non-scaling-stroke, which makes dash lengths
   scale with the viewport and leaves the legs half-drawn. */
.hero-frame {
  display: none; /* temporarily hidden — the pink arch framing the hero names */
  position: absolute;
  top: 0;
  left: -20%;
  width: 140%;
  height: 200%;
  fill: none;
  stroke: var(--pink-soft);
  stroke-width: 1.25;
  stroke-linecap: round;
  pointer-events: none;
  user-select: none;
  clip-path: inset(0 0 100% 0);
  animation: hero-frame-wipe 10s var(--ease) .15s forwards;
}
.hero-frame path {
  vector-effect: non-scaling-stroke;
}
@keyframes hero-frame-wipe {
  to { clip-path: inset(0 0 0 0); }
}

.hero-content {
  position: relative; z-index: 2; text-align: center; max-width: 860px;
  width: 100%;
}
.hero-text-frame {
  position: relative;
  padding: 2.25rem clamp(1rem, 4vw, 2rem) 0;
}

/* soft cream veil behind the text so the eyebrow/date stay readable
   over the watercolour florals */
.hero-content::before {
  content: "";
  position: absolute; inset: -14% -18%;
  background: radial-gradient(58% 58% at 50% 46%,
    rgba(246, 244, 240, .96) 0%,
    rgba(246, 244, 240, .82) 55%,
    rgba(246, 244, 240, 0) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero-content > * { position: relative; }

.names {
  margin: 1.2rem 0 1rem;
  display: flex; flex-direction: column; align-items: center;
  font-weight: 300;
}
.name {
  display: block;
  font-size: clamp(3rem, 9.5vw, 6.3rem);
  line-height: .98;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  text-indent: .1em; /* balance the trailing letterspace */
}
.amp {
  display: block;
  font-family: var(--script);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: 0;
  text-transform: none;
  color: var(--green-soft);
  margin: .15em 0 .1em;
}

.hero .eyebrow {
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  letter-spacing: .24em;
}

.date {
  margin-top: 1.1rem;
  font-size: clamp(1.7rem, 4.6vw, 3.2rem);
  letter-spacing: .12em;
  line-height: 1.35;
}
.date sup { font-size: .62em; letter-spacing: .1em; }
.date .bar { color: var(--pink-soft); margin: 0 .25em; }

.hero-couple {
  width: min(430px, 76%);
  margin: clamp(1.5rem, 4vh, 3rem) auto 0;
  /* image bg (#F6F4F1) matches the hero bg exactly — no blend needed,
     and multiply would darken the opaque background into a visible box */
}

/* ── Invitation gate ────────────────────────────────────── */

/* Script turns on gating before first paint (html.gated), so nothing below
   the hero renders until the guest opens the invitation. With JS off the
   class is never added and the whole page shows. */
html.gated .countdown-band,
html.gated main > .section,
html.gated .footer { display: none; }

.invite-open {
  /* only exists while gated — a no-op button would confuse no-JS guests */
  display: none;
  margin-top: clamp(1.5rem, 4vh, 2.6rem);
  flex-direction: column; align-items: center; gap: .5rem;
  background: none; border: 0; padding: .5rem .9rem; cursor: pointer;
  color: var(--pink);
  font-family: var(--serif);
  font-size: clamp(.78rem, 1.5vw, .95rem);
  letter-spacing: .28em; text-transform: uppercase;
  transition: color .3s;
}
html.gated .invite-open { display: inline-flex; }
.invite-open:hover { color: var(--green); }
.invite-chevron { display: block; animation: invite-bob 2.4s var(--ease) infinite; }
/* Wide, flat envelope-flap chevron. Bounded well below the vine inset
   (content sits inside --frame-gutter) so it never crosses the rails. */
.invite-chevron svg { width: clamp(4rem, 16vw, 8rem); height: auto; aspect-ratio: 72 / 20; display: block; }

@keyframes invite-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* Opening: the chevron drifts out while the page eases in below it. */
html.invited .invite-open { display: inline-flex; }
html.invited .invite-open.is-leaving {
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

html.invited .countdown-band,
html.invited main > .section,
html.invited .footer { animation: invite-reveal 1.4s var(--ease) both; }

@keyframes invite-reveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ── Storybook embed ────────────────────────────────────── */

.storybook-frame {
  width: min(640px, 100%);
  margin: 2.2rem auto 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 44px -26px rgba(74, 66, 56, .5);
  overflow: hidden;
}
.storybook-frame iframe {
  width: 100%;
  height: min(150vw, 900px);
  border: 0;
  display: block;
}
.frame-link { margin-top: 1.6rem; font-size: .95em; }
.frame-link a { color: var(--pink); text-decoration: none; border-bottom: 1px solid var(--pink-soft); }
.frame-link a:hover { color: var(--green); border-color: var(--green-soft); }

/* ── Carousel ───────────────────────────────────────────── */

.carousel {
  position: relative;
  width: min(760px, 100%);
  margin: 2.2rem auto 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cream);
  box-shadow: 0 18px 44px -26px rgba(74, 66, 56, .5);
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform .65s var(--ease);
}

.slide {
  flex: 0 0 100%;
  margin: 0;
  display: flex;
  flex-direction: column-reverse;
}
.slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* slight zoom for a single photo; the wrapper clips the overflow */
.img-zoom { overflow: hidden; }
.img-zoom img { transform: scale(1.08); }
.slide figcaption {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .85rem 1rem .95rem;
  font-size: 1.25rem; font-style: italic;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.slide figcaption:empty { display: none; }

.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  padding: 0;
  font-size: 1.5rem; line-height: 1;
  font-family: var(--serif);
  color: var(--green);
  background: rgba(246, 244, 240, .88);
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.car-btn:hover { background: var(--green); color: var(--cream); }
.car-glyph { display: block; line-height: 1; transform: translateY(-2px); }
.car-prev { left: .8rem; }
.car-next { right: .8rem; }

.car-dots {
  display: flex; gap: .5rem; justify-content: center;
  padding: .85rem 0 .9rem;
}
.car-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--ink-soft);
  background: transparent;
  padding: 0; cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
}
.car-dot.active { background: var(--green); border-color: var(--green); transform: scale(1.25); }

/* ── Countdown ──────────────────────────────────────────── */

.countdown-band {
  background: rgba(240, 237, 230, .78);
  border-block: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 2.8rem) 0;
}

.countdown {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center;
  gap: clamp(1.4rem, 6vw, 4.5rem);
  flex-wrap: wrap;
}
.countdown li { text-align: center; }
.countdown strong {
  display: block;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 300; line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.countdown span {
  display: block; margin-top: .55rem;
  font-size: .66rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--pink);
}

/* ── Sections ───────────────────────────────────────────── */

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.soft { background: rgba(240, 237, 230, .78); }

/* ── Cards ──────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
  text-align: center;
  margin-top: .5rem;
}
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); max-width: 860px; margin-inline: auto; }

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: clamp(2rem, 3.4vw, 2.8rem) 1.6rem;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease),
              background .4s var(--ease), border-color .4s var(--ease);
}
.soft .card { background: var(--cream); }
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px -22px rgba(74, 71, 64, .45);
  background: rgba(192, 106, 135, .12);
  border-color: var(--pink-soft);
}

.card p { margin-bottom: .9em; }
.card p:last-child { margin-bottom: 0; }
.card em { font-style: italic; color: var(--green); }

.card-time {
  font-family: var(--script);
  font-size: 1.75rem;
  color: var(--pink);
  line-height: 1.3;
  margin-bottom: .7em;
}

.card-note {
  font-size: .88em; font-style: italic;
  color: var(--ink-soft);
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

/* ── Timeline ───────────────────────────────────────────── */

.timeline { list-style: none; margin: 0; padding: 0; text-align: left; }

.timeline li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: .2rem 1.6rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.timeline li:first-child { border-top: 1px solid var(--line); }

.t-time {
  grid-row: 1 / 3;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--pink);
  padding-top: .45rem;
}
.t-what { font-size: 1.5rem; color: var(--green); line-height: 1.3; }
.t-note { font-size: .92em; font-style: italic; color: var(--ink-soft); }

/* ── Hotel list ─────────────────────────────────────────── */

.hotel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.hotel-list li {
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.hotel-list li:last-child { border-bottom: 0; }
.hotel-list em { display: block; margin-bottom: .2rem; }
.hotel-list a {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, color .3s;
}
.hotel-list a:hover, .hotel-list a:focus-visible { border-color: var(--pink); }

/* ── Photos ─────────────────────────────────────────────── */

.photos-actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .9rem;
  margin-top: 1.9rem;
}
.photos-actions .btn { padding: 1.1rem 2.4rem; }

/* placeholders until the gallery opens on the night — dimmed, unclickable */
.photos-actions .btn:disabled {
  cursor: not-allowed;
  background: rgba(74, 71, 64, .38);
  border-color: transparent;
  color: rgba(246, 244, 240, .82);
}
.photos-actions .btn:disabled:hover {
  background: rgba(74, 71, 64, .38);
  color: rgba(246, 244, 240, .82);
}

/* ── Travel blocks ──────────────────────────────────────── */

.travel-blocks {
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
  text-align: center;
  margin-top: .5rem;
}

.travel-block {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.6rem);
}
.travel-block h3 { margin-bottom: 1rem; text-align: center; }
.travel-block h3 .h3-sub { display: block; color: var(--pink); }
.travel-block > p:last-of-type { margin-bottom: 0; }
.travel-block em { font-style: italic; font-weight: 600; color: var(--green); }

.travel-list { list-style: none; margin: .7rem 0 0; padding: 0; }
.travel-list li {
  padding: .4rem 0;
  color: var(--ink);
}
.travel-block .hotel-list { margin-top: .4rem; }

.travel-map {
  display: block; width: 100%;
  margin: 1.5rem 0 0; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 4px;
  cursor: zoom-in; position: relative; overflow: hidden;
}
.travel-map img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.travel-map:hover img { transform: scale(1.02); }
.travel-map-hint {
  position: absolute; right: .7rem; bottom: .7rem;
  font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green); background: rgba(246, 244, 240, .92);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .32rem .85rem;
  pointer-events: none;
}

/* ── Map lightbox ───────────────────────────────────────── */

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 2vmin;
  background: rgba(28, 27, 23, .92);
  overflow: auto;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 100%; max-height: 92vh;
  width: auto; height: auto;
  cursor: zoom-in;
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, .7);
}
.lightbox.zoomed { align-items: flex-start; justify-content: flex-start; }
.lightbox.zoomed .lightbox-img { max-width: none; max-height: none; cursor: zoom-out; }

.lightbox-close {
  position: fixed; top: 1rem; right: 1rem; z-index: 201;
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  font-size: 1.4rem; line-height: 1;
  color: var(--cream); background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(246, 244, 240, .5); border-radius: 50%;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(0, 0, 0, .6); }

/* ── RSVP form ──────────────────────────────────────────── */

.rsvp { background: var(--cream); }

.form { text-align: left; margin-top: .5rem; }

.field { margin-bottom: 1.6rem; border: 0; padding: 0; }

.field label,
.field legend {
  display: block; padding: 0;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .6rem;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--serif); font-size: 1.02rem; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: .55rem .1rem;
  transition: border-color .3s;
}
.field textarea { border: 1px solid var(--line); padding: .7rem .8rem; resize: vertical; }
.field :is(input, select, textarea):focus {
  outline: none; border-color: var(--pink);
}

.choices { display: flex; gap: 2rem; flex-wrap: wrap; }
.choices label {
  display: flex; align-items: center; gap: .55rem;
  font-size: 1rem; letter-spacing: 0; text-transform: none;
  color: var(--ink); cursor: pointer; margin: 0;
}
.choices input { accent-color: var(--green); width: 1rem; height: 1rem; }

.btn {
  font-family: var(--serif);
  font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--cream); background: var(--green);
  border: 1px solid var(--green); border-radius: 999px;
  padding: 1.3rem 3rem;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--green); }

#rsvp-submit { display: block; margin: 1.5rem auto 0; }

.form-status {
  margin: 1.1rem 0 0;
  font-style: italic; color: var(--green-soft);
  min-height: 1.6em;
}
.form-status.error { color: var(--pink); }

/* ── RSVP guest cards ───────────────────────────────────── */

.rsvp-for { font-style: italic; color: var(--ink-soft); margin-top: -.6rem; }
.rsvp-for strong { color: var(--ink); font-weight: 500; }

.rsvp-people { display: flex; flex-direction: column; gap: .8rem; }

.person-card {
  background: #FCFBF7;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(74, 71, 64, .04);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.person-card.on {
  background: #F6F8EF;
  border-color: var(--green-soft);
  box-shadow: 0 2px 12px rgba(87, 104, 59, .10);
}

.person {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; text-align: left;
  font-family: var(--serif); font-size: 1.15rem;
  color: var(--ink);
  background: none; border: 0; border-radius: 3px;
  padding: 1.05rem 1.3rem;
  cursor: pointer;
}
.person:focus-visible { outline: 2px solid var(--green-soft); outline-offset: -2px; }

.person-tick {
  flex: none;
  width: 1.65rem; height: 1.65rem;
  border: 1.5px solid #C4BDAE; border-radius: 50%;
  display: grid; place-items: center;
  color: transparent; font-size: .9rem; line-height: 1;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.person[aria-pressed="true"] .person-tick {
  background: var(--green); border-color: var(--green); color: var(--cream);
}

/* per-guest details (dietary etc), revealed when attending */
.person-details {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .25s var(--ease);
}
.person-details.open { grid-template-rows: 1fr; }
.person-details-inner { overflow: hidden; min-height: 0; }
.person-details input {
  width: calc(100% - 2.6rem);
  margin: 0 1.3rem 1.05rem;
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: .3rem .05rem;
  transition: border-color .3s;
}
.person-details input::placeholder { color: #B7B1A4; font-style: italic; }
.person-details input:focus { outline: none; border-color: var(--pink); }

/* done state */
#rsvp-done .script {
  font-family: var(--script); font-weight: 400;
  font-size: 2.3rem; color: var(--green);
  margin: 0 0 .3rem;
}
.rsvp-done-msg { font-size: 1.1rem; color: var(--ink); }
.rsvp-edit-note { font-size: .9rem; color: var(--ink-soft); margin-top: 1.1rem; }
.rsvp-link-btn {
  margin-top: .4rem;
  font-family: var(--serif); font-size: .95rem;
  color: var(--green);
  background: none; border: none;
  border-bottom: 1px solid var(--green-soft);
  padding: 0 0 2px; cursor: pointer;
}
.rsvp-link-btn:hover { color: var(--green-soft); }

/* ── FAQ ────────────────────────────────────────────────── */

.faq-list { text-align: left; }

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }

.faq-list summary {
  list-style: none; cursor: pointer;
  padding: 1.35rem 2.5rem;
  position: relative;
  font-size: 1.3rem; color: var(--green);
  text-align: center;
  transition: color .3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: .4rem; top: 50%;
  transform: translateY(-50%);
  color: var(--pink); font-size: 1.4rem; line-height: 1;
  transition: transform .35s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--pink); }
.faq-list details p { margin: 0 0 1.5rem; color: var(--ink-soft); text-align: center; }

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  position: relative;
  background: rgba(240, 237, 230, .78);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}
.footer .wrap { position: relative; z-index: 2; }

.footer-names {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  letter-spacing: .12em; text-transform: uppercase;
  font-weight: 300; color: var(--green);
  margin: 0 0 .7rem;
}
.amp-sm {
  font-family: var(--script);
  text-transform: none; letter-spacing: 0;
  font-size: .62em; color: var(--green-soft);
  margin: 0 .18em;
}
.footer-date {
  font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--pink); margin: 0;
}

/* ── Reveal on scroll ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 820px) {
  /* keep the vines, just scale them (and the gutter) down with the viewport */
  :root {
    --vine-gap: .5rem;
    --vine-w: clamp(64px, 15vw, 140px);
    --frame-gutter: calc(var(--vine-gap) + var(--vine-w) + .75rem);
  }

  .nav-toggle { display: block; }
  .nav { background: rgba(246,244,240,.93); backdrop-filter: blur(10px); }
  .nav-inner { flex-wrap: wrap; padding: .7rem 0; }
  .nav-actions { order: 1; }
  .nav-links {
    order: 2;
    display: none;
    flex-basis: 100%;
    flex-direction: column; align-items: flex-start;
    gap: 1.15rem;
    padding: 1.2rem 0 1.4rem;
    border-top: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { padding: .55rem 1.4rem; }

  .timeline li { grid-template-columns: 1fr; gap: .25rem; }
  .t-time { grid-row: auto; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-frame { clip-path: none; animation: none; }
  .invite-chevron { animation: none; }
  html.invited .countdown-band,
  html.invited main > .section,
  html.invited .footer { animation: none; }
  html.invited .invite-open.is-leaving { transition: none; }
  .card:hover { transform: none; }
}

@media (max-width: 560px) {
  :root { --vine-w: clamp(44px, 13vw, 80px); } /* scale vines down further on phones */

  .person { font-size: 1.05rem; padding: .9rem 1rem; gap: .8rem; }
  .person-details input { width: calc(100% - 2rem); margin: 0 1rem .9rem; }
}
