/* =====================================================
   Cenosis — Design Tokens
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* --- Color Palette --- */
  --clr-bg:          hsl(225, 22%, 6%);
  --clr-bg-alt:      hsl(225, 20%, 8%);
  --clr-surface:     hsl(225, 18%, 11%);
  --clr-surface-2:   hsl(225, 16%, 15%);
  --clr-border:      hsl(225, 14%, 20%);
  --clr-border-soft: hsl(225, 12%, 16%);

  /* Greens (from logo — organic side) */
  --clr-green-dim:   hsl(130, 40%, 22%);
  --clr-green:       hsl(138, 55%, 42%);
  --clr-green-bright:hsl(142, 68%, 52%);
  --clr-green-glow:  hsl(138, 80%, 55%);

  /* Ambers (from logo — glowing core) */
  --clr-amber:       hsl(38, 90%, 55%);
  --clr-amber-dim:   hsl(38, 60%, 35%);

  /* Cyans (circuit side accent) */
  --clr-cyan:        hsl(185, 85%, 50%);
  --clr-cyan-dim:    hsl(185, 55%, 30%);

  /* Accent (primary CTA) */
  --clr-accent:      hsl(142, 68%, 52%);
  --clr-accent-hover:hsl(142, 75%, 60%);
  --clr-accent-dim:  hsl(142, 40%, 20%);

  /* Text */
  --clr-text:        hsl(220, 20%, 92%);
  --clr-text-muted:  hsl(220, 12%, 58%);
  --clr-text-faint:  hsl(220, 10%, 38%);
  --clr-text-inv:    hsl(225, 22%, 6%);

  /* --- Typography --- */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;
  --weight-black:    900;

  --leading-tight:  1.2;
  --leading-snug:   1.375;
  --leading-normal: 1.6;
  --leading-relaxed:1.75;

  /* --- Spacing --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Radii --- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-xl:  0 16px 64px rgba(0,0,0,0.7);
  --shadow-green-glow: 0 0 32px hsla(138, 70%, 45%, 0.3);
  --shadow-green-sm:   0 0 12px hsla(138, 70%, 45%, 0.2);
  --shadow-amber-glow: 0 0 24px hsla(38, 90%, 55%, 0.3);

  /* --- Transitions --- */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:cubic-bezier(0.45, 0, 0.55, 1);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
  --duration-xslow:  600ms;

  /* --- Layout --- */
  --max-width:      1200px;
  --max-width-wide: 1440px;
  --max-width-text: 720px;
  --nav-height:     72px;
  --sidebar-width:  272px;
}
