# Chart Ledger

A public-record, data-journalism style. A deep navy masthead sits on a thin red rule, with a pale mist strip of white pill links under it. Headlines are bold serifs: mustard gold on navy, navy on white. Body text is a plain, friendly sans. Every card carries a small line or bar chart with labelled line ends instead of a photo, so the page reads like a careful report rather than an advert. Corners are nearly square, borders are 1px, and there are no shadows. It feels honest, thorough and calm.

Use it for: research and data sites, nonprofits and co-ops, public services, price trackers, newsletters with numbers, annual reports, education about evidence. Avoid it for: luxury brands, games, playful consumer apps, anything that sells on mood rather than facts.

## 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 Chart Ledger 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 an invented product: Gristmill Ledger, open crop prices for small farms.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,600;7..72,700&family=Libre+Franklin:wght@400;500;600;700&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Literata 700 | Hero, section headings, card titles, big stat numbers, FAQ questions, pull quotes (600). Always bold. |
| Body | Libre Franklin 400 to 700 | Paragraphs, nav, buttons, chips, labels, chart text, tables, forms. |

There is no mono font. Numbers use `font-variant-numeric: tabular-nums` (the `.cl-num` class) so columns line up.

## Color

| Token | Hex | Role |
|---|---|---|
| `--cl-navy` | #0D2A4F | Masthead, hero band, footer, primary buttons, headline color on white |
| `--cl-navy-2` | #173A66 | Hover on navy, links in prose |
| `--cl-rule` | #CF3A2E | The 4px rule under the masthead and above the footer, the "Support us" button, NEW tags, footnote markers |
| `--cl-gold` | #F0B93C | Headlines on navy, the gold button on navy, the featured plan's top edge, the summary box edge |
| `--cl-paper` | #FFFFFF | The main background and every card |
| `--cl-mist` | #E9EEF4 | The chip strip, table headers, badges, avatars |
| `--cl-fog` | #F4F6F9 | Quiet sections and chart backgrounds inside cards |
| `--cl-sky` | #DFECF8 | The newsletter card and reader quote |
| `--cl-line` | #D5DDE7 | Every border and divider |
| `--cl-ink` | #1B2A3D | Body text |
| `--cl-slate` | #5B6A7E | Leads, labels, captions, chart sources |
| `--cl-teal`, `--cl-clay`, `--cl-plum`, `--cl-moss` | #2D8A83, #C96B35, #7A4B8C, #6F8F3A | Chart series only |

