/* Design tokens from docs/design/README.md. Components use only these
   variables, so a colour or font is changed in one place. */

:root {
  /* Primary: header, selected yes/no tiles, focus */
  --color-navy: #0b1f3a;
  /* The product colour of Intrinsick+ Events, for the open tab, and on a
     light blue for a mark that is neither an action nor a warning, such as
     "employed" in the list of participants (10.4 : 1). */
  --color-product: #002f7a;
  --color-product-light: #e3ecf8;

  /* Inside the navy header */
  --color-header-field: #13294a;
  --color-header-text: #e6ecf4;
  --color-header-muted: #c9d4e3;

  /* Header of the internal area (corporate design Intrinsick+ Events):
     a gradient from dark on the left to lighter on the right, like the top
     strip of intrinsick-plus.de (whose gradient runs to #002f7a over the
     whole page). Hover is a light veil, so it shows on both ends. The line
     around the language switch reaches 3:1 on both ends (5.3:1 on the
     left, 3.9:1 on the right). */
  --brand-header-start: #000b22;
  --brand-header-end: #002663;
  --brand-header-veil: rgb(255 255 255 / 12%);
  --brand-header-line: #6f86a8;
  --brand-header-shadow: 0 1px 3px rgb(0 0 0 / 15%);

  /* Accent: primary buttons, hover, open review items */
  --color-accent: #b4530a;
  --color-accent-dark: #8a3d06;
  --color-accent-light: #fdf0e4;

  /* Text */
  --color-text: #0e1a2b;
  --color-text-secondary: #4a5568;
  --color-text-nav: #2e3a4b;
  --color-text-label: #5a6575;
  /* Placeholders in fields (always white): lighter than entered text, but
     4.6 : 1 on white (WCAG 1.4.3). The browser's own colour was too light. */
  --color-placeholder: #6b7685;

  /* Backgrounds */
  --color-bg: #f3f5f8;
  --color-surface: #fff;
  --color-selected: #f2f5fa;
  --color-nav-active: #e8eef6;

  /* Borders and dividers */
  --color-border: #dce1e8;
  --color-divider: #edf0f4;
  --color-divider-strong: #e3e7ed;
  /* The edge of a control reaches 3 : 1 on white and on --color-bg (WCAG
     1.4.11): input fields 3.9 : 1 and 3.5 : 1, choice tiles, secondary and
     segmented buttons, the file button and the links shown as white boxes
     (tiles of the home page, jump links of the website) 3.5 : 1 and
     3.2 : 1, a little lighter than the fields. */
  --color-input-border: #768396;
  --color-choice-border: #7d8a9b;

  /* States; always shown together with text, never by colour alone */
  --color-success: #1e5a44;
  --color-success-bg: #e4f2eb;
  --color-error: #8e1f1f;
  --color-error-bg: #f8e6e6;
  --color-error-dark: #6e1717;
  --color-avatar: #f2a65a;

  /* Status pills (from the design draft): text colour on a light background */
  --status-neutral: #3d4654;
  --status-neutral-bg: #eef0f3;
  --status-submitted: #1b4c8c;
  --status-submitted-bg: #e3ecf8;
  --status-review: var(--color-accent-dark);
  --status-review-bg: var(--color-accent-light);
  --status-costing: #5b2a7a;
  --status-costing-bg: #f1eaf7;
  --status-approval: #7a3300;
  --status-approval-bg: #fbe3cc;
  --status-done: var(--color-success);
  --status-done-bg: var(--color-success-bg);
  --status-stopped: var(--color-error);
  --status-stopped-bg: var(--color-error-bg);

  /* Fonts */
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Shapes and sizes */
  --radius-control: 6px;
  --radius-card: 8px;
  --control-height: 44px;
}
