/* ProcurementOS type, spacing and shape tokens (D-101, D-105, D-110, D-132). No
   colour is named here: colours are in tokens.css. Fonts are self-hosted under
   the SIL Open Font License 1.1 (D-105, VS-5); the licence texts sit beside them
   in ui/. Page titles use Instrument Serif and nothing else does (VS-1); headings
   and body use Public Sans (VS-2, VS-4); labels, codes and references use IBM Plex
   Mono (VS-3). */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/shell/public-sans-400.woff2) format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/shell/public-sans-600.woff2) format("woff2");
}

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/shell/public-sans-700.woff2) format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/shell/instrument-serif-400.woff2) format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/shell/ibm-plex-mono-400.woff2) format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/shell/ibm-plex-mono-500.woff2) format("woff2");
}

:root {
  /* Type. Sizes in rem, so the browser's text size applies. Body is 16px and
     tables, lists, panels and the sidebar 14 to 15px; mono labels are never
     below 12px (VS-35). */
  --pos-font-body: "Public Sans", system-ui, "Segoe UI", sans-serif;
  --pos-font-heading: "Instrument Serif", Georgia, serif;
  --pos-font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --pos-text-label: 0.75rem;
  --pos-text-small: 0.8125rem;
  --pos-text-minor: 0.875rem;
  --pos-text-compact: 0.90625rem;
  --pos-text-medium: 0.9375rem;
  --pos-text-base: 1rem;
  --pos-text-h3: 1.0625rem;
  --pos-text-h2: 1.25rem;
  --pos-text-h1: 2.25rem;
  --pos-line-height: 1.55;

  /* Spacing scale */
  --pos-space-1: 0.25rem;
  --pos-space-2: 0.5rem;
  --pos-space-2-5: 0.625rem;
  --pos-space-3: 0.75rem;
  --pos-space-3-5: 0.875rem;
  --pos-space-4: 1rem;
  --pos-space-5: 1.5rem;
  --pos-space-6: 2rem;
  --pos-space-7: 3rem;

  /* Shape: square containers, inputs and buttons (VS-6); only status chips and
     count badges are pills (VS-7). */
  --pos-radius: 0;
  --pos-radius-pill: 999px;
  --pos-side-width: 15.5rem;
  --pos-content-width: 82.5rem;
  --pos-measure: 70ch;
}
