/* Jess & Antonio — wedding one-pager.
   Art direction: the couple's invitation suite — royal-blue ink and toile
   line-art on warm paper, watercolor stripes, the hero painting's string
   of lanterns carried through the page. */

:root {
  --ink: #24549c;
  --ink-deep: #17376b;
  --ink-soft: rgba(36, 84, 156, 0.28);
  --paper: #fdfbf4;
  --cream: #f6f0e3;
  --wash: #e9eff7;
  --blush: #e5a9b8;
  --wine: #a33c3c;
  --wine-deep: #7e2a2a;
  --wine-soft: rgba(163, 60, 60, 0.32);
  --wine-wash: rgba(163, 60, 60, 0.06);
  --lantern: #f2b27e;
  --willow: #9db48c;
  --text: #3b4a66;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Avenir Next", sans-serif;
  --script: "Pinyon Script", cursive;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background-color: var(--paper);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 0 0.42 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  line-height: 1.7;
  font-size: 1.05rem;
}

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

/* ================= Header ================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(253, 251, 244, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--ink-soft);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.monogram {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-deep);
  text-decoration: none;
  white-space: nowrap;
}

.amp { font-family: var(--script); font-weight: 400; font-size: 0.9em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-deep);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0;
}

.site-nav a:hover { color: var(--ink); border-bottom: 1px solid var(--ink); }

.site-nav .nav-rsvp {
  border: 1.5px solid var(--ink-deep);
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
}
.site-nav .nav-rsvp:hover {
  background: var(--ink-deep);
  color: var(--paper);
  border-bottom: 1.5px solid var(--ink-deep);
}

.lang-switch { display: flex; align-items: center; gap: 0.4rem; color: var(--ink-soft); }

.lang-switch button {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  background: none;
  border: none;
  color: var(--ink-deep);
  opacity: 0.5;
  cursor: pointer;
  padding: 0.3rem 0.15rem;
}

.lang-switch button[aria-pressed="true"] {
  opacity: 1;
  border-bottom: 1.5px solid var(--ink-deep);
}

/* ================= Type ================= */

.script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.7rem, 6vw, 4rem);
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 1.6rem;
}

.script-accent {
  font-family: var(--script);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--ink);
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 5.4rem);
  letter-spacing: 0.03em;
  color: var(--ink-deep);
  line-height: 1.1;
}

h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--ink-deep);
  margin-bottom: 0.7rem;
}

.lede { max-width: 42rem; margin: 0 auto 1.4rem; }

.strong { font-weight: 400; color: var(--ink-deep); }

/* ================= Layout ================= */

.section { padding: 5.5rem 1.5rem; text-align: center; scroll-margin-top: 3.5rem; }

.section-body { max-width: 880px; margin: 0 auto; }

/* ================= Hero ================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  text-align: center;
}

.hero-painting {
  position: absolute;
  inset: 0;
  background: url("../assets/hero.jpg") center 30% / cover no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.07) translateY(-1.2%); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(253, 251, 244, 0.18) 0%,
      rgba(253, 251, 244, 0) 30%,
      rgba(253, 251, 244, 0) 52%,
      rgba(253, 251, 244, 0.82) 78%,
      var(--paper) 96%);
}

.hero-content {
  position: relative;
  padding: 0 1.5rem 4.2rem;
  text-shadow:
    0 1px 16px rgba(253, 251, 244, 0.95),
    0 0 42px rgba(253, 251, 244, 0.75);
}

.hero-content .script-accent { margin-bottom: 0.4rem; }

.hero-date {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-deep);
  margin-top: 1.1rem;
}

.hero-place {
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0.45rem 0 1.9rem;
}

.scroll-cue {
  position: relative;
  width: 1px;
  height: 3.4rem;
  margin-bottom: 1.1rem;
  background: linear-gradient(var(--ink-soft), transparent);
}

.scroll-cue span {
  position: absolute;
  top: 0; left: 50%;
  width: 7px; height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--lantern);
  box-shadow: 0 0 8px 2px rgba(242, 178, 126, 0.7);
  animation: cue-drop 2.6s ease-in-out infinite;
}

@keyframes cue-drop {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateY(2.9rem); opacity: 0; }
}

/* staged hero entrance */
.hero-stage {
  opacity: 0;
  transform: translateY(16px);
  animation: stage-in 0.9s ease forwards;
  animation-delay: calc(var(--stage) * 200ms + 150ms);
}

