# Cell Gutter

A working notebook you can sell. The page opens on a deep navy band with a two-part headline, then turns into plain white paper where the product lives as cells: tabbed notebook cards rise out of the band, code sits in pale gray blocks, and a thin ink-blue gutter bar marks the cell you're working in. Grotesk headlines, a bookish serif for reading, mono for code. Charts are drawn honestly, with tick dashes on the axes and a small set of soft categorical colors. It feels nerdy, precise and calm, like a lab book that someone keeps tidy.

Use it for: tools that turn records into answers (logs, trackers, notebooks, research and data tools), technical products for non-technical people, education, anything where showing the work builds trust. Avoid it for: luxury and fashion, loud consumer launches, kids, anything that should feel effortless rather than considered.

## 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 Cell Gutter 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 bake-log product called Crumbnote.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines and UI | Hanken Grotesk 400 to 700 | Hero (600), the kicker line above it (400), section headings, nav, buttons, labels, chart text, tables. |
| Body | Literata 400 and 600, italic | Paragraphs, leads, card titles inside notebook cards, quotes. The serif is what makes it read like a notebook, not a dashboard. |
| Mono | JetBrains Mono 400 | Code cells, inline code, numbers in data tables, small counters ("01"). |

## Color

| Token | Hex | Role |
|---|---|---|
| `--cg-paper` | #FFFFFF | The page and every card |
| `--cg-mist` | #F4F5F8 | Code cells, every second section, table headers |
| `--cg-line` | #DFE2E8 | Borders and chart grid lines |
| `--cg-ink` | #1A1D25 | Text, the ink button, bar charts, the top rule of feature cards |
| `--cg-soft` | #5B6170 | Leads, secondary text, axis labels |
| `--cg-navy` | #121929 | The hero band and one stats band lower down |
| `--cg-on-navy-soft` | #A3ABBF | Dimmed words and body text on navy |
| `--cg-blue` | #2D52D2 | The one accent: active gutter bar, links, outlined and solid buttons, breadcrumbs, prompt bubbles |
| `--cg-blue-soft` | #E7ECFC | Active code cell, callouts, blue chips |

