/*
 * Rdood Mail colours for Bulwark, light (:root) and dark (.dark).
 *
 * Bulwark keeps only :root and .dark rules from a theme and removes anything
 * that loads a file, so this file is colour tokens and nothing else. The
 * fonts come from /rdood-brand/fonts.css, which nginx adds to every page.
 * Keep CSS function names that load files out of these comments too: the
 * sanitizer matches them before it strips comments and would cut a rule.
 *
 * Dark is the brand as it is: lime on ink, from the Roundcube skin's
 * _variables.less. Light has no brand original. It follows the logo: olive
 * fills carry lime text, and lime is only ever a tint under dark text, since
 * lime text on white is unreadable (1.3:1). Contrast, checked: text 19:1
 * (light) and 18:1 (dark), muted text 5.6:1 or more, primary button text
 * 8.3:1 (light) and 15:1 (dark).
 */

:root {
  --color-background: #FFFFFF;
  --color-foreground: #0A0E0C;
  --color-border: #DCE3D8;
  --color-input: #B4C0AE;
  --color-ring: #304400;

  --color-primary: #304400;
  --color-primary-foreground: #C6F24E;
  --color-secondary: #F4F7F1;
  --color-secondary-foreground: #0A0E0C;
  --color-muted: #EEF2EB;
  --color-muted-foreground: #56635B;
  --color-accent: #F2FCD8;
  --color-accent-foreground: #304400;
  --color-destructive: #B42318;
  --color-destructive-foreground: #FFFFFF;

  --color-popover: #FFFFFF;
  --color-popover-foreground: #0A0E0C;
  --color-card: #FFFFFF;
  --color-card-foreground: #0A0E0C;

  --color-sidebar: #F4F7F1;
  --color-sidebar-foreground: #0A0E0C;
  --color-sidebar-border: #DCE3D8;
  --color-sidebar-accent: #E6ECE2;
  --color-sidebar-accent-foreground: #0A0E0C;

  --color-success: #1E7B3A;
  --color-success-foreground: #FFFFFF;
  --color-warning: #8F5A00;
  --color-warning-foreground: #FFFFFF;
  --color-info: #1D64A8;
  --color-info-foreground: #FFFFFF;

  --color-selection: #EBFAC1;
  --color-selection-foreground: #1F2D00;
  --color-unread: #304400;

  --color-chart-1: #4D7C0F;
  --color-chart-2: #1D64A8;
  --color-chart-3: #B7791F;
  --color-chart-4: #C2410C;
  --color-chart-5: #6D4BC9;
}

.dark {
  --color-background: #0A0E0C;
  --color-foreground: #F3F8F2;
  --color-border: #243129;
  --color-input: #3A4D41;
  --color-ring: #C6F24E;

  --color-primary: #C6F24E;
  --color-primary-foreground: #0A0E0C;
  --color-secondary: #151E19;
  --color-secondary-foreground: #F3F8F2;
  --color-muted: #151E19;
  --color-muted-foreground: #96A69C;
  --color-accent: #212914;
  --color-accent-foreground: #D8FF6E;
  --color-destructive: #FF8A7A;
  --color-destructive-foreground: #0A0E0C;

  --color-popover: #151E19;
  --color-popover-foreground: #F3F8F2;
  --color-card: #0F1512;
  --color-card-foreground: #F3F8F2;

  --color-sidebar: #070A09;
  --color-sidebar-foreground: #DCE5DB;
  --color-sidebar-border: #1A2420;
  --color-sidebar-accent: #151E19;
  --color-sidebar-accent-foreground: #F3F8F2;

  --color-success: #5BD68A;
  --color-success-foreground: #0A0E0C;
  --color-warning: #F2C14E;
  --color-warning-foreground: #0A0E0C;
  --color-info: #7CC4FA;
  --color-info-foreground: #0A0E0C;

  --color-selection: #2C3718;
  --color-selection-foreground: #D8FF6E;
  --color-unread: #C6F24E;

  --color-chart-1: #C6F24E;
  --color-chart-2: #7CC4FA;
  --color-chart-3: #F2C14E;
  --color-chart-4: #FF8A7A;
  --color-chart-5: #B9A3FF;
}
