/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Full-screen stage ──────────────────────────────────── */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: manipulation;
}

body {
  background: linear-gradient(
    -45deg,
    #1a3a5c,  /* mountain lake */
    #5c1a8f,  /* dusk purple   */
    #c94b2e,  /* sunset coral  */
    #e8961e,  /* golden hour   */
    #d94d7a,  /* beach rose    */
    #1a5c5c   /* ocean teal    */
  );
  background-size: 600% 600%;
  animation: gradientShift 28s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}

@keyframes gradientShift {
  0%   { background-position:   0%  50%; }
  25%  { background-position: 100%   0%; }
  50%  { background-position: 100% 100%; }
  75%  { background-position:   0% 100%; }
  100% { background-position:   0%  50%; }
}

/* ─── Emoji stage ────────────────────────────────────────── */
#stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.item {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  will-change: transform, opacity, font-size;
  transform-origin: center center;
}

.item--diamond {
  animation: diamondGlint 2.4s ease-in-out infinite;
}

@keyframes diamondGlint {
  0%, 100% { filter: brightness(1); }
  50%       { filter: brightness(2) drop-shadow(0 0 10px rgba(200, 230, 255, 0.95)); }
}

/* ─── Main content ───────────────────────────────────────── */
main {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding: 1.5rem;
  /* soft vignette behind the text so it reads against any background phase */
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.greeting {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 4.5vw, 1.8rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
}

.name {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: clamp(4.5rem, 22vw, 11rem);
  line-height: 1.05;
  opacity: 0;
  animation: fadeUp 2s cubic-bezier(0.22, 1, 0.36, 1) forwards 1.1s;
  text-shadow:
    0 2px 6px  rgba(0, 0, 0, 0.2),
    0 6px 48px rgba(255, 200, 120, 0.45);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  position: fixed;
  bottom: max(1.2rem, env(safe-area-inset-bottom, 1.2rem));
  right: 1.4rem;
  z-index: 20;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.75rem, 2.8vw, 1rem);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeUp 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 2s;
  pointer-events: none;
  user-select: none;
}
