/* Charcoal sky: near-black field, a faint glow of charcoal in the middle, sparse stars,
   one slowly turning orbit. Everything else stays quiet. */

:root {
  --bg: #0b0c0f;
  --charcoal: #181a20;
  --star: #e8eaf0;
  --muted: #8d93a1;
  --ring: rgba(150, 170, 210, 0.3);
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--bg);
  color: var(--star);
  font-family: "Unbounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-image:
    /* sparse brighter stars, placed by hand */
    radial-gradient(1.5px 1.5px at 8% 14%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 17% 62%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 23% 33%, rgba(220, 230, 255, 0.85), transparent),
    radial-gradient(1px 1px at 31% 84%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 44% 9%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 52% 91%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 63% 22%, rgba(220, 230, 255, 0.75), transparent),
    radial-gradient(1px 1px at 71% 71%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 82% 38%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 94% 12%, rgba(220, 230, 255, 0.8), transparent),
    radial-gradient(1px 1px at 4% 88%, rgba(255, 255, 255, 0.55), transparent),
    /* fine dust, tiled at uneven sizes so the repeat isn't obvious */
    radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 190px 30px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 120px 210px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 260px 150px, rgba(255, 255, 255, 0.25), transparent),
    /* soft charcoal glow behind the wordmark */
    radial-gradient(ellipse at 50% 46%, var(--charcoal) 0%, var(--bg) 64%);
  background-size:
    100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
    100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%,
    283px 283px, 283px 283px, 283px 283px, 283px 283px,
    100% 100%;
}

.stage {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(1.25rem, 4vh, 2.5rem);
  padding: 24px;
  text-align: center;
}

/* The orbit sits behind the text. The tilt flattens it into an ellipse;
   the ring inside turns in that tilted plane. */
.orbit-tilt {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vmin, 920px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) perspective(1200px) rotateX(72deg) rotateZ(-18deg);
  pointer-events: none;
}

.orbit {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid var(--ring);
  border-radius: 50%;
  animation: turn 140s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  top: -5px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--star);
  box-shadow: 0 0 14px 2px rgba(200, 215, 255, 0.55);
}

@keyframes turn {
  to { transform: rotate(360deg); }
}

h1 {
  position: relative;
  margin: 0;
  /* trailing letter-spacing would push the word off-center, so cancel it */
  margin-right: -0.06em;
  font-size: clamp(3.25rem, 15vw, 9rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}

.link {
  position: relative;
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(141, 147, 161, 0.5);
  transition: color 0.2s, border-color 0.2s;
}

.link:hover {
  color: var(--star);
  border-color: var(--star);
}

.link:focus-visible {
  outline: 2px solid var(--star);
  outline-offset: 6px;
}

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