/* Aldus brand tokens: the single source for colour, type and shape across the app and the landing site.
   Light set (the app default, "Bright proof"). The dark set is aldus-tokens-dark.css.
   Rules behind these values: docs/design/DESIGN.md (rules 1 to 16). In short: red is the mark, errors,
   destructive actions and the Failed status only; focus and selected are ink, never the accent;
   running is ink, not red; source types are web blue and knowledge base purple, everything else grey.

   Layers:
   1. Palette (--aldus-*): named brand colours. Fixed; never reassigned by a theme.
   2. Roles (--color-*): what each colour is for. Themes reassign these, and only these.
   3. Type and shape (--font-*, --radius-*, --space-*). */

:root {
  /* ---- 1. Palette ---- */
  --aldus-proof-paper: #F6F1E7;   /* proof paper: text and mark on black */
  --aldus-bright-proof: #FBFAF7;  /* app ground */
  --aldus-chase: #ECE5D6;         /* warm raised surface */
  --aldus-stone: #DDD4C2;         /* warm rules, wells */
  --aldus-printers-black: #17130F;/* text, primary ink */
  --aldus-lampblack: #0D0B09;     /* deepest black, dark ground */
  --aldus-slate: #5C544B;         /* secondary text */
  --aldus-rubric: #B5351F;        /* accent red */
  --aldus-rubric-on-black: #DD5A3F;
  --aldus-moss: #4A7A52;          /* success, complete */
  --aldus-ochre: #A8741A;
  --aldus-web-blue: #2F5F93;
  --aldus-kb-purple: #6D4B94;
  --aldus-warning-orange: #C2620E;

  /* ---- 2. Roles (light) ---- */
  color-scheme: light;
  --color-ground: var(--aldus-bright-proof);   /* page background */
  --color-raised: #F1EEE8;                     /* wells, segmented tracks, chips */
  --color-surface: #FFFFFF;                    /* cards, inputs, table rows, column headers */
  --color-rule: #E0DBD1;                       /* borders, dividers */
  --color-text: var(--aldus-printers-black);
  --color-text-muted: var(--aldus-slate);
  --color-on-ink: var(--aldus-proof-paper);    /* text on ink fills (active tab, selected) */
  --color-ink: var(--aldus-printers-black);    /* active tab, selected edge, focus ring */
  --color-accent: var(--aldus-rubric);         /* the mark, errors, destructive */
  --color-menu: var(--aldus-printers-black);   /* side menu: darkest theme colour (rule 8) */
  --color-on-menu: var(--aldus-proof-paper);
  --color-menu-accent: var(--aldus-rubric-on-black);
  --color-backdrop: rgba(23, 19, 15, .5);

  --color-status-ok: var(--aldus-moss);
  --color-status-running: var(--color-ink);
  --color-status-queued: var(--aldus-slate);
  --color-status-failed: var(--aldus-rubric);
  --color-status-warning: var(--aldus-warning-orange);

  --color-source-web: var(--aldus-web-blue);
  --color-source-kb: var(--aldus-kb-purple);
  --color-source-other: var(--aldus-slate);

  /* ---- 3. Type and shape ---- */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-size-base: 14px;          /* rule 10 */
  --tracking-heading: -.035em;     /* headlines at weight 600 */
  --tracking-wordmark: .2em;       /* ALDUS, capitals, weight 600 */

  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 8px;
  --space: 16px;                   /* default gap between cards */
}
