/*
 * The one theme. The only stylesheet that names a colour; every other file reads these names, and
 * spec/views/stylesheet_rules_spec.rb fails the build on a colour written anywhere else.
 * No dark mode: one light theme everywhere, and the browser's own controls match it.
 */

:root {
  color-scheme: light;

  /* Surfaces and lines */
  --bg: #f5f7f8;
  --surface: #ffffff;
  --sunken: #eef1f3;
  --hover: #f0f3f5;
  --selected: #e6f3f0;
  --line: #e1e5e9;
  --line-strong: #c6ced5;
  --line-control: #8a96a3;

  /* Ink and the one accent: the current place, the primary action, links */
  --ink: #182027;
  --ink-2: #5a6672;
  --ink-3: #667381;
  --accent: #0f766e;
  --accent-ink: #0b5e58;
  --accent-soft: #e3f1ee;

  /* Meaning, never the accent: a strong tone for a dot or bar, an ink for text on the soft fill */
  --ok: #1f8f5f;
  --ok-ink: #146c4a;
  --ok-soft: #e3f5ec;
  --warn: #b4690a;
  --warn-ink: #8a4f06;
  --warn-soft: #fdf1dc;
  --bad: #c93b3b;
  --bad-ink: #a12a2a;
  --bad-soft: #fde8e8;
  --info: #2f6fd6;
  --info-ink: #1f4fa8;
  --info-soft: #e4ecfb;

  /* The navigation rail only */
  --chrome: #ffffff;
  --chrome-ink: #182027;
  --chrome-ink-2: #5a6672;
  --chrome-line: #e1e5e9;
  --chrome-hover: #f0f3f5;
  --chrome-active: #e6f3f0;
  --chrome-active-ink: #0b5e58;

  --shadow: 0 8px 24px rgba(20, 28, 36, .10);

  /* Type. IBM Plex replaces the system faces once it is self-hosted: the CSP loads nothing from a CDN. */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs: 14px;
  --fs-dense: 13px;
  --fs-title: 20px;

  /* Shape and size: cards and dialogs, then buttons, inputs and chips */
  --radius: 8px;
  --radius-sm: 6px;
  --control: 36px;
  --control-sm: 30px;
}
