/*
 * The boot marker in index.html: frame 0 of the opening, shown until the app's first render
 * replaces it with components/splash.tsx at the same place. An external file because the marker
 * carries no inline styles. The fallbacks are --background and --ink of packages/tokens, light
 * and dark (src/test/splash.test.tsx keeps them equal); theme-init.js has already set data-theme,
 * and data-boot="ink" on /login.
 */
.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  overflow: hidden;
  background: var(--background, #faf8f4);
}
html[data-theme='dark'] .boot-splash {
  background: var(--background, #121110);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .boot-splash {
    background: var(--background, #121110);
  }
}
/* /login: the inverted logo on that page's ink (splashColor.inverted). */
html[data-boot='ink'] .boot-splash {
  background: var(--ink, #1a1814);
}
html[data-boot='ink'][data-theme='dark'] .boot-splash {
  background: var(--ink, #26231f);
}
@media (prefers-color-scheme: dark) {
  html[data-boot='ink']:not([data-theme]) .boot-splash {
    background: var(--ink, #26231f);
  }
}
html[data-boot='ink'] .boot-splash .boot-tile {
  fill: #f7f3ee;
}
html[data-boot='ink'] .boot-splash .boot-line {
  stroke: #10202b;
}
/* 50vw, not 50%: the page under the opening can add a scrollbar, and the logo must not shift. */
.boot-splash > svg {
  position: absolute;
  top: 50%;
  left: 50vw;
  display: block;
  margin: -56px 0 0 -56px;
}
/* Reduce Motion waits on the finished logo. */
@media (prefers-reduced-motion: reduce) {
  .boot-splash .boot-finished {
    display: inline;
  }
}
