:root {
  color-scheme: dark;
  background: #070811;
}

body { margin: 0; }

main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 38% 38%, #1b1941 0%, transparent 53%),
    radial-gradient(ellipse at 69% 63%, #092731 0%, transparent 44%),
    #070811;
}

.sky, .stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stars {
  background-image:
    radial-gradient(circle at 12px 37px, #dfd6ff 0 1px, transparent 1.6px),
    radial-gradient(circle at 63px 29px, #8eeadf 0 0.7px, transparent 1.4px),
    radial-gradient(circle at 33px 61px, #9b8cb9 0 0.7px, transparent 1.4px);
  background-size: 173px 171px, 223px 257px, 107px 131px;
  opacity: .48;
  mask-image: radial-gradient(ellipse, #000 25%, #0006 75%, transparent);
  animation: shimmer 8s ease-in-out infinite alternate;
}

.halo {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(94vw, 65rem);
  aspect-ratio: 1.9;
  transform: translate(-50%, -50%) rotate(-22deg);
  background: radial-gradient(ellipse, #5455bc24, transparent 64%);
}

.orbit {
  --angle: -21deg;
  --squash: .38;
  --width: min(83vw, 52rem);
  --color: #b7aaff;
  --period: 12s;
  --delay: -2s;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--width);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(var(--angle)) scaleY(var(--squash));
  border: 1px solid color-mix(in srgb, var(--color), transparent 68%);
  border-radius: 50%;
  box-sizing: border-box;
}

.orbit:nth-of-type(4) {
  --width: min(71vw, 45rem);
  --angle: 22deg;
  --squash: .44;
  --color: #84ffe3;
  --period: 15s;
  --delay: -6s;
}

.orbit:nth-of-type(5) {
  --width: min(94vw, 62rem);
  --angle: -9deg;
  --squash: .58;
  --color: #9babff;
  --period: 23s;
  --delay: -12s;
}

.satellite {
  position: absolute;
  inset: 0;
  color: var(--color);
  animation: revolve var(--period) linear var(--delay) infinite;
}

.satellite::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: .32rem;
  height: .32rem;
  translate: -50% -50%;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 .45rem .16rem currentColor, 0 0 1.4rem .3rem currentColor;
  animation: counter-revolve var(--period) linear var(--delay) infinite;
}

h1 {
  margin: 0;
  padding-inline: .12em;
  z-index: 1;
  color: #f3f0ff;
  font: 650 clamp(2.1rem, 11vw, 9.5rem) / 1 system-ui, sans-serif;
  letter-spacing: -.075em;
  text-shadow: 0 0 1.2em #070811, 0 0 .25em #070811, 0 0 .1em #070811;
}

h1 span { color: #a4ffe6; }

@keyframes revolve { to { rotate: 360deg; } }
@keyframes counter-revolve {
  from { transform: scaleY(calc(1 / var(--squash))); }
  to { transform: rotate(-360deg) scaleY(calc(1 / var(--squash))); }
}
@keyframes shimmer { to { opacity: .74; } }

@media (prefers-reduced-motion: reduce) {
  .stars, .satellite, .satellite::after { animation-play-state: paused; }
}
