:root {
  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Questrial", sans-serif;
  /* --font-body: "Commons Pro", "Outfit", "Segoe UI", sans-serif; */
  --h3-size: 3.5rem;
  --section-wrap: min(1400px, 100%);
  --bg: #13273f;
  --panel: #c3d9f8;
  --ink: #13273f;
  --accent: #630000;
  --accent-soft: #e9d4c3;
  --muted: #694534;
  --line: rgba(19, 39, 63, 0.2);
  --shadow: 0 20px 45px rgba(6, 15, 26, 0.24);
  --env-burgundy: #630000;
  --env-burgundy-dark: #3f0000;
  --env-burgundy-mid: #7d1111;
  --env-burgundy-light: #9a2d2d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: "Arcadian";
  src: local("Arcadian");
  font-display: swap;
}

@font-face {
  font-family: "Commons Pro";
  src: local("Commons Pro"), local("TT Commons Pro");
  font-display: swap;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--accent);
  overflow-x: hidden;
  overflow-y: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#rsvpSection {
  scroll-margin-top: clamp(1.25rem, 4vh, 2.5rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.intro-active {
  overflow-y: hidden;
  background: #630000;
}

body.private-only {
  overflow: hidden;
}

body.private-only .bg-ornament {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.click-heart-spark-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.click-heart-spark {
  position: fixed;
  left: var(--spark-x);
  top: var(--spark-y);
  display: block;
  line-height: 1;
  user-select: none;
  font-size: var(--spark-size, 8px);
  color: #b30f2f;
  text-shadow: 0 0 4px rgba(179, 15, 47, 0.25);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  animation: clickHeartSparkPop var(--spark-duration, 640ms) cubic-bezier(0.2, 0.72, 0.08, 1)
    var(--spark-delay, 0ms) forwards;
}

.bg-ornament {
  position: fixed;
  width: 36vw;
  height: 36vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 999px;
  border: 1px solid rgba(184, 107, 83, 0.15);
  pointer-events: none;
  z-index: 0;
}

.bg-ornament-left {
  left: -14vw;
  top: -10vw;
}

.bg-ornament-right {
  right: -16vw;
  bottom: -12vw;
}

.site-wrap {
  width: 100%;
  margin: 0;
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

.hidden {
  display: none !important;
}

.small-eyebrow {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}

.loading-gate {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  background: #630000;
  display: grid;
  place-items: center;
  z-index: 52;
  padding: clamp(1rem, 3vh, 2rem) 1rem;
}

.loading-card {
  width: min(440px, 92vw);
  text-align: center;
  color: #f7e4d8;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(247, 228, 216, 0.35);
  border-top-color: #f7e4d8;
  animation: loadingGateSpin 0.85s linear infinite;
}

.loading-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.05rem, 6vw, 3rem);
  line-height: 0.95;
}

.loading-note {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  color: rgba(247, 228, 216, 0.88);
}

.private-gate {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  border-radius: 0;
  background: #ececec;
  display: grid;
  place-items: center;
  z-index: 50;
  padding: clamp(1rem, 3vh, 2rem) 1rem;
  overflow: hidden;
}

.private-card {
  text-align: center;
  color: #141414;
}

.private-closed,
.private-event {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: clamp(2.4rem, 7.4vw, 4.7rem);
  line-height: 1.04;
}

.private-for {
  margin: 0.1rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(1.35rem, 4.3vw, 2.9rem);
}

.private-script {
  margin: -0.2rem 0 -0.45rem;
  font-family: "Great Vibes", cursive;
  font-size: clamp(4rem, 13vw, 10rem);
  line-height: 0.84;
}

.private-invite {
  margin: 1.1rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: clamp(1rem, 2.5vw, 2rem);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.private-message {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: #3d3d3d;
}

@keyframes loadingGateSpin {
  to {
    transform: rotate(360deg);
  }
}

.envelopeGateContainer {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1.5rem, 4vh, 3rem) 1rem;
  background: #630000;
  overflow-x: hidden;
  overflow-y: auto;
}

.gate {
  min-height: calc(100vh - clamp(3rem, 8vh, 6rem));
  min-height: calc(100dvh - clamp(3rem, 8vh, 6rem));
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(2.8rem, 7vh, 5.4rem);
  text-align: center;
  position: relative;
  overflow: visible;
  border-radius: 0;
  padding: clamp(1.5rem, 5vh, 4rem) 1rem;
  background: transparent;
  box-shadow: none;
}

.gate-card {
  animation: slideUp 0.9s ease;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.gate-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f4dfd3;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}

.gate-couple {
  margin: 0;
  color: #fff4e9;
  font-size: clamp(4rem, 10.4vw, 8.4rem);
  font-family: "Pinyon Script", cursive;
  font-weight: 400;
  line-height: 1;
}

.gate-dedication {
  display: block;
  margin: 0.25rem 0 0;
  max-width: min(92vw, 920px);
  color: #f6e8dc;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: 0.018em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.gate-dedication.is-long {
  font-size: clamp(0.95rem, 1.7vw, 1.45rem);
  line-height: 1.24;
}

.gate-name {
  font-family: var(--font-heading);
  margin: 0.55rem 0 1.2rem;
  font-size: clamp(2rem, 3.7vw, 3rem);
  font-weight: 700;
}

.cta {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: #e9d4c3;
  background: linear-gradient(130deg, #630000, #694534);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(99, 0, 0, 0.24);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(99, 0, 0, 0.32);
}

.envelope-stage {
  width: min(980px, 100%);
  position: relative;
  display: grid;
  place-items: center;
}

.envelope {
  width: min(540px, 82vw);
  aspect-ratio: 1.52;
  --envelope-art-size: min(76%, 460px);
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: block;
  justify-self: center;
  margin-inline: auto;
  padding: 0;
  margin-top: clamp(0.9rem, 2.6vh, 1.9rem);
  margin-bottom: clamp(0.08rem, 0.45vh, 0.3rem);
  transition: transform 0.25s ease;
  isolation: isolate;
  z-index: 2;
}

.envelope::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: -4%;
  height: 11%;
  background: radial-gradient(circle at center, rgba(20, 5, 8, 0.55), transparent 72%);
  filter: blur(9px);
  z-index: 1;
  pointer-events: none;
}

.envelope-closed-image,
.envelope-closed-seal,
.envelope-open-stack,
.envelope-back-image,
.save-date-polaroid,
.save-date-reveal,
.envelope-front-image,
.envelope-back-seal,
.save-date-card {
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.envelope-closed-image {
  width: var(--envelope-art-size);
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 9px 13px rgba(14, 6, 7, 0.4));
  transition: opacity 0.32s ease, transform 0.62s cubic-bezier(0.2, 0.72, 0.08, 1);
}

.envelope-closed-seal {
  width: clamp(84px, 14vw, 110px);
  left: 50%;
  top: 56%;
  z-index: 5;
  transform: translate(-50%, -50%);
  transition: opacity 0.28s ease, transform 0.56s ease, filter 0.35s ease;
  filter: drop-shadow(0 5px 10px rgba(8, 2, 2, 0.3));
}

.envelope-open-stack {
  width: var(--envelope-art-size);
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

.envelope-back-image {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 14px rgba(14, 6, 7, 0.35));
}

.save-date-polaroid {
  width: 100px;
  --polaroid-rot: -18deg;
  --polaroid-x: 14px;
  --polaroid-open-x: -38px;
  --polaroid-translate: 38%;
  --polaroid-open-translate: -16%;
  height: auto;
  left: 23%;
  bottom: 35%;
  object-fit: contain;
  object-position: center top;
  box-shadow: 0 14px 22px rgba(16, 10, 10, 0.42);
  transform: translate(calc(-50% + var(--polaroid-x)), var(--polaroid-translate))
    rotate(var(--polaroid-rot));
  opacity: 0;
  transition: transform 1.15s cubic-bezier(0.2, 0.72, 0.08, 1), opacity 0.35s ease;
  z-index: 2;
}

.envelope-front-image {
  width: 100%;
  left: 0;
  bottom: 0;
  display: block;
  z-index: 4;
}

.envelope-back-seal {
  width: clamp(84px, 14vw, 112px);
  left: 50%;
  top: -6.5%;
  transform: translateX(-50%);
  z-index: 0;
  transition: transform 0.65s ease, filter 0.4s ease;
  filter: drop-shadow(0 6px 11px rgba(8, 2, 2, 0.28));
}

.save-date-reveal {
  z-index: 3;
  left: 50%;
  bottom: 13%;
  width: min(64%, 330px);
  aspect-ratio: 0.82;
  transform: translateX(-50%);
  overflow: hidden;
}

.save-date-card {
  z-index: 1;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.32rem;
  padding-top: clamp(1.25rem, 3.2vw, 1.8rem);
  color: #581e20;
  background: linear-gradient(165deg, #fcfbf8 0%, #f2efe9 100%);
  box-shadow: 0 8px 20px rgba(19, 9, 10, 0.22);
  transform: translateY(112%);
  opacity: 0;
  transition: transform 2.25s cubic-bezier(0.2, 0.72, 0.08, 1), opacity 0.35s ease,
    box-shadow 0.45s ease;
  will-change: transform, opacity;
}

.save-date-script,
.save-date-title,
.save-date-date {
  margin: 0;
  line-height: 1;
}

.save-date-script {
  font-family: "Pinyon Script", cursive;
  font-size: clamp(2.15rem, 4.6vw, 3.25rem);
  line-height: 0.85;
}

.save-date-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 4.1vw, 2rem);
  letter-spacing: 0.03em;
  line-height: 0.92;
}

