# Flame Buffer

A plain charcoal page that reads like a well-kept config file. A near-black top bar holds a small flame-gradient wordmark, everything below sits in one narrow centered column, section headings are large, light-weight and coral, and the hero is a flat editor "buffer" window with line numbers, a colored dot in the gutter and a status line along the bottom. No radius, no shadows, only 1px lines. It feels raw, functional and honest: a tool made by people who use it.

Use it for: indie software, hobby tools, small makers and shops that want to look straightforward, logs and trackers, documentation-heavy products, anything where the product is a file or a list. Avoid it for: luxury, fashion, kids, wellness, or anything that needs soft photography and warmth up front.

## 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 Flame Buffer 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. They use an invented product, Brinekeeper, a batch log for people who ferment vegetables and drinks.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Lato 300 | Hero, section headings, plan names, big numbers. Always light, never bold. |
| Body | Lato 400, 700 for buttons | Paragraphs, nav, cards, form labels. |
| Mono | IBM Plex Mono 400 to 500 | The buffer window, `///` comments above headlines, tags, versions, dates, table values, helper and error text. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--fb-night` | #1B1C1E | The page background |
| `--fb-bar` | #111214 | Top bar, footer and the one darker band per page |
| `--fb-buffer` | #232427 | Editor windows, inputs, callouts, the featured plan |
| `--fb-gutter` | #2B2C30 | Status line, the current line, table header, pressed toggle |
| `--fb-line` | #3A3B40 | Every border and divider |
| `--fb-text` | #D6D4CE | Body text |
| `--fb-bright` | #F1EFE9 | Hero headline, card titles, button text, the cursor |
| `--fb-dim` | #8C8A84 | Leads, meta, line numbers, comments |
| `--fb-coral` | #EE5A49 | The accent: section headings, links, primary button, error dot |
| `--fb-flame` | #F6A03A | Only the top of the wordmark gradient, warning dots and numbers in code |
| `--fb-sage` | #B3C47A | Strings in code, "ok" dots, plus signs in plan lists |
| `--fb-sky` | #80AFD4 | Keywords in code, card keys, info tags |

Rules:
- The page is one flat charcoal. The darker `--fb-bar` is for the bar, the footer and at most one band in between.
- Coral is for headings and links. Section headings are coral; the hero headline is bright.
- Flame, sage and sky are code colors. Outside the buffer they appear only as small dots, tags and card keys.
- The only gradient is the wordmark (flame to coral, top to bottom). Nothing else gets a gradient.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--fb-text-hero` | clamp(40px, 6vw, 64px) | Hero headline, light, bright, centered, tracking -0.02em |
| `--fb-text-h2` | clamp(30px, 4vw, 40px) | Section headings, light, coral, left-aligned in the column (centered only above a centered row) |
| `--fb-text-h3` | 22px | Sub-headings and card titles, regular, bright |
| `--fb-text-lead` | 19px | The sentence under a headline, dim, max 620px |
| `--fb-text-body` | 17px | Body, line-height 1.6 |
| `--fb-text-code` | 14px | Code in buffers and articles |

Headings are short plain labels ("About", "Changelog", "Works with") or one plain sentence ("Pay for vessels, not features"). Sentence case, no period. A small mono comment starting with `///` can sit above a hero headline to name the page.

## Shape and space