@keyframes stage-in { to { opacity: 1; transform: translateY(0); } }

/* ================= Buttons ================= */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 2.8rem;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
}
.btn-ink:hover { background: var(--ink-deep); border-color: var(--ink-deep); box-shadow: 0 6px 18px rgba(23, 55, 107, 0.25); }

.btn-paper {
  background: rgba(253, 251, 244, 0.85);
  color: var(--ink-deep);
  border: 1.5px solid var(--ink-deep);
  backdrop-filter: blur(2px);
}
.btn-paper:hover { background: var(--ink-deep); color: var(--paper); }

.btn-ink-line {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 0.75rem 2rem;
}
.btn-ink-line:hover { background: var(--ink); color: var(--paper); }

/* ================= Welcome ================= */

.welcome { padding-top: 0; }

.vines {
  width: min(920px, 96%);
  margin: 0 auto 2.6rem;
  opacity: 0.9;
}

.countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.4rem;
  margin: 2.6rem 0 0.6rem;
}

.count-unit { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }

.count-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.count-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.count-sep { font-family: var(--serif); font-size: 2rem; color: var(--blush); }

.big-date {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--ink-deep);
  letter-spacing: 0.12em;
  margin: 1.6rem 0 2.2rem;
}

/* ================= Schedule ================= */

.schedule-band {
  background-color: var(--wash);
  background-image: url("../assets/art/stripes.png");
  background-size: 460px auto;
  background-repeat: repeat;
  padding: 6rem 1.25rem;
  scroll-margin-top: 3.5rem;
}

.schedule-panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--ink-soft);
  border-radius: 300px 300px 28px 28px;
  padding: 5.5rem clamp(1.4rem, 6vw, 4.5rem) 3.5rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(23, 55, 107, 0.18);
}

.lantern-line {
  list-style: none;
  position: relative;
  margin-top: 1rem;
  text-align: left;
}

/* the lantern wire */
.lantern-line::before {
  content: "";
  position: absolute;
  top: 10px; bottom: 10px;
  left: 43px;
  width: 1.5px;
  background: repeating-linear-gradient(
    to bottom,
    var(--ink-soft) 0 7px,
    transparent 7px 11px
  );
}

.event {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 0;
}

.medallion {
  flex: 0 0 auto;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.medallion img { width: 52px; height: 52px; object-fit: contain; }

.medallion.flip img { transform: scaleX(-1); }

/* the lantern lights up as the event crosses the middle of the screen */
.event.lit .medallion {
  border-color: var(--lantern);
  box-shadow:
    0 0 0 5px rgba(242, 178, 126, 0.18),
    0 0 34px 6px rgba(242, 178, 126, 0.55);
}

.event-text { padding-top: 0.3rem; }

.event-text .time {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.event-text strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink-deep);
}

.event-text .desc { font-size: 0.97rem; }

/* ================= Venue ================= */

/* Venue plates — flat editorial spread with small-caps captions:
   a wide lakeside hero, then staggered large-and-small pairings
   tracing the day from ceremony to candlelight */
.prints {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.4rem 2rem;
  margin: 3rem auto 2.6rem;
  align-items: start;
}

.print { margin: 0; grid-column: 1 / -1; }

.print img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.print figcaption {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 0.7rem;
}

@media (min-width: 761px) {
  .prints .print:nth-of-type(1) img { aspect-ratio: 16 / 9; }
  .prints .print:nth-of-type(2) { grid-column: 1 / 7; }
  .prints .print:nth-of-type(2) img { aspect-ratio: 3 / 4; }
  .prints .print:nth-of-type(3) { grid-column: 7 / 13; margin-top: 4rem; }
  .prints .print:nth-of-type(3) img { aspect-ratio: 3 / 4; }
}