.save-date-date {
  margin-top: 0.1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3.4vw, 1.45rem);
  letter-spacing: 0.025em;
}

.envelope:not(.open):hover .envelope-closed-image {
  transform: translate(-50%, -52%) scale(1.01);
}

.envelope:not(.open):hover .envelope-closed-seal {
  transform: translate(-50%, -53%);
  filter: drop-shadow(0 8px 14px rgba(8, 2, 2, 0.34));
}

.envelope.open .envelope-closed-image {
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.92);
}

.envelope.open .envelope-closed-seal {
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.42);
}

.envelope.open .envelope-open-stack {
  opacity: 1;
}

.envelope.open .save-date-card {
  transform: translateY(0);
  opacity: 1;
  box-shadow: 0 16px 30px rgba(19, 9, 10, 0.3);
  transition-delay: 0.2s, 0.2s, 0.2s;
}

.envelope.open .save-date-polaroid {
  --polaroid-x: var(--polaroid-open-x);
  --polaroid-translate: var(--polaroid-open-translate);
  opacity: 1;
  transition-delay: 0.2s, 0.2s;
}

.envelope.open .envelope-back-seal {
  transform: translateX(-50%) translateY(-6%);
}

.gate-open-label {
  margin: clamp(0.75rem, 2vh, 1.1rem) 0 0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #f7e7db;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.envelope.open + .gate-open-label {
  opacity: 0;
  transform: translateY(8px);
}

.gate.gate-opened .gate-open-label {
  opacity: 0;
  transform: translateY(8px);
}

.content {
  animation: fadeIn 0.9s ease;
}

.section-wrap {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.content > section {
  --band-bg: #eee9df;
  --band-fg: #13273f;
  --band-muted: #694534;
  --band-link: #630000;
  --band-surface: #fffefc;
  --band-line: rgba(19, 39, 63, 0.2);
  color: var(--band-fg);
}

.content > section:not(.slider-panel) {
  padding: 3rem 1rem;
}

.content > section:nth-of-type(even) {
  --band-bg: #630000;
  --band-fg: #eee9df;
  --band-muted: #c3d9f8;
  --band-link: #c3d9f8;
  --band-surface: rgba(255, 255, 255, 0.92);
  --band-line: rgba(238, 233, 223, 0.35);
}

.hero {
  position: relative;
  width: 100%;
  margin-top: -2rem;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(3.8rem, 10vh, 7rem) 1.2rem clamp(2rem, 7vh, 3.4rem);
  text-align: center;
  background-image: linear-gradient(
      180deg,
      rgba(12, 12, 9, 0.3) 0%,
      rgba(15, 16, 12, 0.38) 46%,
      rgba(13, 13, 10, 0.62) 100%
    ),
    url("./images/hero_img_2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-copy {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
}

.hero-copy img {
  width: 300px;
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.7rem, 7vw, 5.3rem);
  margin: 0;
  color: #fffef8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  margin: 0.1rem 0 0;
  color: #f7f2e8;
  letter-spacing: 0.28em;
  font-size: clamp(0.75rem, 1.8vw, 1.15rem);
  font-weight: 500;
}

.personal-greeting {
  margin: 0.95rem 0 0;
  color: #f5eee2;
  letter-spacing: 0.08em;
  font-size: clamp(0.76rem, 1.8vw, 0.95rem);
  text-transform: uppercase;
  font-weight: 500;
}

.hero-rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  border: 1px solid rgba(233, 212, 195, 0.9);
  border-radius: 6px;
  padding: 0.62rem 1.05rem;
  color: #e9d4c3;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(19, 39, 63, 0.42);
  backdrop-filter: blur(1px);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-rsvp-btn:hover {
  transform: translateY(-2px);
  background: rgba(19, 39, 63, 0.64);
  border-color: #e9d4c3;
}

.invitation-note {
  position: relative;
  width: 100%;
  background: #630000;
  overflow: hidden;
}

.invitation-note-wrap {
  position: relative;
  min-height: clamp(500px, 55vw, 760px);
  display: flex;
  align-items: center;
  padding: clamp(2.6rem, 4.7vw, 4rem) clamp(1.1rem, 4vw, 3.4rem);
  /* background: #630000; */
  overflow: visible;
  z-index: 0;
}

.invitation-note-copy {
  max-width: min(600px, 58%);
  text-align: left;
  position: relative;
  z-index: 2;
  color: #f6f0e6;
}

.invitation-note-kicker {
  margin: 0;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(0.76rem, 1.05vw, 1.08rem);
  color: #f1dfd3;
}

.invitation-note-name {
  margin: 0.62rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.65rem, 6.6vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f8f1e8;
}

.invitation-note-script {
  margin: 0.12rem 0 0;
  font-family: "Pinyon Script", cursive;
  font-size: clamp(2.05rem, 3.9vw, 4.3rem);
  line-height: 0.9;
  color: #f0ddd1;
}

.invitation-note-and {
  margin: 1rem 0 0;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(0.82rem, 1.1vw, 1.25rem);
  color: #f1dfd3;
}

.invitation-note-body {
  margin: 1.55rem 0 0;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  font-size: clamp(0.78rem, 1.16vw, 1.24rem);
  line-height: 1.28;
  color: #f3e4d8;
}

.invitation-note-date {
  margin: 1.8rem 0 0;
  color: #f8efe6;
}

.invitation-note-date span {
  display: block;
}

.invitation-note-date span:first-child {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 4.1vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}

.invitation-note-date em {
  font-style: normal;
  font-size: 0.65em;
  letter-spacing: 0.06em;
}

.invitation-note-date span:last-child {
  margin-top: 0.22rem;
  font-family: var(--font-body);
  font-size: clamp(0.84rem, 1.2vw, 1.18rem);
  text-transform: uppercase;
  letter-spacing: 0.014em;
}

.invitation-note-venue {
  margin: 1.2rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(0.84rem, 1.26vw, 1.34rem);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.32;
  color: #f6e8dd;
}

.invitation-note-flower {
  position: absolute;
  right: clamp(-340px, -19vw, -140px);
  top: clamp(-145px, -10vw, -38px);
  width: clamp(820px, 70vw, 1380px);
  height: auto;
  max-width: none;
  opacity: 0.5;
  filter: saturate(0.9) brightness(0.92);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.panel {
  width: 100%;
  background: var(--band-bg);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.panel h3 {
  margin: 0 0 0.8rem;
  font-family: var(--font-heading);
  font-size: var(--h3-size);
}

.section-title {
  margin: 0.1rem 0;
  font-weight: 600;
}

.muted {
  margin: 0.4rem 0;
  color: var(--band-muted, var(--muted));
}

.inline-link {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--band-link, var(--accent));
  text-decoration-thickness: 2px;
}

.slider-panel {
  padding: 3rem 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--band-bg);
  overflow: visible;
}

.slider-panel > * {
  width: 100%;
  max-width: none;
}

.swipeflow-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-viewport {
  align-items: center;
}

.slider-card {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  filter: grayscale(1) brightness(0.6);
  opacity: 0.58;
  transform: scale(0.9);
  transition: transform 620ms cubic-bezier(0.22, 0.69, 0.08, 1),
    filter 420ms ease, opacity 420ms ease, box-shadow 620ms ease;
}

.slider-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.06) 0%, rgba(8, 8, 8, 0.42) 100%);
  pointer-events: none;
}

