/* Aroh design tokens — the single source for colour, type, space, motion.
   Spec: tokens.md. Copy this file into Aroh/website/css/ and ArohERP/web/src/styles/;
   never redefine one of these values in a page stylesheet. */

:root {
  /* colour — surfaces */
  --ink: #0e1b2c;
  --ink-2: #16283f;
  --paper: #f5f2ea;
  --bg: #efeae0;
  --panel: #fbf9f3;
  --panel-2: #ede8db;
  --line: #e3ddcf;
  --mut: #7a8698;

  /* colour — meaning */
  --amber: #f5a623;   /* act on this */
  --orange: #ff6b35;  /* late, over cap */
  --green: #2fa36b;   /* done, paid */
  --steel: #4a6fa5;   /* internal, secondary */
  --ai: #c8006f;      /* the AI team — nothing else */
  --ai-soft: #fbe8f2;

  /* type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Noto Sans", "Noto Sans Devanagari", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-display: 700 44px/1.05 var(--font-sans);
  --t-h1: 800 32px/1.15 var(--font-sans);
  --t-h2: 800 24px/1.2 var(--font-sans);
  --t-h3: 700 18px/1.3 var(--font-sans);
  --t-body: 400 15px/1.55 var(--font-sans);
  --t-small: 500 13px/1.45 var(--font-sans);
  --t-data: 500 13px/1.3 var(--font-sans);
  --t-micro: 700 11px/1.2 var(--font-sans);

  /* space — 4px grid */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --w-page: 1120px;
  --w-prose: 68ch;

  /* shape */
  --r-pill: 999px;
  --r-card: 14px;
  --r-ctl: 8px;
  --r-tag: 4px;
  --bw: 1px;
  --shadow-1: 0 1px 2px rgba(14, 27, 44, .06), 0 2px 8px rgba(14, 27, 44, .06);
  --shadow-2: 0 8px 30px rgba(14, 27, 44, .12);

  /* motion */
  --m-fast: 120ms;
  --m-base: 240ms;
  --m-slow: 400ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* display weight 900 is too heavy for Devanagari; Latin-only heroes may opt in */
.display-heavy { font-weight: 900; }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9edf4;
    --ink-2: #c6d0de;
    --paper: #161b22;
    --bg: #11151b;
    --panel: #1b212a;
    --panel-2: #232a35;
    --line: #2d3643;
    --mut: #8d99ab;
    --amber: #f7b445;
    --orange: #ff8154;
    --green: #3fbe80;
    --steel: #6d90c4;
    --ai: #ff4fa8;
    --ai-soft: #3a0f27;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .3);
    --shadow-2: 0 8px 30px rgba(0, 0, 0, .45);
  }
}

@media (max-width: 640px) {
  :root {
    --t-display: 700 32px/1.1 var(--font-sans);
    --t-h1: 800 26px/1.2 var(--font-sans);
    --t-h2: 800 21px/1.25 var(--font-sans);
    --s9: 56px;
  }
}

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