@font-face {
  font-family: "Edwardian Script ITC";
  src: url("assets/fonts/Edwardian Script ITC Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bickham Script Pro";
  src: url("assets/fonts/Bickham Script Pro Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bickham Script Pro";
  src: url("assets/fonts/Bickham Script Pro Semibold.woff") format("woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Bickham Script Pro";
  src: url("assets/fonts/Bickham Script Pro Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fffdfa;
  --ink: #4b5258;
  --soft-ink: #7d8586;
  --gold: #7a1f3d;
  --gold-band: #8f2a4a;
  --white: #ffffff;
  --line: rgba(122, 31, 61, 0.6);
  --shadow: 0 24px 70px rgba(60, 70, 78, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.45;
}

body.invite-locked {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.envelope-gate {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.58), transparent 40%),
    linear-gradient(180deg, #f2ede2 0%, #eae3d8 100%);
  visibility: visible;
  transition:
    opacity 720ms ease,
    visibility 0s linear 720ms;
}

.envelope-stage {
  position: relative;
  width: min(100vw, 640px);
  height: min(100svh, 960px);
  max-height: 960px;
  display: grid;
  align-items: center;
  justify-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1000px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  transform: translateZ(0);
  transition:
    transform 2200ms cubic-bezier(0.16, 0.82, 0.2, 1),
    opacity 1200ms ease;
}

.envelope-photo {
  position: absolute;
  inset: 8% 8% 14%;
  object-fit: cover;
  border-radius: 18px;
  filter: saturate(0.74) brightness(0.95);
  opacity: 0;
  transform: scale(1);
  transition:
    filter 900ms ease,
    transform 1300ms cubic-bezier(0.18, 0.78, 0.2, 1);
}

.invite-letter {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: min(74%, 390px);
  height: 46%;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px solid rgba(181, 156, 130, 0.68);
  border-radius: 8px 8px 2px 2px;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(180deg, rgba(252, 247, 238, 0.96), rgba(240, 229, 214, 0.96)),
    repeating-linear-gradient(95deg, rgba(160, 120, 91, 0.06) 0 1px, transparent 1px 5px);
  box-shadow: 0 12px 20px rgba(53, 35, 22, 0.24);
  opacity: 0;
  transform: translateX(-50%) translateY(38%) scale(0.99);
  transition:
    opacity 620ms ease 120ms,
    transform 1250ms cubic-bezier(0.15, 0.84, 0.2, 1) 90ms;
  z-index: 3;
}

.invite-letter span {
  text-align: center;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(70, 17, 35, 0.42);
  text-transform: uppercase;
}

.envelope-shell {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  width: min(96%, 620px);
  height: 68%;
  align-self: stretch;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 0;
  filter: drop-shadow(0 22px 26px rgba(97, 86, 74, 0.2));
  z-index: 4;
  transition:
    opacity 620ms ease 980ms,
    transform 1020ms cubic-bezier(0.16, 0.82, 0.2, 1);
}

.envelope-shell::before,
.envelope-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.envelope-shell::before {
  background:
    linear-gradient(180deg, rgba(134, 36, 67, 0.99), rgba(102, 24, 49, 0.99));
  border: 1px solid rgba(84, 17, 39, 0.78);
}

.envelope-shell::after {
  inset: auto 0 0 0;
  height: 60%;
  clip-path: polygon(0 100%, 0 34%, 50% 2%, 100% 34%, 100% 100%);
  background:
    linear-gradient(180deg, rgba(153, 45, 79, 0.99), rgba(118, 29, 58, 0.99)),
    linear-gradient(90deg, rgba(182, 88, 120, 0.2), rgba(182, 88, 120, 0));
  border-top: 1px solid rgba(88, 20, 43, 0.78);
  z-index: 2;
}

.envelope-flap {
  position: absolute;
  transition: opacity 700ms ease, transform 1800ms cubic-bezier(0.16, 0.78, 0.22, 1);
}

.envelope-flap-left {
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: linear-gradient(180deg, #fffdf8 0%, #eee6d8 100%);
  z-index: 3;
  opacity: 1;
  box-shadow:
    inset -18px 0 24px rgba(115, 90, 66, 0.3),
    inset 0 -10px 12px rgba(150, 127, 102, 0.12);
}

.envelope-flap-right {
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  background: linear-gradient(180deg, #fffdf8 0%, #eee6d8 100%);
  z-index: 3;
  opacity: 1;
  box-shadow:
    inset 18px 0 24px rgba(115, 90, 66, 0.3),
    inset 0 -10px 12px rgba(150, 127, 102, 0.12);
}

.envelope-flap-left::after,
.envelope-flap-right::after {
  content: none;
}

.envelope-seam {
  position: absolute;
  inset: 0;
  background: rgba(88, 20, 43, 0.9);
  pointer-events: none;
  z-index: 10;
}

.envelope-seam-left {
  clip-path: polygon(0 0, 0.45% 0, 50.25% 100%, 49.75% 100%);
}

.envelope-seam-right {
  clip-path: polygon(99.55% 0, 100% 0, 50.25% 100%, 49.75% 100%);
}

.envelope-flap-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  clip-path: polygon(0 100%, 0 36%, 50% 2%, 100% 36%, 100% 100%);
  background: #7f2020;
  z-index: 4;
  box-shadow:
    inset 0 14px 22px rgba(63, 12, 23, 0.28),
    0 -1px 0 rgba(255, 230, 212, 0.14);
}

.envelope-flap-top {
  left: 0;
  right: 0;
  top: 0;
  height: 58%;
  transform-origin: top center;
  transform: rotateX(0deg) translateZ(1px);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #fffdf8 0%, #eee6d8 100%);
  border: 1px solid rgba(88, 20, 43, 0.78);
  border-top: 0;
  box-shadow:
    inset 0 -24px 30px rgba(124, 99, 73, 0.32),
    0 11px 18px rgba(76, 50, 26, 0.28),
    0 -1px 0 rgba(255, 255, 255, 0.7);
  z-index: 8;
  backface-visibility: hidden;
  transition-duration: 2600ms;
}

.envelope-monogram {
  position: absolute;
  top: 30.5%;
  left: 50%;
  right: auto;
  margin: 0;
  transform: translate(calc(-50% - 3px), -50%);
  width: min(43%, 180px);
  aspect-ratio: 298 / 305;
  display: block;
  background: url("assets/crest-2.png?v=20260509-1") center / contain no-repeat;
  font-size: 0;
  line-height: 0;
  color: transparent;
  pointer-events: none;
  z-index: 9;
}

.seal {
  position: absolute;
  left: 50%;
  top: 70%;
  transform: translate(-50%, -50%);
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.2, 0.75, 0.18, 1);
}

.seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: saturate(1.04) contrast(1.03);
}

.envelope-hint {
  display: none;
}

.envelope-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(26px) saturate(0.9);
  transform: scale(1.05);
  opacity: 0.55;
}

.envelope-gate > * {
  position: relative;
  z-index: 1;
}

.envelope-stage.is-open .envelope-flap {
  opacity: 0.9;
}

.envelope-stage.is-open .envelope-flap-top {
  opacity: 0.95;
  transform: rotateX(176deg) translateZ(1px);
}

.envelope-stage.is-open .invite-letter {
  opacity: 0;
  transform: translateX(-50%) translateY(38%) scale(0.99);
}

.envelope-stage.is-open .envelope-photo {
  filter: saturate(0.84) brightness(1.04);
  transform: scale(1.02);
  opacity: 0;
}

.envelope-stage.is-open .seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72) rotate(-8deg);
}

.envelope-stage.is-open .envelope-hint {
  opacity: 0;
  transform: translate(-50%, 10px);
}

.envelope-stage.is-open .envelope-shell {
  opacity: 0.2;
  transform: translate(-50%, -48%) scale(1.03);
}

.envelope-gate.is-opening .envelope-stage {
  animation: envelopeOpen 2800ms cubic-bezier(0.16, 0.82, 0.2, 1) forwards;
}

.envelope-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes envelopeOpen {
  0% {
    transform: scale(1) translateY(0) rotateX(0deg);
    filter: brightness(1);
    opacity: 1;
  }
  40% {
    transform: scale(1.02) translateY(-1.8svh) rotateZ(-0.2deg);
    filter: brightness(1.02);
  }
  100% {
    transform: scale(1.1) translateY(-7.2svh) rotateZ(0.4deg);
    opacity: 0;
    filter: brightness(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .envelope-gate,
  .envelope-stage,
  .envelope-photo,
  .invite-letter,
  .envelope-shell,
  .envelope-flap,
  .seal,
  .envelope-hint {
    transition-duration: 1ms;
    animation-duration: 1ms !important;
  }
}

.close-x {
  position: fixed;
  z-index: 20;
  top: 28px;
  right: 30px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.close-x::before,
.close-x::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 3px;
  width: 2px;
  height: 28px;
  background: var(--gold);
}

.close-x::before {
  transform: rotate(45deg);
}

.close-x::after {
  transform: rotate(-45deg);
}

.music {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border: 2px solid #1f1f1f;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  color: #1f1f1f;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--shadow);
  transition:
    transform 140ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.music:hover {
  transform: translateY(-1px);
  box-shadow: 0 28px 38px rgba(60, 70, 78, 0.2);
}

.music:active {
  transform: translateY(0) scale(0.98);
}

.music:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.music.is-playing {
  border-color: var(--gold);
  background: rgba(122, 31, 61, 0.12);
  color: var(--gold);
}

.cover {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background: #7f8c93;
}

.cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65) contrast(0.9);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(45, 56, 62, 0.18);
}

.cover__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(16px, 3vw, 34px);
  width: min(900px, 92vw);
  padding-top: 12svh;
}

.tiny {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

h1 {
  font-family: "Bickham Script Pro", "Bickham Script Pro 3", "Edwardian Script ITC", "Alex Brush", cursive;
  font-size: clamp(5.8rem, 14vw, 10.6rem);
  line-height: 0.9;
  white-space: nowrap;
}

.venue,
.date {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: calc(1.28rem + 1px);
  font-weight: 700;
  font-style: italic;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.9),
    1px -1px 0 rgba(0, 0, 0, 0.9),
    -1px 1px 0 rgba(0, 0, 0, 0.9),
    1px 1px 0 rgba(0, 0, 0, 0.9);
}

.paper {
  padding: clamp(70px, 11vw, 150px) clamp(18px, 4vw, 56px);
  background: var(--paper);
  text-align: center;
}

.intro {
  min-height: 72svh;
  display: grid;
  place-content: start center;
  padding-top: clamp(12px, 4vh, 36px);
}

.monogram {
  width: min(41vw, 288px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 18px;
  background: url("assets/crest-2.png?v=20260509-1") center / contain no-repeat;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.monogram::before,
.monogram::after {
  content: none;
}

.intro p {
  margin: 0 auto 14px;
  max-width: 360px;
  color: var(--ink);
  font-family: Cinzel, Georgia, serif;
  font-size: 1rem;
  text-transform: uppercase;
}

.intro h2 {
  margin: 14px 0 18px;
  color: var(--gold);
  font-family: "Bickham Script Pro", "Bickham Script Pro 3", "Edwardian Script ITC", "Alex Brush", cursive;
  font-size: clamp(3.3rem, 8vw, 5.6rem);
}

.parents {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  margin: 12px 0 18px;
  color: var(--gold);
  font-size: 1.15rem;
  font-style: italic;
}

.parents__name {
  line-height: 1.12;
}

.parents__amp {
  line-height: 0.9;
  font-size: 0.9em;
}

.parents--split {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 14px;
  width: min(460px, 100%);
  margin-inline: auto;
}

.parents__pair {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.calendar-section {
  padding-top: 0;
  margin-top: -60px;
}

.calendar {
  width: min(420px, 100%);
  margin: 0 auto 36px;
}

.calendar h2 {
  margin-bottom: 24px;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  text-transform: uppercase;
}

.weekdays,
.dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px 20px;
  align-items: center;
}

.weekdays b,
.dates span {
  min-height: 28px;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 1.45rem;
}

.marked {
  position: relative;
  color: var(--gold) !important;
}

.marked::before {
  content: "♡";
  position: absolute;
  left: 50%;
  top: 67%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: calc(4.5rem - 1px);
  line-height: 1;
  font-weight: 400;
  pointer-events: none;
}

.outline-button {
  min-height: 42px;
  padding: 0 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: Cinzel, Georgia, serif;
  font-weight: 500;
  text-transform: uppercase;
}

.venue-sketch {
  padding-top: 26px;
  padding-bottom: 0;
}

.venue-sketch img {
  width: min(1180px, 100%);
  margin: 0 auto;
  mix-blend-mode: multiply;
  opacity: 0.74;
}

.gold-day,
.gold-countdown {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(rgba(143, 42, 74, 0.92), rgba(122, 31, 61, 0.94)),
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.22), transparent 30%),
    var(--gold-band);
  text-align: center;
}

.gold-day {
  min-height: 96svh;
  padding: clamp(80px, 10vw, 150px) 18px;
}

.gold-day h2 {
  color: var(--white);
  font-family: "Bickham Script Pro", "Bickham Script Pro 3", "Edwardian Script ITC", "Alex Brush", cursive;
  font-size: clamp(4.6rem, 9vw, 6.8rem);
}

.schedule-list {
  width: min(560px, 100%);
  margin: 62px auto 0;
  display: grid;
  gap: clamp(44px, 6vw, 84px);
}

.schedule-list article {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.schedule-icon {
  width: clamp(118px, 15vw, 146px);
  height: clamp(118px, 15vw, 146px);
  margin-bottom: 6px;
  background-image: url("assets/schedule-icons.png");
  background-repeat: no-repeat;
  background-size: 200% 100%;
  filter: brightness(0) invert(1);
}

.schedule-icon--church {
  background-position: 0 50%;
}

.schedule-icon--reception {
  background-position: 100% 50%;
}

.schedule-list p,
.schedule-list span {
  margin: 0;
  font-size: 1.35rem;
}

.schedule-list h3 {
  color: var(--white);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.schedule-list span {
  font-style: italic;
}

.schedule-address {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.92);
  font-family: Cinzel, Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.schedule-map {
  margin-top: 16px;
  width: min(468px, 100%);
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.gold-countdown {
  padding: 78px 18px 86px;
  border-top: 2px solid rgba(255, 255, 255, 0.72);
}

.countdown {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.countdown div {
  display: grid;
  gap: 28px;
}

.countdown strong {
  color: var(--white);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1;
}

.countdown span {
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.98rem;
}

.dress h2,
.rsvp h2,
.rsvp h3 {
  color: var(--gold);
  font-family: "Bickham Script Pro", "Bickham Script Pro 3", "Edwardian Script ITC", "Alex Brush", cursive;
  font-size: clamp(3.5rem, 7vw, 5.2rem);
}

.dress p,
.rsvp > p {
  max-width: 420px;
  margin: 18px auto;
  font-size: 1.22rem;
  font-style: italic;
}

.divider {
  width: 120px;
  height: 1px;
  margin: 20px auto 0;
  background: var(--line);
}

.rsvp {
  padding-top: 120px;
}

.rsvp h2 {
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 6vw, 4.3rem);
  text-transform: uppercase;
}

.rsvp-form {
  width: min(760px, 100%);
  margin: 36px auto 130px;
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: left;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 420ms ease,
    transform 600ms cubic-bezier(0.18, 0.78, 0.2, 1),
    max-height 600ms ease,
    margin 420ms ease,
    padding 420ms ease,
    border-color 300ms ease;
}

.rsvp-form.is-submitted {
  opacity: 0;
  transform: translateY(-24px) scale(0.98);
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  pointer-events: none;
  border-color: transparent;
}

.rsvp-form label {
  display: grid;
  gap: 7px;
}

.rsvp-form span,
.rsvp-form legend {
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
}

.rsvp-form em {
  color: #ff4a4a;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.7rem;
  font-style: normal;
  text-transform: uppercase;
}

.rsvp-form input[type="text"],
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--ink);
  background: transparent;
  outline: none;
}

.rsvp-form select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rsvp-form fieldset {
  display: grid;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
}

.rsvp-form fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
  text-transform: uppercase;
}

.rsvp-form button {
  min-height: 46px;
  border: 0;
  color: var(--white);
  background: var(--gold);
  cursor: pointer;
  font-family: Cinzel, Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

#formStatus {
  min-height: 24px;
  margin: 0;
  color: var(--gold);
  text-align: center;
  font-family: Inter, Arial, sans-serif;
  font-weight: 700;
}

.rsvp-success {
  width: min(760px, 100%);
  margin: 0 auto 130px;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(122, 31, 61, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 248, 242, 0.98));
  box-shadow: 0 30px 50px rgba(122, 31, 61, 0.16);
  transition:
    opacity 420ms ease,
    transform 650ms cubic-bezier(0.18, 0.78, 0.2, 1),
    max-height 650ms ease,
    padding 420ms ease,
    margin 420ms ease,
    border-color 240ms ease;
}

