/* ==========================================================================
   TIER 1: PRIMITIVE DESIGN TOKENS (TAILWIND CSS SCALE - IMMUTABLE CORE)
   Web-Base Platform Design System Standard
   Pure numerical scales - Completely context-agnostic and theme-agnostic.
   ========================================================================== */

:root {
  /* --------------------------------------------------------------------------
     1. Spacing Scale (Tailwind 4px Base Grid)
     -------------------------------------------------------------------------- */
  --space-0: 0px;
  --space-px: 1px;
  --space-0-5: 0.125rem; /* 2px */
  --space-1: 0.25rem;    /* 4px */
  --space-1-5: 0.375rem; /* 6px */
  --space-2: 0.5rem;     /* 8px */
  --space-2-5: 0.625rem; /* 10px */
  --space-3: 0.75rem;    /* 12px */
  --space-3-5: 0.875rem; /* 14px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-7: 1.75rem;    /* 28px */
  --space-8: 2rem;       /* 32px */
  --space-9: 2.25rem;    /* 36px */
  --space-10: 2.5rem;    /* 40px */
  --space-11: 2.75rem;   /* 44px */
  --space-12: 3rem;      /* 48px */
  --space-14: 3.5rem;    /* 56px */
  --space-16: 4rem;      /* 64px */
  --space-18: 4.5rem;    /* 72px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-28: 7rem;      /* 112px */
  --space-32: 8rem;      /* 128px */

  /* --------------------------------------------------------------------------
     2. Border Width Scale (Tailwind border-0, border, border-2, border-4, border-8)
     -------------------------------------------------------------------------- */
  --border-0: 0px;
  --border-1: 1px;       /* Tailwind 'border' standard */
  --border-2: 2px;       /* Tailwind 'border-2' */
  --border-4: 4px;       /* Tailwind 'border-4' */
  --border-8: 8px;       /* Tailwind 'border-8' */

  /* --------------------------------------------------------------------------
     3. Border Radius Scale (Tailwind rounded-sm, rounded, rounded-md...)
     -------------------------------------------------------------------------- */
  --radius-none: 0px;
  --radius-sm: 0.125rem;   /* 2px */
  --radius-default: 0.25rem; /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
  --radius-3xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;   /* Pills, Badges, Avatars */
  --radius-pill: var(--radius-full);

  /* --------------------------------------------------------------------------
     4. Typography Text Scale (Tailwind text-xs, text-sm, text-base...)
     -------------------------------------------------------------------------- */
  --text-2xs: 0.625rem;  /* 10px */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  --text-7xl: 4.5rem;    /* 72px */

  /* --------------------------------------------------------------------------
     5. Typography Font Weights (Tailwind font-thin, font-normal, font-medium...)
     -------------------------------------------------------------------------- */
  --font-weight-thin: 100;
  --font-weight-extralight: 200;
  --font-weight-light: 300;
  --font-weight-normal: 400;   /* Body, descriptions, regular copy */
  --font-weight-medium: 500;   /* Buttons, inputs, navigation, badges */
  --font-weight-semibold: 600; /* Headings, card titles, pricing, highlights */
  --font-weight-bold: 700;     /* Alerts, accent badges, strong emphasis */
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* --------------------------------------------------------------------------
     6. Line Heights (Tailwind leading-none, leading-tight...)
     -------------------------------------------------------------------------- */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* --------------------------------------------------------------------------
     7. Elevation & Box Shadows (Tailwind shadow-sm, shadow, shadow-md...)
     -------------------------------------------------------------------------- */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-none: none;

  /* --------------------------------------------------------------------------
     8. Containers & Layout Sizing (Tailwind max-w-xs, max-w-sm...)
     -------------------------------------------------------------------------- */
  --max-w-xs: 20rem;     /* 320px */
  --max-w-sm: 24rem;     /* 384px */
  --max-w-md: 28rem;     /* 448px */
  --max-w-lg: 32rem;     /* 512px */
  --max-w-xl: 36rem;     /* 576px */
  --max-w-2xl: 42rem;    /* 672px */
  --max-w-3xl: 48rem;    /* 768px */
  --max-w-4xl: 56rem;    /* 896px */
  --max-w-5xl: 64rem;    /* 1024px */
  --max-w-6xl: 72rem;    /* 1152px */
  --max-w-7xl: 80rem;    /* 1280px */
  --max-w-prose: 65ch;   /* Reading width */

  /* --------------------------------------------------------------------------
     9. Motion & Transitions (Tailwind duration-150, ease-in...)
     -------------------------------------------------------------------------- */
  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
  --duration-700: 700ms;
  --duration-1000: 1000ms;

  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --------------------------------------------------------------------------
     10. Z-Index Scale (Tailwind z-0, z-10, z-20, z-30, z-40, z-50, z-100)
     -------------------------------------------------------------------------- */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-100: 100;
  --z-auto: auto;

  /* --------------------------------------------------------------------------
     11. Typography Tracking (Letter Spacing: Tailwind tracking-*)
     -------------------------------------------------------------------------- */
  --tracking-tighter: -0.05em;
  --tracking-tight:   -0.025em;
  --tracking-snug:    -0.015em;
  --tracking-normal:   0em;
  --tracking-wide:     0.025em;
  --tracking-wider:    0.05em;
  --tracking-widest:   0.1em;
  --tracking-mega:     0.25em;

  /* --------------------------------------------------------------------------
     12. Opacity Scale (Tailwind opacity-*)
     -------------------------------------------------------------------------- */
  --opacity-0:   0;
  --opacity-5:   0.05;
  --opacity-10:  0.1;
  --opacity-15:  0.15;
  --opacity-20:  0.2;
  --opacity-25:  0.25;
  --opacity-30:  0.3;
  --opacity-40:  0.4;
  --opacity-50:  0.5;
  --opacity-55:  0.55;
  --opacity-60:  0.6;
  --opacity-70:  0.7;
  --opacity-75:  0.75;
  --opacity-80:  0.8;
  --opacity-85:  0.85;
  --opacity-90:  0.9;
  --opacity-95:  0.95;
  --opacity-100: 1;

  /* --------------------------------------------------------------------------
     13. Aspect Ratio Scale (Tailwind aspect-*)
     -------------------------------------------------------------------------- */
  --aspect-auto:     auto;
  --aspect-square:   1 / 1;
  --aspect-video:    16 / 9;
  --aspect-portrait: 3 / 4;
  --aspect-product:  4 / 5;
  --aspect-wide:     21 / 9;

  /* --------------------------------------------------------------------------
     14. Blur Scale (Tailwind blur-sm, blur-md...)
     -------------------------------------------------------------------------- */
  --blur-none: 0px;
  --blur-sm:   4px;
  --blur-md:   8px;
  --blur-lg:   16px;
  --blur-xl:   24px;
  --blur-2xl:  40px;

  /* --------------------------------------------------------------------------
     15. Primitive Color Triplets (RGB Channels for Dynamic Color Schemes)
     -------------------------------------------------------------------------- */
  --color-white-rgb: 255, 255, 255;
  --color-black-rgb: 0, 0, 0;
}