.slider-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swipeflow-slider .swiper-slide-active {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.swipeflow-slider .swiper-slide-active::after {
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.04) 0%, rgba(8, 8, 8, 0.2) 100%);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(99, 0, 0, 0.2);
  display: grid;
  place-items: center;
  background: #e9d4c3;
  color: #630000;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-nav span {
  font-size: 1.6rem;
  line-height: 1;
}

.slider-nav:hover {
  transform: translateY(-50%) scale(1.05);
  background: #f3e8de;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.24);
}

.slider-nav-prev {
  left: 1rem;
}

.slider-nav-next {
  right: 1rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: clamp(0.65rem, 1.8vw, 1.25rem);
  width: 100%;
}

.date-text {
  margin: 0.7rem 0 0;
  color: var(--band-fg);
}

.countdown-panel {
  padding: clamp(1rem, 2vw, 1.8rem);
}

.countdown-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(1rem, 2vw, 2.2rem);
}

.countdown-panel .section-wrap {
  text-align: center;
}

.countdown-panel .countdown-layout {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0.95rem;
}

.countdown-heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  line-height: 1;
}

.countdown-save-date {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6.2vw, 5.8rem);
  line-height: 0.84;
  text-align: center;
  color: var(--band-fg);
}

.countdown-right {
  display: grid;
  gap: 0.75rem;
}

.countdown-panel .countdown-right {
  width: min(860px, 100%);
  justify-items: center;
}

.countdown-lead {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2vw, 2rem);
  color: var(--band-muted, var(--muted));
  line-height: 1.12;
}

.countdown-right .countdown-grid {
  gap: 0.75rem;
}

.countdown-segment {
  text-align: center;
}

.countdown-flip-card {
  --countdown-card-radius: 14px;
  --countdown-flip-duration: 360ms;
  --countdown-flip-cycle: 720ms;
  --countdown-hinge-gap: 0.6px;
  position: relative;
  height: clamp(5rem, 12vw, 8.1rem);
  border-radius: var(--countdown-card-radius);
  perspective: 840px;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 0.58rem 0 rgba(17, 26, 39, 0.34), 0 14px 24px rgba(17, 26, 39, 0.2);
}

.countdown-flip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.12));
  z-index: 2;
  pointer-events: none;
}

.countdown-flip-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 6;
  background:
    linear-gradient(
        to bottom,
        rgba(7, 14, 26, 0.08) 0%,
        rgba(7, 14, 26, 0.34) 52%,
        rgba(7, 14, 26, 0.08) 100%
      ) center / 100% 100% no-repeat,
    radial-gradient(circle at center, var(--band-bg) 47%, transparent 48%) -7px
      center / 14px 14px no-repeat,
    radial-gradient(circle at center, var(--band-bg) 47%, transparent 48%)
      calc(100% + 7px) center / 14px 14px no-repeat;
  opacity: 0.94;
}

.countdown-flip-static {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.countdown-half {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  height: calc(50% - var(--countdown-hinge-gap));
  overflow: hidden;
  background: #2b3f5d;
}

.countdown-half-top {
  top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.countdown-half-bottom {
  bottom: 0;
  background: #24354f;
}

.countdown-number {
  --countdown-number-y-adjust: 0.02em;
  position: absolute;
  left: 0;
  width: 100%;
  display: grid;
  place-items: center;
  color: #f1d3c6;
  text-shadow: 0 3px 7px rgba(13, 18, 30, 0.35);
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
}

.countdown-half-top .countdown-number {
  top: 100%;
  transform: translateY(calc(-50% + var(--countdown-number-y-adjust)));
}

.countdown-half-bottom .countdown-number {
  top: 0;
  transform: translateY(calc(-50% + var(--countdown-number-y-adjust)));
}

.countdown-flip-layer {
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(50% - var(--countdown-hinge-gap));
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  transform: translateZ(0);
  display: none;
  z-index: 3;
}

.countdown-flip-top {
  top: 0;
  background: #2b3f5d;
  transform-origin: bottom center;
  transform: rotateX(0deg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  border-top-left-radius: var(--countdown-card-radius);
  border-top-right-radius: var(--countdown-card-radius);
}

.countdown-flip-top .countdown-number {
  top: 100%;
  transform: translateY(calc(-50% + var(--countdown-number-y-adjust)));
}

.countdown-flip-bottom {
  bottom: 0;
  background: #24354f;
  transform-origin: top center;
  transform: rotateX(90.01deg);
  border-bottom-left-radius: var(--countdown-card-radius);
  border-bottom-right-radius: var(--countdown-card-radius);
}

.countdown-flip-bottom .countdown-number {
  top: 0;
  transform: translateY(calc(-50% + var(--countdown-number-y-adjust)));
}

.countdown-flip-card.is-flipping .countdown-flip-layer {
  display: block;
}

.countdown-flip-card.is-flipping::after {
  animation: countdownHingePulse var(--countdown-flip-cycle) ease both;
}

.countdown-flip-card.is-flipping .countdown-flip-top {
  animation: countdownFlipTop var(--countdown-flip-duration) cubic-bezier(0.38, 0.04, 0.88, 0.32)
    forwards;
}

.countdown-flip-card.is-flipping .countdown-flip-bottom {
  animation: countdownFlipBottom var(--countdown-flip-duration)
    cubic-bezier(0.2, 0.82, 0.21, 1.03) var(--countdown-flip-duration) both;
}

.countdown-sr-value {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.countdown-segment small {
  display: block;
  margin-top: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
  color: var(--band-muted);
}

.countdown-right .date-text {
  margin-top: 0.15rem;
}

@keyframes countdownFlipTop {
  from {
    transform: rotateX(0deg);
  }

  to {
    transform: rotateX(-90.01deg);
  }
}

@keyframes countdownFlipBottom {
  from {
    transform: rotateX(90deg);
  }

  to {
    transform: rotateX(0deg);
  }
}

@keyframes countdownHingePulse {
  0% {
    opacity: 0.94;
    filter: drop-shadow(0 0 0 rgba(7, 14, 26, 0));
  }

  42% {
    opacity: 1;
    filter: drop-shadow(0 2px 7px rgba(7, 14, 26, 0.36));
  }

  100% {
    opacity: 0.94;
    filter: drop-shadow(0 0 0 rgba(7, 14, 26, 0));
  }
}

.date-venue-layout {
  display: grid;
  gap: clamp(1.6rem, 4vw, 4.8rem);
  align-items: stretch;
}

.content > section.date-venue-panel {
  --band-bg: #eee9df;
  --band-fg: #001a37;
  --band-muted: #263a54;
  --band-link: #001a37;
  --band-surface: #f4f4f4;
  --band-line: rgba(0, 26, 55, 0.12);
  --date-venue-media-height: clamp(220px, 26vw, 320px);
  --date-venue-map-height: clamp(280px, 30vw, 390px);
}

.date-venue-content {
  display: grid;
  gap: 0.75rem;
}

.date-venue-map-wrap {
  --map-frame-pad: 10px;
  position: relative;
  margin: 0;
  height: 100%;
  padding: var(--map-frame-pad);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #bca06a 0%, #8f6f34 29%, #dec58f 53%, #7d5f2b 79%, #bca06a 100%);
  box-shadow:
    0 18px 32px rgba(19, 39, 63, 0.12),
    inset 0 0 0 1px rgba(255, 245, 220, 0.46),
    inset 0 0 0 3px rgba(68, 45, 14, 0.26);
}

.date-venue-map-wrap::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 245, 220, 0.42);
  pointer-events: none;
  z-index: 4;
}

.date-venue-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: var(--date-venue-map-height);
  border-radius: 10px;
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.date-venue-map-wrap.is-loaded .date-venue-map {
  opacity: 1;
}

.date-venue-map-placeholder {
  position: absolute;
  inset: var(--map-frame-pad);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #e0ddd5, #d2cdc2);
  display: grid;
  place-items: center;
  z-index: 3;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.date-venue-map-placeholder::before {
  content: "";
  position: absolute;
  inset: -45% 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.34) 48%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: venueMapPlaceholderShimmer 1.25s linear infinite;
  pointer-events: none;
}

.date-venue-map-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 251, 243, 0.92);
  color: #2a3b54;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(19, 39, 63, 0.18);
  text-align: center;
  white-space: nowrap;
}

