/* theme.css

   Every colour of the app by name (Stany, 2 Dec 2026: a light and a dark
   theme). The other style sheets only use these names, never a colour
   itself; a theme is just another set of values for the same names.

   Light (the default): as before, but the page is a soft off-white and
   the cards, menus and the open card stay white, so they stand out a little.

   Dark: neutral grey, as in Linear, VS Code and GitHub Dark (Stany's
   choice). What strong dark themes have in common, and so this one too:
   - no pure black: dark grey, so shapes and text keep their depth;
   - what lies higher (cards, menus) is a little LIGHTER, instead of a shadow;
   - text is not pure white but about 90 %, quieter text clearly greyer;
   - card edges are a soft grey, not the bright text colour;
   - the red is lighter and softer, so it does not glow.

   Which theme: shared/theme.js sets data-theme="light" or "dark" on <html>
   (like Windows, or chosen in gear > Look; remembered per computer).
   Printing always uses the light colours (the dark values are screen only).

   Used by: start.css, shell/shell.css, views/views.css. */

:root {
  color-scheme: light;
  --page: #f8f9fa;        /* behind everything */
  --surface: #ffffff;     /* cards, menus, boxes, the grid's cells, buttons */
  --sidebar: #f1f3f5;     /* the left pane */
  --lane: #f1f3f5;        /* a column of the kanban board */
  --fill: #f1f3f5;        /* chosen or hovered rows, free days */
  --fill-soft: #f8f9fa;   /* the lightest shading (load: a little) */
  --fill-strong: #e9ecef; /* stronger shading (load: more) */
  --ink: #1e1e1e;         /* text */
  --ink-soft: #495057;    /* secondary text */
  --muted: #868e96;       /* quiet text: hints, counts, labels */
  --stroke: #1e1e1e;      /* edges of cards and boxes (the hand-drawn look) */
  --focus: #1e1e1e;       /* the ring of the selected card, a box with the keyboard */
  --line: #dee2e6;        /* thin dividing lines */
  --line-mid: #ced4da;    /* lines between table cells, inputs */
  --line-strong: #adb5bd; /* tree lines, the current find mark */
  --red: #c92a2a;         /* warnings, over capacity, today */
  --red-soft: #fff5f5;    /* a red cell */
  --on-ink: #ffffff;      /* text on an ink-coloured button */
  --backdrop: rgba(30, 30, 30, 0.15); /* behind a dialog */
}

@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;    /* the browser's own scroll bars and inputs go dark too */
    --page: #1a1b1e;
    --surface: #25262b;
    --sidebar: #141517;
    --lane: #1f2023;
    --fill: #2c2e33;
    --fill-soft: #222327;
    --fill-strong: #34363c;
    --ink: #e9ecef;
    --ink-soft: #c1c2c5;
    --muted: #909296;
    --stroke: #5c5f66;
    --focus: #e9ecef;
    --line: #373a40;
    --line-mid: #43464d;
    --line-strong: #6b6e76;
    --red: #ff6b6b;
    --red-soft: #3a2224;
    --on-ink: #1a1b1e;
    --backdrop: rgba(0, 0, 0, 0.5);
  }
}
