/* CAT — Design Tokens
 * Dark, minimalist analytics surface. Orange + blue accent pair.
 * Inspired by Stray. Calm, confident, high contrast — never harsh.
 */

:root {
  /* --- Surfaces (dark foundation) --- */
  --surface-0: #121212;
  --surface-1: #1a1a1a;
  --surface-2: #222222;
  --surface-3: #2a2a2a;
  --surface-4: #333333;
  --surface-overlay: rgba(26, 26, 26, 0.92);

  /* --- Accents --- */
  --accent-orange: #ff8c42;
  --accent-orange-bright: #ffa500;
  --accent-orange-soft: rgba(255, 140, 66, 0.16);
  --accent-blue: #00d9ff;
  --accent-blue-soft: rgba(0, 217, 255, 0.16);
  --accent-purple: #9d4edd;
  --accent-brown: #8b6f47;
  --accent-brown-dark: #5a4a35;

  /* --- Text --- */
  --text-primary: #ededed;
  --text-secondary: #c1c1c1;
  --text-muted: #8b8b8b;
  --text-faint: #5a5a5a;
  --text-on-accent: #1a1a1a;

  /* --- Lines & borders --- */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-focus: var(--accent-blue);

  /* --- Status --- */
  --status-good: #6ee7a8;
  --status-warn: #ffb65c;
  --status-bad: #ff6b6b;
  --status-info: var(--accent-blue);

  /* --- Type --- */
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.75rem;    /* 12px */
  --fs-sm: 0.875rem;   /* 14px */
  --fs-md: 1rem;       /* 16px */
  --fs-lg: 1.125rem;   /* 18px */
  --fs-xl: 1.5rem;     /* 24px */
  --fs-2xl: 2rem;      /* 32px */
  --fs-3xl: 2.5rem;    /* 40px */

  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-loose: 1.7;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-caps: 0.12em;

  /* --- Spacing (4px baseline) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* --- Radii --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* --- Shadows (soft, never harsh) --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow-orange: 0 0 32px rgba(255, 140, 66, 0.25);
  --shadow-glow-blue: 0 0 32px rgba(0, 217, 255, 0.2);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 480ms;
  --dur-cat-idle: 3200ms;
  --dur-cat-wag: 1400ms;

  /* --- Layout --- */
  --container-narrow: 640px;
  --container-default: 880px;
  --container-wide: 1120px;

  /* --- Z layers --- */
  --z-base: 1;
  --z-sticky: 40;
  --z-overlay: 80;
  --z-modal: 100;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}
