/* Ember: a warm workshop. Graphite and ivory.

   The first two blocks are what every variation of the theme shares. Each
   variation then sets what is tapped and what a notice looks like.

   Six colours are states, and no two of them may look alike:
   - action: what can be tapped, and "you"
   - live: a microphone is open. Purple, and never red or orange.
   - notice: something to read
   - alert: trouble, and nothing else. Lost, a breakdown, ending a Drive.
   - go: connected, rolling, here
   - gather: gathering and regrouping, a teal (round 54)

   The lead has a colour too, pink, which none of the six uses.

   Each `--g4-on-*` is the text colour for the fill of the same name, and is
   a property of that fill: change one and theme-contrast.test.js fails
   until the other is retuned. The values come from the design canvas,
   round five (docs/design/handoff-requests/). */

[data-theme="ember"][data-mode="dark"] {
  color-scheme: dark;
  --g4-bg: #171412;
  --g4-surface: #24201c;
  --g4-surface-sunk: #1d1916;
  --g4-text: #f5efe6;
  --g4-text-muted: #b8ad9f;
  --g4-border: #3a342e;
  --g4-border-strong: #7d7166;
  --g4-pip-edge: transparent;   /* A lit pip's edge (round 39): none on a dark page, where the path colours hold 3:1 */

  --g4-live: #a666ff;            /* a microphone is open */
  --g4-on-live: #1c0a3d;
  --g4-alert: #ff6a47;           /* trouble, and nothing else */
  --g4-on-alert: #1c0500;
  --g4-danger-text: #ff6a47;
  --g4-go: #5fd39a;              /* connected, rolling, here */
  --g4-on-go: #04170d;
  --g4-gather: #00eddb;          /* gathering and regrouping: teal, never go, action or notice (round 54) */
  --g4-on-gather: #04201c;
  --g4-role-lead: #f5189f;       /* the lead, and nobody else */
  --g4-on-role-lead: #14050d;
  --g4-brand-lead: #f5189f;      /* the logo's lead capsule on a page: the brand, never on a map (round 56) */
  --g4-brand-accent: #ff5cc4;    /* the brand's moments only: the welcome page and first steps (round 60, Q151 A) */
  --g4-on-brand-accent: #2a0019;
  --g4-brand-edge: #eef3fa;      /* the centre button's disc edge: light on a dark bar */
  --g4-favorite: #ff8fab;       /* a favorite's heart: a soft rose, never the lead's pink; on the map only as a mark's badge (round 38) */
  --g4-selected: #ff66e8;       /* the mark picked on the Map: a hot-pink ring, never a fill, never the lead's (round 38) */
  /* A group's roles on its Members page (design round 37): the owner teal, an admin sky blue, a moderator lilac. Text on the page, never a state and never on the map. */
  --g4-group-owner: #4fe0cf;
  --g4-group-admin: #8fb4ff;
  --g4-group-moderator: #c9b6ff;
  --g4-role-driver: #f5efe6;
  --g4-on-role-driver: #171412;
  --g4-stale: #94897d;           /* Last seen: never a live colour */
  --g4-on-stale: #171412;

  --g4-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 28px rgba(0, 0, 0, 0.45);
}

[data-theme="ember"][data-mode="light"] {
  color-scheme: light;
  --g4-bg: #f2ede7;
  --g4-surface: #ffffff;
  --g4-surface-sunk: #eee8e1;
  --g4-text: #1c1714;
  --g4-text-muted: #594f46;
  --g4-border: #dcd3c8;
  --g4-border-strong: #84776a;
  --g4-pip-edge: #1c1714;   /* A lit pip's edge (round 39): dark, so a pale path colour holds 3:1 here */

  --g4-live: #5a1ee6;            /* a microphone is open */
  --g4-on-live: #ffffff;
  --g4-alert: #b32a0e;           /* trouble, and nothing else */
  --g4-on-alert: #ffffff;
  --g4-danger-text: #b32a0e;
  --g4-go: #0f6e55;              /* connected, rolling, here */
  --g4-on-go: #ffffff;
  --g4-gather: #128187;          /* gathering and regrouping: teal, never go, action or notice (round 54) */
  --g4-on-gather: #ffffff;
  --g4-role-lead: #c9107f;       /* the lead, and nobody else */
  --g4-on-role-lead: #ffffff;
  --g4-brand-lead: #c9107f;      /* the logo's lead capsule on a page: the brand, never on a map (round 56) */
  --g4-brand-accent: #c9107f;    /* the brand's moments only: the welcome page and first steps (round 60, Q151 A) */
  --g4-on-brand-accent: #ffffff;
  --g4-brand-edge: #0b1220;      /* the centre button's disc edge: the disc's own dark on a light bar */
  --g4-favorite: #d43d6e;       /* a favorite's heart: a soft rose, never the lead's pink; on the map only as a mark's badge (round 38) */
  --g4-selected: #b0189c;       /* the mark picked on the Map: a hot-pink ring, never a fill, never the lead's (round 38) */
  /* A group's roles: the same three, deep enough to read on light paper. */
  --g4-group-owner: #0b6b66;
  --g4-group-admin: #2a55b8;
  --g4-group-moderator: #5d4f80;
  --g4-role-driver: #1c1714;
  --g4-on-role-driver: #f2ede7;
  --g4-stale: #6b6157;           /* Last seen: never a live colour */
  --g4-on-stale: #f2ede7;

  --g4-shadow: 0 1px 2px rgba(12, 22, 38, 0.1), 0 8px 22px rgba(12, 22, 38, 0.1);
}

