/*
 * Iraq View 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 /iraqview-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.
 *
 * The values are the Iraq View app's (resources/css/app.css in the IraqView
 * repo), mixed the same way. Light follows the app's "light flip": white and
 * silver with black ink and the brand pink #C2185B for fills and text. Dark
 * is pink on warm charcoal, with three departures, each for legibility:
 *   - primary is the brand's bright pink #FF4FA0 with dark ink on it. Bulwark
 *     uses primary as text more often than as a fill, and #C2185B as text on
 *     charcoal is 3:1. No pink carries both white text and charcoal text.
 *   - secondary is the brand surface, not the hairline colour: Bulwark paints
 *     its rail and folder pane with it.
 *   - the red is the brand red lifted 10% toward white, for error text on
 *     cards.
 * Contrast, checked: text 10:1 or more, muted text 4.8:1 or more, primary
 * button text 5.8:1, primary as text 5.2:1 or more, the focus ring and field
 * edges 3:1 or more on every surface they sit on.
 */

:root {
  --color-background: #FFFFFF;
  --color-foreground: #1A161D;
  --color-border: #D9D4DB;
  --color-input: #908B93;
  --color-ring: #C2185B;

  --color-primary: #C2185B;
  --color-primary-foreground: #FFFFFF;
  --color-secondary: #F5F3F6;
  --color-secondary-foreground: #1A161D;
  --color-muted: #F5F3F6;
  --color-muted-foreground: #5B575E;
  --color-accent: #FDEEF1;
  --color-accent-foreground: #1A161D;
  --color-destructive: #A33C40;
  --color-destructive-foreground: #FFFFFF;

  --color-popover: #FFFFFF;
  --color-popover-foreground: #1A161D;
  --color-card: #FFFFFF;
  --color-card-foreground: #1A161D;

  --color-sidebar: #F5F3F6;
  --color-sidebar-foreground: #1A161D;
  --color-sidebar-border: #D9D4DB;
  --color-sidebar-accent: #ECE7EE;
  --color-sidebar-accent-foreground: #1A161D;

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

  --color-selection: #FBE2E6;
  --color-selection-foreground: #1A161D;
  --color-unread: #C2185B;

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

.dark {
  --color-background: #1A161D;
  --color-foreground: #ECE7EE;
  --color-border: #3A3340;
  --color-input: #756D7A;
  --color-ring: #FF4FA0;

  --color-primary: #FF4FA0;
  --color-primary-foreground: #1A161D;
  --color-secondary: #252028;
  --color-secondary-foreground: #ECE7EE;
  --color-muted: #252028;
  --color-muted-foreground: #AAA1AE;
  --color-accent: #3A3340;
  --color-accent-foreground: #ECE7EE;
  --color-destructive: #EA5E5F;
  --color-destructive-foreground: #1A161D;

  --color-popover: #252028;
  --color-popover-foreground: #ECE7EE;
  --color-card: #252028;
  --color-card-foreground: #ECE7EE;

  --color-sidebar: #1A161D;
  --color-sidebar-foreground: #ECE7EE;
  --color-sidebar-border: #3A3340;
  --color-sidebar-accent: #3A3340;
  --color-sidebar-accent-foreground: #ECE7EE;

  --color-success: #5BD68A;
  --color-success-foreground: #1A161D;
  --color-warning: #F0B429;
  --color-warning-foreground: #1A161D;
  --color-info: #7CC4FA;
  --color-info-foreground: #1A161D;

  --color-selection: #3C1D2A;
  --color-selection-foreground: #FFFFFF;
  --color-unread: #FF4FA0;

  --color-chart-1: #FF4FA0;
  --color-chart-2: #7CC4FA;
  --color-chart-3: #F0B429;
  --color-chart-4: #5BD68A;
  --color-chart-5: #B9A3FF;
}
