:root {
  --cream: #f7f3e9;
  --ink: #4a3f1f;
  --ink-soft: rgba(74, 63, 31, 0.68);
  --hair: rgba(74, 63, 31, 0.22);
  --sage: #e8ebe2;
  --tint: #eef0e8;
  --rose: #f3e6e0;
  --ink-wash: #2c281c;
  --gold: #9c7c45;
  --page-bg: #f7f3e9;
  --surface: color-mix(in srgb, var(--cream) 55%, #fff);
  --chapter-fg: var(--ink);
  /* Kart artwork'ü sabit renkli SVG — üzerindeki yazılar temadan etkilenmez */
  --card-ink: #4a3f1f;
  --card-ink-soft: rgba(74, 63, 31, 0.68);
}

/* Tema değişiminde kısa, yumuşak renk geçişi */
.theme-fade body,
.theme-fade .chapter,
.theme-fade .hero,
.theme-fade .card-wrap,
.theme-fade .rsvp-inner,
.theme-fade .names,
.theme-fade .date-line {
  transition:
    background-color 0.6s ease,
    color 0.6s ease;
}

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

html {
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--page-bg);
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100svh;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

#webgl-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

#leaves-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}

#main {
  position: relative;
  z-index: 1;
}

/* —— Hero (v5 entrance) —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--cream);
}

.card-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100svh;
  aspect-ratio: auto;
  overflow: hidden;
  background: var(--cream);
}

.scene-host,
.scene-host svg#scene {
  display: block;
  width: 100%;
  height: 100%;
}

.scene-host svg#scene {
  overflow: hidden;
}

.js .scene-host svg#scene {
  transform-origin: 50% 58%;
  animation: sceneSettle 3.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.js #pedestal,
.js #foliage,
.js #eucalyptus,
.js #cypress,
.js #roses,
.js #card,
.js #frame-lower,
.js #seal {
  opacity: 0;
}
.js #pedestal {
  transform: translateY(18px);
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.js #foliage,
.js #eucalyptus,
.js #cypress {
  transform: translateY(22px) scale(0.96);
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.js #roses {
  transform: translateY(16px) scale(0.85) rotate(-2deg);
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.js #card {
  transform: translateY(-10px);
  filter: blur(4px);
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.js #frame path {
  opacity: 0;
}
.js #frame-lower {
  transform: translateY(-14px) scale(0.96);
  transform-box: fill-box;
  transform-origin: 50% 0%;
}
.js #seal {
  transform: scale(1.5) rotate(-6deg);
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.js #pedestal.go {
  animation: riseIn 0.8s cubic-bezier(0.19, 0.86, 0.28, 1) forwards;
  animation-delay: var(--d, 0ms);
}
.js #foliage.go,
.js #eucalyptus.go,
.js #cypress.go {
  animation: growIn 0.75s cubic-bezier(0.19, 0.86, 0.28, 1) forwards;
  animation-delay: var(--d, 0ms);
}
.js #roses.go {
  animation: bloomIn 0.85s cubic-bezier(0.19, 0.86, 0.28, 1) forwards;
  animation-delay: var(--d, 0ms);
}
.js #card.go {
  animation: fadeDown 0.7s cubic-bezier(0.19, 0.86, 0.28, 1) forwards;
  animation-delay: var(--d, 0ms);
}
.js #frame.go path {
  animation: strokeFadeIn 0.5s ease-out both;
}
.js #frame-lower.go {
  animation: unfurlDown 0.9s cubic-bezier(0.19, 0.86, 0.28, 1) forwards;
  animation-delay: var(--d, 0ms);
}
.js #seal.go {
  animation: stampIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--d, 0ms);
}

#shine-band {
  mix-blend-mode: soft-light;
  transform: translateX(-200px) skewX(-16deg);
  animation: glint 9s linear 4.2s infinite;
  pointer-events: none;
}
@keyframes glint {
  0% {
    transform: translateX(-200px) skewX(-16deg);
  }
  22% {
    transform: translateX(420px) skewX(-16deg);
  }
  100% {
    transform: translateX(420px) skewX(-16deg);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes growIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes bloomIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.85) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes strokeFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes unfurlDown {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes stampIn {
  0% {
    opacity: 0;
    transform: scale(1.5) rotate(-6deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.92) rotate(1.5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
@keyframes sceneSettle {
  from {
    transform: scale(1.045);
  }
  to {
    transform: scale(1);
  }
}

.js .float-el {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  --fall-dist: 600px;
  --r0: 0deg;
  --r1: 70deg;
  --sx: 6px;
}
.js .float-el.falling {
  animation-name: fallShed;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes fallShed {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(var(--r0));
  }
  10% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx), var(--fall-dist)) rotate(var(--r1));
  }
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.names {
  position: absolute;
  left: 50%;
  top: 41%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: 'Alex Brush', cursive;
  font-weight: 400;
  font-size: clamp(1.75rem, 8vw, 3rem);
  color: var(--card-ink);
  white-space: nowrap;
}

.date-line {
  position: absolute;
  left: 50%;
  top: 49.5%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(0.5rem, 1.6vw, 0.68rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--card-ink-soft);
  white-space: nowrap;
  max-width: 62%;
  text-align: center;
}

@media (max-width: 700px) {
  .date-line {
    letter-spacing: 0.14em;
    max-width: 58%;
  }
}

.js .names,
.js .date-line {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 8px));
  filter: blur(5px);
}
.js .names.go {
  animation: textIn 1.1s cubic-bezier(0.19, 0.86, 0.28, 1) forwards;
}
.js .date-line.go {
  animation: textIn 0.9s cubic-bezier(0.19, 0.86, 0.28, 1) forwards;
}
@keyframes textIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 8px));
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
    filter: blur(0);
  }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(0.6rem, 1.5vw, 0.72rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  pointer-events: none;
}
.scroll-hint.is-visible {
  opacity: 1;
  transition: opacity 0.8s ease;
  animation: hintPulse 2.8s ease-in-out 1.4s infinite;
}
@keyframes hintPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* —— Global falling leaves —— */
.leaf {
  position: absolute;
  top: -8%;
  width: clamp(18px, 3.2vw, 36px);
  height: auto;
  opacity: 0;
  will-change: transform, opacity;
  --fall-dist: 110vh;
  --r0: 0deg;
  --r1: 80deg;
  --sx: 12px;
  animation-name: leafFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes leafFall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--r0));
  }
  8% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--sx), var(--fall-dist), 0) rotate(var(--r1));
  }
}

