/* theme-starfield.css — the alpha look with the starfield in its dark
 * sections.
 *
 * The same HTML as the alpha look; nothing here changes layout, type or
 * the light sections, which stay exactly as site.css draws them. Every
 * rule is scoped to html[data-theme="starfield"], so with any other theme
 * this file does nothing. theme.js sets the attribute.
 *
 * How it works: the starfield is one canvas fixed behind the whole page.
 * The page's navy moves from body to the root, and each dark section gives
 * up its opaque fill, so the stars show through the dark sections. The
 * light sections keep their opaque fills and cover the canvas.
 */

/* The navy is the root's background. The canvas sits at z-index -1: above
   the root's background and below everything else. A background on body
   would be painted over the stars. */
html[data-theme="starfield"] {
  background: var(--navy);
}
html[data-theme="starfield"] body {
  background: transparent;
}
html[data-theme="starfield"] #starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ---- the dark sections let the sky through ------------------------------ */

html[data-theme="starfield"] header {
  background: transparent;
}

/* These two were flat fills a shade off the navy. They keep that shade as a
   tint, so each still reads as its own band. */
html[data-theme="starfield"] .identity,
html[data-theme="starfield"] .audience-outcomes {
  background: rgba(10, 34, 50, 0.5);
}
html[data-theme="starfield"] .smartstacks {
  background: rgba(13, 43, 60, 0.5);
}

/* These glowed from a point and faded to the navy. They keep the glow and
   fade to nothing instead. */
html[data-theme="starfield"] .invite {
  background: radial-gradient(ellipse at 0 50%, rgba(21, 55, 71, 0.85), transparent 70%);
}
html[data-theme="starfield"] .audience-invite {
  background: radial-gradient(ellipse at center, rgba(20, 61, 80, 0.85), transparent 75%);
}

/* The hero, the audience hero, the footer and the related-links strip have
   no opaque fill in site.css, so they need nothing here. */
