/* Elbow's fonts and design tokens, linked by the site and the dashboard. Fonts are self-hosted, cut to Latin and to the
   weights and widths in use: about 38 KB in all. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 800 900; font-stretch: 100% 116%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Arial scaled to Archivo's and Hanken Grotesk's widths, so text set before the web fonts arrive wraps the same and
   the page doesn't jump when they swap in. Overrides are divided by size-adjust; measured with fontTools. */
@font-face { font-family: "Archivo fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"); font-weight: 800 900; size-adjust: 125.2%; ascent-override: 70.1%; descent-override: 16.8%; line-gap-override: 0%; }
@font-face { font-family: "Hanken fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"); size-adjust: 100.5%; ascent-override: 99.5%; descent-override: 30.1%; line-gap-override: 0%; }

:root {
  --display: "Archivo", "Archivo fallback", "Arial Black", sans-serif;
  --body: "Hanken Grotesk", "Hanken fallback", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-base: 15px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 28px;
  --text-3xl: 40px;

  --bg: #F5F7FC;
  --card: #FFFFFF;
  /* Type is neutral ink. Blue is for marks: fills, rings, chart lines and the logo, never words. */
  --fg: #17181C;
  --fg2: #5A5D66;
  --mark: #0F2F8A;
  --line: rgba(15, 47, 138, .2);
  --accent: #CC2F28;
  --on-accent: #FFFFFF;
  /* One button red for every ground: cobalt's lighter --accent is too pale under lemon text. */
  --button: #CC2F28;
  --cheap: #127A5F;

  --gutter: clamp(16px, 4vw, 56px);
  --measure: 1120px;
  --section-y: clamp(64px, 9vw, 112px);
  --radius-sm: 8px;
  --radius-lg: 12px;

  --ease-elbow: cubic-bezier(.16, .84, .24, 1);
  color-scheme: light;
}

.cobalt {
  --bg: #0F2F8A;
  --card: #0B2470;
  --fg: #FCEFB4;
  --fg2: #CFCBA6;
  --mark: #FCEFB4;
  --line: rgba(252, 239, 180, .24);
  --accent: #F55A55;
  --on-accent: #FCEFB4;
  --cheap: #7FD9B9;
  background: var(--bg);
  color: var(--fg);
}

.cream {
  --bg: #FFFFFF;
  --card: #F5F7FC;
  /* Spelled out again so a cream panel inside a cobalt section (the site's product window) gets light-ground colours. */
  --fg: #17181C;
  --fg2: #5A5D66;
  --mark: #0F2F8A;
  --line: rgba(15, 47, 138, .2);
  --accent: #CC2F28;
  --on-accent: #FFFFFF;
  --cheap: #127A5F;
  background: var(--bg);
  color: var(--fg);
}

.term {
  --fg: #FCEFB4;
  --fg2: #A9B3D9;
  --mark: #FCEFB4;
  --line: rgba(252, 239, 180, .16);
  background: #0B1430;
  color: var(--fg);
}
