/* ==========================================================================
   Design tokens - the single source of truth for colour, type, space, depth, motion.
   Direction: "glaze" - stainless-kitchen lagoon blues, warm glaze accents for attention.
   ========================================================================== */
@property --p {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

:root {
  /* Lagoon ink (text, sidebar) */
  --ink-950: #061c27;
  --ink-900: #0a2f3e;
  --ink-800: #0f4357;
  --ink-700: #1b5a73;
  --ink-600: #36718a;
  --ink-500: #55788a;
  --ink-400: #7a97a5;
  --ink-300: #a8bcc6;
  --ink-200: #d3dfe5;
  --ink-100: #e7eff3;
  --ink-50: #f3f7fa;

  /* Brand aqua */
  --aqua-700: #086a8d;
  --aqua-600: #0a86ad;
  --aqua-500: #0f9fc6;
  --aqua-400: #2bb8d6;
  --aqua-200: #a9e3f0;
  --aqua-100: #d9f2f8;
  --aqua-50: #eef9fc;

  /* Status colours */
  --mint-700: #0d7a5a;
  --mint-500: #1fb384;
  --mint-100: #d8f4e8;
  --glaze-700: #a85f12;
  --glaze-500: #f29a3d;
  --glaze-100: #fde9cf;
  --coral-700: #b3362b;
  --coral-500: #ea5d4f;
  --coral-100: #fde2de;

  /* Semantic aliases */
  --bg: #edf3f6;
  --surface: #ffffff;
  --glass: rgb(255 255 255 / 0.72);
  --glass-strong: rgb(255 255 255 / 0.88);
  --line: rgb(10 47 62 / 0.09);
  --line-strong: rgb(10 47 62 / 0.16);
  --text: var(--ink-900);
  --text-soft: var(--ink-500);
  --brand: var(--aqua-600);
  --brand-soft: var(--aqua-50);
  --focus: 0 0 0 3px rgb(15 159 198 / 0.32);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #0a7aa3 0%, #12a3c6 55%, #2cc4d2 100%);
  --grad-brand-hover: linear-gradient(135deg, #086d93 0%, #0f93b6 55%, #25b4c2 100%);
  --grad-ink: linear-gradient(175deg, #0c3a4d 0%, #082634 60%, #061c27 100%);
  --grad-page: radial-gradient(900px 480px at 85% -10%, rgb(43 184 214 / 0.16), transparent 60%),
    radial-gradient(700px 420px at -5% 10%, rgb(242 154 61 / 0.1), transparent 60%), var(--bg);

  /* Type */
  --font-display: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-md: 0.9375rem;
  --fs-lg: 1.0625rem;
  --fs-xl: 1.3rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;

  /* Radius by hierarchy: controls < cards < panels */
  --r-xs: 8px;
  --r-sm: 11px;
  --r-md: 15px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Depth: tinted, layered shadows */
  --sh-1: 0 1px 2px rgb(10 47 62 / 0.06), 0 2px 8px rgb(10 47 62 / 0.05);
  --sh-2: 0 2px 6px rgb(10 47 62 / 0.06), 0 14px 34px rgb(12 96 126 / 0.11);
  --sh-3: 0 4px 10px rgb(10 47 62 / 0.08), 0 28px 60px rgb(8 60 82 / 0.2);
  --sh-brand: 0 8px 22px rgb(10 134 173 / 0.34);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 140ms;
  --t-base: 240ms;
  --t-slow: 420ms;

  /* Layout */
  --sidebar-w: 288px;
  --topbar-h: 72px;
  --content-max: 1320px;
  --slide-out: 100%; /* drawer direction (RTL) */
}
html[dir='ltr'] {
  --slide-out: -100%;
}
