/* FSCLN website design system v3 (10.0.0): Material Design 3 colour roles, written as our own tokens.
 * For the website and Beheer only; the apps use the FSCLN Apps Design System (/shared/_ds/apps/v1/).
 *
 * One set of roles, two schemes. Every role is light-dark(light value, dark value): it resolves to the light value in
 * an element whose color-scheme is light and to the dark value where it is dark. The site's page is light (beige); its
 * dark parts (header, menu bar, Tools band, footer, closing sections, cookie banner) set `color-scheme: dark` and get
 * the dark scheme from the same role names. Beheer switches the whole page (Auto / Light / Dark).
 *
 * Built from the brand's colours: paper #EFEEE9, ink #201E1F, lime #A3E052 and the greys of v2. Contrast (WCAG):
 *   light  on-surface #201E1F on surface #EFEEE9 14.6:1 · on-surface-variant #4A4843 8.3:1 · primary #497115 4.9:1 (4.6:1 on
 *          surface-container; the site's old --lime-ink #4F7A17 was 4.4:1, below AA, so v3 takes a step darker)
 *   dark   on-surface #EFEEE9 on surface #1A1A1A 15.6:1 · on-surface-variant #9A9A9A 6.6:1 · primary #A3E052 11.1:1
 *   lime fill: on-primary-container #141414 on #A3E052 11.9:1
 * Primary is lime. As a fill (filled buttons) it is primary-container, lime in both schemes, with dark text. As text,
 * lines and focus rings it is primary: the dark lime #497115 on the light scheme (the lime itself is 1.4:1 on beige),
 * the lime on the dark one.
 *
 * Two extensions beyond Material's roles, both documented here: on-surface-faint (a third, quieter text level for
 * captions; AA for large text only on dark) and warning (a status colour Beheer uses). */
:root {
  color-scheme: light;

  --md-sys-color-primary: light-dark(#497115, #A3E052);
  --md-sys-color-on-primary: light-dark(#FFFFFF, #141414);
  --md-sys-color-primary-container: #A3E052;
  --md-sys-color-on-primary-container: #141414;
  --md-sys-color-secondary: light-dark(#201E1F, #EFEEE9);
  --md-sys-color-on-secondary: light-dark(#EFEEE9, #201E1F);

  --md-sys-color-surface: light-dark(#EFEEE9, #1A1A1A);
  --md-sys-color-surface-dim: light-dark(#E2E0D9, #121212);
  --md-sys-color-surface-bright: light-dark(#F6F5F1, #2E2E2E);
  --md-sys-color-surface-container-lowest: light-dark(#FFFFFF, #121212);
  --md-sys-color-surface-container-low: light-dark(#F5F4F0, #1F1F1F);
  --md-sys-color-surface-container: light-dark(#E7E5DE, #242424);
  --md-sys-color-surface-container-high: light-dark(#E0DED6, #2E2E2E);
  --md-sys-color-surface-container-highest: light-dark(#D9D7CF, #383838);
  --md-sys-color-on-surface: light-dark(#201E1F, #EFEEE9);
  --md-sys-color-on-surface-variant: light-dark(#4A4843, #9A9A9A);
  --md-sys-color-on-surface-faint: light-dark(#5E5C57, #6E6E6E);
  --md-sys-color-outline: light-dark(#BDBAB0, #444444);
  --md-sys-color-outline-variant: light-dark(#D3D0C6, #333333);

  --md-sys-color-inverse-surface: light-dark(#201E1F, #EFEEE9);
  --md-sys-color-inverse-on-surface: light-dark(#EFEEE9, #201E1F);
  --md-sys-color-inverse-primary: light-dark(#A3E052, #497115);

  --md-sys-color-error: light-dark(#C62828, #FF5E5E);
  --md-sys-color-on-error: light-dark(#FFFFFF, #141414);
  --md-sys-color-warning: light-dark(#8A5A00, #F5C451);

  --md-sys-color-scrim: #121212;
  --md-sys-color-shadow: light-dark(rgba(32, 30, 31, .16), rgba(0, 0, 0, .45));
}
