/* SCF Tasks design tokens.
   The company accent is powder blue. One accent on the whole surface. Text sitting on an accent
   fill is always the dark ink of the accent family, never light.
   The complete light palette is defined on bare :root. Dark mode redefines only the tokens that
   change, so no colour has its only definition inside a media query. */

:root {
  /* grounds */
  --ground: #EEF2F7;
  --ground-2: #E4EAF2;
  --paper: #FBFCFE;
  --paper-2: #F4F7FB;

  /* rules */
  --rule: #D7DFE9;
  --rule-2: #BFCBDA;

  /* ink */
  --ink: #15283D;
  --ink-2: #2E4159;
  --muted: #5A6B7F;
  --ghost: #8A99AB;

  /* the accent: powder blue. These six never change between the two modes. */
  --accent: #A7C7E7;
  --accent-deep: #8FB4DE;
  --accent-strong: #2F6099;
  --accent-ink: #15283D;
  --accent-ink-2: #3E5B78;
  --accent-soft: #E8F0F8;

  /* The accent written as words. On a light ground that is the strong blue. On a dark ground the
     strong blue is unreadable, so the role takes the pale accent instead. Both values come from the
     company set, so the palette does not grow. */
  --accent-text: #2F6099;

  /* the one state colour, for removing a task */
  --bad: #B3341C;
  --bad-soft: #FAE7E1;

  /* type */
  --f-display: 'Outfit', system-ui, sans-serif;
  --f-ui: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* shape. Three steps and a pill, nothing else. */
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 6px;
  --r-cell: 2px;

  /* motion. Two curves. */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.4, .44, 1);

  /* shadows, only these two */
  --shadow-sheet: 0 18px 44px -28px rgba(21, 40, 61, .28);
  --shadow-pill: 0 10px 24px -12px rgba(47, 96, 153, .45);

  /* the veil behind a sheet */
  --veil: rgba(21, 40, 61, .32);

  /* the inset highlight on the top edge of a sheet */
  --lip: rgba(255, 255, 255, .7);

  /* the one sweep of light across a strip that has just been finished */
  --sheen: rgba(255, 255, 255, .65);

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E1722;
    --ground-2: #121D2A;
    --paper: #152230;
    --paper-2: #1B2A3A;
    --rule: #243447;
    --rule-2: #31445A;
    --ink: #EAF1F8;
    --ink-2: #C9D6E4;
    --muted: #93A5B8;
    --ghost: #65788C;
    --accent-soft: #1D3247;
    --accent-text: #A7C7E7;
    --bad: #E0705A;
    --bad-soft: #3A1A14;
    --veil: rgba(5, 10, 16, .6);
    --lip: rgba(255, 255, 255, .06);
    --sheen: rgba(255, 255, 255, .26);
    --shadow-sheet: 0 18px 44px -28px rgba(0, 0, 0, .6);
    --shadow-pill: 0 10px 24px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #0E1722;
  --ground-2: #121D2A;
  --paper: #152230;
  --paper-2: #1B2A3A;
  --rule: #243447;
  --rule-2: #31445A;
  --ink: #EAF1F8;
  --ink-2: #C9D6E4;
  --muted: #93A5B8;
  --ghost: #65788C;
  --accent-soft: #1D3247;
  --accent-text: #A7C7E7;
  --bad: #E0705A;
  --bad-soft: #3A1A14;
  --veil: rgba(5, 10, 16, .6);
  --lip: rgba(255, 255, 255, .06);
  --sheen: rgba(255, 255, 255, .26);
  --shadow-sheet: 0 18px 44px -28px rgba(0, 0, 0, .6);
  --shadow-pill: 0 10px 24px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