/* —— Chapters —— */
.chapter,
.hero {
  --fade-top: transparent;
  --fade-bottom: transparent;
  --fade-size: 32vh;
  position: relative;
}

.chapter::before,
.chapter::after,
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: var(--fade-size);
  pointer-events: none;
  z-index: 6;
}

.chapter::before {
  top: 0;
  background: linear-gradient(to bottom, var(--fade-top) 0%, transparent 100%);
}

.chapter::after,
.hero::after {
  bottom: 0;
  background: linear-gradient(to top, var(--fade-bottom) 0%, transparent 100%);
}

.chapter {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 5vw, 3rem);
  color: var(--chapter-fg);
  background: transparent;
}

#invite,
#program,
#rsvp,
#note {
  background: transparent;
}

.chapter-inner {
  position: relative;
  z-index: 2;
  width: min(34rem, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(0.65rem, 1.6vw, 0.75rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow--light {
  color: color-mix(in srgb, var(--cream) 72%, transparent);
}

.chapter-title {
  margin: 0 0 1.5rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
}

.chapter-title--light {
  color: var(--cream);
}

.chapter-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
}

.invite-lead {
  margin: 0 auto 2.5rem;
  max-width: 34rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
}

.invite-script {
  margin: 0 0 2.5rem;
  font-family: 'Alex Brush', cursive;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--gold);
}

.families {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 26rem;
  margin: 0 auto;
}
.family-parents {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-soft);
}
.family-name {
  margin: 0.35rem 0 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.title-flourish {
  width: clamp(6.5rem, 22vw, 8.5rem);
  margin: -0.5rem auto 1.75rem;
  color: var(--gold);
  opacity: 0.9;
}
.title-flourish svg {
  display: block;
  width: 100%;
  height: auto;
}

.program-list {
  list-style: none;
  margin: 0 auto 1.75rem;
  padding: 0;
  max-width: 20rem;
}
.program-timeline {
  position: relative;
}
.program-timeline::before {
  content: '';
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: 50%;
  width: 1px;
  transform: translateX(-0.5px);
  background: var(--hair);
}
.program-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.9rem, 4vw, 1.4rem);
  padding: 1.05rem 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.prog-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 16%, transparent);
}
.prog-label {
  font-weight: 500;
  text-align: right;
}
.prog-time {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-align: left;
}

