/* Selfievo · tokens.css — the light customer theme (plan D7).

   Source: docs/design/mock-styles.css (the CSS of the mocks), turned into
   production tokens. Changes against the mocks, for WCAG 2.2 AA (plan §4.3,
   contrast 4.5:1): the accent is #C24600 (the mock #D94E00 gives 4.2:1 with
   white text), the muted text is solid #646462, the state colours are a
   little darker, and their backgrounds are solid. tests/test_a11y.py checks
   the pairs.

   Fonts: Inter Tight (display), Manrope (text), Space Grotesk (numbers).
   SIL Open Font License 1.1 (static/fonts/OFL-*.txt). Self-hosted, latin and
   latin-ext subsets: Czech needs both (the latin-ext file alone has no
   basic Latin letters). */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/InterTight-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/InterTight-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  --bg: #F6F6F5;
  --surface: #FFFFFF;
  --surface-2: #F2F2F1;
  --surface-3: #EBEBEA;
  --border: rgba(18, 18, 18, .11);
  --border-subtle: rgba(18, 18, 18, .06);
  --border-strong: rgba(18, 18, 18, .22);

  --text: #141414;
  --text-dim: #474746;
  --text-muted: #646462;

  --accent: #C24600;
  --accent-hover: #A83C00;
  --accent-subtle: #FEF0E8;
  --accent-line: rgba(194, 70, 0, .35);
  --brand-mark: #F55B01;

  --ok: #13703F;
  --ok-bg: #E8F2ED;
  --error: #B42D29;
  --error-bg: #FAEDEC;
  --error-line: rgba(180, 45, 41, .45);
  --warn: #8A5100;
  --warn-bg: #FAF0E0;
  --warn-line: #D68C14;
  --info: #2560C0;
  --info-bg: #EAF1FB;
  --handoff: #6B3FCB;
  --handoff-bg: #F2EDFB;

  /* Destination colours (the weekly strip, the schema). White text on each. */
  --dest-queue: #2563EB;
  --dest-person: #7C3AED;
  --dest-group: #4D7C0F;
  --dest-menu: #A21CAF;
  --dest-vm: #0E7490;
  --dest-ext: #BE185D;
  --dest-end: #52525B;

  /* The states of the weekly strip (plan §4.3). */
  --closed-ink: #4A4A48;
  --closed-hatch: repeating-linear-gradient(135deg, #E4E4E1 0 6px, #EFEFED 6px 12px);
  --silence-ink: #9F2A26;
  --silence-hatch: repeating-linear-gradient(135deg, #F3D7D5 0 6px, #FBEDEC 6px 12px);
  --nobody-ink: #9F2A26;
  --nobody-stripes: repeating-linear-gradient(90deg, #F3D7D5 0 3px, #FBEDEC 3px 9px);

  /* The bar of the admin view of a customer (threads-f2 v1.4 §7.11): the
     staff colours on top of the light theme, so nobody takes the view for
     the Editor's own pages. */
  --viewbar-bg: #1B1B1A;
  --viewbar-ink: #FFFFFF;
  --viewbar-key: #FF8A47;

  --elev-1: 0 1px 2px rgba(18, 18, 18, .05), 0 1px 1px rgba(18, 18, 18, .03);
  --elev-2: 0 8px 24px rgba(18, 18, 18, .08), 0 2px 6px rgba(18, 18, 18, .05);

  --font-display: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Space Grotesk", "Inter Tight", system-ui, sans-serif;

  --r-s: 10px;
  --r-m: 14px;
  --r-l: 16px;
  --r-pill: 999px;

  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);

  --topbar-h: 56px;
  --viewbar-h: 0px;
  --rail-w: 232px;
  --aside-w: 420px;
}