.date-venue-map-loader::before {
  content: "";
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 999px;
  border: 2px solid rgba(42, 59, 84, 0.28);
  border-top-color: #2a3b54;
  animation: venueMapLoaderSpin 0.72s linear infinite;
}

.date-venue-map-wrap.is-loaded .date-venue-map-placeholder {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.date-venue-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.69rem;
  color: #816a00;
  font-weight: 700;
}

.date-venue-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.8vw, 4.6rem);
  line-height: 0.96;
  white-space: pre-line;
  color: #001a37;
}

.date-venue-content #venueAddress,
.date-venue-note {
  margin: 0;
  font-size: clamp(1rem, 1vw, 1.95rem);
  line-height: 1.42;
  color: #253750;
}

.date-venue-specific {
  margin: -0.1rem 0 0;
  font-size: clamp(0.92rem, 0.95vw, 1.18rem);
  color: #253750;
}

.date-venue-note {
  margin-top: -0.2rem;
}

.date-venue-content .inline-link {
  margin-top: 0.2rem;
  font-weight: 600;
  color: #001a37;
  font-size: clamp(0.82rem, 0.9vw, 1.05rem);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32rem;
}

.date-venue-media {
  margin: clamp(0.8rem, 2.3vw, 1.5rem) 0 0;
  overflow: hidden;
  border-radius: 13px;
  border: 0;
  background: #e8e8e8;
  box-shadow: 0 18px 32px rgba(19, 39, 63, 0.12);
}

.date-venue-media img {
  width: 100%;
  height: var(--date-venue-media-height);
  object-fit: cover;
  display: block;
  /* filter: grayscale(100%); */
}

@media (min-width: 920px) {
  .date-venue-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 740px) {
  .date-venue-content {
    order: 1;
  }

  .date-venue-map-wrap {
    order: 2;
    height: auto;
  }

  .date-venue-map {
    height: var(--date-venue-media-height);
    min-height: 0;
  }

}

.content > section.dressCodeSection {
  --band-bg: #efefef;
  --band-fg: #102a4d;
  --band-muted: #213a5a;
  --band-link: #102a4d;
  background: #efefef;
}

.dressCodeSection .dress-code-wrap {
  max-width: 980px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}

.dress-code-script-title {
  margin: 0;
  font-family: "Pinyon Script", cursive;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.9;
  color: #132b4e;
}

.dress-code-theme-label {
  margin: 0.5rem 0 0;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.75rem, 3.4vw, 2.9rem);
  line-height: 0.92;
  color: #132b4e;
}

.dress-code-theme-text {
  margin: 0 0 25px;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  line-height: 1.15;
  color: #1d3657;
}

.dressCodeSection h3.dress-code-main-title {
  margin: 0;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  line-height: 0.92;
  color: #132b4e;
}

.dress-code-main-notes {
  margin: 0.25rem 0 0;
  max-width: 860px;
  font-size: clamp(0.95rem, 1.35vw, 1.35rem);
  line-height: 1.35;
  color: #1b3454;
}

.dress-code-visual {
  margin: 0.65rem 0 0;
  width: min(860px, 100%);
}

.dress-code-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.dress-code-swatches {
  margin-top: 0.45rem;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.dress-code-swatch-item {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.dress-code-swatch {
  display: block;
  width: min(170px, 100%);
  height: clamp(22px, 2.7vw, 36px);
  border-radius: 0;
}

.dress-code-swatch-coffee {
  background: #694534;
}

.dress-code-swatch-blue {
  background: #C3D9F8;
}

.dress-code-swatch-beige {
  background: #E9D4C3;
}

.dress-code-swatch-label {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.05vw, 0.98rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1f3653;
}

.dress-code-note {
  margin: 1rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.45vw, 1.35rem);
  line-height: 1.25;
  color: #1a3453;
}

.rsvp-form {
  display: grid;
  gap: 1.3rem;
}

.rsvp-editorial {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.rsvp-editorial-intro {
  display: grid;
  gap: 0.95rem;
}

.rsvp-editorial-media {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  box-shadow: 0 24px 38px rgba(7, 16, 27, 0.16);
}

.rsvp-editorial-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) sepia(10%);
}

h3.rsvp-editorial-title {
  margin: 0;
  color: var(--band-link, #630000);
  font-size: clamp(2.2rem, 5.8vw, 3.2rem);
  line-height: 0.94;
}

.rsvp-editorial-date {
  margin: 0;
  color: var(--band-muted, var(--muted));
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.rsvp-editorial-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #630000;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(233, 212, 195, 0.18), transparent 42%),
    radial-gradient(circle at 86% 88%, rgba(195, 217, 248, 0.2), transparent 40%),
    linear-gradient(145deg, rgba(122, 20, 20, 0.34), rgba(86, 8, 8, 0.4));
  background-repeat: no-repeat;
  color: #f8efe6;
  border: 1px solid rgba(233, 212, 195, 0.33);
  border-radius: 4px;
  padding: clamp(1.05rem, 2.4vw, 2.2rem);
  box-shadow: 0 24px 38px rgba(7, 16, 27, 0.12);
}

.rsvp-editorial-card #rsvpGuestPrompt {
  margin: 0 0 1rem;
  color: #5a4b44;
}

.rsvp-field {
  display: grid;
  gap: 0.42rem;
}

.rsvp-field-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.rsvp-label {
  display: block;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.64rem;
  color: #7a6962;
  font-weight: 500;
}

.rsvp-info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.rsvp-info-trigger {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.2s ease;
}

.rsvp-info-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.rsvp-info-trigger:hover,
.rsvp-info-trigger:focus-visible {
  transform: translateY(-1px);
  opacity: 0.9;
}

.rsvp-info-trigger:focus-visible {
  outline: 2px solid rgba(99, 0, 0, 0.45);
  outline-offset: 2px;
}

.rsvp-info-popover {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(340px, calc(100vw - 3rem));
  padding: 0.62rem 0.72rem;
  border-radius: 9px;
  border: 1px solid rgba(105, 69, 52, 0.28);
  background: linear-gradient(165deg, rgba(255, 252, 247, 0.97), rgba(247, 239, 231, 0.97));
  color: #4f3b33;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-transform: none;
  box-shadow: 0 12px 22px rgba(7, 16, 27, 0.2);
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 8;
}

.rsvp-info-wrap:hover .rsvp-info-popover,
.rsvp-info-wrap:focus-within .rsvp-info-popover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rsvp-editorial-form input,
.rsvp-editorial-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(134, 115, 109, 0.35);
  border-radius: 0;
  padding: 0.74rem 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease;
}

.rsvp-editorial-form input:focus,
.rsvp-editorial-form textarea:focus {
  outline: none;
  border-color: #904b35;
}

.rsvp-editorial-form textarea {
  padding: 0.7rem 0.85rem;
  background: rgba(230, 226, 219, 0.28);
  border: 1px solid rgba(134, 115, 109, 0.28);
  border-radius: 2px;
  min-height: 110px;
  resize: vertical;
}

.rsvp-editorial-form input[readonly] {
  color: #7a6962;
  border-bottom-style: dashed;
  cursor: default;
}

.rsvp-attendance {
  margin: 0;
  border: 0;
  padding: 0;
}

