/* Responsive centered title + animated multi-color gradient background */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  /* Vibrant animated gradient background */
  --g1: #ff6a00;
  --g2: #ee0979;
  --g3: #6a11cb;
  --g4: #2575fc;
  --g5: #0fd850;
  --g6: #f9d423;
  background: linear-gradient(-45deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g5), var(--g6));
  background-size: 600% 600%;
  animation: gradientShift 22s ease-in-out infinite;
  color: #fff;
}

.wrap {
  width: min(92vw, 1200px);
  text-align: center;
  padding: 2rem;
}

h1 {
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.02em;
  /* Responsive: scales smoothly across viewports */
  font-size: clamp(2rem, 8vw + 0.5rem, 8rem);
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.25),
    0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Gentle animated highlight sweep across the text for depth */
h1::selection { background: rgba(255,255,255,0.25); color: #fff; }

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

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}
