## Typography

### Typefaces

| Role | Family | Token | Use |
| --- | --- | --- | --- |
| Display | Google Sans Flex, roundness axis at 100 | `--font-display` with `font-variation-settings: var(--font-round-display)` | Display lines, page titles, section headings, dialog titles |
| Text | Google Sans Flex, roundness 0 | `--font-body` | Everything else: body, labels, controls, group headings |
| Data | Google Sans Code | `--font-mono` | Identifiers a person may read aloud or type |

Both are open source (SIL Open Font License 1.1) and self-hosted from `https://brand.parea.health/assets/fonts/`. `parea.css` loads them. In React projects install `@fontsource-variable/google-sans-flex` (import the `rond` or `full` axis file so the roundness axis is available) and `@fontsource-variable/google-sans-code`.

The rounded display cut is the typographic signature: the terminals of the letters soften like the corners of the mark. It is used large and sparingly. Small text stays in the plain cut because it reads better.

### Rules

- Weights are 400 (regular) and 500 (medium). Never 600 or above. Hierarchy comes from size, colour and space.
- No uppercase text, no letter-spaced labels, no eyebrow line above a heading.
- No italics for emphasis. Use medium weight, sparingly.
- Sentence case everywhere, including buttons, headings and navigation.
- Line length: 45 to 75 characters for running text (`--measure` is 66ch). Left aligned. Never justified, never centred for more than three lines.
- Letter spacing: `--tracking-display` (-0.03em) for display, `--tracking-heading` (-0.015em) for headings up to 28px, `--tracking-body` (-0.005em) for text.
- Line height: `--leading-display` 1.04, `--leading-heading` 1.2, `--leading-body` 1.45 for practice and 1.55 for patients.
- Numbers that change or line up use `font-variant-numeric: tabular-nums` (class `pa-num`).
- Monospace for: SV-Nummer, booking and access codes, doses with units, IDs, IBAN, one-time codes. Not for times, dates, prices or phone numbers.

### Scale

Sizes come from the scale only. The same token gives a different size per audience.

| Token | Practice | Patient |
| --- | --- | --- |
| `--text-xs` | 12px | 14px |
| `--text-sm` | 13px | 16px |
| `--text-base` | 15px | 18px |
| `--text-lg` | 17px | 20px |
| `--text-xl` | 20px | 24px |
| `--text-2xl` | 22px | 28px |
| `--text-3xl` | 28px | 34px |
| `--text-4xl` | 34px | 42px |
| `--text-5xl` | 40px | 52px |

Roles:

| Role | Token | Class | Element |
| --- | --- | --- | --- |
| Display | `--text-display-sm`, `-md`, `-lg` | `pa-display` | Brand and public pages only |
| Page title | `--text-4xl` | `pa-title` | `h1`, one per page |
| Section heading | `--text-2xl` | `pa-heading` | `h2` |
| Group heading | `--text-lg` | `pa-subheading` | `h3` |
| Lead | `--text-xl` | `pa-lead` | First paragraph of a public page |
| Body | `--text-base` | `pa-body` | Paragraphs, list rows, choices |
| Small | `--text-sm` | `pa-small` | Labels, hints, buttons, table cells |
| Caption | `--text-xs` | `pa-caption` | Meta, timestamps, badges |

The stylesheet gives bare `h1` and `h2` the rounded cut and bare `h3` and `h4` the plain cut. A role class overrides that on any element, so the outline can follow the content: `<h2 class="pa-subheading">` is a second-level heading that looks like a group heading.

For patients the heading of a step is the question itself ("Welcher Tag passt Ihnen?"), set as the page title.
