/* ============================================================
   Fasra skin for Baseline
   fasra-skin.css

   Loaded once, straight after baseline.css, from core/templates/head.html.
   It restates Baseline's tokens with Fasra's values (slate greys, the leaf
   accent, Inter, tighter radii), light and dark, so every rule that reads a
   token changes at once and no page is edited. Delete the one <link> line in
   head.html and Baseline looks as it did.

   Source: the g-design tokens Fasra computes (gsp-fasra site/os/ui and
   site/fasra.css), by way of the draft at gsp-fasra site/os/legacy/
   baseline-skin.css. The draft was blocked because the accent doubled as the
   hot colour. baseline.css now has --c-hot for alerts, failures and bad
   scores, so the leaf accent no longer turns warnings green.

   It does not reach inline styles or hard-coded hex in page fragments.
   George the knitted mascot is raster art and is not touched.
   ============================================================ */

@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable.woff2") format("woff2");
}

:root {
  --c-bg:            #f9f9fb;
  --c-bg-raised:     #fcfcfd;
  --c-bg-sunken:     #f0f0f3;
  --c-bg-hover:      #e8e8ec;
  --c-border:        #cdced6;
  --c-border-subtle: #d9d9e0;
  --c-text:          #1c2024;
  --c-text-secondary:#60646c;
  --c-text-tertiary: #696e77;

  --c-accent:        #1e7f53;
  --c-accent-hover:  #1a6f49;
  --c-accent-soft:   rgba(30, 127, 83, 0.08);
  --c-hot:           #c82b30;
  --c-hot-hover:     #b0252a;
  --c-hot-soft:      rgba(200, 43, 48, 0.08);
  --c-blue:          #0d6cc1;
  --c-blue-soft:     rgba(13, 108, 193, 0.08);
  --c-green:         #207952;
  --c-green-soft:    rgba(32, 121, 82, 0.08);
  --c-amber:         #a05e04;
  --c-amber-soft:    rgba(160, 94, 4, 0.10);

  --ff-product: "InterVariable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ff-sans:    var(--ff-product);
  --ff-serif:   var(--ff-product);
  --ff-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 4.5px;
  --r-md: 6.5px;
  --r-lg: 9.5px;
  --r-xl: 12px;

  --shadow-sm: none;
  --shadow-md: 0 0 0 1px rgba(2, 7, 47, 0.06);
  --shadow-lg: 0 0 0 1px rgba(2, 7, 47, 0.08), 0 8px 24px rgba(0, 10, 30, 0.10), 0 2px 8px rgba(0, 10, 30, 0.06);
}

[data-theme="dark"] {
  --c-bg:            #111113;
  --c-bg-raised:     #18191b;
  --c-bg-sunken:     #0c0c0e;
  --c-bg-hover:      #212225;
  --c-border:        #43484e;
  --c-border-subtle: #363a3f;
  --c-text:          #edeef0;
  --c-text-secondary:#b0b4ba;
  --c-text-tertiary: #8b9098;

  /* The accent is both a fill under white text and a text colour, so dark
     takes the one green that carries both. */
  --c-accent:        #23905e;
  --c-accent-hover:  #1e7f53;
  --c-accent-soft:   rgba(91, 210, 154, 0.12);
  /* Hot is a text colour and a fill under white (badges, error toasts), so
     dark takes a red that carries both rather than the pale text-only red. */
  --c-hot:           #e5484d;
  --c-hot-hover:     #ec5d5e;
  --c-hot-soft:      rgba(229, 72, 77, 0.14);
  --c-blue:          #70b8ff;
  --c-blue-soft:     rgba(112, 184, 255, 0.12);
  --c-green:         #3dd68c;
  --c-green-soft:    rgba(61, 214, 140, 0.12);
  --c-amber:         #ffca16;
  --c-amber-soft:    rgba(255, 202, 22, 0.12);

  --shadow-sm: none;
  --shadow-md: 0 0 0 1px rgba(225, 237, 255, 0.08);
  --shadow-lg: 0 0 0 1px rgba(225, 237, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.42), 0 2px 8px rgba(0, 0, 0, 0.32);
}