.rsvp-success.is-visible {
  max-height: 520px;
  padding: 34px 28px 38px;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  border-color: rgba(122, 31, 61, 0.34);
}

.rsvp-success__crest {
  width: min(32vw, 116px);
  aspect-ratio: 298 / 305;
  margin: 0;
  background: url("assets/crest-2.png?v=20260509-1") center / contain no-repeat;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.rsvp-success__eyebrow {
  margin: 0;
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rsvp-success h3 {
  width: auto;
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  text-transform: uppercase;
}

.rsvp-success p:last-of-type {
  max-width: 520px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 1.18rem;
  font-style: italic;
}

.rsvp-success__button {
  min-height: 46px;
  padding: 0 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: Cinzel, Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
}

.rsvp h3 {
  width: min(500px, 100%);
  margin: 0 auto;
  color: var(--gold);
  line-height: 1.08;
}

.editor {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  justify-items: end;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.editor.is-open {
  opacity: 1;
  pointer-events: auto;
}

.editor__panel {
  width: min(540px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  overflow-y: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.editor__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.editor__header h2 {
  color: var(--gold);
  font-size: 2rem;
}

.editor__header p {
  margin: 8px 0 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.9rem;
}

#editorClose {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

#editorForm {
  display: grid;
  align-content: start;
  gap: 13px;
  overflow: visible;
  padding-right: 6px;
  padding-bottom: 10px;
}

#editorForm label {
  display: grid;
  gap: 6px;
}

#editorForm span {
  color: var(--gold);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

#editorForm input,
#editorForm textarea {
  width: 100%;
  border: 1px solid rgba(122, 31, 61, 0.44);
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
  background: var(--white);
}

.editor__actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(255, 253, 250, 0.75), rgba(255, 253, 250, 1) 45%);
}

