/* Inter is served by us (SIL OFL, assets/fonts/OFL.txt): the same letters on every computer and phone.
 * Variable font, Latin + Latin Extended + Cyrillic, weights 100-900. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/Inter-Variable.woff2") format("woff2");
}

/* Typography tokens and hierarchy. Loaded after every other stylesheet.
 * Rule: other stylesheets use var(--fs-*) and var(--fw-*) only (tests/type-scale.test.js enforces it).
 * Change a size here and it changes everywhere.
 *
 *   xs 12  chips, captions, small labels
 *   sm 13  secondary text (customer, owner, dates, table headers)
 *   md 14  body text, inputs, buttons, navigation
 *   lg 16  card and item titles, emphasis
 *   xl 20  section titles
 *   2xl 24 page titles
 *   3xl 28 key numbers
 *   4xl 36 hero
 */
:root {
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 28px;
  --fs-4xl: 36px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-strong: 600;
  --fw-bold: 700;
}

/* ---- Desktop hierarchy ---- */
/* Navigation reads as navigation. */
.nav-links > a, .nav-links > button { font-size: var(--fs-md); }
/* The task title is the main thing on a card: one step above everything around it. */
.task-card .compact-task-main > strong { font-size: var(--fs-lg); font-weight: var(--fw-strong); line-height: 1.35; }
/* Key numbers look like key numbers, in every dashboard block. */
.capacity-insight strong, .metric strong { font-size: var(--fs-3xl); font-weight: var(--fw-bold); line-height: 1.1; }
.capacity-insight > span { font-size: var(--fs-sm); font-weight: var(--fw-strong); }
/* Form labels are labels: a notch heavier than the answers. */
dialog label, dialog.task-dialog label { font-weight: var(--fw-strong); }

/* Hint text inside empty fields is readable (it was a pale grey at about 4:1). */
::placeholder { color: var(--muted); opacity: 1; }