Rules:
- The page opens and closes in navy: masthead (plus hero) at the top, footer at the bottom. Between them, white with fog sections every second or third block.
- Red appears in exactly three places: the masthead rule, the footer rule and one "give" button. Never as a headline or a section color.
- Gold is only used on navy, plus two thin edges (featured plan, summary box). Never gold text on white.
- The four chart colors stay inside charts, legends and small data badges. Page chrome is navy, white and gray.
- No gradients and no shadows.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--cl-text-hero` | clamp(34px, 4.6vw, 54px) | Hero headline, centered on navy, 2 lines, line-height 1.12 |
| `--cl-text-h2` | clamp(28px, 3.2vw, 38px) | Section headings |
| `--cl-text-h3` | 22px | Card group headings |
| `--cl-text-card` | 21px | Card titles |
| `--cl-text-lead` | 19px | The sentence under a headline, slate, max 640px |
| `--cl-text-body` | 16px | Body (18px in articles) |
| `--cl-text-label` | 12px | Uppercase tracked labels: "ARTICLE · 9 MIN READ" |

Headlines state a finding, like a report: "Barley now pays more than wheat on half of upland farms". Sentence case. A period is fine on the hero.

## Shape and space

- Borders: 1px `--cl-line`. Section heads and stat rows sit on a 2px ink rule. The masthead and footer carry a 4px red rule.
- Radius: 3px on cards and panels, 2px on buttons, inputs and badges. Pills only for chips and crop pickers.
- Shadows: none. Hover is an underline on the card title, or an inset 1px navy ring on a chip.
- Sections: 56px to 88px vertical padding. Container 1220px, articles 720px.
- Density: medium-high. Four cards to a row on desktop, labels above every title.

## Charts (the signature move)

Charts are inline SVG with the `.cl-chart` class. Draw them by hand:
- Dashed `.grid` lines, one solid `.axis` line at the bottom, small `.tick` labels in faint gray.
- Lines are `.line` plus a series class (`.cl-s-teal`, `.cl-s-clay`, `.cl-s-plum`, `.cl-s-moss`, `.cl-s-navy`), 2.5px, round joins.
- No legend box: end each line with a dot and a bold `.end` label in its own color.
- Bars use `.bar` plus a series class, with the value written at the end.
- Put a big chart in a `.cl-panel` with a serif title, a gray subtitle, optional `.cl-tabs` (Chart, Map, Table, Sources) and a footer with the source on the left and the license on the right.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.cl-masthead`, `__inner`, `__actions`, `.cl-logo`, `.cl-nav` | Navy bar with a stacked two-line wordmark, plain links, an outline and a red button, and the red rule under it |
| `.cl-chips`, `__inner`, `__title`, `.cl-chip`, `--outline` | Mist strip of white pill links; outline chips with tiny icons for counts on navy |
| `.cl-hero`, `__grid`, `__link`, `__note`, `.cl-counts` | Navy band with faint drawn contour lines, a gold serif headline, a link, the search and count chips |
| `.cl-search` | Big white search field with a magnifier button |
| `.cl-hero-title`, `.cl-h2`, `.cl-h3`, `.cl-lead`, `.cl-label`, `.cl-tag-new`, `.cl-more` | Type: serif headings, slate lead, tracked uppercase label, red NEW tag, "Read more" link |
| `.cl-btn--primary/gold/rule/outline/ghost`, `--sm`, `--block` | Square-ish buttons: navy primary, gold on navy, red for giving, white outline on navy, navy outline on white |
| `.cl-section`, `--fog`, `--navy`, `.cl-section-head` | Section surfaces; a heading row with a link on the right over a 2px ink rule |
| `.cl-grid--2/3/4` | Even card grids that collapse on small screens |
| `.cl-card`, `--fog`, `--sky`, `__figure`, `__title`, `__text`, `__head`, `.cl-icon-disc` | Story card with a chart figure, label, serif title and summary; fog and sky variants with a round white icon disc |
| `.cl-chart` and its parts | Hand-drawn SVG charts (see Charts) |
| `.cl-panel`, `__head/__title/__sub/__body/__foot`, `.cl-tabs`, `.cl-legend` | Framed chart with title, tabs, source line; a legend when line-end labels don't fit |
| `.cl-stats`, `.cl-stat`, `__num`, `__label` | Four big serif numbers separated by thin rules |
| `.cl-list` | Dated updates and corrections, separated by rules |
| `.cl-check` | Checkbox with a bold name, a small frequency and a description |
| `.cl-badge`, `--gold`, `--teal` | Small square uppercase badges |
| `.cl-toggle` | Two-button navy segmented control (Monthly / Yearly) |
| `.cl-plans`, `.cl-plan`, `--featured`, `__name/__desc/__price/__per/__list` | Three plans with a 4px top edge; the featured one is gold-edged with a navy ring |
| `.cl-table-wrap`, `.cl-table`, `.cl-yes`, `.cl-no` | Zebra table with a mist header; scrolls sideways on phones |
| `.cl-faq` | `<details>` list with serif questions and a plus that turns into a minus |
| `.cl-article-head`, `.cl-byline`, `.cl-avatar`, `.cl-summary` | Article header with tags, byline and a gold-edged summary box of key points |
| `.cl-prose` | Article text: serif h2, sans h3, footnote markers in red, navy-edged pull quote, figures with captions |
| `.cl-notes`, `.cl-cite` | Numbered footnotes under a 2px rule and a "Cite this work" box |
| `.cl-form`, `.cl-field`, `.cl-field-row`, `.cl-input-label`, `.cl-input`, `.cl-select`, `.cl-help`, `.cl-error`, `.cl-field--error` | Stacked fields, 2px radius, gold focus ring, red errors |
| `.cl-fieldset`, `.cl-pick` | Pill checkboxes that fill navy when picked |
| `.cl-footer`, `__cols`, `__bottom` | Navy footer under a red rule: wordmark, three link columns, license line |

## Pages in this kit

- `demo.html`: the landing page (masthead, chip strip, navy hero with search and counts, a four-up feed with charts, updates and newsletter, chart of the week, stats, navy membership band, footer).
- `pricing.html`: a short navy intro with a Monthly / Yearly toggle, three plans, a comparison table, a "where the money goes" bar chart and an FAQ.
- `blog.html`: a research article with tags, byline, summary box, a framed chart, pull quote, footnotes, a citation box and related cards.
- `signup.html`: a newsletter sign-up with a form card on fog, crop pickers, an error state, a sample of the email and a reader quote.

## Page recipe

1. Masthead in navy with the red rule, then the mist chip strip of popular topics.
2. Navy hero, centered: gold serif headline, one link, a big search, count chips, one small note.
3. A four-up row on white: two story cards with charts, a fog "updates" card and a sky newsletter card.
4. Fog section: a big chart panel on the left, its finding and two buttons on the right.
5. Stats row on white under a section head.
6. Navy band with a gold headline, a gold button and an outline button, plus two white cards.
7. Navy footer with the red rule.

Pricing recipe: short navy intro with the toggle, three plans on white, the comparison table on fog, a chart showing where the money goes, an FAQ on fog.

Article recipe: white header with badges, the hero title in navy, a lead, the byline and a summary box. Prose at 720px with at least one framed chart, footnotes and a citation box. Related cards on fog.

Sign-up recipe: a single form card with a navy top edge on fog, a sample of what the user gets beside it. Show at least one error state.

## Don'ts

- Don't add shadows, gradients or rounded corners over 3px (pills excepted).
- Don't use photos or stock illustrations on cards: draw a chart.
- Don't use chart colors for buttons, headings or backgrounds.
- Don't put gold text on white or red headlines anywhere.
- Don't center long text. Only the hero and the pricing intro are centered.
- Don't use a legend box when you can label the line ends.
- Don't write slogans. Headlines report a finding or a plain promise.
