/* ---------- brand core: colours and type ----------
   The one place the palette and type stacks live. Pages link this in <head> and use the variables.
   Scripts read colours from here too (getComputedStyle), so a colour change is this file only.
   The name and the mark live in brand.js. */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root{
  color-scheme:light;
  /* palette */
  --obsidian:#0A0A0A;   /* ink, dark buttons */
  --graphite:#6B6B6B;
  --stone:#D6D6D3;      /* frames, segmented controls */
  --bone:#F4F4F2;       /* raised tiles, light text on colour */
  --signal:#2563FF;     /* the one accent */
  --sage:#C9CDC4;       /* secondary: softer than Signal, for large fills; text on it is obsidian */
  --sage-deep:#5C6656;  /* sage for lines and small text on light grounds */
  --sage-tint:#DDE1D7;  /* sage wash */
  --red:#E5322D;        /* recording only */
  --ground:#E6E6E3;     /* page ground */
  --panel:#ECECE9;
  --paper:#FBFBF9;      /* 3D fills, code cards */
  --rule:#CFCFCB;       /* 1px grid lines */
  --ink-2:#3B3B3D;
  --ink-3:#7E7E81;
  /* type */
  --sans:"Neue Haas Grotesk Display Pro","Helvetica Now Display","Helvetica Neue",Helvetica,"Inter Tight",Arial,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  /* motion */
  --snap:cubic-bezier(.16,1,.3,1);
  --swift:cubic-bezier(.65,0,.35,1);
}

/* the mark takes the text colour unless a page says otherwise */
:where(svg:has(> use[href="#mark"])){fill:currentColor}