.divider {
  width: min(380px, 72%);
  margin: 0 auto 1.8rem;
  opacity: 0.85;
}

.address { line-height: 2.05; }
.address a { color: var(--ink); text-underline-offset: 3px; }
.address a:hover { color: var(--ink-deep); }

/* ================= Travel ================= */

.travel { background: var(--wash); }

.travel-car { width: clamp(150px, 22vw, 210px); margin: 0 auto 0.8rem; }

.travel-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.2rem;
  text-align: center;
}

.travel-card {
  background: var(--paper);
  border: 1px solid var(--ink-soft);
  border-radius: 20px;
  padding: 2.4rem 2rem;
  box-shadow: 0 12px 30px rgba(23, 55, 107, 0.1);
}

.travel-card p { margin-bottom: 1.3rem; }

.shuttle-times { list-style: none; }

.shuttle-times li { padding: 0.45rem 0; }

.shuttle-times strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--ink);
}

/* ================= Dress code ================= */

.dress-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-deep);
  margin-bottom: 0.9rem;
}

/* ================= Adults only ================= */

.adults { padding-top: 1rem; }

.adults-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--ink-soft);
  border-radius: 24px;
  padding: 2.8rem clamp(1.5rem, 5vw, 3.2rem) 2.6rem;
  box-shadow: 0 14px 36px rgba(23, 55, 107, 0.1);
}

.adults-icon { width: 96px; margin: 0 auto 0.8rem; }

.adults-card .script { font-size: clamp(2.1rem, 4.6vw, 2.7rem); margin-bottom: 1rem; }

/* ================= Gifts ================= */

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

.gifts .section-body { max-width: 680px; }

.gifts-bouquet { width: 92px; margin: 0 auto 1rem; }

/* ================= RSVP ================= */

.rsvp-swan { width: clamp(120px, 16vw, 175px); margin: 0 auto 0.4rem; }

#rsvp-form {
  position: relative;
  max-width: 31rem;
  margin: 2.4rem auto 0;
  text-align: left;
  background: var(--cream);
  border: 1px solid var(--ink-soft);
  border-radius: 24px;
  padding: 2.6rem clamp(1.4rem, 5vw, 2.6rem);
  box-shadow: 0 18px 44px rgba(23, 55, 107, 0.12);
}

#rsvp-form.is-submitting { pointer-events: none; }

.field { margin-bottom: 1.7rem; border: none; }

.field label,
.field legend {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-deep);
  margin-bottom: 0.45rem;
}

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.02rem;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ink-soft);
  border-radius: 0;
  padding: 0.5rem 0.1rem;
  transition: border-color 0.25s ease;
}

