/* =========================================================================
   Tuscan wedding — palette drawn from the villa: honey limestone, terracotta
   roof-tile, cypress + olive green, soft Tuscan sky.
   ========================================================================= */

:root {
  --paper:        #e8ede0;   /* light sage green */
  --paper-2:      #dfe6d4;   /* deeper sage tint for alt sections */
  --card:         #fbfcf7;
  --ink:          #2c2a20;   /* deep stone shadow */
  --ink-soft:     #4a4638;
  --muted:        #857c66;

  --stone:        #b8a684;   /* honey stone */
  --stone-deep:   #8a7a5c;
  --terracotta:   #b1573a;   /* roof tile */
  --terracotta-2: #97452d;
  --cypress:      #3f4a2a;   /* deep cypress */
  --olive:        #6d7449;
  --sage:         #98a074;
  --sky:          #7c9fbe;
  --gold:         #b3894e;
  --lavender:     #7f6cae;   /* accent — the lavender farm */
  --lavender-2:   #6c5a9c;

  --line:         rgba(44, 42, 32, 0.14);
  --shadow-sm:    0 1px 2px rgba(44, 42, 32, .06), 0 6px 18px rgba(44, 42, 32, .06);
  --shadow-lg:    0 20px 60px -20px rgba(44, 42, 32, .35);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --maxw: 940px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.2rem; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .38em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--lavender);
  margin: 0 0 1.1rem;
}

/* ---------- Loading splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--paper);
  transition: opacity .5s var(--ease);
}
.splash.is-hidden { opacity: 0; pointer-events: none; }
.splash__dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--lavender);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(.6); opacity: .4 } 50% { transform: scale(1); opacity: 1 } }

/* =========================================================================
   LOGIN GATE
   ========================================================================= */
.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(127,108,174,.30), transparent 60%),
    radial-gradient(90% 60% at 50% 120%, rgba(63,74,42,.28), transparent 55%),
    linear-gradient(180deg, #dbe3d0 0%, #e8ede0 45%, #d7e0cb 100%);
}
/* faint tower silhouette line-art vibe via layered gradients */
.gate::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.25), transparent 12%),
    radial-gradient(circle at 82% 22%, rgba(255,255,255,.18), transparent 10%);
  pointer-events: none;
}

.gate__card {
  position: relative; z-index: 1;
  max-width: 460px;
  padding: 3.2rem 2.2rem 2.6rem;
  background: rgba(255,253,247,.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

/* Getario resolves from ink as the password is typed (see gate.js) */
.gate__photo {
  position: relative;
  width: min(58vw, 220px);
  aspect-ratio: 4 / 5;
  margin: .4rem auto 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow: 0 14px 34px -14px rgba(44, 42, 32, .5);
  background: #efe6d3;
}
.gate__photo canvas { width: 100%; height: 100%; display: block; }
/* no-WebGL fallback: blurred image + animated noise overlay */
.gate__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .9s var(--ease), opacity .9s var(--ease);
}
.gate__noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: .5;
  transition: opacity .9s var(--ease);
  animation: noise-shift 1.8s steps(2) infinite;
}
@keyframes noise-shift { to { background-position: 60px 30px; } }

.gate__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1.06;
  letter-spacing: .01em;
  margin: 0 0 1rem;
  color: var(--ink);
}
.gate__sub {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin: 0 auto 1.8rem;
  max-width: 30ch;
}

