:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  --gold: #ffd27c;
  --rose: #ff8ba6;
  --cream: #fff7ed;
  --night: #100518;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 110%, #5c173f 0, transparent 48%),
    radial-gradient(circle at 10% 8%, #35114d 0, transparent 32%),
    linear-gradient(155deg, #0e0517 0%, #180823 55%, #0c0413 100%);
}

#fireworks {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.night-glow {
  position: fixed;
  z-index: 0;
  width: 28rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .2;
  pointer-events: none;
}

.glow-left { left: -12rem; bottom: -12rem; background: #ff5d88; }
.glow-right { top: -13rem; right: -10rem; background: #a34cff; }

.celebration-shell {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(100% - 2rem, 1080px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.eyebrow {
  justify-self: center;
  margin: 0 0 1rem;
  padding: .55rem .9rem;
  border: 1px solid #ffe2bc44;
  border-radius: 999px;
  background: #13071dbd;
  color: #ffe8c2;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.message-card {
  display: grid;
  grid-template-columns: minmax(300px, .84fr) minmax(0, 1.16fr);
  overflow: hidden;
  border: 1px solid #ffe7ca40;
  border-radius: 34px;
  background: #170a21d9;
  box-shadow: 0 35px 110px #050107b3, inset 0 0 0 1px #ffffff0b;
  backdrop-filter: blur(18px);
}

.royal-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 590px;
  padding: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, #fff8ea 0, #f5cfd0 48%, transparent 49%),
    linear-gradient(145deg, #a84061 0%, #5e1941 100%);
}

.royal-art::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid #fff4dc70;
  border-radius: 25px;
  pointer-events: none;
}

.royal-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 390px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 24px 20px #2c092c52);
  animation: couple-arrives .85s cubic-bezier(.2, .8, .2, 1) both;
}

.art-heart {
  position: absolute;
  z-index: 2;
  color: #fff7e9c2;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  animation: heart-float 3s ease-in-out infinite;
}

.heart-one { top: 11%; left: 12%; font-size: 4.2rem; transform: rotate(-12deg); }
.heart-two { right: 12%; bottom: 14%; font-size: 3rem; animation-delay: -1.3s; }

.message-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.for-you {
  align-self: flex-start;
  margin: 0 0 1.1rem;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #fff8ee;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.2rem, 6.7vw, 6rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.055em;
}

h1 em { color: var(--rose); font-weight: 400; }

.love-letter {
  max-width: 34rem;
  margin-top: 1.65rem;
  padding-left: 1.25rem;
  border-left: 2px solid #ffcf787a;
}

.love-letter p {
  margin: 0 0 .8rem;
  color: #f5e6e4;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.68;
}

.love-letter .closing-line {
  margin-bottom: 0;
  color: #ffd8df;
  font-style: italic;
}

.song-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 56px;
  margin-top: 1.65rem;
  padding: .95rem 1.35rem;
  border: 1px solid #ffe0b74f;
  border-radius: 15px;
  background: linear-gradient(135deg, #ba3e66, #7a2758);
  color: #fffaf4;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px #08020c6b, 0 0 25px #f26b9140;
  transition: transform .18s ease, box-shadow .18s ease;
}

.song-button:hover { transform: translateY(-3px); box-shadow: 0 18px 34px #08020c80, 0 0 34px #f26b915c; }
.song-button:focus-visible { outline: 3px solid #ffd37e; outline-offset: 4px; }

@keyframes couple-arrives {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes heart-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -11px; }
}

@media (max-width: 780px) {
  .celebration-shell { width: min(100% - 1.25rem, 680px); padding-block: 1rem; }
  .message-card { grid-template-columns: 1fr; border-radius: 25px; }
  .royal-art { min-height: 310px; padding: 1.25rem; }
  .royal-art::after { inset: 11px; border-radius: 18px; }
  .royal-art img { width: min(70vw, 290px); }
  .message-copy { padding: 2.25rem 1.5rem 2.5rem; }
  h1 { font-size: clamp(3rem, 14vw, 5.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
