/* Lawh — design tokens. Chrome (top bar, panel, dock) only; the board has its own materials in boards.css. */

:root {
  /* type */
  --font-ui: "IBM Plex Sans Arabic", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Aref Ruqaa", "IBM Plex Sans Arabic", serif;
  --font-board-ar: "Marhey", "IBM Plex Sans Arabic", sans-serif;
  --font-board-en: "Patrick Hand", "Marhey", cursive;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-md: 0.9375rem;
  --fs-lg: 1.0625rem;
  --lh: 1.55;

  /* the one accent: warm marker orange */
  /* --accent is also a board palette slot (set on .board by ui.js); chrome always reads --accent-chrome */
  --accent-chrome: #ff7a1a;
  --accent: var(--accent-chrome);
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 122, 26, 0.14);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-chrome);

  /* status */
  --danger: #d1343b;
  --danger-soft: rgba(209, 52, 59, 0.12);

  /* geometry */
  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --topbar-h: 50px;
  --dock-h: 64px;
  --panel-w: 340px;
  --gap: 10px;

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 120ms;
  --t-med: 200ms;
  --t-slow: 250ms;

  /* subtle wall noise (data uri, 1-bit dithered) */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- light chrome: cool off-white studio wall ---------- */
html[data-chrome="light"] {
  color-scheme: light;
  --bg: #eceef0;
  --bg-2: #e3e6e9;
  --bg-3: #d9dde1;
  --wall: #e6e8ea;
  --fg: #1c2127;
  --fg-2: #4a525b;
  --fg-3: #7b848e;
  --line: rgba(20, 26, 34, 0.1);
  --line-2: rgba(20, 26, 34, 0.18);
  --panel: #f7f8f9;
  --panel-2: #ffffff;
  --panel-3: #eef0f2;
  --chip: #ffffff;
  --chip-hover: #f1f3f5;
  --input: #ffffff;
  --shadow-sm: 0 1px 2px rgba(16, 22, 30, 0.08), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  --shadow-md: 0 6px 18px rgba(16, 22, 30, 0.1), 0 1px 3px rgba(16, 22, 30, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 22, 30, 0.22), 0 6px 16px rgba(16, 22, 30, 0.12);
  --board-shadow: 0 18px 44px rgba(16, 22, 30, 0.16), 0 5px 12px rgba(16, 22, 30, 0.1);
  --noise-alpha: 0.05;
}

/* ---------- dark chrome: charcoal ---------- */
html[data-chrome="dark"] {
  color-scheme: dark;
  --bg: #15181c;
  --bg-2: #1b1f24;
  --bg-3: #22272d;
  --wall: #191c20;
  --fg: #eef1f4;
  --fg-2: #b4bcc5;
  --fg-3: #7c8690;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --panel: #1b1f24;
  --panel-2: #22272d;
  --panel-3: #2a3038;
  --chip: #22272d;
  --chip-hover: #2a3038;
  --input: #22272d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6), 0 6px 16px rgba(0, 0, 0, 0.4);
  --board-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 5px 12px rgba(0, 0, 0, 0.35);
  --noise-alpha: 0.07;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --t-fast: 0ms;
    --t-med: 0ms;
    --t-slow: 0ms;
  }
}
