@import "tailwindcss";
@custom-variant dark (&:where(.dark, .dark *));

@theme inline {
  --color-foreground: var(--foreground);
}

:root {
  --foreground: #172033;
  background: #f8fafc;
  color: var(--foreground);
  color-scheme: light;
  font-family: Arial, sans-serif;
}

:root.dark {
  --foreground: #e2e8f0;
  background: #0f172a;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
}

#root {
  min-height: 100vh;
}

#root[data-kind="spinner"] {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: 24px;
}

.spinner-sampler {
  display: grid;
  gap: 36px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 600px;
  width: 100%;
}

.spinner-sample {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  min-width: 0;
}

.spinner-label {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
  text-align: center;
}

noscript {
  display: block;
  padding: 24px;
}

@media (min-width: 480px) {
  .spinner-sampler {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-play-state: paused !important;
  }
}
