/* CBAMy design tokens — Slate & Sage */
:root {
  /* Slate base (cool gray) */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-150: #e8eef5;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Accent — Teal sage */
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488; /* primary */
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  /* Chart palette — fredda armonizzata */
  --c-teal:    #0d9488;
  --c-indigo:  #4f46e5;
  --c-sky:     #0284c7;
  --c-amber:   #d97706;
  --c-lavender:#8b5cf6;
  --c-rose:    #be185d;

  /* Semantics */
  --bg:        #ffffff;
  --bg-soft:   #f8fafc;
  --bg-muted:  #f1f5f9;
  --ink:       #0f172a;
  --ink-soft:  #334155;
  --ink-mute:  #64748b;
  --ink-dim:   #94a3b8;
  --line:      #e2e8f0;
  --line-soft: #eef2f7;
  --accent:    #0d9488;
  --accent-ink:#0f766e;
  --accent-bg: #f0fdfa;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-serif: 'Source Serif 4', 'Newsreader', Georgia, "Times New Roman", serif;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04), 0 0 0 1px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 12px -2px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-lg: 0 18px 40px -12px rgba(15,23,42,0.16), 0 6px 14px rgba(15,23,42,0.06);
}

.cbamy-root, .cbamy-root * {
  box-sizing: border-box;
}

.cbamy-root {
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
  color: var(--ink);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cbamy-root .mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum', 'zero';
  letter-spacing: -0.02em;
}

.cbamy-root .serif {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cbamy-root .num {
  font-family: var(--font-serif);
  font-feature-settings: 'tnum';
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* CBAMy glyph — small square mark used in wordmark */
.cb-glyph {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
  position: relative;
}
