/* Design tokens: the only place with colours, type sizes and radii. Per course these can be swapped without touching styles.css or the JS.
   Lighter variants are mixed from their base here (color-mix), so changing a base changes its tints too. */
:root {
  /* ground and text */
  --ink: #14372A;          /* text, chart lines, the active menu row */
  --green: var(--ink);     /* the brand: logo and avatar; the same as the ink for now */
  --muted: #53665A;        /* secondary text: 4.5:1 or more on every ground below, the tint included */
  --line: #D9D1BF;         /* borders */
  --line-soft: color-mix(in srgb, var(--line) 33%, transparent);
  --dots: #DCD5C5;         /* the dots of the workbench behind the content */
  --beige-2: #E8E3D6;      /* the ground behind everything: the sidebar */
  --beige: #F2EEE5;        /* quiet fills: profile card, table groups */
  --paper: #FAF8F3;        /* the framed panel: the workbench */
  --card: #FFFFFF;         /* cards, tiles, tables, fields */
  --tile-line-hover: #BDB29B; /* the border of a clickable tile under the pointer */
  --hover: #FFFFFF77;      /* a menu row under the pointer */
  --tint: #F6EACB;         /* a card or row that asks to be looked at */
  --tint-line: #E2CD8C;
  --peach: #F2A27F;        /* the brand accent: the logo */
  --focus: var(--ink);     /* the keyboard focus ring: peach reached only 2:1 on paper, the ink 12:1 */
  --peach-deep: #E4805B;   /* the plus of Add entry */

  /* status: a colour for dots and bars, an -ink variant that reads as text (4.5:1 on white), a -bg for fills */
  --ok: #1F7A47;           /* in order */
  --ok-bg: color-mix(in srgb, var(--ok) 12%, transparent);
  --ok-line: color-mix(in srgb, var(--ok) 30%, transparent);
  --warn: #9A5B00;         /* above or below its band */
  --attn: #E08A0B;         /* look out */
  --attn-ink: #975100;
  --attn-bg: color-mix(in srgb, var(--attn) 12%, transparent);
  --attn-line: color-mix(in srgb, var(--attn) 33%, transparent);
  --act: #C8553A;          /* do something: notifications that ask for work, bars over their threshold */
  --act-ink: #A4402A;
  --act-bg: color-mix(in srgb, var(--act) 12%, transparent);
  --act-line: color-mix(in srgb, var(--act) 33%, transparent);
  --info: #2F6BDB;         /* new or unread */
  --risk: #4F6D87;         /* a notice from a model or forecast (Home, Disease) */
  --unusual: #6B6F8C;      /* a notice that a value is unusual for this green */

  /* the ink, see-through: tracks, table heads, shadows */
  --ink-05: color-mix(in srgb, var(--ink) 5%, transparent);
  --ink-08: color-mix(in srgb, var(--ink) 8%, transparent);
  --ink-12: color-mix(in srgb, var(--ink) 12%, transparent);
  --ink-50: color-mix(in srgb, var(--ink) 50%, transparent);
  --shade: color-mix(in srgb, var(--ink) 20%, transparent);
  --backdrop: color-mix(in srgb, var(--ink) 28%, transparent);
  --shadow-tile: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 2px 8px color-mix(in srgb, var(--ink) 4%, transparent);      /* a tile lying on the bench */
  --shadow-sm: 0 1px 3px color-mix(in srgb, var(--ink) 15%, transparent);
  --shadow-md: 0 2px 10px var(--ink-08);
  --shadow-lg: 0 12px 32px var(--shade);
  --shadow-xl: 0 20px 60px var(--shade);

  /* data: the target band, the series per green, water and weather */
  --part-1: #9DBF9E; --part-2: #D9C68F; --part-3: #A9BCD0; --part-4: #CBA9A2;      /* the fills of a stacked bar: pale, so that no part looks like a signal */
  --context: color-mix(in srgb, var(--ink) 28%, transparent);      /* a series in the background of a chart; the one in focus is the ink, or the page's own colour */
  --water: var(--rain);    /* the colour of Water: its lines, the blue of rain */
  --rule: color-mix(in srgb, var(--line) 70%, transparent);      /* a line between the rows of a table */
  /* logbook types: one hue each, the pill is a 14 % tint of it (text 4.9:1 or more on it) */
  --log-maaien: #2F6B3F; --log-onderhoud: #7A5B22; --log-voeding: #4C6B1F; --log-zaaien: #66641A;
  --log-ziekte: #9A3446; --log-metingen: #3A5A78; --log-weer: var(--rain-ink); --log-notities: #53665A;
  --good: #6FA27F;
  --band: color-mix(in srgb, var(--good) 25%, transparent);
  --band-soft: color-mix(in srgb, var(--good) 14%, transparent);
  --series-1: #4F86B3; --series-2: #E8870C; --series-3: #6FA27F; --series-4: #8A6BB0; --series-5: #C4501E; --series-6: #2D9AA8;
  --rain: #4A7599;         /* the one blue: rain, wet, frost, water (marks); calmer since 19 Nov 2026, the steel blue of the models (--risk) a little brighter */
  --rain-ink: #355D7E;     /* the same blue for text and strong marks */
  --et: #CC8A6E;           /* evapotranspiration: a muted terracotta */
  --irrigation: #86AE9A;   /* irrigation: a muted green */
  --t-cold: var(--rain); --t-mid: #CDC4B2; --t-warm: #E0A23A; --t-hot: #D2502E;      /* temperature as colour: 0, 10, 20 and 30 °C and up, through a neutral middle (no green); mixed in between */
  --gp: #E8870C;           /* growth potential */
  --fert: #3D7A52;         /* a fertilising mark */
  --heat-lo: #B8D2A6;      /* the light end of the clippings heatmap; the dark end is the ink */

  /* day types: the colour of the icon; a notable day (heat, soaking rain, wind, frost) also gets a light tint of it (styles.css) */
  --dry-icon: var(--muted); --warm-icon: #B07F00; --heat-icon: var(--t-hot);
  --wet-icon: var(--rain); --soak-icon: var(--rain-ink); --wind-icon: var(--ink); --frost-icon: var(--rain);

  /* type: one scale of seven steps */
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, Menlo, monospace;
  --fs-xs: .75rem;         /* 12px: caps labels, pills, chart text */
  --fs-sm: .8125rem;       /* 13px: small notes, dates in the menu */
  --fs-md: .875rem;        /* 14px: secondary text, tabs */
  --fs-base: 1rem;         /* 16px: body text, the menu */
  --fs-lg: 1.125rem;       /* 18px: titles of a card or dialog */
  --fs-xl: 1.375rem;       /* 22px: the page title */
  --fs-2xl: 1.75rem;       /* 28px: the arrows on the phone */
  /* radii */
  --radius-xs: 2px;        /* swatches, thin marks */
  --radius-sm: 6px;        /* tables, code, small buttons */
  --radius-md: 8px;        /* buttons, menu rows, fields */
  --radius: 10px;          /* cards and tiles */
  --radius-lg: 14px;       /* the panel, dialogs, menus */
  --radius-full: 999px;    /* pills, chips, bars */

  /* heights of what you tap (STYLE.md: the target for --tap is 48, still open) */
  --tap: 44px;             /* a button, field or chip on a phone; the main button of a form everywhere */
  --control: 36px;         /* a chip, filter field or small button on a wide screen */

  /* layout */
  --gap: 12px;
  --pad: .7rem .9rem;      /* inside a card or a row */
  --pad-sm: .55rem .8rem;  /* inside a small tile */
  --side-w: 250px;
}
