/* iQ's one look: the font, text sizes, line heights, weights and spacing every iQ app uses (2 Dec 2026:
   "the CRM and all our apps should have the same font ... Same fonts is a way to globally change these things").
   Taken from the Office (Paperclip), chosen for its text: Inter, a 14 px body with 24 px lines, 12 px labels and
   11 px small print. Change a value here and every app follows: the iQ desktop builds it in, the front door adds it
   to every CRM page, and BackStage and AdoptiQ link to it at /look/iq-look.css.
   Colours stay with each app (iQ keeps its blue). Inter: SIL Open Font License, fonts/OFL.txt. */

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

:root {
  --iq-font: "InterVariable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --iq-font-mono: ui-monospace, "Cascadia Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Text sizes: one ladder, nothing in between. */
  --iq-size-nano: 10px;   /* badges, counts */
  --iq-size-micro: 11px;  /* times, small print under a message */
  --iq-size-xs: 12px;     /* labels, list details, buttons in a row */
  --iq-size-sm: 14px;     /* body text: messages, lists, documents, inputs */
  --iq-size-base: 16px;   /* text you type on a phone (stops it zooming), large body */
  --iq-size-lg: 18px;     /* window and section titles */
  --iq-size-xl: 20px;
  --iq-size-2xl: 24px;    /* page headings */
  --iq-size-3xl: 30px;

  /* Line heights. */
  --iq-leading-tight: 1.25;  /* headings, one-line labels */
  --iq-leading-snug: 1.4;    /* list rows, buttons */
  --iq-leading-body: 1.7;    /* reading text: 14 px on 24 px lines */

  /* Weights. */
  --iq-weight-normal: 400;
  --iq-weight-medium: 500;
  --iq-weight-semibold: 600;
  --iq-weight-bold: 700;

  /* Spacing: steps of 4 px. */
  --iq-space-1: 4px;
  --iq-space-2: 8px;
  --iq-space-3: 12px;
  --iq-space-4: 16px;
  --iq-space-5: 20px;
  --iq-space-6: 24px;
  --iq-space-8: 32px;

  /* Corners. */
  --iq-radius-sm: 6px;
  --iq-radius: 8px;
  --iq-radius-bubble: 16px;

  --iq-tracking-heading: -0.011em;
}

/* Apps that opt in with class "iq-look" (or the CRM, through the front door) get the font and body rhythm. */
.iq-look,
.iq-look input,
.iq-look textarea,
.iq-look select,
.iq-look button {
  font-family: var(--iq-font);
}
.iq-look {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.iq-look code,
.iq-look pre,
.iq-look kbd {
  font-family: var(--iq-font-mono);
}