/* Classic. Ivory to tap, yellow for notices. */
[data-theme="ember"][data-variant="classic"][data-mode="dark"] {
  --g4-action: #f5efe6;          /* what can be tapped, and "you" */
  --g4-on-action: #171412;
  --g4-notice: #ffd25e;          /* something to read */
  --g4-on-notice: #261c00;
  --g4-warn-text: #ffd25e;
  --g4-link: #f5efe6;
  --g4-focus: #f5efe6;
}

[data-theme="ember"][data-variant="classic"][data-mode="light"] {
  --g4-action: #1c1714;          /* what can be tapped, and "you" */
  --g4-on-action: #ffffff;
  --g4-notice: #ffd25e;          /* something to read */
  --g4-on-notice: #261c00;
  --g4-warn-text: #6f5200;
  --g4-link: #1c1714;
  --g4-focus: #1c1714;
}

/* Brass. Brass to tap, a cool blue for notices. */
[data-theme="ember"][data-variant="brass"][data-mode="dark"] {
  --g4-action: #e2b659;          /* what can be tapped, and "you" */
  --g4-on-action: #241a00;
  --g4-notice: #9fd3ff;          /* something to read */
  --g4-on-notice: #04202e;
  --g4-warn-text: #9fd3ff;
  --g4-link: #e2b659;
  --g4-focus: #e2b659;
}

[data-theme="ember"][data-variant="brass"][data-mode="light"] {
  --g4-action: #765600;          /* what can be tapped, and "you" */
  --g4-on-action: #ffffff;
  --g4-notice: #9fd3ff;          /* something to read */
  --g4-on-notice: #04202e;
  --g4-warn-text: #0a5c9e;
  --g4-link: #765600;
  --g4-focus: #765600;
}

/* Forge. Blue to tap, yellow for notices. */
[data-theme="ember"][data-variant="forge"][data-mode="dark"] {
  --g4-action: #7cc4ff;          /* what can be tapped, and "you" */
  --g4-on-action: #04202e;
  --g4-notice: #ffd25e;          /* something to read */
  --g4-on-notice: #261c00;
  --g4-warn-text: #ffd25e;
  --g4-link: #7cc4ff;
  --g4-focus: #7cc4ff;
}

[data-theme="ember"][data-variant="forge"][data-mode="light"] {
  --g4-action: #0a5c9e;          /* what can be tapped, and "you" */
  --g4-on-action: #ffffff;
  --g4-notice: #ffd25e;          /* something to read */
  --g4-on-notice: #261c00;
  --g4-warn-text: #6f5200;
  --g4-link: #0a5c9e;
  --g4-focus: #0a5c9e;
}

/* Coal. Nearly one colour on a darker ground, with blue notices. */
[data-theme="ember"][data-variant="coal"][data-mode="dark"] {
  --g4-bg: #100e0d;
  --g4-surface: #1f1b18;
  --g4-surface-sunk: #171412;
  --g4-role-driver: #f5efe6;
  --g4-on-role-driver: #100e0d;
  --g4-on-stale: #100e0d;
  --g4-action: #f5efe6;          /* what can be tapped, and "you" */
  --g4-on-action: #171412;
  --g4-notice: #7cc4ff;          /* something to read */
  --g4-on-notice: #04202e;
  --g4-warn-text: #7cc4ff;
  --g4-link: #f5efe6;
  --g4-focus: #f5efe6;
}

[data-theme="ember"][data-variant="coal"][data-mode="light"] {
  --g4-action: #1c1714;          /* what can be tapped, and "you" */
  --g4-on-action: #ffffff;
  --g4-notice: #7cc4ff;          /* something to read */
  --g4-on-notice: #04202e;
  --g4-warn-text: #0a5c9e;
  --g4-link: #1c1714;
  --g4-focus: #1c1714;
}

/* Signal. Yellow to tap, plain ivory notices. */
[data-theme="ember"][data-variant="signal"][data-mode="dark"] {
  --g4-action: #ffc857;          /* what can be tapped, and "you" */
  --g4-on-action: #261a00;
  --g4-notice: #f5efe6;          /* something to read */
  --g4-on-notice: #171412;
  --g4-warn-text: #f5efe6;
  --g4-link: #ffc857;
  --g4-focus: #ffc857;
}

[data-theme="ember"][data-variant="signal"][data-mode="light"] {
  --g4-action: #765000;          /* what can be tapped, and "you" */
  --g4-on-action: #ffffff;
  --g4-notice: #1c1714;          /* something to read */
  --g4-on-notice: #f5efe6;
  --g4-warn-text: #1c1714;
  --g4-link: #765000;
  --g4-focus: #765000;
}
