:root {
  --night: #071b3c;
  --deep: #030b1d;
  --blue: #123d70;
  --ice: #d9e9f1;
  --gold: #edc766;
  --gold-soft: #f7e6a8;
  --paper: #fbf7ed;
}

*,
*::before {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(31, 87, 137, 0.72), transparent 35rem),
    linear-gradient(155deg, var(--night), var(--deep) 78%);
  color: var(--paper);
  font-family: "Cormorant Garamond", Georgia, serif;
}

.sky,
#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sky {
  z-index: 0;
}

.glow {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.3;
}

.glow-left {
  left: -18vw;
  bottom: 5vh;
  background: #1f5d85;
}

.glow-right {
  right: -16vw;
  top: 12vh;
  background: #b67c22;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(2rem, env(safe-area-inset-top)) 1rem max(2.25rem, env(safe-area-inset-bottom));
}

.card {
  width: min(100%, 34rem);
  padding: clamp(1.65rem, 6vw, 3rem) clamp(1.15rem, 5vw, 2.6rem) 1.8rem;
  text-align: center;
  border: 1px solid rgba(237, 199, 102, 0.55);
  border-radius: 1.25rem;
  background: linear-gradient(160deg, rgba(9, 36, 74, 0.82), rgba(3, 15, 37, 0.9));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), inset 0 0 0 8px rgba(217, 233, 241, 0.035);
}

.eyebrow {
  margin: 0 0 2rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--paper);
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.4rem, 14vw, 5.7rem);
  font-weight: 400;
  line-height: 0.82;
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.35);
}

h1 em {
  color: var(--gold-soft);
  font-style: normal;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(12rem, 70%);
  margin: 1.25rem auto 1.35rem;
  color: var(--gold);
}

.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.ornament span:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.ornament i {
  font-size: 0.95rem;
  font-style: normal;
}

.gift-portrait {
  width: min(100%, 25rem);
  margin: 0 auto;
  padding: 0.45rem;
  background: linear-gradient(135deg, var(--gold-soft), #a87828 45%, var(--gold-soft));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.gift-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 500 / 707;
  object-fit: cover;
  object-position: center;
}

.date {
  margin: 1.5rem 0 0;
  color: var(--ice);
  font-size: clamp(1.45rem, 5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.signature {
  margin: 0.35rem 0 0;
  color: rgba(217, 233, 241, 0.7);
  font-size: 1.05rem;
  font-style: italic;
}

@media (min-width: 720px) {
  .card {
    padding-top: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
