.rsvp-premium-body {
  margin: 0;
  background: #f6efe5;
  color: #3e302a;
}

.rsvp-page.rsvp-premium-page {
  --rsvp-ink: #3e302a;
  --rsvp-soft-ink: #77675e;
  --rsvp-wine: #7d293b;
  --rsvp-wine-deep: #5f1f2e;
  --rsvp-gold: #b58a4a;
  --rsvp-gold-light: #d8bc86;
  --rsvp-cream: #f7efe3;
  --rsvp-paper: #fffaf2;
  --rsvp-sage: #7e8d75;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  display: block;
  overflow: clip;
  background: var(--rsvp-cream);
  color: var(--rsvp-ink);
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.rsvp-premium-page button,
.rsvp-premium-page a {
  -webkit-tap-highlight-color: transparent;
}

.rsvp-premium-page button:focus-visible,
.rsvp-premium-page a:focus-visible,
.rsvp-premium-page input:focus-visible,
.rsvp-premium-page textarea:focus-visible {
  outline: 3px solid rgba(181, 138, 74, 0.42);
  outline-offset: 4px;
}

.rsvp-loading-page {
  min-height: 100svh !important;
  display: grid !important;
  place-items: center;
  padding: 24px !important;
  background:
    linear-gradient(rgba(255, 250, 242, 0.78), rgba(247, 239, 227, 0.94)),
    url("/invitation-background.jpg") center / cover no-repeat !important;
}

.rsvp-premium-loading {
  width: min(100%, 390px);
  padding: 36px 26px;
  border: 1px solid rgba(181, 138, 74, 0.28);
  border-radius: 28px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 28px 80px rgba(73, 48, 37, 0.16);
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.rsvp-premium-loading .monogram {
  margin: 0 auto 18px;
  color: var(--rsvp-wine);
}

.rsvp-premium-loading h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.rsvp-premium-loading p {
  margin: 0;
  color: var(--rsvp-soft-ink);
  line-height: 1.6;
}

.rsvp-envelope-stage {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(30px, env(safe-area-inset-top)) 18px
    max(32px, env(safe-area-inset-bottom));
  background:
    linear-gradient(
      135deg,
      rgba(255, 250, 242, 0.36),
      rgba(247, 239, 227, 0.58)
    ),
    url("/invitation-background.jpg") center / cover no-repeat;
}

.rsvp-envelope-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(255, 255, 255, 0.76),
      transparent 43%
    ),
    linear-gradient(180deg, rgba(94, 61, 45, 0.04), rgba(94, 61, 45, 0.12));
}

.rsvp-envelope-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14px;
  border: 1px solid rgba(181, 138, 74, 0.44);
  border-radius: 6px;
  pointer-events: none;
}

.rsvp-envelope-gate {
  width: min(100%, 520px);
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--rsvp-ink);
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 30px;
}

.rsvp-envelope-gate:disabled {
  cursor: default;
}

.rsvp-envelope-paper {
  position: relative;
  width: min(86vw, 440px);
  aspect-ratio: 1.34 / 1;
  overflow: visible;
  border: 1px solid rgba(181, 138, 74, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 250, 242, 0.72), rgba(255, 250, 242, 0.86)),
    url("/invitation-background.jpg") center / cover no-repeat;
  box-shadow:
    0 34px 70px rgba(73, 48, 37, 0.2),
    0 8px 24px rgba(73, 48, 37, 0.1),
    inset 0 0 0 8px rgba(255, 255, 255, 0.3);
  transform-style: preserve-3d;
  animation: rsvp-envelope-float 4.8s ease-in-out infinite;
  transition:
    filter 0.35s ease,
    box-shadow 0.35s ease;
}

.rsvp-envelope-gate:hover .rsvp-envelope-paper {
  filter: brightness(1.02);
  box-shadow:
    0 38px 84px rgba(73, 48, 37, 0.25),
    0 10px 28px rgba(73, 48, 37, 0.12),
    inset 0 0 0 8px rgba(255, 255, 255, 0.34);
}

.rsvp-envelope-paper::before,
.rsvp-envelope-paper::after {
  content: "";
  position: absolute;
  z-index: 2;
  bottom: 0;
  width: 62%;
  height: 74%;
  background: linear-gradient(
    145deg,
    rgba(255, 250, 242, 0.96),
    rgba(237, 222, 203, 0.92)
  );
  border-top: 1px solid rgba(181, 138, 74, 0.28);
}