.rsvp-attendance-grid {
  margin-top: 0.62rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.rsvp-attendance-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 0.85rem;
  background: rgba(250, 248, 243, 0.75);
  border: 1px solid rgba(134, 115, 109, 0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rsvp-attendance-option:hover {
  background: rgba(235, 232, 225, 0.7);
}

.rsvp-attendance-option:focus-within {
  outline: 2px solid rgba(132, 66, 44, 0.42);
  outline-offset: 1px;
}

.rsvp-attendance-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rsvp-attendance-control {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #8a7771;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #fff;
}

.rsvp-attendance-control::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  opacity: 0;
}

.rsvp-attendance-text {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: italic;
  color: #5f524d;
}

.rsvp-attendance-input:checked + .rsvp-attendance-control {
  background: #84422c;
  border-color: #84422c;
}

.rsvp-attendance-input:checked + .rsvp-attendance-control::after {
  opacity: 1;
}

.rsvp-attendance-input:checked ~ .rsvp-attendance-text {
  color: #84422c;
}

.rsvp-attendance-input:disabled + .rsvp-attendance-control,
.rsvp-attendance-input:disabled ~ .rsvp-attendance-text {
  opacity: 0.65;
}

.rsvp-attendance-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rsvp-submit-wrap {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding-top: 0.1rem;
}

.rsvp-submit {
  width: min(100%, 260px);
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  padding: 0.92rem 1rem;
  min-height: 46px;
}

.rsvp-submit:disabled {
  cursor: not-allowed;
}

.rsvp-submit.is-loading {
  pointer-events: none;
}

.rsvp-submit.is-loading::after {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.5rem;
  border-radius: 999px;
  border: 2px solid rgba(233, 212, 195, 0.45);
  border-top-color: #e9d4c3;
  animation: rsvpSpin 0.75s linear infinite;
  vertical-align: text-bottom;
}

.rsvp-reply-note {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.95rem;
  color: #5f524d;
}

.rsvp-editorial-card #rsvpGuestPrompt {
  color: rgba(246, 232, 221, 0.92);
}

.rsvp-editorial-card .rsvp-label {
  color: rgba(240, 219, 205, 0.86);
}

.rsvp-editorial-card .rsvp-info-popover {
  border-color: rgba(233, 212, 195, 0.4);
  background:
    radial-gradient(circle at 10% 14%, rgba(255, 255, 255, 0.18), transparent 48%),
    linear-gradient(135deg, rgba(132, 13, 13, 0.96), rgba(95, 8, 8, 0.96));
  color: rgba(246, 232, 221, 0.96);
  box-shadow: 0 14px 26px rgba(10, 2, 3, 0.4);
}

.rsvp-editorial-card .rsvp-editorial-form input,
.rsvp-editorial-card .rsvp-editorial-form textarea {
  color: #f8efe6;
  border-bottom-color: rgba(233, 212, 195, 0.55);
}

.rsvp-editorial-card .rsvp-editorial-form input::placeholder,
.rsvp-editorial-card .rsvp-editorial-form textarea::placeholder {
  color: rgba(241, 223, 211, 0.72);
}

.rsvp-editorial-card .rsvp-editorial-form input:focus,
.rsvp-editorial-card .rsvp-editorial-form textarea:focus {
  border-color: #f3ddcf;
}

.rsvp-editorial-card .rsvp-editorial-form textarea {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(233, 212, 195, 0.36);
}

.rsvp-editorial-card .rsvp-editorial-form input[readonly] {
  color: rgba(246, 232, 221, 0.78);
  border-bottom-color: rgba(233, 212, 195, 0.45);
}

.rsvp-editorial-card .rsvp-attendance-option {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(233, 212, 195, 0.4);
}

.rsvp-editorial-card .rsvp-attendance-option:hover {
  background: rgba(255, 255, 255, 0.14);
}

.rsvp-editorial-card .rsvp-attendance-option:focus-within {
  outline-color: rgba(233, 212, 195, 0.56);
}

.rsvp-editorial-card .rsvp-attendance-control {
  border-color: rgba(233, 212, 195, 0.82);
  background: rgba(255, 255, 255, 0.16);
}

.rsvp-editorial-card .rsvp-attendance-text {
  color: rgba(248, 239, 230, 0.95);
}

.rsvp-editorial-card .rsvp-attendance-input:checked + .rsvp-attendance-control {
  background: #e9d4c3;
  border-color: #e9d4c3;
}

.rsvp-editorial-card .rsvp-attendance-input:checked + .rsvp-attendance-control::after {
  background: #630000;
}

.rsvp-editorial-card .rsvp-attendance-input:checked ~ .rsvp-attendance-text {
  color: #f8efe6;
}

.rsvp-editorial-card .rsvp-reply-note {
  color: rgba(246, 232, 221, 0.92);
}

.rsvp-editorial-card #rsvpFeedback {
  color: #f8efe6;
}

.rsvp-editorial-card .rsvp-submit {
  color: #5a090f;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 247, 238, 0.92);
  background: linear-gradient(120deg, #fff5ed 0%, #f4e1d4 36%, #e9d4c3 70%, #f7e8dd 100%);
  background-size: 200% 100%;
  box-shadow:
    0 14px 30px rgba(23, 2, 4, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.28s ease;
}

.rsvp-editorial-card .rsvp-submit:hover,
.rsvp-editorial-card .rsvp-submit:focus-visible {
  transform: translateY(-3px) scale(1.01);
  background-position: 100% 0;
  box-shadow:
    0 20px 34px rgba(18, 2, 3, 0.55),
    0 0 0 3px rgba(233, 212, 195, 0.28);
}

.rsvp-editorial-card .rsvp-submit:focus-visible {
  outline: 2px solid rgba(248, 239, 230, 0.96);
  outline-offset: 2px;
}

.rsvp-editorial-card .rsvp-submit:disabled {
  color: rgba(99, 0, 0, 0.66);
  border-color: rgba(233, 212, 195, 0.55);
  background: rgba(233, 212, 195, 0.45);
  box-shadow: none;
}

.rsvp-editorial-card .rsvp-submit.is-loading::after {
  border: 2px solid rgba(99, 0, 0, 0.3);
  border-top-color: #630000;
}

@media (min-width: 920px) {
  .rsvp-editorial {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.25fr);
    gap: 1.8rem;
  }

  .rsvp-editorial-intro {
    position: sticky;
    top: 1.8rem;
  }

  .rsvp-editorial-media img {
    min-height: 540px;
  }
}

@media (max-width: 760px) {
  .rsvp-attendance-grid {
    grid-template-columns: 1fr;
  }

  .rsvp-submit {
    width: 100%;
  }

  .rsvp-info-popover {
    position: fixed;
    left: 50%;
    right: auto;
    top: auto;
    bottom: max(0.9rem, env(safe-area-inset-bottom));
    width: min(340px, calc(100vw - 1.2rem));
    max-height: min(42vh, 260px);
    overflow: auto;
    font-size: 0.8rem;
    transform: translate(-50%, 14px);
    z-index: 120;
  }

  .rsvp-info-wrap:hover .rsvp-info-popover,
  .rsvp-info-wrap:focus-within .rsvp-info-popover {
    transform: translate(-50%, 0);
  }
}

.feedback {
  min-height: 1.35rem;
  margin-top: 0.6rem;
  color: var(--band-link, #630000);
  font-weight: 500;
}

#rsvpFeedback {
  text-align: center;
  display: none;
  color: var(--band-bg);
}

#rsvpFeedback.is-visible {
  display: block;
}

.registry-note-wrap {
  max-width: 960px;
  display: grid;
  justify-items: center;
  gap: 0.95rem;
  text-align: center;
  padding: clamp(1.6rem, 3.5vw, 2.6rem) clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(233, 212, 195, 0.33);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 8%, rgba(233, 212, 195, 0.18), transparent 42%),
    radial-gradient(circle at 86% 88%, rgba(195, 217, 248, 0.2), transparent 40%),
    linear-gradient(145deg, rgba(122, 20, 20, 0.34), rgba(86, 8, 8, 0.4));
  box-shadow: 0 18px 34px rgba(33, 6, 9, 0.26);
}

