/* Lumeli design system: tokens (RF-33). Toda cor, fonte, raio e espaçamento vem daqui.
   O tema do cliente (/theme.css) só redefine estas variáveis. Nenhum componente usa valor literal. */
:root {
  color-scheme: light dark;

  /* cor */
  --color-primary: #1f6f5f;
  --color-primary-contrast: #ffffff;
  --color-secondary: #c8742c;
  --color-bg: #f6f5f2;
  --color-surface: #ffffff;
  --color-surface-2: #eeece7;
  --color-text: #1d1d1b;
  --color-text-muted: #5f5e59;
  --color-border: #dcd9d2;
  --color-success: #2e7d4f;
  --color-warning: #b26a00;
  --color-error: #b3261e;
  --color-focus: #3b82f6;

  /* tipografia */
  --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.6rem;
  --font-size-2xl: 2.2rem;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-base: 1.5;

  /* raio */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* espaçamento */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;

  /* sombra e contêiner */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --container-max: 64rem;
  --container-narrow: 26rem;
  --gutter: var(--space-4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #141513;
    --color-surface: #1e201d;
    --color-surface-2: #272926;
    --color-text: #ecebe6;
    --color-text-muted: #a8a79f;
    --color-border: #3a3c38;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --color-bg: #141513;
  --color-surface: #1e201d;
  --color-surface-2: #272926;
  --color-text: #ecebe6;
  --color-text-muted: #a8a79f;
  --color-border: #3a3c38;
}
