:root {
  /* ═══════════════════════════════════════════
     COLORS — Primitive Palette
     ═══════════════════════════════════════════ */
  --color-primary: #3D5860;
  --color-primary-light: #5A7A84;
  --color-primary-dark: #2C4249;
  --color-accent: #90C4C4;
  --color-accent-light: #B0D8D8;
  --color-bg: #F5FCFC;
  --color-bg-alt: #EAF5F5;
  --color-surface: #FFFFFF;
  --color-text: #1A2F35;
  --color-text-secondary: #5A7A84;
  --color-text-muted: #8FA8AE;
  --color-border: #D4E8E8;
  --color-border-light: #E8F3F3;
  --color-error: #D94040;
  --color-success: #2E8B57;
  --color-warning: #E8A838;

  /* ── Colors — On-Pair Semantics (text-on-bg) ── */
  --color-on-primary: #FFFFFF;
  --color-on-accent: #1A2F35;
  --color-on-error: #FFFFFF;
  --color-on-surface: #1A2F35;
  --color-on-surface-secondary: #5A7A84;
  --color-on-primary-dark: #FFFFFF;
  --color-on-bg: #1A2F35;
  --color-on-bg-alt: #1A2F35;

  /* ── Colors — Interactive States ── */
  --color-primary-hover: #4D6E78;
  --color-primary-active: #2C4249;
  --color-accent-hover: #A0D0D0;
  --color-accent-active: #7CB4B4;
  --color-error-hover: #C53535;
  --color-success-hover: #267A4C;
  --color-warning-hover: #D49A2E;
  --color-border-hover: #5A7A84;
  --color-border-active: #3D5860;

  /* ── Colors — Overlay & Scrim ── */
  --color-overlay: rgba(26, 47, 53, 0.5);
  --color-scrim: rgba(26, 47, 53, 0.85);
  --color-overlay-light: rgba(26, 47, 53, 0.1);
  --color-overlay-medium: rgba(26, 47, 53, 0.3);

  /* ── Colors — Focus & Accessibility ── */
  --color-focus-ring: #90C4C4;
  --color-focus-ring-offset: #FFFFFF;

  /* ── Colors — Semantic Feedback ── */
  --color-error-bg: rgba(217, 64, 64, 0.08);
  --color-error-border: rgba(217, 64, 64, 0.3);
  --color-success-bg: rgba(46, 139, 87, 0.08);
  --color-success-border: rgba(46, 139, 87, 0.3);
  --color-warning-bg: rgba(232, 168, 56, 0.08);
  --color-warning-border: rgba(232, 168, 56, 0.3);
  --color-info: #0ea5e9;
  --color-info-bg: rgba(14, 165, 233, 0.08);
  --color-info-border: rgba(14, 165, 233, 0.3);

  /* ── Colors — Subtle Tints (background tints) ── */
  --color-primary-tint: rgba(61, 88, 96, 0.05);
  --color-accent-tint: rgba(144, 196, 196, 0.1);

  /* ═══════════════════════════════════════════
     TYPOGRAPHY
     ═══════════════════════════════════════════ */
  --font-heading: 'Monadi', sans-serif;
  --font-body: 'Cairo', sans-serif;
  --font-accent: 'Point Art', sans-serif;
  --font-mono: 'Courier New', monospace;

  /* ── Type Scale ── */
  --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;

  /* ── Font Weights ── */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ── Line Heights ── */
  --leading-tight: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* ── Letter Spacing ── */
  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-wider: 0.05em;

  /* ── Max Measure (line-length) ── */
  --measure-sm: 40ch;
  --measure-md: 65ch;
  --measure-lg: 75ch;

  /* ═══════════════════════════════════════════
     SPACING — 4/8dp Grid
     ═══════════════════════════════════════════ */
  --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;

  /* ── Component Sizing ── */
  --btn-height-sm: 32px;
  --btn-height-md: 40px;
  --btn-height-lg: 48px;
  --input-height: 44px;
  --nav-height: 64px;
  --nav-height-lg: 72px;
  --navbar-height: 72px;
  --navbar-height-scrolled: 56px;
  --icon-size-sm: 16px;
  --icon-size-md: 20px;
  --icon-size-lg: 24px;
  --icon-size-xl: 32px;
  --min-tap-target: 44px;

  /* ═══════════════════════════════════════════
     BORDERS
     ═══════════════════════════════════════════ */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --border-width-thin: 1px;
  --border-width-default: 2px;
  --border-width-thick: 3px;

  /* ═══════════════════════════════════════════
     SHADOWS
     ═══════════════════════════════════════════ */
  --shadow-sm: 0 1px 3px rgba(61,88,96,0.08);
  --shadow-md: 0 4px 12px rgba(61,88,96,0.1);
  --shadow-lg: 0 8px 30px rgba(61,96,88,0.12);
  --shadow-xl: 0 16px 50px rgba(61,88,96,0.15);
  --shadow-inner: inset 0 2px 4px rgba(61,88,96,0.06);
  --shadow-focus: 0 0 0 2px var(--color-focus-ring-offset), 0 0 0 4px var(--color-focus-ring);

  /* ═══════════════════════════════════════════
     TRANSITIONS
     ═══════════════════════════════════════════ */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  --transition-fast: var(--duration-fast) var(--ease-default);
  --transition-normal: var(--duration-normal) var(--ease-default);
  --transition-slow: var(--duration-slow) var(--ease-default);

  /* ═══════════════════════════════════════════
     Z-INDEX
     ═══════════════════════════════════════════ */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-navbar: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;

  /* ═══════════════════════════════════════════
     LAYOUT
     ═══════════════════════════════════════════ */
  --container-sm: 576px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;
  --sidebar-width: 280px;
  --content-padding: var(--space-4);

  /* ═══════════════════════════════════════════
     BREAKPOINTS (for reference in JS)
     ═══════════════════════════════════════════ */
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1440px;
}
