html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}

@media (prefers-color-scheme: dark) {
    html, body { background: #121212; }
}

/*
  This colour is a stand-in for the moment before Compose paints, and nothing
  after that moment may depend on it. It follows `prefers-color-scheme`, while
  the app follows `settings.dark ?: systemDark` — so a reader who turns the site
  dark on a light machine has a white page behind a dark app, and the two stay
  out of step until reload.

  That divergence was the leading suspect for the reported dark-mode white flash
  around a receding sheet, and it was the wrong end of it: the page was only
  visible because `backdropGround` was letting it through. `BackdropBlurTest`
  measures that at zero now, over a white page and a black one alike — in the
  band the sheet's recession vacates, and inside the content's own blurred edge.

  Left as-is deliberately, but not for the reason this note used to give. It said
  page and app "always agree on the frame this colour exists for" because `dark`
  is not persisted, and that is only true until the reader opens the settings
  sheet and turns the site dark on a light machine — after which they disagree
  for the rest of the session, which is precisely when the flash was reported.
  What makes it safe is the library, not the reload: nothing behind the host
  reaches the screen any more, whatever colour it is.
*/

/*
  The boot state, in the library's own type and colours — so the first thing a
  reader sees belongs to the same product as what replaces it. Compose draws
  over the whole viewport once it starts, so this needs no removing.
*/
#booting {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #121212;
    padding: 48px;
}

#booting h1 { font-size: 32px; margin: 0 0 8px; letter-spacing: -0.02em; }
#booting p  { font-size: 15px; margin: 0; color: #6b6b6b; }

@media (prefers-color-scheme: dark) {
    #booting    { color: #f5f5f5; }
    #booting p  { color: #a3a3a3; }
}
