# Typography

- **[Foundations](/foundations/)**

Geist for headings and text, Geist Mono for code. Sizes are multiples of one base size; titles scale with their container.

## Type scale

Base size 16 px. Title and display are fluid in the block's container width (cqi), not the viewport.

- text-kh-caption · size × 0.8125 · Captions, meta, badges
- text-kh-small · size × 0.875 · Secondary text, labels
- text-kh-body · size · Body text
- text-kh-lead · size × 1.1875 · Section descriptions
- text-kh-heading · size × 1.25 · Item titles
- text-kh-title · fluid, 1.875 to 2.75 × size · Section titles
- text-kh-display · fluid, 2.5 to 4.5 × size · Page titles in heroes

Fonts a style can use: Geist, Geist Mono, Inter, Space Grotesk, DM Sans, Instrument Serif, Fraunces, JetBrains Mono, Oswald (condensed, for headings).

## Rules

Readable first.

- **Headings balance**: Headings use text-wrap-style: balance and paragraphs text-wrap-style: pretty, so no line is left with one word and a truncated heading stays on one line.
- **Muted text**: Do not set essential content in muted colour below the small size.