.login { display: flex; flex-direction: column; gap: .8rem; }
.login input[type="password"] {
  font-family: var(--sans);
  font-size: 1rem;
  text-align: center;
  letter-spacing: .12em;
  padding: .95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.login input[type="password"]:focus {
  outline: none;
  border-color: var(--lavender);
  box-shadow: 0 0 0 3px rgba(127,108,174,.14);
}
.login__error {
  color: var(--lavender-2);
  font-size: .88rem;
  margin: .2rem 0 0;
}
.gate__foot {
  position: relative; z-index: 1;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .95rem 1.4rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--solid {
  background: var(--lavender);
  color: #fff8f0;
  box-shadow: 0 8px 20px -8px rgba(108,90,156,.7);
}
.btn--solid:hover { background: var(--lavender-2); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn--sm { padding: .6rem 1rem; font-size: .72rem; }
a.btn { display: inline-block; text-decoration: none; }

/* =========================================================================
   APP
   ========================================================================= */
#app[hidden], #gate[hidden] { display: none !important; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Nav: clear over the hero photo, solid once past it ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  color: #fdf7ec;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-ink { color: var(--ink); }   /* over the pale drawing */
.nav.is-solid {
  background: rgba(244, 247, 238, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.nav__in {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 1.5rem;
}
.nav__brand {
  flex: 0 0 auto;
  font-family: var(--serif); font-size: 1.35rem; line-height: 1;
  color: inherit; text-decoration: none;
}
/* The links scroll sideways on narrow screens rather than wrapping. */
.nav__links {
  flex: 1 1 auto; min-width: 0;
  display: flex; justify-content: center; gap: .2rem;
  overflow-x: auto; scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__link {
  flex: 0 0 auto;
  font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: inherit; text-decoration: none; opacity: .85;
  padding: .5rem .7rem; border-radius: 999px;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav.is-solid .nav__link.is-current { color: var(--lavender-2); opacity: 1; }
.nav__rsvp {
  flex: 0 0 auto;
  font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: #fff8f0;
  background: var(--lavender); border-radius: 3px; padding: .55rem .95rem;
  transition: background .2s var(--ease);
}
.nav__rsvp:hover { background: var(--lavender-2); }

/* ---------- Hero ----------
   Opens on the line drawing of the villa; scrolling paints the real photo in
   from the bottom up. The two images are pixel-aligned, so it happens in
   place. app.js (wireHero) sets --p (wipe progress) and --q (text flip). */
.hero {
  --p: 0; --q: 0;
  position: relative;
  height: 220vh;              /* 100vh on screen + 120vh of scroll runway */
  color: color-mix(in srgb, #fdf7ec calc(var(--q) * 100%), var(--ink));
}
.hero__pin {
  position: sticky; top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #f7ece1;        /* the drawing's cream ground */
}
.hero__photo, .hero__art {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 40%;
}
.hero__photo {
  background-image:
    linear-gradient(180deg, rgba(30,28,20,.15) 0%, rgba(30,28,20,.05) 40%, rgba(28,26,18,.72) 100%),
    url("/images/villa.jpg");
  background-image:
    linear-gradient(180deg, rgba(30,28,20,.15) 0%, rgba(30,28,20,.05) 40%, rgba(28,26,18,.72) 100%),
    image-set(url("/images/villa.webp") type("image/webp"), url("/images/villa.jpg") type("image/jpeg"));
}
.hero__art {
  /* cream wash at the foot so the names read over the linework */
  background-image:
    linear-gradient(to top, rgba(247,236,225,.96) 8%, rgba(247,236,225,.7) 34%, rgba(247,236,225,0) 62%),
    url("/images/villa-art.png");
  background-image:
    linear-gradient(to top, rgba(247,236,225,.96) 8%, rgba(247,236,225,.7) 34%, rgba(247,236,225,0) 62%),
    image-set(url("/images/villa-art.webp") type("image/webp"), url("/images/villa-art.png") type("image/png"));
  /* a soft-edged wipe: everything below the edge is erased to show the photo */
  --edge: calc(var(--p) * 150% - 8%);
  -webkit-mask-image: linear-gradient(to top, transparent calc(var(--edge) - 34%), #000 var(--edge));
  mask-image: linear-gradient(to top, transparent calc(var(--edge) - 34%), #000 var(--edge));
}
.hero__inner {
  position: relative; z-index: 1;
  width: 100%;
  padding: 5rem 1.5rem 4.5rem;
  animation: rise 1.1s var(--ease) both;
}
.hero .eyebrow { color: color-mix(in srgb, #dccff2 calc(var(--q) * 100%), var(--lavender-2)); }
.hero__names {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 11vw, 6.5rem);
  line-height: .98;
  margin: 0;
  text-shadow: 0 2px 30px rgb(0 0 0 / calc(var(--q) * .35));
}
.hero__amp {
  font-style: italic; font-weight: 400;
  color: color-mix(in srgb, #cdbfe8 calc(var(--q) * 100%), var(--lavender));
}
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  margin-top: 1.4rem;
  font-size: 1.05rem;
  letter-spacing: .04em;
}
.hero__meta .dot { opacity: .6; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 1;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: inherit;
  opacity: calc(.75 - var(--p) * 3);   /* gone once the scrolling has started */
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  animation: bob 2.4s ease-in-out infinite;
}
.hero__scroll span { width: 1px; height: 34px; background: currentColor; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0) } 50% { transform: translate(-50%, 8px) } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section--tint { background: var(--paper-2); }
.section__eyebrow { text-align: center; }
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.12;
  text-align: center;
  margin: 0 auto 1.4rem;
  max-width: 20ch;
}
.section__lead {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.12rem;
  white-space: pre-line; /* preserve paragraph/line breaks as written */
}
.rule {
  width: 54px; height: 1px; margin: 1.6rem auto 2rem;
  background: var(--lavender); position: relative;
}
.rule::before, .rule::after {
  content: ""; position: absolute; top: 50%; width: 4px; height: 4px;
  border-radius: 50%; background: var(--lavender); transform: translateY(-50%);
}
.rule::before { left: -10px; }
.rule::after { right: -10px; }

/* "The Plan" section — lavender accent (the lavender farm) */
.section--plan .eyebrow { color: var(--lavender); }
.section--plan .rule { background: var(--lavender); }
.section--plan .rule::before,
.section--plan .rule::after { background: var(--lavender); }
.section--plan .fact__label { color: var(--lavender-2); }
.section--plan .venue-note { color: var(--lavender-2); }

/* fact cards */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 2.8rem;
}
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.6rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.fact__label {
  text-transform: uppercase; letter-spacing: .24em; font-size: .68rem;
  color: var(--lavender); font-weight: 500;
}
.fact__value {
  font-family: var(--serif); font-size: 1.5rem; margin-top: .5rem; color: var(--ink);
}

.venue-note {
  margin: 2.8rem auto 0;
  max-width: 60ch; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem;
  color: var(--ink-soft); line-height: 1.5;
}

/* ---------- Schedule: one card per day, events on a little timeline ---------- */
.days {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1rem; margin-top: 2.8rem;
}
.day {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.6rem 1.25rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.day__head { margin-bottom: 1.3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.day__label { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.15; margin: 0; }
.day__date {
  margin: .4rem 0 0;
  text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; color: var(--muted);
}
.day__events { list-style: none; margin: 0; padding: 0; }
.event { position: relative; padding: 0 0 1.3rem 1.4rem; }
.event::before {            /* dot */
  content: ""; position: absolute; left: 0; top: .42rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--lavender);
}
.event::after {             /* line down to the next dot */
  content: ""; position: absolute; left: 3px; top: 1.05rem; bottom: -.2rem;
  width: 1px; background: var(--line);
}
.event:last-child::after { display: none; }
.event__time {
  text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; font-weight: 500;
  color: var(--lavender-2);
}
.event__title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; margin-top: .15rem; }
.event__where { font-size: .88rem; color: var(--muted); margin-top: .1rem; }
.event__detail { margin: .3rem 0 0; font-size: .95rem; color: var(--ink-soft); white-space: pre-line; }

/* ---------- Venue ---------- */
.venue {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.8rem, 5vw, 3.5rem);
  align-items: center;
}
.venue__pic {
  position: relative;
  aspect-ratio: 2000 / 1343;
  border-radius: 4px; overflow: hidden;
  background: #f7ece1; /* matches the artwork's cream ground */
  box-shadow: var(--shadow-lg);
}
.venue__art {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-image: url("/images/villa-art.png");
  background-image:
    image-set(url("/images/villa-art.webp") type("image/webp"), url("/images/villa-art.png") type("image/png"));
}
.venue__name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1.12; margin: 0 0 1.1rem;
}
.venue__blurb {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.5;
  color: var(--lavender-2); margin: 0 0 1.1rem; white-space: pre-line;
}
.venue__notes { color: var(--ink-soft); margin: 0 0 1.1rem; white-space: pre-line; }
.venue__address { color: var(--muted); font-size: .95rem; margin: 0 0 1.4rem; white-space: pre-line; }

/* ---------- Travel / Stay cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem; margin-top: 2.8rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--lavender);
  border-radius: 4px;
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card__title { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; margin: 0 0 .6rem; }
.card__body { margin: 0; color: var(--ink-soft); white-space: pre-line; }
.card__link {
  display: inline-block; margin-top: 1rem;
  font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--lavender-2); text-decoration: none;
}
.card__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 660px; margin: 2.4rem auto 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.15rem .2rem;
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.3;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; flex: 0 0 auto;
  font-family: var(--sans); font-weight: 300; font-size: 1.4rem; color: var(--lavender);
  transition: transform .2s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { margin: 0; padding: 0 .2rem 1.3rem; color: var(--ink-soft); white-space: pre-line; }
.faq__contact { text-align: center; margin: 2rem 0 0; color: var(--muted); }
.faq__contact a { color: var(--lavender-2); }

/* ---------- Registry ---------- */
.registry__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.2rem;
}

/* =========================================================================
   RSVP FORM
   ========================================================================= */
.rsvp { margin-top: 2.8rem; }
.rsvp__yes[hidden] { display: none; }
.rsvp__closed {
  max-width: 50ch; margin: 0 auto; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-soft);
}
.rsvp__prior {
  margin: 0 0 2.2rem; padding: .9rem 1.1rem;
  background: #f2effa; border: 1px solid #d9d1ef; border-radius: 3px;
  color: var(--ink-soft); font-size: .95rem;
}

.guests { display: flex; flex-direction: column; gap: .9rem; }
.guests__add { margin-top: .9rem; }
.guest {
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1.1rem 1.1rem 1.2rem;
  background: rgba(251, 252, 247, .6);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.guest__head { display: flex; align-items: center; justify-content: space-between; }
.guest__n, .guest__label {
  text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; font-weight: 500;
  color: var(--lavender-2);
}
.guest__label { color: var(--muted); margin-top: .2rem; }
.guest__remove {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--sans); font-size: .78rem; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.guest__remove:hover { color: var(--lavender-2); }
.guest__remove[hidden] { display: none; }
.guest__events { display: flex; flex-wrap: wrap; gap: .5rem; }
.guest__events .opt { padding: .55rem .9rem .55rem .7rem; gap: .6rem; }
.guest__events .opt__text { font-size: .92rem; }
select.field { appearance: none; }

/* shared form pieces */
.survey { max-width: 660px; margin: 0 auto; }
.q {
  margin-bottom: 2.2rem;
  animation: rise .6s var(--ease) both;
}
.q__label {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: .35rem;
}
.q__req { color: var(--lavender); font-size: 1rem; vertical-align: super; }
.q__help { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; }

.field {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: .85rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field:focus {
  outline: none; border-color: var(--lavender);
  box-shadow: 0 0 0 3px rgba(127,108,174,.13);
}
textarea.field { min-height: 120px; resize: vertical; line-height: 1.6; }

/* centred call-to-action sections (registry) */
.cta { text-align: center; }

/* radio options as selectable cards */
.options { display: flex; flex-direction: column; gap: .6rem; }
.opt {
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .1s var(--ease);
}
.opt:hover { border-color: var(--sage); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__mark {
  flex: 0 0 auto;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--stone-deep);
  display: grid; place-items: center;
  transition: border-color .18s var(--ease);
}
.opt__mark::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--lavender); transform: scale(0);
  transition: transform .18s var(--ease);
}
.opt__text { font-size: 1rem; color: var(--ink-soft); }
.opt input:checked + .opt__mark { border-color: var(--lavender); }
.opt input:checked + .opt__mark::after { transform: scale(1); }
.opt:has(input:checked) {
  border-color: var(--lavender);
  background: #f2effa;
}
.opt:has(input:checked) .opt__text { color: var(--ink); }
.opt input:focus-visible + .opt__mark {
  box-shadow: 0 0 0 3px rgba(127,108,174,.2);
}
/* checkbox flavour: square mark */
.opt--check .opt__mark { border-radius: 4px; width: 18px; height: 18px; }
.opt--check .opt__mark::after { border-radius: 2px; }

.submit-row {
  margin-top: 2.6rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.submit-row .btn { min-width: 240px; padding: 1.05rem 1.4rem; }
.form-error {
  color: var(--lavender-2); font-size: .92rem; text-align: center;
}

/* ---------- Thank you ---------- */
.thanks {
  max-width: 560px; margin: 0 auto; text-align: center;
  animation: rise .7s var(--ease) both;
}
.thanks__mark {
  width: 78px; height: 78px; margin: 0 auto 1.6rem;
  border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 2rem; color: var(--lavender);
}
.thanks__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 1rem;
}
.thanks__body { color: var(--ink-soft); font-size: 1.12rem; }
.thanks__edit {
  margin-top: .6rem; background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: .8rem; color: var(--muted);
  text-decoration: underline; text-underline-offset: 4px;
}
.thanks__edit:hover { color: var(--lavender-2); }
/* Getario peeks over the bottom edge of the thank-you card */
.rsvp .thanks {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 2.4rem 2rem 0;   /* no bottom padding — the peek sits flush */
  overflow: hidden;
}
.thanks__caption {
  margin: 1.4rem 0 0;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted);
}
.thanks__peek {
  width: 190px;
  height: 130px;            /* shows ears + eyes + a hint of nose */
  margin: 1rem auto 0;
  overflow: hidden;
}
.thanks__peek img {
  width: 100%;
  transform: translateY(102%);
  animation: peek-up 3.4s var(--ease) .5s forwards;
}
@keyframes peek-up {
  0%, 42% { transform: translateY(102%); }  /* ...beat... */
  100%    { transform: translateY(0); }      /* ...sloooowly up */
}

/* ---------- Footer ---------- */
.foot {
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  background: var(--cypress);
  color: #e7e2d0;
}
.foot__mono { font-family: var(--serif); font-size: 1.8rem; color: #cdbfe8; }
.foot__line {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(231,226,208,.7); margin-top: .8rem;
}
.foot__logout {
  margin-top: 1.4rem; background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(231,226,208,.55);
  text-decoration: underline; text-underline-offset: 4px;
}
.foot__logout:hover { color: #cdbfe8; }

/* ---------- Animations & responsive ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }

@media (max-width: 760px) {
  .venue { grid-template-columns: 1fr; }
  .nav__in { padding: .6rem 1rem; gap: .5rem; }
  .nav__links {
    justify-content: flex-start;
    /* fade the right edge to hint that the links scroll */
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent);
  }
  .nav__links::after { content: ""; flex: 0 0 1.5rem; }
  .nav__link { letter-spacing: .14em; padding: .5rem .55rem; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .hero__inner { padding-bottom: 6.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .thanks__peek img { transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