.registry-note-heading {
  margin: 0 0 0.1rem;
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  letter-spacing: 0.025em;
  color: #f8efe6;
  text-shadow: 0 3px 14px rgba(14, 4, 4, 0.25);
}

.registry-note-copy {
  margin: 0;
  max-width: 800px;
  color: rgba(246, 232, 221, 0.95);
  line-height: 1.8;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.registry-open-btn {
  min-width: 190px;
  margin-top: 0.5rem;
  letter-spacing: 0.14em;
  /* text-transform: uppercase; */
  background: linear-gradient(120deg, #9e1b1b 0%, #6b1111 36%, #8e604d 70%, #6b1111 100%);
  background-size: 220% 100%;
  box-shadow: 0 10px 24px rgba(18, 2, 3, 0.34);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-position 0.38s ease;
}

.registry-open-btn:hover,
.registry-open-btn:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 30px rgba(18, 2, 3, 0.42);
  background-position: 100% 0;
}

.registry-open-btn:focus-visible {
  outline: 2px solid rgba(233, 212, 195, 0.95);
  outline-offset: 2px;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  justify-content: center;
  align-items: stretch;
  gap: 0.95rem;
  margin-top: 0.95rem;
}

.registry-card {
  width: 100%;
  max-width: 280px;
  height: 100%;
  border: 1px solid rgba(19, 39, 63, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fcf7f2 100%);
  color: #142a47;
  padding: 0.62rem;
  display: grid;
  gap: 0.5rem;
  box-shadow: 0 12px 24px rgba(13, 17, 28, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.registry-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 0, 0, 0.3);
  box-shadow: 0 16px 28px rgba(13, 17, 28, 0.14);
}

.registry-card.is-reserved {
  opacity: 0.72;
  filter: saturate(0.85);
}

.registry-card.is-mine {
  border-color: rgba(99, 0, 0, 0.52);
  box-shadow:
    0 0 0 1px rgba(99, 0, 0, 0.2) inset,
    0 16px 30px rgba(99, 0, 0, 0.14);
}

.registry-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(19, 39, 63, 0.16);
  background: #fff;
}

.registry-title {
  margin: 0;
  font-weight: 600;
  color: #142a47;
  line-height: 1.25;
}

.registry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.registry-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 1.6rem;
  line-height: 1;
  white-space: nowrap;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
}

.registry-tag.available {
  background: #e9d4c3;
  border-color: #694534;
  color: #13273f;
}

.registry-tag.reserved {
  background: #f4d9d9;
  border-color: #630000;
  color: #630000;
}

.registry-tag.mine {
  background: #c3d9f8;
  border-color: #13273f;
  color: #13273f;
}

.registry-buy-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: #630000;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.registry-buy-link-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.registry-select {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.registry-select input {
  width: 16px;
  height: 16px;
  accent-color: #630000;
}

.registry-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.9rem;
}

.registry-actions .cta {
  min-height: 47px;
  letter-spacing: 0.08em;
  font-weight: 700;
  box-shadow:
    0 12px 24px rgba(19, 2, 5, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.registry-actions .cta:hover,
.registry-actions .cta:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 18px 30px rgba(19, 2, 5, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.registry-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.registry-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(233, 212, 195, 0.18), transparent 42%),
    radial-gradient(circle at 85% 88%, rgba(195, 217, 248, 0.16), transparent 40%),
    rgba(15, 22, 36, 0.74);
  backdrop-filter: blur(4px);
}

.registry-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 94vw);
  max-height: 90vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid rgba(99, 0, 0, 0.34);
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 255, 255, 0.4), transparent 38%),
    radial-gradient(circle at 88% 88%, rgba(195, 217, 248, 0.18), transparent 44%),
    linear-gradient(155deg, rgba(249, 239, 228, 0.98), rgba(240, 224, 209, 0.98));
  box-shadow:
    0 30px 65px rgba(3, 7, 15, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 0 0 1px rgba(99, 0, 0, 0.16);
  padding: clamp(1rem, 2vw, 1.3rem) clamp(1rem, 2vw, 1.25rem) clamp(1.1rem, 2vw, 1.35rem);
  color: #1f2f45;
}

.registry-list-modal-card {
  width: min(1120px, 96vw);
}

.registry-modal-card h4 {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: #2b1a1f;
  padding-right: 2.6rem;
}

.registry-modal-card .muted {
  margin-top: 0;
  margin-bottom: 0.15rem;
  color: #5f473b;
  line-height: 1.45;
}

