/* Design tokens and fonts shared by the public site and the editor panel. */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-500.20f45a8530a0.woff2") format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/space-grotesk-600.74399d3ac36c.woff2") format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-700.04a0491ad41d.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-400.0ceb759015a6.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-500.767677e47513.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-600.e78568807d10.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-400-italic.2d7ae5a0fa3b.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.4cc7b4398540.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.bc5ccab82723.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-mono-600.ed616eb04c5f.woff2") format('woff2'); }

:root {
  --blue: #3D16CC;
  --blue-hover: #2D0F99;
  --amber: #FCAF3B;
  --amber-tint: #FFF3DF;  /* hover on the topic filters */
  --ink: #120F24;
  --muted: #4D4867;
  --faint: #8A84A6;   /* borders of controls, text on dark backgrounds (3:1 on white) */
  --subtle: #6A6585;  /* light grey text on white and tints (4.5:1) */
  --lavender: #E9E4FF;
  --tint: #F3F1FA;
  --line: #E4E1F0;
  --field: #CFCBE0;
  --danger: #B3261E;
  --success: #1B6B3A;
  --white: #FFFFFF;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 4px;
  /* Focus ring: blue on light backgrounds (9.6:1 on white); amber on the dark and blue bands, which set --focus again. */
  --focus: 3px solid var(--blue);

  --vh: 1vh;
  --vw: 1vw;
}

/* Wide screens look like the browser is zoomed out to 80% (sizes are all px).
   The zoom shrinks vh and vw too, so use calc(100 * var(--vh)) for a share of the screen. */
@media (min-width: 1100px) {
  html { zoom: 0.8; }
  :root { --vh: 1.25vh; --vw: 1.25vw; }
}
