# Clear Path

A plain public-service style for products where people come to get one thing done. A solid blue band holds the logo, the menu and a big white headline, then the page turns white and stays quiet. One sans family at a large, readable size does all the work. Links are blue and always underlined, each page has one flat green button with a darker bottom edge, and keyboard focus is a loud yellow block with a black underline. Corners are square, fields have thick black borders, rules replace shadows, and anything people must not miss sits behind a thick grey left border or a black warning circle. It reads as calm, honest and trustworthy because it never decorates.

Use it for: booking and appointment services, healthcare and pet care, utilities and councils, insurance and benefits, banking forms, account and onboarding flows, help centers, anything with forms that must work for everyone. Avoid it for: luxury and fashion, launches that need drama, entertainment, portfolios, playful consumer brands.

## How to use this file

Give this file, `tokens.css` and `components.css` to your AI coding tool and say:

> Build [your page] in the Clear Path style. Follow DESIGN.md exactly. Use the tokens in tokens.css and the classes in components.css; don't invent new colors, fonts, radii or shadows.

`demo.html` (a landing page), `pricing.html`, `blog.html` and `signup.html` are complete example pages built only with the kit, for a made-up vet booking co-operative called Pawpoint.

## Fonts

Free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
```

| Role | Font | Weight | Use |
|---|---|---|---|
| Everything | Public Sans | 400 and 700 | Headlines (700), body, links, buttons (400), labels (700), captions |

Only two weights. Never use 300, 500 or 600, and never add a second family. Italic is allowed for quoted examples only.

## Color

| Token | Hex | Use |
|---|---|---|
| `--cp-blue` | #1C66AD | The header and hero band, thick rules above sections, the notice frame, the Beta tag |
| `--cp-blue-dark` | #144B80 | Tag text on blue tint, the inverse button edge |
| `--cp-blue-tint` | #D8E5F2 | Arrow circles, the search button, the feedback strip, tags |
| `--cp-white` | #FFFFFF | The page |
| `--cp-surface` | #F1F3F4 | Quiet sections and the footer |
| `--cp-ink` | #0F1114 | Text, field borders, warning circle, focus underline |
| `--cp-soft` | #50575E | Hints, captions, meta |
| `--cp-line` | #B3B8BC | Hairlines and the inset border |
| `--cp-link` | #1A5C9E | Links. `--cp-link-hover` #0F3A66 and `--cp-visited` #50308F |
| `--cp-green` | #17724A | The one action per page. `--cp-green-edge` #0C432B is its bottom edge |
| `--cp-red` | #C2352A | Errors and destructive buttons only |
| `--cp-focus` | #FFD42A | Keyboard focus only. Never decoration |
| `--cp-teal` | #2AD4BF | The dot in the logo. Nowhere else |

Amber (`--cp-amber-*`) only colors the amber tag. Blue is structure, green is action, red is error, yellow is focus: keep those meanings fixed on every page.

## Type scale

| Class | Size | Notes |
|---|---|---|
| `cp-hero-title` | clamp(36px, 5.2vw, 62px) | 700, white on the blue band, line-height 1.1, max 18ch |
| `cp-h1` | clamp(32px, 4vw, 48px) | 700, one per page |
| `cp-h2` | clamp(26px, 2.8vw, 36px) | 700 |
| `cp-h3` | clamp(20px, 2vw, 24px) | 700 |
| `cp-caption` | clamp(18px, 1.8vw, 21px) | `--cp-soft`, sits right above the h1 ("Advice", "Step 1 of 3") |
| `cp-lead` | clamp(20px, 2vw, 24px) | 400, the first paragraph under a heading |
| Body | 19px | 400, line-height 1.4 |
| `cp-small` | 16px | Meta, tables, footer, nav |

Headlines are sentence case, short and literal: say what the page does ("Plans and prices"), not a slogan.

## Shape and space

- Square everything: buttons, fields, tags, panels. The only circles are the radio buttons, step numbers, arrow icons and the warning mark.
- No shadows. The button's 2px darker bottom edge is the only depth on the page. Structure comes from a 5px blue rule above sections, plans and sidebars, and 1px grey hairlines between rows.
- Fields have a 2px ink border and are sized to their content (`cp-input--w10` for a postcode, `--w5` for a year).
- Radios and checkboxes are 40px targets.
- Focus is a yellow fill with a black underline on links, and a yellow outline plus an inset ink ring on fields.
- Space on a 5px base. Leave 30px between form groups and 40 to 70px between sections. Text columns stop at 640px.

## Components (in components.css)

- **Header** `cp-header` with `cp-header__bar`, the `cp-logo` (an inline SVG mark, the name and a teal `cp-logo__dot`) and `cp-nav` (white bold links, a `cp-nav__divider`, `cp-nav__hide` items drop under 700px). Mark the page with `aria-current="page"`.
- **Phase banner** `cp-phase` with a `cp-tag--solid` and a feedback link.
- **Hero** `cp-hero` continues the blue band: `cp-hero-title`, `cp-hero__lead` and a `cp-search` (label, input, square tint button).
- **Breadcrumbs** `cp-breadcrumbs` and **back link** `cp-back`.
- **Buttons** `cp-btn` (green), `--start` (bigger, bold, with an arrow), `--secondary` (grey), `--warning` (red), `--inverse` (on blue), `--block`, grouped in `cp-btn-group`.
- **Links** `cp-link`, `--bold`, `--inverse`.
- **Arrow list** `cp-arrows`: round tint icons with bold links, the "most used" pattern.
- **Cards** `cp-card` (hairline top) and `cp-card--blue` (5px blue top), `cp-card__title`. No boxes or backgrounds.
- **Tags** `cp-tag` plus `--green`, `--red`, `--amber`, `--grey`, `--solid`.
- **Inset text** `cp-inset`, **warning** `cp-warning` with `cp-warning__icon`, **notice** `cp-notice` (`--success`) with `cp-notice__head` and `cp-notice__body`, **confirmation panel** `cp-panel`.
- **Step by step** `cp-steps`: numbered circles on a vertical line, `cp-steps__num`, `cp-steps__title`.
- **Summary list** `cp-summary` of `cp-summary__row` (dt, dd, change link) for check-your-answers pages.
- **Contents** `cp-contents` with short line markers, **details** `cp-details` with a triangle and `cp-details__body`.
- **Pricing** `cp-plans` of `cp-plan` (`--chosen` turns the rule green), `cp-plan__name`, `cp-plan__price`, `cp-plan__per`, and `cp-table` in `cp-table-wrap` with `cp-num` cells.
- **Article** `cp-meta`, `cp-prose`, `cp-figure` with `cp-figure__art`, `cp-aside` for related links.
- **Forms** `cp-form-group` (`--error`), `cp-fieldset`, `cp-legend`, `cp-label` (`--l`), `cp-hint`, `cp-error-msg`, `cp-input` (`--w10`, `--w5`, `--error`), `cp-select`, `cp-textarea`, `cp-date`, `cp-radios` (`--inline`) and `cp-checks` of `cp-choice` with `cp-choice__mark`, `cp-choice__text`, `cp-choice__hint`, `cp-error-summary`, `cp-progress`, `cp-task`.
- **Feedback strip** `cp-feedback`, **footer** `cp-footer` with `cp-footer__grid`, `cp-footer__title`, `cp-footer__base`, `cp-footer__links`.
- **Layout** `cp-container`, `cp-main`, `cp-section` (`--surface`, `--ruled`), `cp-measure`, `cp-grid`, `cp-two-thirds`, `cp-visually-hidden`.

## Pages in this kit

- `demo.html`: landing page (blue header and hero with a postcode search, phase banner, most used arrow list, how booking works as steps with a start button and a sidebar, an emergency warning, services grid on surface, numbers with an inset note, feedback strip, footer)
- `pricing.html`: a cat or dog toggle, three plans under thick rules, a price table, questions as details and a help sidebar
- `blog.html`: an advice guide with meta, contents, a notice, inset text, a drawn timeline, a warning and related links
- `signup.html`: step 1 of a form with an error summary, an errored field, radios, checkboxes and a step list

## Page recipe

1. `cp-header` with the logo left and three or four nav links right.
2. `cp-hero`: `cp-hero-title` in two or three short lines, a `cp-hero__lead`, then a `cp-search` or a `cp-btn--inverse`. An optional flat drawing on the right, hidden on phones.
3. `cp-phase` if the product is new.
4. A section with an `cp-h2` and a `cp-arrows` list of the six most common tasks.
5. A `cp-section--ruled` with `cp-two-thirds`: `cp-steps` and a `cp-btn--start` on the left, a `cp-aside` on the right.
6. A `cp-section--surface` with a `cp-grid` of `cp-card` links.
7. Plain numbers in `cp-card--blue` and a `cp-inset` stating what you do not do.
8. `cp-feedback`, then `cp-footer`.

## Pricing page recipe

Header, breadcrumbs, a `cp-caption` and `cp-h1`, a `cp-lead`, then a `cp-radios--inline` toggle as a fieldset. Three `cp-plan` columns: the recommended one is `--chosen` with a `cp-tag--green` and the only green button; the others get `cp-btn--secondary`. Below, in `cp-two-thirds`, a `cp-table` of real prices, then questions as `cp-details`, with help links in a `cp-aside`.

## Article page recipe

Header, breadcrumbs, `cp-caption`, a literal `cp-h1`, a `cp-lead` that answers the question in two sentences, and `cp-meta` between hairlines. In `cp-two-thirds`: `cp-prose` with `cp-contents` first, then sections with h2s, `cp-notice` for changes, `cp-inset` for tips, a flat `cp-figure`, `cp-details` for edge cases, a `cp-warning` for consequences, and one green button at the end. Related links go in a `cp-aside`.

## Sign-up page recipe

Header and `cp-back`. One column of `cp-measure` width: a `cp-error-summary` when anything is wrong, `cp-progress`, the `cp-h1`, one sentence on why, then `cp-form-group`s in order (labels above, hints under labels, errors above the field with a red left border). Radios and checkboxes are fieldsets with a `cp-label` legend. End with a green `Continue` and a plain link. A `cp-aside` with `cp-steps` shows what comes next.

## Don'ts

- Don't add shadows, gradients, rounded corners or a second font.
- Don't use more than one green button per page, or green for anything but the main action.
- Don't remove underlines from links or use yellow anywhere but focus.
- Don't write clever headlines or vague button labels: say "Book a check-up", not "Get started".
- Don't use placeholder text instead of labels and hints.
- Don't set body text below 19px or run text wider than 640px.
- Don't use em dashes in copy.