.registry-modal-close-btn {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 0, 0, 0.24);
  background: linear-gradient(160deg, #fffaf6 0%, #f2dfd0 100%);
  color: #3f0000;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 2, 4, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.registry-modal-close-btn:hover,
.registry-modal-close-btn:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(160deg, #fff 0%, #ecd4c2 100%);
  box-shadow: 0 12px 22px rgba(20, 2, 4, 0.24);
}

.registry-modal-close-btn:focus-visible {
  outline: 2px solid rgba(99, 0, 0, 0.5);
  outline-offset: 2px;
}

.registry-modal-list {
  margin: 0.85rem 0 1rem;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.registry-modal-list li {
  border: 1px solid rgba(19, 39, 63, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  color: #21324b;
  padding: 0.52rem 0.7rem;
}

.registry-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}

.registry-modal-actions button {
  border-radius: 999px;
  padding: 0.65rem 1.05rem;
  border: 1px solid rgba(19, 39, 63, 0.22);
  background: #fffaf6;
  color: #1f2f45;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.registry-modal-actions button:hover,
.registry-modal-actions button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(99, 0, 0, 0.35);
  box-shadow: 0 8px 16px rgba(20, 2, 4, 0.12);
}

.registry-modal-actions button:focus-visible {
  outline: 2px solid rgba(99, 0, 0, 0.48);
  outline-offset: 2px;
}

.registry-modal-actions .cta {
  border: none;
  color: #e9d4c3;
  background: linear-gradient(130deg, #630000, #694534);
  box-shadow: 0 12px 24px rgba(99, 0, 0, 0.3);
}

.registry-modal-actions button:disabled {
  opacity: 1;
  cursor: not-allowed;
  -webkit-text-fill-color: currentColor;
}

.registry-modal-actions .cta:disabled {
  background: #e5c9bc;
  color: #6b4c40;
  box-shadow: none;
}

#registryFeedback {
  color: #5c1a1f;
}

.rsvp-confirm-modal-card {
  width: min(620px, 94vw);
}

.rsvp-confirm-modal-card .muted {
  margin-top: 0.25rem;
}

.rsvp-confirm-modal-card .registry-modal-actions {
  margin-top: 0.9rem;
}

.rsvp-confirm-modal-card .registry-modal-actions .cta {
  min-width: 170px;
}

@media (max-width: 720px) {
  .registry-note-wrap {
    max-width: 100%;
    border-radius: 18px;
    padding: 1.35rem 0.95rem 1.55rem;
    gap: 0.8rem;
  }

  .registry-note-heading {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .registry-note-copy {
    font-size: 0.98rem;
    line-height: 1.66;
  }

  .registry-open-btn {
    width: min(260px, 100%);
    min-height: 46px;
  }

  .registry-modal {
    align-items: center;
    justify-items: center;
    padding: 20px;
  }

  .registry-modal-card {
    width: min(100%, calc(100vw - 40px));
    max-height: calc(100dvh - 40px);
    border-radius: 18px;
    padding: 0.85rem 0.82rem calc(0.95rem + env(safe-area-inset-bottom));
  }

  .registry-list-modal-card {
    width: min(100%, calc(100vw - 40px));
  }

  .registry-modal-card h4 {
    font-size: 2rem;
    line-height: 0.95;
    padding-right: 2.2rem;
  }

  .registry-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .registry-card {
    max-width: none;
    border-radius: 12px;
  }

  .registry-actions {
    margin-top: 0.8rem;
  }

  .registry-actions .cta {
    width: 100%;
  }

  .registry-modal-actions {
    flex-direction: column-reverse;
  }

  .registry-modal-actions button {
    width: 100%;
    min-height: 44px;
  }

  .rsvp-confirm-modal-card {
    width: min(100%, calc(100vw - 30px));
  }
}

.scroll-top-btn {
  position: fixed;
  right: clamp(0.9rem, 2.5vw, 1.5rem);
  bottom: clamp(0.9rem, 2.5vw, 1.5rem);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(238, 233, 223, 0.65);
  border-radius: 999px;
  background: rgba(19, 39, 63, 0.94);
  color: #eee9df;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 70;
  box-shadow: 0 12px 28px rgba(7, 16, 27, 0.3);
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 0.68, 0.08, 1),
    box-shadow 0.2s ease, background-color 0.2s ease;
}

.scroll-top-btn span {
  font-size: 1.4rem;
  line-height: 1;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: #13273f;
  box-shadow: 0 16px 30px rgba(7, 16, 27, 0.38);
}

.playlist-section .muted {
  max-width: 760px;
}

.playlist-embed {
  margin-top: 0.9rem;
  border: 1px solid var(--band-line, var(--line));
  border-radius: 14px;
  overflow: hidden;
  background: var(--band-surface, #fff);
  box-shadow: 0 10px 24px rgba(19, 39, 63, 0.1);
}

.playlist-embed iframe {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
}

.content > section.faq-section {
  --faq-item-bg: #f6e8dc;
  --faq-item-bg-open: #fff6ee;
  --faq-item-border: rgba(105, 69, 52, 0.26);
  --faq-item-border-open: rgba(99, 0, 0, 0.55);
  --faq-title: #1c314d;
  --faq-title-open: #630000;
  --faq-answer: #5c3c2f;
  --faq-link: #694534;
  --faq-link-hover: #630000;
  --faq-icon: #694534;
  --faq-icon-open: #630000;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.95rem;
}

.faq-item {
  border: 1px solid var(--faq-item-border);
  border-radius: 14px;
  background: var(--faq-item-bg);
  color: var(--faq-title);
  overflow: clip;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.faq-item.is-open {
  border-color: var(--faq-item-border-open);
  background: var(--faq-item-bg-open);
  box-shadow: 0 8px 18px rgba(19, 39, 63, 0.08);
}

.faq-item-title {
  margin: 0;
}

.faq-trigger {
  width: 100%;
  border: 0;
  background: none;
  color: var(--faq-title);
  font: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
}

.faq-trigger span:first-child {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  font-weight: 600;
  line-height: 1.28;
}

.faq-item.is-open .faq-trigger span:first-child {
  color: var(--faq-title-open);
}

.faq-icon {
  display: block;
  align-self: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-color: var(--faq-icon);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  transform-origin: 50% 50%;
  transform: rotate(0deg);
  margin-top: 0;
  transition: transform 0.28s ease, background-color 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  background-color: var(--faq-icon-open);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.34s cubic-bezier(0.2, 0.72, 0.08, 1), opacity 0.24s ease;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel p {
  margin: 0;
  padding: 0 1.15rem 1rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--faq-answer);
}

.faq-panel a {
  color: var(--faq-link);
  font-weight: 500;
  text-decoration-color: currentColor;
  text-decoration-style: solid;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.faq-panel a:visited {
  color: var(--faq-link);
}

.faq-panel a:hover,
.faq-panel a:focus-visible {
  color: var(--faq-link-hover);
  text-decoration-color: currentColor;
}

.content > section.bible-verse-section {
  --band-bg: #eee9df;
  --band-fg: #1c2e22;
  --band-muted: #334a3b;
  background: #eee9df;
}

.bible-verse-section .section-wrap {
  min-height: clamp(300px, 46vw, 560px);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: clamp(1.3rem, 3.5vh, 2.1rem);
}

.verse-reference {
  margin: 0;
  font-family: var(--font-body);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 1.15vw, 1.15rem);
  color: var(--band-muted);
}

.verse-script {
  margin: 0;
  max-width: 1000px;
  width: 100%;
  font-family: "Pinyon Script", cursive;
  font-size: clamp(2.5rem, 7.4vw, 7rem);
  line-height: 0.95;
  color: var(--band-fg);
  transform: rotate(-8deg);
  transform-origin: center;
}

.verse-script span {
  display: block;
  rotate: -4deg;
}

body.scroll-animate .reveal-unit {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.52s ease, transform 0.52s cubic-bezier(0.22, 0.68, 0.08, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

body.scroll-animate .reveal-unit.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes clickHeartSparkPop {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
  }
  70% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-dx)), calc(-50% + var(--spark-dy)))
      scale(0.95) rotate(var(--spark-rotate));
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes photoDriftLeft {
  from {
    transform: translate(-95%, -66%) rotate(-13deg) scale(1);
  }
  to {
    transform: translate(-97%, -70%) rotate(-11deg) scale(1.01);
  }
}

@keyframes photoDriftRight {
  from {
    transform: translate(-4%, -74%) rotate(10deg) scale(1);
  }
  to {
    transform: translate(-2%, -78%) rotate(8deg) scale(1.01);
  }
}

@keyframes rsvpSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes venueMapLoaderSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes venueMapPlaceholderShimmer {
  from {
    transform: translateX(-45%) translateY(-12%) rotate(22deg);
  }
  to {
    transform: translateX(45%) translateY(-12%) rotate(22deg);
  }
}

@media (max-width: 740px) {
  :root {
    --h3-size: 2.35rem;
  }

  .invitation-note-wrap {
    min-height: clamp(520px, 108vw, 760px);
    padding: clamp(2rem, 8vw, 3.1rem) clamp(1rem, 5vw, 1.6rem);
  }

  .invitation-note-copy {
    max-width: min(480px, 100%);
  }

  .invitation-note-kicker {
    letter-spacing: 0.02em;
  }

  .invitation-note-body,
  .invitation-note-date span:last-child,
  .invitation-note-venue {
    letter-spacing: 0.01em;
  }

  .invitation-note-name {
    font-size: clamp(2.35rem, 8.8vw, 4.5rem);
  }

  .invitation-note-script {
    font-size: clamp(1.95rem, 7.2vw, 3.6rem);
  }

  .invitation-note-script-primary {
    display: inline-block;
    padding-left: 0.37em;
    margin-left: 0;
  }

  .invitation-note-body {
    font-size: clamp(0.76rem, 2.9vw, 0.95rem);
  }

  .invitation-note-date span:first-child {
    font-size: clamp(1.75rem, 6.8vw, 2.9rem);
  }

  .invitation-note-date span:last-child,
  .invitation-note-venue {
    font-size: clamp(0.8rem, 2.8vw, 1rem);
  }

  .site-wrap {
    width: 100%;
  }

  .hero {
    margin-top: -1rem;
    /* background-image: linear-gradient(
        180deg,
        rgba(12, 12, 9, 0.3) 0%,
        rgba(15, 16, 12, 0.38) 46%,
        rgba(13, 13, 10, 0.62) 100%
      ),
      url("./images/slider/4.jpg"); */
    background-position: 25% center;
  }

  .gate {
    min-height: calc(100vh - 1.8rem);
    padding: 1.4rem 0.7rem;
    gap: clamp(1.55rem, 4.2vh, 2.5rem);
  }

  .gate-dedication {
    max-width: min(95vw, 520px);
    font-size: clamp(0.94rem, 3.9vw, 1.22rem);
    line-height: 1.23;
  }

  .private-gate {
    min-height: 100dvh;
  }

  .envelope-stage {
    width: 100%;
    max-width: 540px;
    justify-self: center;
  }

  .envelope {
    width: min(510px, 92vw);
    max-width: 510px;
    margin-top: clamp(0.35rem, 1.4vh, 0.85rem);
  }

  .envelope-closed-seal {
    width: clamp(68px, 18vw, 90px);
  }

  .save-date-polaroid {
    width: 84px;
    --polaroid-rot: -17deg;
    --polaroid-x: 20px;
    --polaroid-open-x: -44px;
    --polaroid-translate: 34%;
    --polaroid-open-translate: -12%;
    height: auto;
    left: 29%;
    bottom: 30%;
  }

  .save-date-reveal {
    bottom: 10%;
    width: min(58%, 250px);
    aspect-ratio: 0.8;
  }

  .save-date-card {
    gap: 0.18rem;
    padding-top: clamp(0.72rem, 2.2vw, 0.98rem);
  }

  .save-date-script {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .save-date-title {
    font-size: clamp(1.15rem, 4.2vw, 1.6rem);
  }

  .save-date-date {
    margin-top: 0;
    font-size: clamp(1.02rem, 3.8vw, 1.45rem);
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .countdown-flip-card {
    --countdown-card-radius: 11px;
    height: clamp(4.65rem, 23vw, 6.3rem);
    border-radius: var(--countdown-card-radius);
  }

  .countdown-number {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .countdown-segment small {
    margin-top: 0.6rem;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
  }

  .countdown-layout {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .countdown-lead {
    text-align: center;
  }

  .slider-panel {
    padding: 3rem 0;
  }

  .invitation-note-flower {
    right: -46%;
    top: -11%;
    width: min(860px, 150vw);
    opacity: 0.45;
    filter: saturate(0.9) brightness(0.92);
  }

  .slider-nav {
    width: 44px;
    height: 44px;
  }

  .slider-nav span {
    font-size: 1.35rem;
  }

  .slider-nav-prev {
    left: 0.35rem;
  }

  .slider-nav-next {
    right: 0.35rem;
  }

  .faq-trigger {
    padding: 0.9rem 0.95rem;
  }

  .faq-panel p {
    padding: 0 0.95rem 0.9rem;
    font-size: 0.97rem;
  }

  .dress-code-script-title {
    font-size: clamp(2.4rem, 11.8vw, 4.1rem);
  }

  .dress-code-theme-label {
    font-size: clamp(1.35rem, 6vw, 2.1rem);
  }

  .dress-code-theme-text {
    font-size: clamp(0.95rem, 3.9vw, 1.2rem);
  }

  .dress-code-main-title {
    font-size: clamp(1.65rem, 6.9vw, 2.5rem);
  }

  .dress-code-main-notes {
    font-size: clamp(0.88rem, 3.2vw, 1.02rem);
  }

  .dress-code-swatches {
    gap: 0.8rem;
  }

  .dress-code-swatch-label {
    font-size: clamp(0.78rem, 2.9vw, 0.95rem);
  }

  .dress-code-note {
    font-size: clamp(0.86rem, 3.5vw, 1.05rem);
  }

  .bible-verse-section .section-wrap {
    min-height: clamp(280px, 62vw, 430px);
  }

  .verse-script {
    font-size: clamp(2rem, 8.8vw, 4.3rem);
    transform: rotate(-6deg);
  }

}

@media (max-width: 440px) {
  :root {
    --h3-size: 2.2rem;
  }

  .envelope-stage {
    max-width: 430px;
  }

  .envelope {
    width: min(420px, 88vw);
    max-width: 420px;
  }

  .invitation-note-wrap {
    min-height: clamp(520px, 130vw, 710px);
    padding: 1.75rem 0.9rem 2rem;
  }

  .invitation-note-name {
    font-size: clamp(2.2rem, 13.5vw, 3.6rem);
  }

  .invitation-note-script {
    font-size: clamp(1.95rem, 10vw, 3.1rem);
  }

  .invitation-note-script-primary {
    display: inline-block;
    padding-left: 0.37em;
    margin-left: 0;
  }

  .invitation-note-body {
    margin-top: 1.4rem;
    font-size: clamp(0.78rem, 3.4vw, 0.9rem);
  }

  .invitation-note-date {
    margin-top: 1.6rem;
  }

  .invitation-note-date span:first-child {
    font-size: clamp(1.65rem, 9.4vw, 2.4rem);
  }

  .invitation-note-date span:last-child,
  .invitation-note-venue {
    font-size: clamp(0.78rem, 3.3vw, 0.94rem);
  }

  .invitation-note-flower {
    right: -66%;
    top: -8%;
    width: min(760px, 186vw);
    opacity: 0.42;
  }

  .dress-code-swatches {
    grid-template-columns: 1fr;
    width: min(280px, 100%);
    gap: 0.7rem;
  }

  .dress-code-swatch {
    width: 100%;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
  }

  .slider-nav span {
    font-size: 1.2rem;
  }

  .slider-nav-prev {
    left: 0.32rem;
  }

  .slider-nav-next {
    right: 0.32rem;
  }

  .save-date-polaroid {
    width: 74px;
    --polaroid-rot: -16deg;
    --polaroid-x: 18px;
    --polaroid-open-x: -40px;
    --polaroid-translate: 34%;
    --polaroid-open-translate: -10%;
    height: auto;
    left: 35%;
    bottom: 28%;
  }

  .envelope-closed-seal {
    width: clamp(60px, 19vw, 80px);
  }

  .save-date-reveal {
    bottom: 10%;
    width: min(56%, 220px);
    aspect-ratio: 0.78;
  }

  .save-date-card {
    gap: 0.14rem;
    padding-top: clamp(0.62rem, 2.6vw, 0.84rem);
  }

  .save-date-script {
    font-size: clamp(1.2rem, 5.3vw, 1.7rem);
  }

  .save-date-title {
    font-size: clamp(0.95rem, 4.5vw, 1.28rem);
  }

  .save-date-date {
    font-size: clamp(0.88rem, 3.9vw, 1.12rem);
  }

  .verse-script {
    font-size: clamp(1.8rem, 10.2vw, 3.4rem);
    transform: rotate(-5deg);
    line-height: 1;
  }

}

@media (max-width: 375px) {
  .save-date-polaroid {
    width: 60px;
  }
}

@media (max-height: 820px) {
  .envelopeGateContainer {
    padding: 0.85rem 0.9rem;
  }

  .gate {
    min-height: calc(100dvh - 1.7rem);
    gap: clamp(1.1rem, 3.4vh, 2rem);
    padding: clamp(0.8rem, 2.6vh, 1.6rem) 0.8rem;
    /* align-content: space-between; */
  }

  .gate-kicker {
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
  }

  .gate-couple {
    font-size: clamp(3.1rem, 8.3vw, 6.5rem);
  }

  .envelope {
    width: min(500px, 80vw);
    margin-top: clamp(0.2rem, 1vh, 0.7rem);
    margin-bottom: 0;
  }

  .gate-open-label {
    margin-top: clamp(0.25rem, 1.1vh, 0.6rem);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
  }
}

@media (min-width: 585px) and (max-height: 780px) {
  .save-date-polaroid {
    width: 85px;
  }
}

@media (max-height: 680px) {
  .gate {
    min-height: calc(100dvh - 1.2rem);
    gap: clamp(0.85rem, 2.4vh, 1.4rem);
    padding: 0.6rem 0.65rem;
  }

  .gate-couple {
    font-size: clamp(2.5rem, 7.1vw, 5.1rem);
    line-height: 0.94;
  }

  .envelope {
    width: min(430px, 72vw);
  }

  .gate-open-label {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  }
}

@media (max-height: 560px) {
  .envelopeGateContainer {
    padding: 0.45rem 0.65rem;
  }

  .gate {
    min-height: calc(100dvh - 0.9rem);
    gap: 0.65rem;
    padding: 0.45rem 0.5rem;
  }

  .gate-kicker {
    font-size: clamp(0.72rem, 1.9vw, 0.92rem);
  }

  .gate-couple {
    font-size: clamp(2rem, 6.1vw, 3.9rem);
    line-height: 0.92;
  }

  .gate-dedication {
    font-size: clamp(0.82rem, 2.6vw, 1rem);
    line-height: 1.2;
  }

  .envelope {
    width: min(360px, 64vw);
    margin-top: 0;
  }

  .gate-open-label {
    margin-top: 0.12rem;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
  }
}

/* Mobile gate viewport lock to avoid beige leak/gap on iOS dynamic toolbars */
@media (max-width: 740px) {
  .envelopeGateContainer {
    min-height: 100svh;
    height: 100svh;
  }

  .gate {
    min-height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation: none;
  }

  .faq-item,
  .faq-icon,
  .faq-panel {
    transition: none;
  }

  body.scroll-animate .reveal-unit,
  body.scroll-animate .reveal-unit.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
