:root {
  color-scheme: dark;
  --bg: #05030c;
  --ink: #f4f2ff;
  --muted: rgba(244, 242, 255, 0.62);
  font-family:
    ui-serif,
    Georgia,
    "Times New Roman",
    serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  overflow: hidden;
}

.sky-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

#sky-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.wordmark {
  position: absolute;
  left: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 2;
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-shadow: 0 0 18px rgba(244, 242, 255, 0.25);
}

.sky-caption {
  position: absolute;
  left: 50%;
  bottom: clamp(3.5rem, 10vh, 5.5rem);
  z-index: 2;
  margin: 0;
  max-width: min(28rem, calc(100% - 2rem));
  padding: 0 1rem;
  text-align: center;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  color: var(--ink);
  text-shadow: 0 0 22px rgba(244, 242, 255, 0.3);
  transform: translate(-50%, 0.4rem);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.sky-caption.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 10;
  margin: 0;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .sky-caption {
    transition: opacity 0.2s linear;
  }
}
