/* FORMCEPT Design System — Typography Classification (one source for every page of the product).
   Load this file LAST on a page. Sizes, weights and line heights are exactly those of the classification:
     title  s/m/l 32/40/48 · heading s/m/l/xl 16/18/20/24 · body 14 · label s/m/l 12/14/16 (500)
   Titles and headings use the secondary family, body and labels the primary one. Letter spacing is 0.
   The classification names three families (Google Sans Flex, Inter, Open Sans) and says the mapping of the two
   variables must be verified against the global font configuration. This product already used Google Sans Flex for
   interface text and Open Sans for headings, so that mapping is kept. Inter is listed first because it is bundled (static/fonts), so every machine renders the same sharp text; Google Sans Flex is used only where nothing bundled applies. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/Inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/Inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/Inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/Inter-700.woff") format("woff"); }

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/SourceSans3-400.woff") format("woff"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/SourceSans3-500.woff") format("woff"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/SourceSans3-600.woff") format("woff"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/SourceSans3-700.woff") format("woff"); }

:root {
  --fc-font-primary: "Inter", "Google Sans Flex", "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fc-font-secondary: "Source Sans 3", "Inter", "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fc-fw-regular: 400; --fc-fw-medium: 500; --fc-fw-semibold: 600; --fc-fw-bold: 700;

  /* the product's own tokens now resolve to the two design-system families and the classified sizes */
  --font-ui: var(--fc-font-primary);
  --font-display: var(--fc-font-secondary);
  --font-title: var(--fc-font-secondary);
  /* crisper text: stronger greys (WCAG AA on white and on the tinted panels) */
  --muted: #4F4A5C; --muted-2: #5A5568; --text-2: #3E3C63; --text-3: #4F4D6E;
  --fs-xs: 14px; --fs-sm: 16px; --fs-md: 16px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px; --fs-3xl: 36px;
}

html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; font-optical-sizing: auto; font-family: var(--fc-font-primary); font-size: 16px; line-height: 22px; font-weight: 400; letter-spacing: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--fc-font-secondary); font-weight: 400; letter-spacing: 0; }
h1 { font-size: 28px; line-height: 34px; }
h2 { font-size: 22px; line-height: 28px; }
h3 { font-size: 20px; line-height: 26px; }
h4, h5, h6 { font-size: 18px; line-height: 24px; }
button, input, select, textarea { font-family: var(--fc-font-primary); letter-spacing: 0; }
label, th { font-weight: 500; }

/* title */
.fc-font-title-s  { font-family: var(--fc-font-secondary); font-size: 36px; font-weight: 400; line-height: 44px; letter-spacing: 0; }
.fc-font-title-m  { font-family: var(--fc-font-secondary); font-size: 40px; font-weight: 400; line-height: 44px; letter-spacing: 0; }
.fc-font-title-l  { font-family: var(--fc-font-secondary); font-size: 48px; font-weight: 400; line-height: 52px; letter-spacing: 0; }
/* heading */
.fc-font-heading-s  { font-family: var(--fc-font-secondary); font-size: 18px; font-weight: 400; line-height: 24px; letter-spacing: 0; }
.fc-font-heading-m  { font-family: var(--fc-font-secondary); font-size: 20px; font-weight: 400; line-height: 26px; letter-spacing: 0; }
.fc-font-heading-l  { font-family: var(--fc-font-secondary); font-size: 22px; font-weight: 400; line-height: 28px; letter-spacing: 0; }
.fc-font-heading-xl { font-family: var(--fc-font-secondary); font-size: 28px; font-weight: 400; line-height: 34px; letter-spacing: 0; }
/* body */
.fc-font-body { font-family: var(--fc-font-primary); font-size: 16px; font-weight: 400; line-height: 22px; letter-spacing: 0; }
/* label */
.fc-font-label-s { font-family: var(--fc-font-primary); font-size: 14px; font-weight: 500; line-height: 18px; letter-spacing: 0; }
.fc-font-label-m { font-family: var(--fc-font-primary); font-size: 16px; font-weight: 500; line-height: 20px; letter-spacing: 0; }
.fc-font-label-l { font-family: var(--fc-font-primary); font-size: 18px; font-weight: 500; line-height: 22px; letter-spacing: 0; }
/* weight and decoration utilities */
.fc-font-semibold { font-weight: 600; }
.fc-font-bold { font-weight: 700; }
.fc-font-underline { text-decoration: underline; }
