/* Design tokens — /docs/DESIGN_SYSTEM.md section 2.
   Exposed as CSS variables so Tailwind (configured in index.html) can
   reference them as named utility colors (bg-brand, text-muted, ...). */
:root {
  --color-brand: #2563eb;
  --color-brand-dark: #1d4ed8;
  --color-surface: #ffffff;
  --color-background: #f8fafc;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-success: #16a34a;
  --color-warning: #d97706;
  --color-danger: #dc2626;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

#app-shell {
  min-height: 100vh;
}

/* Tailwind Play CDN core does not ship the line-clamp plugin. */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Visible keyboard-focus ring everywhere, matching DESIGN_SYSTEM motion (150-250ms). */
:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
  transition: outline-offset 150ms ease;
}

img {
  object-fit: cover;
}

img.broken-fallback {
  background-color: var(--color-border);
}
