# Amber Rule

An honest, no-nonsense dark manual. Near-black pages are cut into horizontal bands: a thin amber rule, a steel-grey nav band, a slightly lighter lede band with one plain sentence about the product, then two calm columns. Headings sit behind a small amber bolt mark, the logo and badges are slanted parallelograms, and every hard fact lives in a titled spec panel with a little tab header and mono readouts. It reads like a well kept workshop manual: functional, bold and a little early-2010s web, with no gradients, no glow and no stock photos.

Use it for: trades and home services, energy and electrification, repair shops, hardware, technical products that want to look straightforward, tools with a spec sheet at heart. Avoid it for: luxury, fashion, wellness, kids, anything that should feel soft or dreamy.

## 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 Amber Rule 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 for one made-up product, Brightline (electricians for homes going electric), built only with the kit.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Barlow Semi Condensed 700 to 800 | Hero, section headings, prices, the logo word (uppercase). |
| Body | Barlow 400 to 600 | Paragraphs, nav, buttons, forms, cards. |
| Mono | IBM Plex Mono 400 to 500 | Spec readouts, panel tabs, kickers, labels, table headers, bylines. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--ar-night` | #141312 | Page background |
| `--ar-panel` | #1E1D1B | Spec panels, cards, footer |
| `--ar-band` | #2A2927 | Lede band, panel tabs, band sections |
| `--ar-steel` | #5A5956 | The nav band only (and steel tags) |
| `--ar-line` | #3A3835 | Hairlines, input borders |
| `--ar-text` | #ECEBE7 | Main text |
| `--ar-muted` | #A3A09A | Secondary text |
| `--ar-amber` | #F4A019 | The rule, primary buttons, bolt marks, links |
| `--ar-flare` | #FFD447 | Values inside readouts, link hover |
| `--ar-ok` | #82D67D | "ok", "yes", booked states |
| `--ar-hot` | #FF7D5C | Warnings and errors |

Amber is the only loud color. Use it for one rule per band, one primary button per view and the bolt marks. Flare and ok live inside readouts, never as big fills.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--ar-size-hero` | 40 to 68px | Page h1 |
| `--ar-size-h2` | 28 to 38px | Section headings with the bolt |
| `--ar-size-h3` | 22px | Card and feature titles |
| `--ar-size-lede` | 20 to 26px | The lede band sentence, first paragraph of articles |
| `--ar-size-body` | 17px | Body |
| `--ar-size-mono` | 14.4px | Readouts |
| `--ar-size-label` | 13px | Tabs, kickers, labels |

Headlines are tight (1.08), body is roomy (1.6).

## Shape and space

- Corners are nearly square: `--ar-radius` (3px). Panels have a rounded top only (`--ar-radius-tab`) so the tab reads like a folder label.
- Slanted parallelograms (`--ar-skew`, -14deg) for the logo mark and `.ar-tag` badges. Text inside is never skewed.
- One kind of shadow (`--ar-shadow`) and only on panels.
- The 4px amber rule (`--ar-rule`) appears under the logo row, on top of cards, at the top of the footer and on the left of quotes.
- Space steps run 4 to 104px. Sections use 72px top and bottom. Content width 1040px, article width 680px.

## Components (in components.css)

- **Header**: `.ar-top` (logo row) + `.ar-rule` + `.ar-nav` (steel band). Always in that order.
- **Logo**: `.ar-logo` with a skewed `.ar-logo__mark` holding a bolt SVG and an uppercase `.ar-logo__word`.
- **Lede band**: `.ar-lede` with one sentence and two or three `<strong>` words.
- **Hero**: `.ar-hero` + `.ar-hero__grid` (copy left, spec panels right). `<em>` in the h1 turns amber.
- **Headings**: `.ar-h2` / `.ar-h3` with an inline `.ar-bolt` SVG before the text.
- **Buttons**: `.ar-btn--primary` (amber), `.ar-btn--ghost` (outline), `.ar-btn--block`.
- **Badges**: `.ar-tag`, `.ar-tag--steel`, `.ar-tag--ok` (slanted).
- **Spec panel**: `.ar-panel` > `.ar-panel__tab` (italic mono filename, `--amber` variant) + `.ar-panel__body`. Inside: `.ar-readout` (pre, with `.k` `.v` `.ok` `.hot` `.c` spans) or `.ar-lines` (label, dotted leader, value).
- **Layout**: `.ar-section`, `.ar-section--band`, `.ar-split` (two columns), `.ar-cards` / `.ar-card`.
- **Lists**: `.ar-list` with amber markers.
- **Quote, note, CTA**: `.ar-quote`, `.ar-note`, `.ar-cta` (amber block with a dark button).
- **Pricing**: `.ar-prices`, `.ar-price` (a panel), `.ar-price--pick`, `.ar-price__amount`, `.ar-table`, `.ar-faq`.
- **Article**: `.ar-article__head`, `.ar-byline`, `.ar-prose`.
- **Forms**: `.ar-form`, `.ar-field`, `.ar-input`, `.ar-select`, `.ar-row`, `.ar-chips` / `.ar-chip`, `.ar-check`, `.ar-hint`.
- **Footer**: `.ar-footer` with an amber top rule, `.ar-footer__grid`, `.ar-footer__base`.

## Pages in this kit

| File | Page |
|---|---|
| `demo.html` | Landing page |
| `pricing.html` | Pricing with three panel cards, a comparison table and FAQ |
| `blog.html` | Field-notes article with a readout panel, a quote and a note |
| `signup.html` | Booking form inside a spec panel, next steps beside it |

## Page recipe

1. Header stack: `.ar-top`, `.ar-rule`, `.ar-nav`.
2. A `.ar-lede` band with one sentence that says what the product is.
3. Hero: slanted tag, h1 with one amber `<em>` phrase, one short paragraph, primary + ghost buttons. On the right, one or two spec panels that show the product working (a quote, a log, a reading).
4. A `.ar-section--band` with `.ar-split` rows: bolt headings, a sentence, a short `.ar-list`. Pair the last one with an amber-tab panel of `.ar-lines`.
5. A plain section for "how it works", then an `.ar-cta`, then the footer.

**Pricing**: intro, then `.ar-prices` with the middle `.ar-price--pick` and an amber tab; a `.ar-table` of what's included; a band with `.ar-faq`.

**Article**: `.ar-article__head` with a tag, h1 and mono byline; `.ar-prose` in the narrow wrap; bolt h2s; at least one readout panel showing a real example; one `.ar-quote`; end with buttons and a band of related `.ar-card` links.

**Sign up**: lede band, then `.ar-split`: reassurance and a next-steps panel on the left, the form inside a panel on the right. Chips for "what do you need", two-up rows, one amber submit.

## Don'ts

- No gradients, glows, blurred blobs or glass.
- Don't round corners past 5px, and don't skew text.
- Don't use amber for body text or large backgrounds (the CTA block is the one exception).
- Don't drop the steel nav band or the amber rule; they are the style.
- Don't put facts in paragraphs when they fit a readout or a `.ar-lines` list.
- No stock photos. Use panels, readouts and the bolt mark.
