/* The two themes — the only file in the site that names a colour (V1 §18;
   tests/test_web_frontend.py fails on a colour literal anywhere else).

   Light is the main theme. The working interface follows the reader's system
   theme; a public page (the front page, the way in) stays light —
   `data-sm-surface="public"` on <html>. Accent: a deep blue, close to indigo;
   green is taken by success. In the dark theme shadows do not separate
   anything, so components separate by a border, and the semantic colours are
   their own values, not the light ones dimmed. */

:root {
  --sm-bg: #ffffff;
  --sm-surface: #f5f6fa;
  --sm-text: #1c2230;
  --sm-muted: #586174;
  --sm-border: #d8dbe5;
  --sm-accent: #3730a3;
  --sm-accent-hover: #2e2785;
  --sm-on-accent: #ffffff;
  --sm-danger: #b42318;
  --sm-danger-hover: #912018;
  --sm-on-danger: #ffffff;
  --sm-success: #067647;
  /* A caution, not a danger (W6a, Р-230): a message that looks like a contact. */
  --sm-warning: #b54708;
  --sm-focus: rgba(55, 48, 163, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-sm-surface="public"]) {
    --sm-bg: #12141c;
    --sm-surface: #1a1d28;
    --sm-text: #e6e8ef;
    --sm-muted: #a2a8b7;
    --sm-border: #2f3443;
    --sm-accent: #a5b4fc;
    --sm-accent-hover: #c7d2fe;
    --sm-on-accent: #12141c;
    --sm-danger: #f97066;
    --sm-danger-hover: #fda29b;
    --sm-on-danger: #12141c;
    --sm-success: #47cd89;
    --sm-warning: #fdb022;
    --sm-focus: rgba(165, 180, 252, 0.45);
  }
}