.field select { cursor: pointer; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.choice {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.32rem 0;
  cursor: pointer;
  text-transform: none;
}

.choice input { accent-color: var(--ink); }

.hint {
  font-size: 0.88rem;
  font-style: italic;
  opacity: 0.85;
  margin-top: 0.5rem;
}

/* Red "adults only" notice card, just above the submit button */
.kids-note {
  background: var(--wine-wash);
  border: 1.5px solid var(--wine-soft);
  border-radius: 18px;
  padding: 1.5rem clamp(1rem, 4vw, 1.8rem) 1.4rem;
  text-align: center;
  margin-bottom: 1.7rem;
}

.kids-note-icon {
  width: clamp(52px, 12vw, 64px);
  margin: 0 auto 0.4rem;
  /* re-ink the blue champagne art in the notice's red */
  filter: hue-rotate(140deg) saturate(0.9);
}

.kids-note-script {
  font-family: var(--script);
  font-size: clamp(1.7rem, 4vw, 2rem);
  color: var(--wine);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.kids-note p:not(.kids-note-script) { font-size: 0.95rem; }

.form-error { color: var(--wine); font-weight: 400; margin-bottom: 1.2rem; }

#rsvp-form .btn { width: 100%; }

/* ---------------- Phone / country picker ---------------- */

.field-phone { position: relative; z-index: 1; }

/* While the country picker is open, the hint below the field sits in the
   same screen space the dropdown occupies — hide it so it can never show
   through/above the dropdown regardless of paint order. */
.field-phone.picker-open .hint { visibility: hidden; }

.phone-input {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  border-bottom: 1.5px solid var(--ink-soft);
  transition: border-color 0.25s ease;
}

.phone-input:focus-within { border-bottom-color: var(--ink); }

.phone-country-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  padding: 0.5rem 0.4rem 0.5rem 0.1rem;
  font-family: var(--sans);
  font-size: 1.02rem;
  color: var(--text);
  cursor: pointer;
  border-right: 1px solid var(--ink-soft);
}

.phone-country-btn .flag { font-size: 1.15rem; line-height: 1; }
.phone-country-btn .dial-code { font-variant-numeric: tabular-nums; white-space: nowrap; }
.phone-country-btn .caret {
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  margin-left: 0.15rem;
  transition: transform 0.2s ease;
}
.phone-country-btn[aria-expanded="true"] .caret { transform: rotate(225deg); }

.field-phone input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  border-bottom: none;
  background: transparent;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.02rem;
  color: var(--text);
  padding: 0.5rem 0.1rem;
}
.field-phone input[type="tel"]:focus { outline: none; }

.country-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--paper);
  border: 1px solid var(--ink-soft);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(23, 55, 107, 0.2);
  overflow: hidden;
}

.country-search {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  border: none;
  border-bottom: 1px solid var(--ink-soft);
  padding: 0.75rem 1rem;
}
.country-search:focus { outline: none; background: var(--wash); }

.country-list {
  list-style: none;
  max-height: 15.5rem;
  overflow-y: auto;
}

.country-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.country-list li .flag { font-size: 1.1rem; line-height: 1; }
.country-list li .c-name { flex: 1 1 auto; }
.country-list li .c-dial { font-variant-numeric: tabular-nums; opacity: 0.75; }

.country-list li:hover,
.country-list li.active {
  background: var(--wash);
}

.country-list .no-match {
  padding: 0.9rem 1rem;
  font-style: italic;
  opacity: 0.75;
  cursor: default;
}
.country-list .no-match:hover { background: transparent; }

/* ---------------- Submit button loading state ---------------- */

.btn-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  margin-left: 0.65rem;
  border: 2px solid rgba(253, 251, 244, 0.4);
  border-top-color: var(--paper);
  border-radius: 50%;
  vertical-align: -0.15em;
  animation: rsvp-spin 0.75s linear infinite;
}

.btn.is-loading { cursor: progress; pointer-events: none; opacity: 0.9; }
.btn.is-loading .btn-spinner { display: inline-block; }

@keyframes rsvp-spin { to { transform: rotate(360deg); } }

/* Full-form overlay shown while the RSVP request is in flight. */
.rsvp-loader {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 24px;
  background: rgba(246, 240, 227, 0.94);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#rsvp-form.is-submitting .rsvp-loader {
  opacity: 1;
  pointer-events: auto;
}

.rsvp-loader-spinner {
  width: 2.6rem;
  height: 2.6rem;
  border: 3px solid var(--ink-soft);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: rsvp-spin 0.85s linear infinite;
}

.rsvp-loader p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-deep);
  letter-spacing: 0.02em;
}

/* ---------------- Result panel ---------------- */

.rsvp-result {
  padding: 2.8rem clamp(1.4rem, 5vw, 2.6rem);
  text-align: center;
  max-width: 31rem;
  margin: 2.4rem auto 0;
  background: var(--cream);
  border: 1px solid var(--ink-soft);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(23, 55, 107, 0.12);
  animation: rsvp-pop 0.5s ease;
}

@keyframes rsvp-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink-soft);
  background: var(--paper);
}

.result-icon::before { content: ""; display: block; }

