:root {
  --paper: #fffefd;
  --ink: #11140f;
  --olive-dark: #3f4a32;
  --olive: #586246;
  --olive-light: #74805f;
  --gold: #d2ad67;
  --script: "Great Vibes", cursive;
  --block: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 25%, rgba(118, 130, 96, 0.08), transparent 28rem),
    linear-gradient(180deg, #fff, var(--paper));
  font-family: var(--block);
  overflow-x: hidden;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

body.is-leaving {
  opacity: 0;
  transform: translateY(-18px) scale(1.015);
}

.cover {
  width: min(100%, 760px);
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: clamp(8px, 1.8vh, 20px) 22px clamp(52px, 7vw, 92px);
  text-align: center;
}

.cover-foliage {
  width: min(88%, 430px);
  display: block;
  margin: 0 auto clamp(34px, 6vw, 62px);
  mix-blend-mode: multiply;
}

.cover-kicker,
.reserved-title,
.open-copy {
  margin: 0;
  font-family: var(--block);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cover-kicker {
  font-size: clamp(0.88rem, 2.4vw, 1.08rem);
  margin-bottom: 12px;
}

h1 {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(2.9rem, 12vw, 6.8rem);
  font-weight: 400;
  line-height: 0.88;
  max-width: 100%;
  white-space: nowrap;
}

.cover-envelope {
  position: relative;
  width: min(100%, 470px);
  margin: clamp(18px, 3vw, 28px) auto 0;
}

.envelope-image {
  display: block;
  width: 100%;
  height: auto;
}

.wax-link {
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: 8;
  width: clamp(58px, 13vw, 82px);
  height: clamp(58px, 13vw, 82px);
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
  transform: translate(-50%, -50%);
}

.wax-link:focus-visible {
  outline: 3px solid rgba(88, 98, 70, 0.36);
  outline-offset: 8px;
}

.open-copy {
  margin-top: clamp(18px, 3vw, 28px);
  font-size: clamp(0.82rem, 2.4vw, 1rem);
}

.guest-card {
  margin-top: clamp(36px, 6vw, 58px);
}

.guest-name {
  margin: 0 0 20px;
  font-family: var(--script);
  font-size: clamp(2.8rem, 9.5vw, 5rem);
  line-height: 0.92;
  color: rgba(17, 20, 15, 0.82);
}

.reserved-title {
  margin-bottom: 16px;
  font-size: clamp(0.92rem, 2.7vw, 1.12rem);
}

.reserved-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.reserved-line span {
  font-family: var(--block);
  font-size: clamp(0.78rem, 2.3vw, 0.96rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reserved-line strong {
  min-width: 56px;
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 20, 15, 0.42);
  font-family: var(--block);
  font-size: clamp(2.3rem, 6vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 520px) {
  .cover {
    padding-inline: 18px;
  }

  .cover-foliage {
    width: min(104%, 420px);
    max-width: none;
    margin-bottom: 28px;
  }

  .cover-envelope {
    width: min(100%, 360px);
  }

  .reserved-line {
    gap: 12px;
  }
}
