/*
Advokator's design tokens, loaded right after daisyUI (web/base.html), in four tiers:
1. the palette: the literal values, named for what they are, and nothing reads them but tier 2 and 3;
2. the theme: daisyUI's own variables (--color-*, --radius-*, ...), which its components read, and so do ours;
3. the site's: what the stylesheets here share (lines, text tones, shadows, the type scale, the column);
4. a component's own, in its area's file (--rail in chat.css, --from-edge, ...).
Colours come from tier 2 or 3 only (CLAUDE.md), so a dark theme is a second tier 2, under prefers-color-scheme or a
[data-theme], plus the few tier 3 values mixed from a literal (--mark, --shadow-color). Unlayered, as daisyUI's own
theme sits in its base layer: these win.
*/
:root {
  color-scheme: light;
  /* the browser's own controls (a checkbox's tick, a date picker) in the brand's colour */
  accent-color: var(--color-primary);

  /* ---- 1. the palette ---- */
  --white: #ffffff;
  --grey-100: #f4f5f7;
  --grey-300: #dce0e8;
  --grey-400: #c7ceda;
  --slate-700: #3e4654;
  --ink: #10151d;
  --blue-600: #2b62bf;
  --blue-700: #1b4fa0;
  --green-700: #047857;
  --amber-200: #fde68a;
  --amber-700: #a16207;
  --red-800: #9a2a2a;

  /* ---- 2. the theme (daisyUI's), from the old palette ---- */
  /* the page is grey and what sits on it is white; base-300 is the line */
  --color-base-100: var(--white);
  --color-base-200: var(--grey-100);
  --color-base-300: var(--grey-300);
  --color-base-content: var(--ink);

  --color-primary: var(--blue-700);
  --color-primary-content: var(--white);
  --color-secondary: var(--slate-700);
  --color-secondary-content: var(--white);
  /* the avatar and the far end of the brand gradient */
  --color-accent: var(--blue-600);
  --color-accent-content: var(--white);
  /* the dark sections: the landing hero, the dashboard's assistant band and the login aside */
  --color-neutral: var(--ink);
  --color-neutral-content: var(--grey-400);

  --color-info: var(--blue-700);
  --color-info-content: var(--white);
  --color-success: var(--green-700);
  --color-success-content: var(--white);
  --color-warning: var(--amber-700);
  --color-warning-content: var(--white);
  --color-error: var(--red-800);
  --color-error-content: var(--white);

  /* flat and quiet: thin lines, no depth or noise */
  --radius-selector: 0.3125rem;
  --radius-field: 0.4375rem;
  --radius-box: 0.625rem;
  --size-selector: 0.25rem;
  --size-field: 0.25rem;
  --border: 1px;
  --depth: 0;
  --noise: 0;

  /* the page behind everything, overscroll included (daisyUI paints the root base-100) */
  --root-bg: var(--color-base-200);

  /* ---- 3. the site's ---- */
  /* on the dark sections, a step above their text: the headings, and the lines and fills of what sits there */
  --neutral-bright: var(--white);

  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* the type scale, in rem: the user's text size scales all of it */
  --text-xs: 0.75rem; /* 12px at the default size */
  --text-sm: 0.8125rem; /* 13px */
  --text-md: 0.875rem; /* 14px: the body */
  --text-read: 0.96875rem; /* 15.5px: what is read at length, a decision, an act, an answer */
  --text-lg: 1.0625rem; /* 17px */
  --text-xl: 1.1875rem; /* 19px */
  --text-2xl: 1.625rem; /* 26px */

  /* text tones over base-content, and the lines and fills mixed from it */
  --muted: color-mix(in oklab, var(--color-base-content) 70%, transparent);
  --subtle: color-mix(in oklab, var(--color-base-content) 60%, transparent);
  --soft: color-mix(in oklab, var(--color-base-content) 80%, transparent);
  --line: var(--color-base-300);
  --line-strong: color-mix(in oklab, var(--color-base-content) 20%, transparent);
  --dot: color-mix(in oklab, var(--color-base-content) 30%, transparent);
  --hover: color-mix(in oklab, var(--color-base-content) 5%, transparent);
  --tint: color-mix(in oklab, var(--color-primary) 9%, transparent);
  /* a field's edge, 3:1 against white and the page (WCAG 1.4.11; daisyUI's own is 1.5:1) */
  --field-line: color-mix(in oklab, var(--color-base-content) 50%, transparent);
  --mark: var(--amber-200);
  --shadow-color: color-mix(in srgb, var(--color-base-content) 10%, transparent);
  --shadow-sm: 0 1px 3px 0 var(--shadow-color), 0 1px 2px -1px var(--shadow-color);
  --shadow-lg: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -4px var(--shadow-color);
  /* what a modal dialog and an open drawer dim the page with */
  --scrim: color-mix(in oklab, var(--color-base-content) 30%, transparent);

  /* the content column */
  --page-width: 77.5rem;
}