.rsvp-envelope-paper::before {
  left: 0;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  border-radius: 0 0 0 7px;
}

.rsvp-envelope-paper::after {
  right: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 7px 0;
}

.rsvp-envelope-flap {
  position: absolute;
  z-index: 3;
  inset: -1px -1px auto;
  height: 62%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  background:
    linear-gradient(rgba(255, 250, 242, 0.72), rgba(238, 225, 208, 0.9)),
    url("/invitation-background.jpg") center 16% / 118% auto no-repeat;
  filter: drop-shadow(0 8px 8px rgba(73, 48, 37, 0.09));
}

.rsvp-envelope-address {
  position: absolute;
  z-index: 4;
  inset: 22% 12% auto;
  display: grid;
  gap: 6px;
  text-align: center;
}

.rsvp-envelope-address span {
  color: var(--rsvp-soft-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rsvp-envelope-address strong {
  overflow: hidden;
  color: var(--rsvp-wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rsvp-wax-seal {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 57%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%) rotate(-2deg);
  border: 2px solid rgba(255, 220, 200, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background:
    radial-gradient(
      circle at 34% 28%,
      rgba(255, 255, 255, 0.24),
      transparent 22%
    ),
    radial-gradient(circle, #a24457 0, #7d293b 58%, #5f1f2e 100%);
  color: #f7dfca;
  box-shadow:
    0 12px 22px rgba(63, 24, 33, 0.3),
    inset 0 0 0 7px rgba(76, 19, 32, 0.2),
    inset 0 0 0 9px rgba(255, 223, 201, 0.12);
  font-family: Georgia, "Times New Roman", serif;
}

.rsvp-wax-seal::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 225, 204, 0.35);
  border-radius: 50%;
}

.rsvp-wax-seal b {
  position: relative;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
}

.rsvp-wax-seal i {
  position: relative;
  font-size: 16px;
  font-weight: 400;
}

.rsvp-tap-hint {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--rsvp-wine);
  text-align: center;
}

.rsvp-tap-hint svg {
  animation: rsvp-sparkle 2s ease-in-out infinite;
}

.rsvp-tap-hint strong {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rsvp-tap-hint span {
  color: var(--rsvp-soft-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
}

.rsvp-envelope-stage.is-opening .rsvp-envelope-paper {
  animation: rsvp-envelope-open 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rsvp-envelope-stage.is-opening .rsvp-envelope-flap {
  animation: rsvp-flap-open 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rsvp-envelope-stage.is-opening .rsvp-wax-seal {
  animation: rsvp-seal-open 0.7s ease-in both;
}

.rsvp-envelope-stage.is-opening .rsvp-tap-hint {
  animation: rsvp-fade-away 0.35s ease both;
}

.rsvp-premium-hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #55463d;
  color: #fffaf2;
}

.rsvp-hero-media,
.rsvp-hero-media > video,
.rsvp-hero-media > iframe,
.rsvp-hero-floral {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rsvp-hero-media > video,
.rsvp-hero-media > iframe {
  border: 0;
  object-fit: cover;
  pointer-events: none;
}

.rsvp-hero-media > iframe {
  inset: -18%;
  width: 136%;
  height: 136%;
}

.rsvp-hero-floral {
  background:
    linear-gradient(rgba(255, 250, 242, 0.05), rgba(86, 61, 48, 0.12)),
    url("/invitation-background.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: rsvp-ken-burns 16s ease-in-out infinite alternate;
}

.rsvp-hero-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(42, 25, 20, 0.24),
      rgba(42, 25, 20, 0.06) 38%,
      rgba(42, 25, 20, 0.55)
    ),
    radial-gradient(
      circle at center,
      transparent 20%,
      rgba(45, 30, 23, 0.26) 100%
    );
}

.rsvp-hero-media.has-floral + .rsvp-hero-overlay {
  background:
    linear-gradient(
      180deg,
      rgba(58, 40, 31, 0.34),
      rgba(58, 40, 31, 0.3) 40%,
      rgba(50, 33, 26, 0.62)
    ),
    radial-gradient(
      circle at center,
      rgba(60, 42, 33, 0.12),
      rgba(42, 27, 21, 0.34)
    );
}

.rsvp-hero-copy {
  position: relative;
  z-index: 2;
  width: min(92vw, 820px);
  padding: 24px;
  display: grid;
  justify-items: center;
  text-align: center;
  text-shadow: 0 3px 22px rgba(34, 20, 16, 0.42);
  animation: rsvp-hero-copy-in 1.25s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rsvp-hero-copy > p {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.rsvp-hero-copy h1 {
  margin: 0;
  display: grid;
  justify-items: center;
  color: #fffaf2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 12vw, 132px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.72;
}

.rsvp-hero-copy h1 em {
  margin: 15px 0 7px;
  color: #ead2a5;
  font-size: 0.46em;
  font-weight: 400;
}

.rsvp-hero-rule {
  width: 74px;
  height: 1px;
  margin: 38px 0 20px;
  background: linear-gradient(90deg, transparent, #ead2a5, transparent);
}

.rsvp-hero-copy > strong {
  font-size: 15px;
  letter-spacing: 0.24em;
}

.rsvp-hero-copy > small {
  margin-top: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.03em;
}

.rsvp-scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border: 0;
  padding: 10px 18px;
  display: grid;
  justify-items: center;
  gap: 4px;
  background: transparent;
  color: rgba(255, 250, 242, 0.92);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rsvp-scroll-cue svg {
  animation: rsvp-scroll-bounce 1.8s ease-in-out infinite;
}

.rsvp-premium-section {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: clamp(82px, 12vw, 140px) 20px;
  text-align: center;
}

.rsvp-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s ease,
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.rsvp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rsvp-section-kicker {
  margin: 0 0 14px;
  color: var(--rsvp-wine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rsvp-premium-section h2 {
  margin: 0;
  color: var(--rsvp-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.rsvp-story {
  max-width: 760px;
}

.rsvp-floral-mark {
  width: 82px;
  height: 82px;
  margin: 0 auto 28px;
  border: 1px solid rgba(181, 138, 74, 0.48);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--rsvp-wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
  box-shadow: inset 0 0 0 7px rgba(181, 138, 74, 0.06);
}

.rsvp-gold-divider {
  width: 110px;
  height: 1px;
  margin: 34px auto;
  background: linear-gradient(
    90deg,
    transparent,
    var(--rsvp-gold),
    transparent
  );
}

.rsvp-story-copy {
  margin: 0;
  color: var(--rsvp-soft-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 3.8vw, 25px);
  line-height: 1.75;
}

.rsvp-signature {
  margin: 38px 0 0;
  display: grid;
  gap: 6px;
  color: var(--rsvp-soft-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
}

.rsvp-signature strong {
  color: var(--rsvp-wine);
  font-size: 24px;
  font-weight: 400;
}

.rsvp-date-section {
  width: 100%;
  max-width: none;
  border-block: 1px solid rgba(181, 138, 74, 0.18);
  background:
    radial-gradient(
      circle at 10% 30%,
      rgba(216, 183, 170, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 70%,
      rgba(181, 138, 74, 0.12),
      transparent 31%
    ),
    #fffaf2;
}

.rsvp-date-section h2 {
  color: var(--rsvp-wine);
}

.rsvp-countdown-grid {
  width: min(100%, 720px);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rsvp-countdown-grid > div {
  position: relative;
  min-width: 0;
  min-height: 122px;
  border: 1px solid rgba(181, 138, 74, 0.28);
  border-radius: 22px;
  display: grid;
  place-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 16px 38px rgba(73, 48, 37, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.rsvp-countdown-grid > div::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(181, 138, 74, 0.1);
  border-radius: 17px;
}

.rsvp-countdown-grid strong {
  color: var(--rsvp-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.rsvp-countdown-grid span {
  color: var(--rsvp-soft-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rsvp-countdown-finished {
  margin: 40px auto 0;
  color: var(--rsvp-wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.rsvp-scenic-break {
  position: relative;
  isolation: isolate;
  min-height: min(72svh, 760px);
  display: grid;
  place-items: center;
  padding: 80px 24px;
  overflow: hidden;
  background:
    linear-gradient(rgba(55, 38, 30, 0.2), rgba(55, 38, 30, 0.48)),
    url("/invitation-background.jpg") center / cover no-repeat;
  background-attachment: fixed;
}

.rsvp-scenic-break::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent,
    rgba(39, 24, 19, 0.22)
  );
}

.rsvp-scenic-break blockquote {
  width: min(100%, 720px);
  margin: 0;
  color: #fffaf2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 5vw, 42px);
  font-style: italic;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 3px 24px rgba(42, 25, 20, 0.42);
}

.rsvp-scenic-break blockquote span {
  display: block;
  color: #ead2a5;
  font-size: 64px;
  line-height: 0.6;
}

.rsvp-event-section {
  max-width: 920px;
}

.rsvp-event-intro {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--rsvp-soft-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.7;
}

.rsvp-event-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rsvp-event-grid article {
  min-height: 260px;
  padding: 34px 24px;
  border: 1px solid rgba(181, 138, 74, 0.28);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.78),
      rgba(255, 250, 242, 0.86)
    ),
    url("/invitation-background.jpg") center / cover no-repeat;
  box-shadow: 0 20px 52px rgba(73, 48, 37, 0.08);
}

.rsvp-event-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border: 1px solid rgba(181, 138, 74, 0.34);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--rsvp-wine);
  background: rgba(255, 250, 242, 0.76);
}

.rsvp-event-grid small {
  color: var(--rsvp-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rsvp-event-grid strong {
  margin-top: 8px;
  color: var(--rsvp-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.rsvp-event-grid p {
  margin: 8px 0 0;
  color: var(--rsvp-soft-ink);
  font-size: 13px;
}

.rsvp-event-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.rsvp-premium-button {
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.rsvp-premium-button:hover {
  transform: translateY(-2px);
}

.rsvp-premium-button:active {
  transform: translateY(1px) scale(0.99);
}

.rsvp-premium-button.primary {
  border-color: var(--rsvp-wine);
  background: var(--rsvp-wine);
  color: #fffaf2;
  box-shadow: 0 12px 28px rgba(125, 41, 59, 0.2);
}

.rsvp-premium-button.primary:hover {
  background: var(--rsvp-wine-deep);
}

.rsvp-premium-button.secondary {
  border-color: rgba(181, 138, 74, 0.38);
  background: rgba(255, 250, 242, 0.76);
  color: var(--rsvp-ink);
}

.rsvp-cta-section {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - 760px) / 2));
  background: var(--rsvp-wine);
  color: #fffaf2;
}

.rsvp-cta-section > svg {
  margin-bottom: 20px;
  color: #ead2a5;
}

.rsvp-cta-section .rsvp-section-kicker,
.rsvp-cta-section h2,
.rsvp-cta-section > p:not(.rsvp-section-kicker) {
  color: #fffaf2;
}

.rsvp-cta-section > p:not(.rsvp-section-kicker) {
  max-width: 560px;
  margin: 24px auto 32px;
  color: rgba(255, 250, 242, 0.76);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

.rsvp-cta-section .rsvp-premium-button.primary {
  border-color: rgba(255, 250, 242, 0.75);
  background: #fffaf2;
  color: var(--rsvp-wine);
}

.rsvp-premium-rsvp {
  scroll-margin-top: 20px;
  padding: clamp(76px, 10vw, 120px) 18px;
  background:
    linear-gradient(rgba(247, 239, 227, 0.88), rgba(247, 239, 227, 0.94)),
    url("/invitation-background.jpg") center / cover fixed no-repeat;
}

.rsvp-premium-page .rsvp-card {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 46px);
  border: 1px solid rgba(181, 138, 74, 0.3);
  border-radius: 30px;
  background: rgba(255, 250, 242, 0.93);
  color: var(--rsvp-ink);
  box-shadow: 0 30px 80px rgba(73, 48, 37, 0.14);
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: none;
}

.rsvp-premium-page .rsvp-card > .monogram {
  margin: 0 auto 18px;
  color: var(--rsvp-wine);
}

.rsvp-premium-page .rsvp-eyebrow {
  color: var(--rsvp-wine);
}

.rsvp-premium-page .rsvp-card h2 {
  margin: 0;
  color: var(--rsvp-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.rsvp-premium-page .rsvp-guest {
  margin: 28px 0 18px;
  border-color: rgba(181, 138, 74, 0.26);
  background: rgba(255, 255, 255, 0.5);
}

.rsvp-premium-page .rsvp-guest strong {
  color: var(--rsvp-wine);
}

.rsvp-premium-page .rsvp-choice,
.rsvp-premium-page .button.secondary,
.rsvp-premium-page .field input,
.rsvp-premium-page .field textarea,
.rsvp-premium-page .stepper,
.rsvp-premium-page .dietary-option {
  background: rgba(255, 255, 255, 0.62);
  color: var(--rsvp-ink);
  border-color: rgba(181, 138, 74, 0.26);
}

.rsvp-premium-page .rsvp-choice.confirmed.is-selected {
  border-color: #3b8b55;
  background: #3b8b55;
  color: #fff;
}

.rsvp-premium-page .rsvp-choice.pending.is-selected {
  border-color: #b17a24;
  background: #b17a24;
  color: #fff;
}

.rsvp-premium-page .rsvp-choice.declined.is-selected {
  border-color: #a84450;
  background: #a84450;
  color: #fff;
}

.rsvp-premium-page .rsvp-muted,
.rsvp-premium-page .rsvp-form-heading span,
.rsvp-premium-page .dietary-field > p {
  color: var(--rsvp-soft-ink);
}

.rsvp-premium-page .field > span,
.rsvp-premium-page .field legend,
.rsvp-premium-page .stepper-wrap > span,
.rsvp-premium-page .dietary-field legend {
  color: var(--rsvp-ink);
}

.rsvp-premium-page .rsvp-details-form {
  border-color: rgba(181, 138, 74, 0.28);
  background: rgba(255, 255, 255, 0.4);
}

.rsvp-premium-footer {
  padding: 72px 20px calc(72px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(181, 138, 74, 0.16);
  background: #342720;
  color: #f6e8d8;
  text-align: center;
}

.rsvp-footer-monogram {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border: 1px solid rgba(234, 210, 165, 0.46);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ead2a5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
}

.rsvp-premium-footer p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.rsvp-premium-footer small {
  display: block;
  margin-top: 9px;
  color: rgba(246, 232, 216, 0.62);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes rsvp-envelope-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.35deg);
  }
  50% {
    transform: translateY(-9px) rotate(0.35deg);
  }
}

@keyframes rsvp-envelope-open {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  55% {
    transform: translateY(-8px) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translateY(20px) scale(1.14);
    opacity: 0;
  }
}

@keyframes rsvp-flap-open {
  0% {
    transform: rotateX(0);
  }
  100% {
    transform: rotateX(178deg);
    filter: drop-shadow(0 -5px 8px rgba(73, 48, 37, 0.08));
  }
}

@keyframes rsvp-seal-open {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-2deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 18%) rotate(12deg) scale(0.8);
  }
}

@keyframes rsvp-fade-away {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes rsvp-sparkle {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.9) rotate(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.12) rotate(12deg);
  }
}

@keyframes rsvp-ken-burns {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1%, -1%, 0);
  }
}

@keyframes rsvp-hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rsvp-scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@media (max-width: 720px) {
  .rsvp-envelope-stage::after {
    inset: 9px;
  }

  .rsvp-envelope-paper {
    width: min(91vw, 420px);
  }

  .rsvp-wax-seal {
    width: 78px;
    height: 78px;
  }

  .rsvp-wax-seal b {
    font-size: 25px;
  }

  .rsvp-hero-copy h1 {
    font-size: clamp(58px, 20vw, 92px);
  }

  .rsvp-hero-copy > p {
    margin-bottom: 30px;
  }

  .rsvp-hero-rule {
    margin-top: 34px;
  }

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

  .rsvp-countdown-grid > div {
    min-height: 112px;
  }

  .rsvp-event-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rsvp-event-grid article {
    min-height: 230px;
  }

  .rsvp-event-actions {
    display: grid;
  }

  .rsvp-event-actions .rsvp-premium-button {
    width: 100%;
  }

  .rsvp-scenic-break,
  .rsvp-premium-rsvp {
    background-attachment: scroll;
  }

  .rsvp-premium-page .rsvp-card {
    border-radius: 25px;
  }
}

@media (max-width: 390px) {
  .rsvp-envelope-paper {
    width: 92vw;
  }

  .rsvp-envelope-address {
    inset-inline: 10%;
  }

  .rsvp-countdown-grid {
    gap: 8px;
  }

  .rsvp-countdown-grid > div {
    min-height: 104px;
    border-radius: 18px;
  }

  .rsvp-premium-section {
    padding-inline: 16px;
  }

  .rsvp-premium-rsvp {
    padding-inline: 12px;
  }

  .rsvp-premium-page .rsvp-card {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-premium-page *,
  .rsvp-premium-page *::before,
  .rsvp-premium-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .rsvp-reveal {
    opacity: 1;
    transform: none;
  }
}
