/*
 * First-paint placeholder, shown from HTML until Vue mounts.
 *
 * It keeps the very first frame on-brand instead of a white page while the
 * session is fetched. It lives in `public/` so it loads as its own stylesheet:
 * the Flask-served SPA has `style-src 'self'`, so an inline <style> would be
 * blocked. Vue clears `#app` when it mounts, so nothing here has to be removed.
 */
html,
body {
  margin: 0;
  min-height: 100%;
  background: #f4f1ea;
}

.wp-boot {
  position: fixed;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  background: #f4f1ea;
  color: #173b59;
}

.wp-boot__logo {
  width: 124px;
  height: auto;
}

.wp-boot__spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgb(23 59 89 / 18%);
  border-top-color: #286f9d;
  border-radius: 50%;
  animation: wp-boot-spin 0.8s linear infinite;
}

.wp-boot__fallback {
  max-width: 32ch;
  margin: 0;
  padding: 0 20px;
  color: #5b7285;
  font: 650 0.85rem/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
}

@keyframes wp-boot-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .wp-boot__spinner { animation: none; }
}
