/* Una sola palabra sobre la aurora del estándar (§1.5 bis), en tema claro (§1.2). */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-variable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --c-bg: 244 247 251;
  --c-text: 10 30 48;
  --c-text-muted: 26 82 118;
  --aurora-1: 6 182 212;
  --aurora-2: 26 82 118;
  --aurora-3: 125 211 252;
}

* { box-sizing: border-box; margin: 0; }

html, body { height: 100%; }

body {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100dvh;
  overflow: hidden;
  background: rgb(var(--c-bg));
  color: rgb(var(--c-text));
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Luces con radial-gradient y solo transform: filter: blur es carísimo en el móvil. */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.aurora span:nth-child(1) {
  width: 72vmax; height: 72vmax; top: -30vmax; left: -22vmax;
  background: radial-gradient(circle, rgb(var(--aurora-1) / .22), transparent 62%);
  animation: deriva-1 46s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) {
  width: 60vmax; height: 60vmax; bottom: -28vmax; right: -18vmax;
  background: radial-gradient(circle, rgb(var(--aurora-2) / .16), transparent 62%);
  animation: deriva-2 54s ease-in-out infinite alternate;
}
.aurora span:nth-child(3) {
  width: 46vmax; height: 46vmax; top: 30%; left: 45%;
  background: radial-gradient(circle, rgb(var(--aurora-3) / .20), transparent 62%);
  animation: deriva-3 38s ease-in-out infinite alternate;
}
@keyframes deriva-1 { to { transform: translate(14vmax, 10vmax) scale(1.08); } }
@keyframes deriva-2 { to { transform: translate(-12vmax, -8vmax) scale(1.1); } }
@keyframes deriva-3 { to { transform: translate(-16vmax, 6vmax) scale(.92); } }

main {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 16px;
}

h1 {
  font-size: clamp(2.4rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
}
/* El azul de marca como texto: el cian no llega a 4,5:1 sobre el fondo claro (§1.3). */
h1 span { color: rgb(var(--c-text-muted)); font-weight: 600; }

footer {
  position: relative;
  z-index: 1;
  padding: 16px;
  text-align: center;
  font-size: .8125rem;
  color: rgb(var(--c-text-muted));
}

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