/* ==========================================================================
   Theme "Стандартная" (default): the colours, numbers and browser scheme the interface starts with.
   Everything changed in Settings is drawn on top of these values; "Сбросить" returns to them.
   A new theme is a new file themes/<id>.css with the selector :root[data-theme="<id>"], linked in index.html
   and listed in THEMES (bundle.js). This one sits on plain :root, so whatever another theme leaves out comes from here.
   ========================================================================== */

:root {
  /* Browser scheme: dark or light (scrollbars, date fields, checkboxes) */
  --theme-scheme: dark;
  color-scheme: dark;

  /* Accent colours */
  --blue: #0a84ff;
  --blue-hover: #369aff;
  --green: #30d158;
  --orange: #ff9f0a;
  --red: #ff453a;
  --cyan: #5ac8fa;
  --purple: #bf5af2;
  --pink: #ff375f;
  --yellow: #ffd60a;
  --indigo: #5e5ce6;
  --gray: #8e8e93;
  --on-accent: #ffffff; /* text and marks on accent-coloured buttons */

  /* Soft fills behind badges and hovered buttons */
  --blue-soft: #192b3e;
  --red-soft: #3c2222;
  --orange-soft: #3c2e1b;

  /* Text */
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-muted: #636366;
  --text-placeholder: #636366;

  /* Surfaces */
  --bg-canvas: #000000;   /* the app background */
  --bg-surface: #1c1c1e;  /* cards, lists, panels, menus' base, side and bottom bars */
  --bg-sheet: #242426;    /* windows */
  --bg-popover: #38383a;  /* drop-down lists, pop-up calendars and palettes */
  --bg-subtle: #272729;   /* badges, empty drop areas, secondary buttons' resting look */
  --bg-hover: #29292b;    /* a row, card or button under the pointer */
  --bg-selected: #363638; /* a chosen / pressed row, tab or day */
  --bg-field: #2d2d2f;    /* groups of fields in windows */
  --bg-control: #38383a;       /* buttons, drop-downs and fields */
  --bg-control-hover: #424245; /* the same, under the pointer or focused */
  --event-block: #38383a;       /* events in the schedule grid */
  --event-block-hover: #434345;

  /* Lines and states */
  --line: #3a3a3c;       /* separators and outlines */
  --line-soft: #2b2b2d;  /* hairlines around panels, grid lines */
  --scrollbar: #454545;
  --scrollbar-active: #878788;
  --focus: #06498c;      /* focus ring */
  --selection: #042e59;  /* selected text */

  /* Shadows and the dimming behind windows: one colour, the strength is fixed where it is used */
  --shadow: #000000;
  --shadow-strength: 55%;  /* how dense shadows are */
  --scrim-strength: 45%;   /* how dark it gets behind a window */

  /* Calendar month: how strongly a day is coloured when it has 1, 2, 3, 4+ tasks (a share of the colour, 0-1) */
  --heat-1: 0.14;
  --heat-2: 0.24;
  --heat-3: 0.35;
  --heat-4: 0.46;
}
