/* Sky behind the top of the page. Night in dark mode, a faint blue
   wash in light mode. Built by js/sky.js. */

.sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  z-index: 0;
  pointer-events: none;
  contain: layout paint style;
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.33, 0, 0.35, 1);
}

.sky.is-lit {
  opacity: 1;
}

.sky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Keep every bit of content over the sky rather than in it. */
.page,
.missing {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .sky {
    transition: none;
  }
}

@media print {
  .sky {
    display: none;
  }
}
