/* First-paint rules that must apply before the app's CSS exists - under `pnpm dev` that's until main.tsx
   loads, and without them the Worker's crawler body flashes as unstyled text. A file, not an inline
   <style> (the CSP forbids it). Keep it tiny, since it blocks first paint, and in step with index.css's
   surface colours. */

:root {
  color-scheme: light dark;
  /* --ground / --ink in index.css */
  background-color: #eef2f1;
  color: #10201f;
}

@media (prefers-color-scheme: dark) {
  :root {
    background-color: #0f1918;
    color: #e8f0ee;
  }
}

/* Tailwind's declarations, so the crawler body stays hidden pre-CSS. */
.sr-only {
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.noscript {
  font-family: system-ui, sans-serif;
  text-align: center;
  padding: 4rem 1rem;
}