.rsvp-result--created .result-icon,
.rsvp-result--updated .result-icon {
  border-color: var(--willow);
  background: var(--paper);
}
.rsvp-result--created .result-icon::before,
.rsvp-result--updated .result-icon::before {
  width: 22px;
  height: 14px;
  border-left: 3px solid var(--willow);
  border-bottom: 3px solid var(--willow);
  transform: rotate(-45deg) translate(1px, -2px);
}

.rsvp-result--duplicate .result-icon { border-color: var(--lantern); }
.rsvp-result--duplicate .result-icon::before {
  width: 4px;
  height: 18px;
  background: var(--lantern);
  border-radius: 2px;
}

.rsvp-result .script-accent { font-size: 2rem; margin-bottom: 0.7rem; }
.rsvp-result p:not(.script-accent) { margin-bottom: 1.6rem; }
.rsvp-result .btn { width: auto; padding: 0.75rem 2.2rem; }

/* ================= Our Story (album) ================= */

.story { background: var(--wash); }

.story-body { max-width: 1020px; }

.story-sub { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink); }

/* Editorial gallery — flat magazine spreads, staggered baselines,
   deliberate whitespace. Placements target figures only, so the
   pull-quote never shifts the numbering. */
.editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.6rem 2rem;
  margin-top: 3rem;
  align-items: start;
}

.plate {
  margin: 0;
  grid-column: 1 / -1;
  overflow: hidden;
}

.plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.9s ease;
}

.plate:hover img { transform: scale(1.035); }

@media (min-width: 761px) {
  .editorial figure:nth-of-type(1) img { aspect-ratio: 21 / 9; }
  .editorial figure:nth-of-type(2) { grid-column: 1 / 8; }
  .editorial figure:nth-of-type(2) img { aspect-ratio: 3 / 4; }
  .editorial figure:nth-of-type(3) { grid-column: 8 / 13; margin-top: 4.5rem; }
  .editorial figure:nth-of-type(4) { grid-column: 1 / 6; margin-top: 3rem; }
  .editorial figure:nth-of-type(5) { grid-column: 6 / 13; }
  .editorial figure:nth-of-type(5) img { aspect-ratio: 3 / 4; }
  .editorial figure:nth-of-type(6) { grid-column: 4 / 11; }
  .editorial figure:nth-of-type(6) img { aspect-ratio: 3 / 4; }
  .editorial figure:nth-of-type(7) { grid-column: 1 / 5; }
  .editorial figure:nth-of-type(8) { grid-column: 5 / 9; margin-top: 3rem; }
  .editorial figure:nth-of-type(9) { grid-column: 9 / 13; }
  .editorial figure:nth-of-type(10) img { aspect-ratio: 21 / 9; }
  .editorial figure:nth-of-type(11) { grid-column: 1 / 6; margin-top: 3rem; }
  .editorial figure:nth-of-type(12) { grid-column: 6 / 13; }
  .editorial figure:nth-of-type(12) img { aspect-ratio: 3 / 4; }
  .editorial figure:nth-of-type(13) { grid-column: 1 / 8; }
  .editorial figure:nth-of-type(13) img { aspect-ratio: 3 / 4; }
  .editorial figure:nth-of-type(14) { grid-column: 8 / 13; margin-top: 4.5rem; }
  .editorial figure:nth-of-type(15) { grid-column: 4 / 10; }
  .editorial figure:nth-of-type(15) img { aspect-ratio: 3 / 4; }
}

/* ================= FAQ ================= */

.faq-body { max-width: 720px; }

.faq-spray { width: clamp(180px, 26vw, 250px); margin: 0 auto 0.6rem; }

.faq-list {
  text-align: left;
  margin-top: 1.6rem;
  border-top: 1px solid var(--ink-soft);
}

.faq-list details { border-bottom: 1px solid var(--ink-soft); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--script);
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  color: var(--ink);
  padding: 1.05rem 0.2rem;
  transition: color 0.25s ease;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blush);
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list summary:hover { color: var(--ink-deep); }