.program-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.85rem;
}
.text-link {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(0.68rem, 1.7vw, 0.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 0.2rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.text-link:hover {
  color: var(--ink);
  border-color: var(--gold);
}
.link-sep {
  color: var(--ink-soft);
}
.link-sep--light {
  color: color-mix(in srgb, var(--cream) 60%, transparent);
}
.venue-links {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.program-date {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(0.65rem, 1.6vw, 0.75rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 1.75rem);
  margin-top: clamp(1.25rem, 3vh, 1.85rem);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.25rem;
}

.countdown-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  margin-top: 0.45rem;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(0.55rem, 1.4vw, 0.68rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.countdown.is-done .countdown-num {
  color: var(--gold);
}

/* —— Photo chapters —— */
.chapter-photo {
  color: var(--cream);
  overflow: hidden;
  padding: 0;
  min-height: 100svh;
  isolation: isolate;
}
.photo-plane {
  position: absolute;
  inset: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  will-change: transform;
  z-index: 0;
}
.photo-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(44, 40, 28, 0.28) 0%,
    rgba(44, 40, 28, 0.42) 40%,
    rgba(44, 40, 28, 0.2) 72%,
    rgba(44, 40, 28, 0) 100%
  );
}
.photo-veil--deep {
  background: linear-gradient(
    180deg,
    rgba(24, 20, 12, 0.42) 0%,
    rgba(24, 20, 12, 0.55) 38%,
    rgba(24, 20, 12, 0.35) 68%,
    rgba(24, 20, 12, 0) 100%
  );
}
.photo-copy {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 10vh, 7rem) clamp(1.25rem, 5vw, 3rem) clamp(8rem, 36vh, 16rem);
  transform: translateY(-6vh);
}
.photo-line {
  margin: 0;
  font-family: 'Alex Brush', cursive;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--cream);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25);
}
.photo-sub {
  margin: 0.5rem 0 0;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(0.65rem, 1.8vw, 0.8rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(247, 243, 233, 0.8);
}
.venue-name {
  margin: 0 0 1rem;
  font-family: 'Alex Brush', cursive;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  color: var(--cream);
}
.venue-addr {
  margin: 0 0 1.75rem;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 78%, transparent);
}
.venue-link {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid rgba(247, 243, 233, 0.45);
  padding-bottom: 0.2rem;
  transition: border-color 0.25s ease;
}
.venue-link:hover {
  border-color: var(--cream);
}

/* —— RSVP —— */
.rsvp-inner {
  width: min(28rem, 100%);
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 4vw, 2rem);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--ink-wash) 8%, transparent);
}

#rsvp .eyebrow {
  color: var(--ink);
  font-weight: 400;
  opacity: 0.85;
}

#rsvp .chapter-title {
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1rem;
}

.rsvp-lead {
  margin: 0 0 2rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  text-align: left;
}

.rsvp-form[hidden] {
  display: none;
}

/* Honeypot — botlara görünür, gerçek kullanıcıya asla (display:none kullanmaz,
   bazı botlar onu tarayıp atlıyor) */
.rsvp-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.rsvp-field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.rsvp-field--stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rsvp-label {
  display: block;
  margin: 0 0 0.75rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.rsvp-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: flex-start;
}

.rsvp-choice {
  cursor: pointer;
  position: relative;
}

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

.rsvp-choice span {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 2.8vw, 1.3rem);
  color: var(--ink);
  padding: 0.4rem 1.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.rsvp-choice:hover span {
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}

.rsvp-choice input:checked + span {
  background: var(--ink);
  color: var(--cream);
}

.rsvp-choice:active span {
  transform: scale(0.97);
}

