:root {
  --ink: #315c4d;
  --cream: #fff9fb;
  --blush: #f6dbe4;
  --rose: #d982a1;
  --soft-rose: #fdf0f5;
}

* {
  box-sizing: border-box;
}

body {
  align-items: center;
  background:
    radial-gradient(circle at 15% 15%, #fff 0 2px, transparent 2.5px) 0 0 / 52px
      52px,
    linear-gradient(145deg, #fff0f5, #e2f2e7 58%, #f9e8ef);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-family: "DM Sans", sans-serif;
  justify-content: center;
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  padding: 28px;
}

.reveal-card {
  background: rgb(255 249 251 / 86%);
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 32px;
  box-shadow: 0 22px 70px rgb(74 112 96 / 16%);
  max-width: 620px;
  overflow: hidden;
  padding: clamp(20px, 3.5vw, 28px) clamp(15px, 4.5vw, 42px);
  position: relative;
  text-align: center;
  transition:
    background 800ms ease,
    box-shadow 800ms ease;
  width: 100%;
}

.eyebrow {
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
}

h1 {
  font-size: clamp(2.65rem, 8vw, 4.25rem);
}
h1 em {
  color: var(--rose);
}
h1 span {
  display: block;
  white-space: nowrap;
}
h1 em {
  display: block;
}

.hosts {
  color: var(--rose);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  margin: 13px 0 0;
}

.intro {
  font-size: 1rem;
  line-height: 1.65;
  margin: 18px auto 20px;
  max-width: 370px;
}

.party-details {
  border-bottom: 1px solid rgb(91 143 116 / 28%);
  border-top: 1px solid rgb(91 143 116 / 28%);
  margin: 0 auto 20px;
  max-width: 410px;
  padding: 13px 0;
}

.party-details p {
  font-size: 0.89rem;
  margin: 6px 0;
}
.party-details span {
  color: var(--rose);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-right: 10px;
  text-transform: uppercase;
}
.location-link {
  color: inherit;
  text-decoration-color: rgb(217 130 161 / 58%);
  text-underline-offset: 3px;
}
.location-link:hover {
  color: var(--rose);
}
.location-link span {
  font-size: 0.85em;
  letter-spacing: 0;
  margin: 0 0 0 2px;
  text-transform: none;
}

.rsvp-link {
  background: var(--ink);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.83rem;
  font-weight: 700;
  gap: 20px;
  letter-spacing: 0.06em;
  padding: 12px 22px 12px 26px;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.rsvp-link:hover {
  background: #477b68;
  transform: translateY(-2px);
}
.rsvp-link:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 4px;
}
.rsvp-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.registry {
  border-top: 1px solid rgb(91 143 116 / 28%);
  margin: 18px auto 0;
  max-width: 410px;
  padding-top: 16px;
}

.registry .eyebrow {
  margin-bottom: 8px;
}
.registry p:not(.eyebrow) {
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}
.registry-link {
  color: var(--ink);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 0px;
  text-decoration-color: rgb(217 130 161 / 58%);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-transform: uppercase;
}
.registry-link:hover {
  color: var(--rose);
}
.registry-link:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 4px;
}

.juniper-sprig {
  opacity: 0.72;
  pointer-events: none;
  position: absolute;
  width: clamp(80px, calc(60px + 7.5vw), 200px);
  z-index: 0;
}

.juniper-sprig-one {
  right: -4px;
  top: 12px;
  transform: rotate(235deg);
}
.reveal-card > p,
.reveal-card > h1,
.reveal-card > section,
.reveal-card > a {
  position: relative;
  z-index: 1;
}

.sparkle {
  color: var(--rose);
  font-size: 1.35rem;
  opacity: 0.65;
  position: absolute;
}
.sparkle-one {
  left: 9%;
  top: 14%;
}
.sparkle-two {
  right: 11%;
  top: 21%;
}
.sparkle-three {
  bottom: 13%;
  right: 8%;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