.faq-list details p { padding: 0 0.2rem 1.3rem; max-width: 40rem; }

/* ================= Footer ================= */
/* same watercolor-stripe band as the Order of Events, with a mirrored arch panel */

.site-footer {
  background-color: var(--wash);
  background-image: url("../assets/art/stripes.png");
  background-size: 460px auto;
  background-repeat: repeat;
  text-align: center;
  padding: 4.5rem 1.25rem;
}

.footer-panel {
  max-width: 560px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--ink-soft);
  border-radius: 28px 28px 240px 240px;
  padding: 2.8rem 2rem 4.6rem;
  box-shadow: 0 24px 60px rgba(23, 55, 107, 0.18);
}

.site-footer .monogram { font-size: 1.9rem; }

.site-footer .footer-line { margin: 0.5rem 0 0.2rem; font-size: 0.95rem; letter-spacing: 0.06em; }

/* ================= Floating RSVP ================= */

.float-rsvp {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 15;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  box-shadow: 0 8px 24px rgba(23, 55, 107, 0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.float-rsvp.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

.float-rsvp:hover { background: var(--ink-deep); }

/* ================= Scroll reveals ================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

/* ================= Responsive ================= */

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; row-gap: 0.15rem; padding: 0.6rem 1rem; }
  .site-nav { order: 3; width: 100%; justify-content: flex-start; gap: 1.1rem; }
  .lang-switch { margin-left: auto; }
  .site-header { background: rgba(253, 251, 244, 0.92); backdrop-filter: blur(10px); }

  .section { padding: 3.6rem 1.25rem; }

  .hero-content { padding-bottom: 3.2rem; }

  .schedule-band { padding: 3.6rem 1rem; }
  .schedule-panel { border-radius: 160px 160px 22px 22px; padding-top: 3.6rem; }

  .lantern-line::before { left: 31px; }
  .event { gap: 1.1rem; }
  .medallion { width: 62px; height: 62px; }
  .medallion img { width: 38px; height: 38px; }

  .prints { gap: 1.6rem; }
  .prints .print:nth-of-type(1) img { aspect-ratio: 16 / 9; }
  .prints .print:nth-of-type(2) img { aspect-ratio: 3 / 4; }
  .prints .print:nth-of-type(3) img { aspect-ratio: 3 / 4; }

  .travel-cols { grid-template-columns: 1fr; gap: 1.4rem; }

  .countdown { gap: 0.9rem; }

  .site-footer { padding: 3.2rem 1rem; }

  .phone-country-btn { padding-right: 0.3rem; gap: 0.3rem; }
  .country-dropdown { left: -0.1rem; right: -0.1rem; }
  .rsvp-result { padding: 2.2rem 1.4rem; }
  .footer-panel { border-radius: 22px 22px 150px 150px; padding-bottom: 3.4rem; }

  .editorial { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
  .editorial figure { grid-column: span 1; }
  /* full-width moments keep the two-column flow gapless */
  .editorial figure:nth-of-type(1),
  .editorial figure:nth-of-type(4),
  .editorial figure:nth-of-type(9),
  .editorial figure:nth-of-type(10),
  .editorial figure:nth-of-type(15) { grid-column: span 2; }
  .editorial figure:nth-of-type(1) img,
  .editorial figure:nth-of-type(10) img { aspect-ratio: 3 / 2; }
  .editorial figure:nth-of-type(4) img,
  .editorial figure:nth-of-type(9) img,
  .editorial figure:nth-of-type(15) img { aspect-ratio: 3 / 4; }
}

/* ================= Reduced motion ================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-painting { animation: none; }
  .hero-stage { animation: none; opacity: 1; transform: none; }
  .scroll-cue span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .print, .medallion, .float-rsvp, .snap { transition: none; }
  .rsvp-result { animation: none; }
  .btn-spinner, .rsvp-loader-spinner { animation-duration: 1.4s; }
  .rsvp-loader { transition: none; }
}