.rsvp-choice input:focus-visible + span {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.rsvp-other {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
}

.rsvp-other[hidden] {
  display: none;
}

.rsvp-input {
  width: 100%;
  appearance: none;
  border: 0;
  border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent);
  border-radius: 0;
  background: transparent;
  padding: 0.55rem 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.2rem, 3.2vw, 1.45rem);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.rsvp-input::placeholder {
  color: color-mix(in srgb, var(--ink) 45%, transparent);
}

.rsvp-input:focus {
  border-bottom-color: var(--gold);
}

.rsvp-submit {
  align-self: stretch;
  width: 100%;
  max-width: 16rem;
  margin: 1rem auto 0;
  appearance: none;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--ink);
  padding: 0.95rem 2rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(0.72rem, 1.9vw, 0.85rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(74, 63, 31, 0.18);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.rsvp-submit:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--cream);
  box-shadow: 0 6px 22px rgba(156, 124, 69, 0.28);
  transform: translateY(-1px);
}

.rsvp-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(74, 63, 31, 0.15);
}

.rsvp-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.rsvp-error {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #94483b;
}

.rsvp-error[hidden] {
  display: none;
}

.rsvp-thanks {
  margin: 1.5rem 0 0;
}

.rsvp-thanks[hidden] {
  display: none;
}

.rsvp-thanks-text {
  margin: 1.25rem 0 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.25rem, 3.2vw, 1.55rem);
  color: var(--ink);
}

.rsvp-seal {
  display: flex;
  justify-content: center;
  width: clamp(6rem, 24vw, 8.5rem);
  margin: 0.5rem auto 0;
}
.rsvp-seal svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.js .rsvp-seal svg #monogram-seal {
  opacity: 0;
  transform: scale(1.35);
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.js .rsvp-thanks.is-sealed .rsvp-seal svg #monogram-seal {
  animation: monoStamp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}
.js .rsvp-thanks.is-sealed .rsvp-thanks-text {
  opacity: 0;
  animation: thanksIn 0.9s cubic-bezier(0.19, 0.86, 0.28, 1) 0.75s forwards;
}
@keyframes thanksIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.note-inner {
  max-width: 26rem;
}
.note-text {
  margin: 0 0 2rem;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(0.7rem, 1.9vw, 0.85rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--ink-soft);
}
.note-mono {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5rem auto 0;
  width: clamp(7rem, 28vw, 11rem);
  background: none;
  border: 0;
  box-shadow: none;
  outline: none;
}

.note-mono svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  background: transparent;
}

.js .note-mono svg #monogram-seal {
  opacity: 0;
  transform: scale(1.35);
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.js .note-mono.is-in svg #monogram-seal {
  animation: monoStamp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes monoStamp {
  0% {
    opacity: 0;
    transform: scale(1.35);
  }
  55% {
    opacity: 1;
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.no-anim.js .note-mono svg #monogram-seal,
.no-anim.js .rsvp-seal svg #monogram-seal {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.no-anim.js .rsvp-thanks.is-sealed .rsvp-thanks-text {
  opacity: 1 !important;
  animation: none !important;
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--ink);
  z-index: 100;
}

.no-anim.js #pedestal,
.no-anim.js #foliage,
.no-anim.js #eucalyptus,
.no-anim.js #cypress,
.no-anim.js #roses,
.no-anim.js #card,
.no-anim.js #frame-lower,
.no-anim.js #seal,
.no-anim.js .float-el,
.no-anim .leaf {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}
.no-anim.js #frame path {
  opacity: 1 !important;
  animation: none !important;
}
.no-anim.js .scene-host svg#scene {
  animation: none !important;
  transform: none !important;
}
.no-anim #shine-band {
  display: none !important;
}
.no-anim .scroll-hint.is-visible {
  animation: none !important;
}
.no-anim.js .names,
.no-anim.js .date-line {
  opacity: 1 !important;
  transform: translate(-50%, -50%) !important;
  filter: none !important;
  animation: none !important;
}
.no-anim .chapter-title .char {
  opacity: 1 !important;
  transform: none !important;
}
.no-anim #webgl-bg {
  opacity: 1;
  filter: saturate(0.85);
}