.editor__actions button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
}

.editor__actions button:last-child {
  color: var(--white);
  background: var(--gold);
}

#editorStatus {
  min-height: 22px;
  margin: 0;
  color: var(--gold);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .envelope-gate {
    padding: 0;
  }

  .envelope-stage {
    width: 100vw;
    height: 100svh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

  .envelope-shell {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
  }

  .envelope-monogram {
    top: 26.5%;
    width: min(38%, 160px);
    background-position: 52% 50%;
  }

  .cover {
    min-height: 86svh;
  }

  .cover__content {
    width: 100%;
    padding: 9svh 14px 0;
    gap: 18px;
  }

  h1 {
    white-space: normal;
    font-size: clamp(4.2rem, 18vw, 6.2rem);
    line-height: 0.92;
  }

  .venue,
  .date {
    font-size: 0.92rem;
    letter-spacing: 0.04em;
  }

  .quote {
    max-width: 92vw;
    font-size: 1rem;
  }

  .parents {
    gap: 8px;
  }

  .parents--split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .weekdays,
  .dates {
    gap: 10px 8px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .gold-day {
    min-height: auto;
  }

  .schedule-list {
    gap: 78px;
  }

  .editor__panel {
    padding: 16px;
  }

  .editor__actions {
    grid-template-columns: 1fr;
  }

  .rsvp-success.is-visible {
    padding: 28px 18px 32px;
  }
}
