/* Nerd Studio Design Tokens v1 — shared across all nerdstudio apps */
/* Served at https://nerdstudio.online/tokens/nerd.css */

:root {
  /* ── Brand ── */
  --ns-accent: #22c55e;
  --ns-accent-hover: #16a34a;
  --ns-accent-dim: rgba(34, 197, 94, 0.1);

  /* ── Surfaces (dark default) ── */
  --ns-bg: #0a0f19;
  --ns-surface: #111827;
  --ns-surface-elevated: #1a2332;
  --ns-border: #1e293b;
  --ns-border-light: #263040;

  /* ── Text ── */
  --ns-text: #f1f5f9;
  --ns-text-secondary: #94a3b8;
  --ns-text-tertiary: #64748b;

  /* ── Semantic ── */
  --ns-danger: #ef4444;
  --ns-warning: #f59e0b;

  /* ── Spacing scale ── */
  --ns-space-xs: 4px;
  --ns-space-sm: 8px;
  --ns-space-md: 16px;
  --ns-space-lg: 24px;
  --ns-space-xl: 32px;
  --ns-space-2xl: 48px;

  /* ── Radius scale ── */
  --ns-radius-sm: 6px;
  --ns-radius-md: 8px;
  --ns-radius-lg: 12px;
  --ns-radius-full: 9999px;

  /* ── Typography ── */
  --ns-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ns-font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ns-text-xs: 0.75rem;
  --ns-text-sm: 0.875rem;
  --ns-text-base: 1rem;
  --ns-text-lg: 1.125rem;
  --ns-text-xl: 1.25rem;
  --ns-text-2xl: 1.5rem;

  /* ── Motion ── */
  --ns-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ns-duration-fast: 150ms;
  --ns-duration-normal: 250ms;

  /* ── Elevation ── */
  --ns-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --ns-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Light theme — respects system preference */
@media (prefers-color-scheme: light) {
  :root {
    --ns-bg: #f8fafc;
    --ns-surface: #ffffff;
    --ns-surface-elevated: #f1f5f9;
    --ns-border: #e2e8f0;
    --ns-border-light: #f1f5f9;
    --ns-text: #0f172a;
    --ns-text-secondary: #475569;
    --ns-text-tertiary: #94a3b8;
    --ns-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --ns-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
}
