/*! Nixosoft-AI-Designs 1.0.1 — tokens. https://cdn.nixosoft.com/nixosoft-ai-designs/1.0.1/ · design-systems/nixosoft-ai-designs */
/* Nixosoft-AI-Designs — tokens.
   Warm sand paper and charcoal, one sage accent, soft depth, sans throughout.
   Every colour a product uses lives in these blocks; components.css and the
   product's own CSS use the tokens only (checks/design-check.mjs enforces it).

   Theme: light by default; dark from the system (prefers-color-scheme), or
   forced either way with <html data-theme="light|dark"> (a Light / Dark /
   Same as system choice). A desktop app that sets the OS theme source (Electron
   nativeTheme.themeSource) can rely on prefers-color-scheme alone.

   A product adds its own semantic tokens (e.g. --remind) to BOTH blocks.

   Fonts: self-host Vazirmatn (variable woff2) and Inter (variable woff2) and
   point the two @font-face src lines at your copies. */

@font-face {
  /* Vazirmatn for Arabic script only: it stays first in every stack
     (NX-LG-020) while Latin text falls through to Inter. Vazirmatn's own Latin
     sits ~0.14em high in its line, which puts English labels off-centre
     beside their icons. */
  font-family: 'Vazirmatn Script';
  src: url('fonts/vazirmatn-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Inter Variable';
  src: url('fonts/inter-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Paper */
  --bg: #F5F1E9;
  --surface: #FCFAF6;
  --surface-2: #ECE6DA;
  --line: #DDD5C6;
  /* Ink */
  --text: #2A2823;
  --muted: #6A665B;
  /* The one accent: sage */
  --accent: #5C7349;
  --accent-hover: #4B5F3A;
  --accent-ink: #FFFFFF;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  /* States (never used as decoration) */
  --danger: #B3402E;
  --ok: #2F7A64;
  --info: #3D6AA3;
  --warn: #9A6206;
  /* Media stage: video, screen shares, pictures — dark in both themes */
  --stage: #1F1D1A;
  --stage-panel: #2A2724;
  --over: rgb(31 29 26 / 0.82);
  --over-text: #F4F0E8;
  /* Depth */
  --scrim: rgb(41 38 31 / 0.45);
  --shadow: 0 1px 2px rgb(41 38 31 / 0.05), 0 6px 20px rgb(41 38 31 / 0.06);
  --shadow-lift: 0 2px 6px rgb(41 38 31 / 0.08), 0 14px 36px rgb(41 38 31 / 0.12);
  /* Shape */
  --radius: 14px;          /* cards, dialogs, panels */
  --radius-group: 12px;    /* groups, list items, toasts, segmented tracks */
  --radius-control: 6px;   /* everything you press or type into: softly squared, never pills */
  /* Space (4px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  /* Type */
  --font: 'Vazirmatn Script', 'Inter Variable', 'Inter', system-ui, sans-serif;
  --font-title: 'Vazirmatn Script', 'Inter Variable', 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --weight-title: 650;
  --tracking-title: -0.02em;
  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .15s;
  --t-fade: .25s;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1D1A;
    --surface: #242522;
    --surface-2: #2E2F2A;
    --line: #3B3C36;
    --text: #EEECE4;
    --muted: #A7A498;
    --accent: #A8BE8E;
    --accent-hover: #BACFA1;
    --accent-ink: #1C1D1A;
    --danger: #E5654F;
    --ok: #66C3A4;
    --info: #7FA6D6;
    --warn: #E3B05A;
    --stage: #121110;
    --stage-panel: #1C1B19;
    --over: rgb(18 17 16 / 0.82);
    --over-text: #F0ECE4;
    --scrim: rgb(0 0 0 / 0.55);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 6px 20px rgb(0 0 0 / 0.25);
    --shadow-lift: 0 2px 6px rgb(0 0 0 / 0.3), 0 14px 36px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

/* The same dark values, forced by a Dark choice. Keep the two dark blocks identical. */
:root[data-theme="dark"] {
  --bg: #1C1D1A;
  --surface: #242522;
  --surface-2: #2E2F2A;
  --line: #3B3C36;
  --text: #EEECE4;
  --muted: #A7A498;
  --accent: #A8BE8E;
  --accent-hover: #BACFA1;
  --accent-ink: #1C1D1A;
  --danger: #E5654F;
  --ok: #66C3A4;
  --info: #7FA6D6;
  --warn: #E3B05A;
  --stage: #121110;
  --stage-panel: #1C1B19;
  --over: rgb(18 17 16 / 0.82);
  --over-text: #F0ECE4;
  --scrim: rgb(0 0 0 / 0.55);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 6px 20px rgb(0 0 0 / 0.25);
  --shadow-lift: 0 2px 6px rgb(0 0 0 / 0.3), 0 14px 36px rgb(0 0 0 / 0.4);
  color-scheme: dark;
}
