/* ============================================================
   CLIPPER STUDIO 2.0 — Design System Tokens
   ============================================================ */
:root {
  /* --- Colors: Backgrounds --- */
  --bg-base:      #080808;
  --bg-surface-1: #111111;
  --bg-surface-2: #191919;
  --bg-surface-3: #222222;
  --bg-surface-4: #2a2a2a;

  /* --- Colors: Borders --- */
  --border-subtle:  rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.09);
  --border-strong:  rgba(255, 255, 255, 0.16);
  --border-focus:   rgba(99, 102, 241, 0.6);

  /* --- Colors: Text --- */
  --text-primary:   #f0f0f0;
  --text-secondary: #909090;
  --text-tertiary:  #505050;
  --text-disabled:  #303030;
  --text-inverse:   #080808;

  /* --- Colors: Accent (Indigo) --- */
  --accent:         #6366f1;
  --accent-hover:   #818cf8;
  --accent-active:  #4f46e5;
  --accent-muted:   rgba(99, 102, 241, 0.12);
  --accent-border:  rgba(99, 102, 241, 0.30);

  /* --- Colors: Status --- */
  --success:        #22c55e;
  --success-muted:  rgba(34, 197, 94, 0.10);
  --warning:        #f59e0b;
  --warning-muted:  rgba(245, 158, 11, 0.10);
  --error:          #ef4444;
  --error-muted:    rgba(239, 68, 68, 0.10);
  --info:           #38bdf8;
  --info-muted:     rgba(56, 189, 248, 0.10);

  /* --- Spacing (4px grid) --- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* --- Border Radius --- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl:28px;
  --radius-full: 9999px;

  /* --- Typography --- */
  --font-sans: -apple-system, "SF Pro Display", "Inter", "Helvetica Neue", ui-sans-serif, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;

  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   17px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  30px;
  --text-3xl:  38px;

  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.55;
  --leading-relaxed: 1.7;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* --- Shadows --- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 6px  rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.65);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.80);

  /* --- Transitions --- */
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);

  --duration-fast:   100ms;
  --duration-normal: 180ms;
  --duration-slow:   300ms;
  --duration-slower: 500ms;

  /* --- Layout --- */
  --sidebar-width:  220px;
  --content-max:    960px;
  --content-pad:    var(--space-12);
}
