:root {
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 65% at 18% 8%, rgba(100, 73, 211, 0.68) 0%, transparent 67%),
    radial-gradient(ellipse 60% 62% at 86% 94%, rgba(122, 48, 177, 0.58) 0%, transparent 70%),
    linear-gradient(135deg, #07142f 0%, #101e52 42%, #32165f 72%, #190b3a 100%);
}

.word-field {
  position: fixed;
  z-index: 0;
  inset: -12vh -8vw;
  overflow: hidden;
  opacity: 0.72;
  pointer-events: none;
}

.word {
  position: absolute;
  color: rgba(244, 241, 234, 0.11);
  font: 700 clamp(1.5rem, 3.4vw, 4.5rem)/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.075em;
  white-space: nowrap;
  animation: drift var(--duration) ease-in-out var(--delay) infinite alternate;
}

.word:nth-child(3n) { color: rgba(255, 138, 91, 0.15); }
.word:nth-child(4n) { font-size: clamp(2.25rem, 5vw, 6.5rem); }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(var(--rotation)); }
  to { transform: translate3d(var(--drift-x), var(--drift-y), 0) rotate(var(--rotation)); }
}

main {
  position: relative;
  z-index: 1;
  width: min(92vw, 47rem);
  padding: 1.5rem;
}

img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2rem 3rem rgba(4, 2, 25, 0.5));
}

h1 {
  margin: -1.25rem 0 0;
  color: #f4f1ea;
  font: 700 clamp(2rem, 5vw, 3.5rem)/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.06em;
  text-align: center;
  text-shadow: 0 0.2rem 1.5rem rgba(4, 2, 25, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  .word { animation: none; }
}