Chart colors (`--cg-plum` #A48AD8, `--cg-rose` #EE8DB1, `--cg-mint` #73D3AA, `--cg-ochre` #E0AE37, `--cg-sky` #7DBCE8, `--cg-brick` #B03A2C) live only inside charts, legends, swatches and syntax highlighting. Never use them for buttons, sections or text.

Rules:
- White paper is the default. The page starts with one navy band; use navy once more at most (a stats band or a sign-up side panel).
- Blue marks what's active or clickable. One solid blue button per screen; the rest are outlined.
- No gradients. No colored section backgrounds besides mist and navy.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--cg-text-hero` | clamp(40px, 6.4vw, 80px) | Hero headline, left aligned, 600, tracking -0.035em, line-height 1.02 |
| `--cg-text-kicker` | clamp(22px, 2.6vw, 32px) | The lighter line above the hero; one or two words dimmed with `.cg-kicker__dim` |
| `--cg-text-h2` | clamp(32px, 4vw, 48px) | Section headings, 600 |
| `--cg-text-h3` | 22px | Sub-headings |
| `--cg-text-lead` | 19px | Serif lead in soft gray, max 600px |
| `--cg-text-body` | 17px | Serif body |
| `--cg-text-micro` | 11px | Uppercase breadcrumbs above card titles |

The hero is always two parts: a calm kicker sentence ("The measured, shared, forgiving bake log") and a heavy lowercase-start continuation ("where every loaf tells you why"). Body paragraphs often open with a bold run-in phrase that ends in a period ("**Just start writing.** Type a heading...").

## Shape and space

- Borders: 1px `--cg-line`. Feature cards get a 1px ink rule on top instead of a box.
- Radius: small and square-ish. 4px on cards and cells, 6px on buttons and inputs, pills only for chips and the prompt bubble.
- Tabs: notebook cards wear a tab on their top-left edge (`.cg-tabcard__tab`), white, bordered on three sides, open at the bottom.
- Shadows: quiet and centered. `--cg-shadow` on sheets, `--cg-shadow-lg` on the cards that rise out of the navy band. Never offset.
- The gutter: a 3px bar 6px left of a cell. Blue when active, gray on hover, invisible otherwise. A tiny blue "+" above the active cell hints at inserting a new one.
- Sections: 112px vertical padding. Container 1160px, reading column 700px.
- Charts: thin grid lines, tick labels that end in an en dash ("150 -"), axis titles with arrows ("↑ Rise %", "Hydration →"), dots at 0.85 opacity, one trend line in brick.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.cg-nav`, `__inner`, `__links`, `__actions` | Three-column nav: links left, centered wordmark, sign in and an outlined button right |
| `.cg-logo`, `__mark` | Wordmark with a small ringed mark |
| `.cg-band`, `__intro`, `__actions` | The navy hero band with extra bottom padding for cards to rise into |
| `.cg-band-rise` | Pulls the next block up over the band edge |
| `.cg-kicker`, `__dim`, `.cg-hero-title`, `.cg-h2`, `.cg-h3`, `.cg-lead` | Headline set |
| `.cg-runin` | Paragraph with a bold run-in lead phrase |
| `.cg-crumb` | Tiny uppercase blue breadcrumb ("LOAVES › COUNTRY WHITE") |
| `.cg-btn--outline/solid/ink/quiet/on-navy/ghost-navy`, `--sm`, `--block` | Buttons; outline is the default, solid blue for the one main action |
| `.cg-deck`, `.cg-tabcard`, `__tab`, `__body`, `--main` | Three tabbed notebook cards; the middle one is taller. Under 900px only `--main` shows |
| `.cg-dots` | Carousel position dots under the deck |
| `.cg-cell`, `--active`, `__label` | A notebook cell with the gutter bar |
| `.cg-code`, `--active`, `.cg-tok-*` | Code block in mist (blue-soft when active) with syntax colors |
| `.cg-output`, `__title`, `__sub` | A cell's rendered result: title, subtitle, chart |
| `.cg-chart`, `.cg-axis-title`, `.cg-grid` | Inline SVG chart styling |
| `.cg-datatable` | Compact mono table of results |
| `.cg-ask` | Blue pill question bubble, right aligned, above an answer |
| `.cg-rows`, `.cg-row` | Stack of bordered rows with small line icons |
| `.cg-inline-cell` | A one-line editable cell look, blue edge |
| `.cg-split`, `--even`, `.cg-sheet` | Notebook sheet beside run-in notes |
| `.cg-chip`, `--blue`, `--navy`, `.cg-swatch`, `--plum/rose/mint/ochre/sky/brick` | Chips and legend swatches |
| `.cg-cards`, `.cg-card`, `__num/__title/__text` | Three feature columns under an ink rule, numbered in mono |
| `.cg-quote`, `.cg-byline`, `.cg-avatar` | Serif pull quote, one phrase in blue italic, initials avatar |
| `.cg-stats`, `.cg-stat__num`, `__label` | Big grotesk numbers, usually on navy |
| `.cg-section`, `--mist`, `--navy`, `--tight` | Section surfaces |
| `.cg-toggle` | Monthly or yearly switch; the pressed option is ink |
| `.cg-plans`, `.cg-plan`, `--featured`, `__inner/__name/__desc/__price/__list` | Plan cards that wear tabs like notebook cards; the featured one has a blue border |
| `.cg-table-wrap`, `.cg-table`, `.cg-yes`, `.cg-no` | Comparison table; the wrap scrolls sideways on phones |
| `.cg-faq` | `<details>` list; the open one shows the blue gutter bar |
| `.cg-prose`, `.cg-callout`, `.cg-meta` | Article text with grotesk headings, blue list markers, gutter-bar blockquotes and a blue-soft callout |
| `.cg-author`, `--card` | Byline, and the closing author card under an ink rule |
| `.cg-posts`, `.cg-post`, `__thumb`, `__title` | Related posts with a small chart as the thumbnail |
| `.cg-form`, `.cg-field`, `.cg-label`, `.cg-input`, `.cg-select`, `.cg-help`, `.cg-error`, `--error` | Form fields with a blue focus ring |
| `.cg-input-wrap`, `.cg-input-toggle` | Password field with a Show button |
| `.cg-check`, `.cg-btn--social`, `.cg-btn__letter`, `.cg-divider-text` | Checkbox, letter-tile social buttons (no brand logos), "or" divider |
| `.cg-footer`, `__cols`, `__bottom` | Four-column footer |
| `.cg-fade` | Small entrance fade, respects reduced motion |

## Pages in this kit

- `demo.html`: landing page (navy band hero, rising tabbed cards, a question-and-answer notebook, recipe cells, feature columns, quote, navy stats, call to action).
- `pricing.html`: navy band with a billing toggle, three tabbed plan cards rising out of it, comparison table, FAQ and call to action.
- `blog.html`: an article with a chart cover, prose, a code cell figure, a pull quote, an author card and related posts.
- `signup.html`: a split page, the form on white and a navy panel holding a tabbed bake sheet and a quote.

## Page recipe

1. White nav: links left, wordmark centered, "Sign in" and an outlined button right.
2. Navy band: kicker line with one dimmed word, a heavy two-line hero, a serif intro with a bold run-in, a light button and a ghost button.
3. `.cg-band-rise` with `.cg-deck`: three tabbed notebook cards overlapping the band edge, each with a breadcrumb, a serif title and a real-looking chart. Dots under them.
4. White section: h2 and lead, then `.cg-split` with a sheet (an `.cg-ask` question, then a cell with output) beside run-in notes and `.cg-rows`.
5. Mist section: a sheet of code cells, one active, ending in a data table, beside more run-ins.
6. `.cg-cards` feature columns on white.
7. Quote on mist, stats on navy.
8. Centered call to action: solid blue next to outlined.

## Pricing page recipe

1. Nav, then a shorter navy band with the kicker, hero and `.cg-toggle`. Keep both prices in `data-monthly` and `data-yearly` and swap them with a few lines of JS.
2. `.cg-plans` rising out of the band, each plan wearing a tab. The middle one is `--featured` with a blue chip and the only solid button.
3. A line of small print, then the comparison table on white.
4. FAQ on mist in the reading column, the first item open.
5. Call to action and footer.

## Article page recipe

1. Nav, then in the reading column: breadcrumb, a smaller hero title, a serif lead and the author meta line.
2. A cover chart inside `.cg-output` instead of a photo.
3. `.cg-prose` with grotesk h2s, a callout, a code cell figure with a caption and a gutter-bar quote.
4. Close with `.cg-author--card`, then related posts on mist, each thumbnail a small chart.

## Sign-up page recipe

1. Two columns: the form on white, a navy panel on the right. One column under 860px.
2. Wordmark top left, hero title, lead, two letter-tile social buttons, the "or" divider, then fields. Show one error state so it's clear what errors look like.
3. One solid blue submit button, full width. Terms in small print.
4. The navy panel holds a tabbed card with a few cells (one active) and a quote underneath.

## Don'ts

- Don't center the hero or use a photo in it. The product, drawn as cells and charts, is the picture.
- Don't round things up: no radius above 10px, no pill buttons.
- Don't use chart colors outside charts, or more than one solid blue button per screen.
- Don't fake charts with random decoration. Axes, labels and units should make sense for the product.
- Don't set body text in the grotesk. The serif body is half the look.
- No em dashes in copy, no gradients, no offset shadows.