- Radius: 0 everywhere. Only dots are round.
- Borders: 1px `--fb-line`. Grids of cards share 1px lines (the grid background shows through a 1px gap), they never float apart.
- Shadows: none. The featured plan gets a 2px coral top edge instead.
- Column: 760px for almost everything. 1040px only for the pricing row and the footer.
- Sections: 72px vertical padding, 48px for tight rows. Generous gaps between sections, tight spacing inside them.
- Motion: only the blinking block cursor in the buffer. It stops when reduced motion is on.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.fb-bar`, `__inner`, `__links` | Sticky near-black top bar in the 760px column: wordmark left, 3 or 4 links and a small outline "Sign in" right |
| `.fb-mark`, `__glyph`, `__word` | The wordmark: a CSS-drawn flame glyph and a light lowercase word, both in the flame gradient |
| `.fb-column`, `.fb-wide`, `.fb-section`, `--tight`, `--bar` | Layout: narrow column, wide row, section spacing, the darker band |
| `.fb-hero`, `.fb-hero-title`, `.fb-h2`, `.fb-h3`, `.fb-lead`, `.fb-accent` | Light headlines; `.fb-h2` is coral |
| `.fb-comment` | Small mono label above a headline, prefixed with `///` |
| `.fb-btn--primary/outline/link`, `--sm`, `--block` | Square buttons: coral fill, or a 1px outline |
| `.fb-buffer`, `__body`, `__line`, `--current`, `--warn`, `--error`, `__status`, `__mode` | The signature editor window. Each line takes `data-n` for its line number; warn and error add a dot in the gutter |
| `.fb-cursor` | Blinking block cursor at the end of the current line |
| `.fb-c-com/key/str/num/hot` | Code colors: comment, keyword, string, number, highlighted note |
| `.fb-trio`, `__item`, `__icon` | Three centered columns with a line icon and two coral links each (the "works with" row) |
| `.fb-tag`, `--coral/sage/sky` | Bracketed mono tags: `[new]` |
| `.fb-dot`, `--coral/flame` | Small status dots |
| `.fb-grid`, `.fb-card`, `__key/__title/__text` | 2-column card grid sharing 1px lines; each card starts with a mono key in sky |
| `.fb-log`, `__ver` | Changelog list: mono version and date on the left, one sentence on the right |
| `.fb-quote` | Light pull quote with a 2px coral left edge and a mono byline |
| `.fb-stats`, `.fb-stat` | Three numbers in a bordered row |
| `.fb-toggle` | Mono two-option toggle (monthly or yearly) |
| `.fb-plans`, `.fb-plan`, `--featured`, `__name/__desc/__price/__note/__list` | Three plans sharing 1px lines; featured gets the buffer surface and a coral top edge |
| `.fb-table-wrap`, `.fb-table`, `__yes/__no` | Comparison table with mono values; the wrap scrolls sideways on phones |
| `.fb-faq` | FAQ from `<details>` with a mono `+` and `-` |
| `.fb-meta` | Mono dot-separated article meta |
| `.fb-prose` | Article text: coral light h2, bright h3, dash bullets, bordered inline code, buffer-style code blocks, coral-edged blockquote |
| `.fb-callout` | Note inside an article with a flame left edge and a mono label |
| `.fb-author`, `--card`, `.fb-avatar` | Author line with a square initials tile |
| `.fb-posts`, `.fb-post` | Related posts with a coral top rule and a tag |
| `.fb-form`, `.fb-field`, `.fb-label`, `.fb-input`, `.fb-select` | Square mono inputs on the buffer surface; focus turns the border coral with a 2px inner edge |
| `.fb-input-wrap`, `.fb-input-toggle` | Input with a small "show" text button inside |
| `.fb-help`, `.fb-error`, `.fb-field--error` | Mono helper and error lines |
| `.fb-check` | Checkbox with a wrapped label, coral when checked |
| `.fb-btn--social`, `.fb-btn__letter` | Social sign-in buttons with a square letter tile (no brand logos) |
| `.fb-divider-text` | Thin line with a mono "or" in the middle |
| `.fb-footer`, `__cols`, `__bottom` | Near-black footer with mono column labels and a mono bottom line |

## Pages in this kit

- `demo.html`: landing page (bar, centered hero with a buffer window, "works with" trio, About, card grid, changelog, quote and stats band, call to action, footer).
- `pricing.html`: hero with a monthly or yearly toggle, three plans, a comparison table, an FAQ band and a call to action.
- `blog.html`: a guide with a mono comment, meta, a buffer figure, prose, a callout, an author card and related posts.
- `signup.html`: a single narrow form column, social buttons, an error state, and a small buffer showing the first empty batch.

## Page recipe

1. `.fb-bar` with the wordmark and 3 or 4 links. Mark the current page with `aria-current`.
2. Centered hero in the 760px column: a `///` comment, a light bright headline, a dim lead, a coral button next to an outline button.
3. A buffer window right under the hero showing the product as a file: comments at the top, key = value lines, one `--warn` or `--error` line, the `--current` line with the cursor, and a status line naming the file.
4. A centered `.fb-trio` row with line icons and coral links.
5. Left-aligned sections, each a coral `.fb-h2` and plain paragraphs, like a README: About, features as a `.fb-grid`, Changelog as a `.fb-log`.
6. One `--bar` band for a quote and stats.
7. Centered closing call to action, then the footer.

Pricing recipe: centered hero with a `.fb-toggle`, then `.fb-plans` in the wide row (middle plan featured), then "Compare" with `.fb-table`, then "Questions" with `.fb-faq` in a `--bar` band, then a one-button call to action.

Article recipe: `///` comment with the section path, light headline, `.fb-meta`, lead, then a buffer figure with a mono caption, `.fb-prose` with one `.fb-callout` and one blockquote, an author card and two related posts.

Sign-up recipe: one 460px column. Comment, headline, lead, social buttons, `.fb-divider-text`, the form with one field showing its error, a full-width coral button, a sign-in line, then a small buffer showing what they'll get.

## Don'ts

- Don't round anything, and don't add shadows or glows.
- Don't make headings bold. Headings are Lato 300.
- Don't use coral for big filled areas. Buttons and small marks only.
- Don't widen the column for text sections; the narrow centered column is the look.
- Don't use the code colors (flame, sage, sky) for page chrome, backgrounds or buttons.
- Don't add photos or illustrations. The buffer window and line icons are the imagery.
- Don't use em dashes in copy.
