/*
 * Colour tokens. White, grey and lime (logo lime #b0d442, read from the pixels of investlean-logo.png).
 * Lime is an accent and a button/band background with DARK text; it is never body text on white.
 * Dark block is repeated for the system setting and for the manual switch; bin/check_contrast.php checks both
 * and that the two copies are identical.
 */
:root {
  color-scheme: light;
  --brand-lime: #b0d442;
  --brand-ink: #14181c;

  --c-bg: #ffffff;
  --c-bg-alt: #f2f3f0;
  --c-surface: #ffffff;
  --c-surface-2: #f7f8f5;
  --c-text: #1f2328;
  --c-text-muted: #4a5159;
  --c-heading: #12161a;
  --c-accent: #4a5e0b;          /* olive: text accent on white, eyebrows, links */
  --c-accent-line: #7f9a1c;     /* lime-olive: icons, lines (3:1 on white) */
  --c-link: #3d4f08;
  --c-border: #d6d9d1;
  --c-input-border: #787f76;
  --c-focus: #2c3a05;

  --c-btn-bg: #b0d442;
  --c-btn-bg-hover: #c2e25c;
  --c-btn-text: #14181c;
  --c-btn2-text: #1f2328;
  --c-btn2-border: #787f76;

  --c-belt: #22262b;
  --c-belt-text: #f2f4ee;
  --c-belt-muted: #bcc2b6;
  --c-belt-accent: #b0d442;
  --c-belt-focus: #d6f06f;

  --c-badge-bg: #fff3c4;
  --c-badge-text: #5a4300;
  --c-error: #a4261d;
  --c-success: #2f6b12;
  --c-plate: #ffffff;
  --glow: .22;
  --shadow: 0 1px 2px rgba(18, 22, 26, .06), 0 6px 20px rgba(18, 22, 26, .06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --c-bg: #121417;
    --c-bg-alt: #181b1f;
    --c-surface: #1d2126;
    --c-surface-2: #23282e;
    --c-text: #eceee8;
    --c-text-muted: #adb3a9;
    --c-heading: #ffffff;
    --c-accent: #b0d442;
    --c-accent-line: #b0d442;
    --c-link: #c2e25c;
    --c-border: #343a31;
    --c-input-border: #7f8678;
    --c-focus: #d6f06f;
    --c-btn-bg: #b0d442;
    --c-btn-bg-hover: #c2e25c;
    --c-btn-text: #14181c;
    --c-btn2-text: #eceee8;
    --c-btn2-border: #7f8678;
    --c-belt: #0b0d0f;
    --c-belt-text: #f2f4ee;
    --c-belt-muted: #bcc2b6;
    --c-belt-accent: #b0d442;
    --c-belt-focus: #d6f06f;
    --c-badge-bg: #4a3a00;
    --c-badge-text: #ffe9a0;
    --c-error: #ff9a90;
    --c-success: #a3dc72;
    --c-plate: #ffffff;
    --glow: .09;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --c-bg: #121417;
  --c-bg-alt: #181b1f;
  --c-surface: #1d2126;
  --c-surface-2: #23282e;
  --c-text: #eceee8;
  --c-text-muted: #adb3a9;
  --c-heading: #ffffff;
  --c-accent: #b0d442;
  --c-accent-line: #b0d442;
  --c-link: #c2e25c;
  --c-border: #343a31;
  --c-input-border: #7f8678;
  --c-focus: #d6f06f;
  --c-btn-bg: #b0d442;
  --c-btn-bg-hover: #c2e25c;
  --c-btn-text: #14181c;
  --c-btn2-text: #eceee8;
  --c-btn2-border: #7f8678;
  --c-belt: #0b0d0f;
  --c-belt-text: #f2f4ee;
  --c-belt-muted: #bcc2b6;
  --c-belt-accent: #b0d442;
  --c-belt-focus: #d6f06f;
  --c-badge-bg: #4a3a00;
  --c-badge-text: #ffe9a0;
  --c-error: #ff9a90;
  --c-success: #a3dc72;
  --c-plate: #ffffff;
  --glow: .09;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
}
