/* Self-hosted faces (GDPR: nothing is requested from Google). Latin and Latin Extended subsets of the
   Google Fonts releases (SIL Open Font License), woff2 only, copied unchanged. Newsreader and Space Grotesk
   are variable (weight ranges below; Newsreader also has the optical-size axis). The file names carry the
   release (-vNN) and the origin caches static files for an hour, so a new release gets a new name and a new
   rule here rather than replacing a file in place. Every page that sets type loads this file. */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/newsreader-italic-latin-ext-v26.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/newsreader-italic-latin-v26.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/newsreader-normal-latin-ext-v26.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/newsreader-normal-latin-v26.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-300-700-latin-ext-v22.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-300-700-latin-v22.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/space-mono-400-latin-ext-v17.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/space-mono-400-latin-v17.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/space-mono-700-latin-ext-v17.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/space-mono-700-latin-v17.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit: not a Katamatics face, a brand font a customer can choose (Options > Font) for their PDFs, printed
   pages and viewer. Latin subset, variable weight, taken from the Fontsource 5.2.5 package of the Google Fonts
   release (SIL Open Font License), hence -fs525 in the name. Only downloaded by a page that uses it. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/outfit-100-900-latin-fs525.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Katamatics type tokens: the one type system for every screen. The rules live in
   docs/KATAMATICS_DESIGN_SYSTEM.md section 3. Page CSS uses these names and never hard-codes a family,
   a type size, a weight or a tracking value. The light/dark palette lives in theme.css, which only the
   editors and the viewer load.

   Three faces, three jobs:
     display  Newsreader     titles. Weight 500, -0.02em.
     text     Space Grotesk  anything you read: prose, instructions, inputs, data. 400/500/600.
     tech     Space Mono     anything you press or that labels or flags something: buttons, tabs, nav
                             links, menu items, field labels, eyebrows, pills, chips, IDs. Always
                             11px, bold (700), UPPERCASE, --tracking-tech.
   Step numbers use --font-num (the text face, weight 600) so they can be changed in one place.
   A customer's brand font replaces the text face on output surfaces only (PDF, viewer, print). */
:root {
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-text: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-tech: 'Space Mono', ui-monospace, Consolas, monospace;
  --font-num: var(--font-text);
  /* The Katamatics wordmark is always Space Grotesk. A customer's brand font replaces --font-text,
     --font-display and --font-num on their documents, so the wordmark must not borrow any of those. */
  --font-wordmark: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* The only sizes. */
  --fs-tech: 11px;
  --fs-small: 13px;
  --fs-body: 14px;
  --fs-lead: 18px;
  --fs-title: 24px;
  --fs-display: 32px;
  /* Agreed exception: the stage status bar in the editors only (section 3.4). */
  --fs-micro: 10px;

  --tracking-tech: .12em;
  --tracking-display: -.02em;

  --r-sm: 2px;
  --r-md: 3px;
  --r-lg: 4px;
  --r-pill: 999px;
}
/* The Katamatics wordmark keeps its own red and face in both themes; its text takes the colour around it. */
.k-wordmark { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-family: var(--font-wordmark); font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.k-wordmark .k-mark { flex: 0 0 10px; width: 10px; height: 10px; background: #D72638; }
/* In the editors and the viewer the lock-up is the way back, so the square is a back arrow there. */
.k-wordmark .k-back { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: #D72638; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.k-wordmark .k-i { display: inline-block; line-height: 1; background: linear-gradient(to bottom, #D72638 0 32%, currentColor 32% 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
