# Spine Shelf

A quiet, near-black reading room. Tall condensed serif titles alternate roman and italic, tiny uppercase mono labels sit inside [ brackets ], and everything else is hairline rules, square corners and a faint film grain. The signature object is a shelf of drawn spines: each product, issue or plan is a colored spine with its title running up the side. It feels collected, literary and unhurried, like a small press or an archive you would want to own every number of.

Use it for: publishers and small presses, subscriptions with numbered issues, specialty food and drink, galleries and archives, editorial products, collections of any kind. Avoid it for: dashboards and dense product UI, kids and family, anything that needs to feel loud, bright or quick.

## 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 Spine Shelf 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.

Put `class="ss"` on `<body>`. `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 single-estate tea subscription.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Display | Instrument Serif 400, roman and italic | Hero, section headings, plan names, big numbers, quotes, spine titles. Never bold. |
| Body | Newsreader 400 | Paragraphs, leads, form inputs, table cells. |
| Labels | DM Mono 400 | Every label, nav link, button, meta line and number tag. Always uppercase, tracked 0.08em, 12 to 13px. |

The rule that makes the style: in every headline, set one or two words in italic (`.ss-it`). Roman, then italic, then roman. In a marquee, alternate whole items.

## Color

| Token | Hex | Role |
|---|---|---|
| `--ss-night` | #0C0C0B | The page. Never pure black |
| `--ss-night-2` | #141412 | Raised sections, the featured plan, the sign-up side panel |
| `--ss-line` | #2E2C28 | Hairlines between rows and cells |
| `--ss-line-strong` | #4A4740 | The rule under the top bar, the top of lists and tables, button borders |
| `--ss-paper` | #E6E0D2 | Headlines and body text |
| `--ss-soft` | #A19B8E | Leads, soft labels, secondary text |
| `--ss-celadon` | #9FBF9A | The one accent: the main button, one italic word, live dots, drop caps |
| `--ss-spine-ochre` | #B08A4A | Spines and covers only |
| `--ss-spine-oxblood` | #6E2D26 | Spines and covers only |
| `--ss-spine-slate` | #3D4A52 | Spines and covers only |
| `--ss-spine-bone` | #D9D0BD | Spines and covers only |
| `--ss-spine-moss` | #4B5A3A | Spines and covers only |

Rules:
- The page is near-black with paper text. Raised sections use `--ss-night-2`, nothing lighter.
- Celadon appears a few times per screen at most: one button, one word, a dot.
- The spine colors live only on drawn objects (spines, covers, small charts). Never on text, buttons or backgrounds of sections.
- No gradients except the fade at the marquee edges. The grain overlay is on by default through `body.ss::before`.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--ss-text-hero` | clamp(56px, 8.4vw, 128px) | Hero headline, left aligned, line-height 0.92 |
| `--ss-text-marquee` | clamp(44px, 6.4vw, 92px) | The title ribbon under the bar |
| `--ss-text-h2` | clamp(38px, 5vw, 68px) | Section headings, line-height 1 |
| `--ss-text-h3` | 28px | Sub-headings, FAQ questions, related titles |
| `--ss-text-lead` | 21px | The sentence under a headline, soft, max 620px |
| `--ss-text-body` | 18px | Body (article prose is 20px) |
| `--ss-text-label` | 12px | Mono labels |

Headlines are short and plain ("Pick a pace", "Three days of rain in Ilam"). Sentence case, no period. A tiny serif note in parentheses can ride on a title as a superscript (`.ss-note`, "(Tin 041)").

## Shape and space

- Corners: square everywhere. `--ss-radius` is 0. The only round things are live dots and the cover's mark.
- Borders: 1px hairlines. `--ss-line` between items, `--ss-line-strong` at the top of a list, table or plan row and under the bar.
- Shadows: none. Depth comes from the spines standing on the shelf line, and from `--ss-night-2` sections.
- Lists, plans and features sit on a ledger: rows or columns split by hairlines, never floating cards.
- Gutters are tight (16px at the page edge, wide containers up to 1320px). Sections breathe: 72px to 136px vertical.
- Motion: a slow marquee (48s), spines that lift 14px on hover, a 1.1s fade up. Respect reduced motion.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.ss` | Body class: near-black page, paper text, grain overlay, no sideways scroll |
| `.ss-container`, `.ss-narrow`, `.ss-section`, `--raised`, `.ss-rule` | Layout and section surfaces |
| `.ss-label`, `--soft`, `.ss-bracket`, `.ss-dot` | Uppercase mono labels; `.ss-bracket` wraps text in [ ]; celadon live dot |
| `.ss-hero-title`, `.ss-h2`, `.ss-h3`, `.ss-it`, `.ss-accent`, `.ss-note`, `.ss-lead` | Display headings, the italic switch, the celadon word, the superscript note, the soft lead |
| `.ss-bar`, `__inner`, `__links`, `.ss-wordmark`, `.ss-subbar` | Sticky top bar: mono wordmark left, mono links right, a strong hairline, an optional second row of labels |
| `.ss-btn`, `--primary`, `--text`, `--block` | Bracketed mono buttons. Outlined by default, solid celadon for the one main action |
| `.ss-marquee`, `__track`, `__item`, `--on` | Slow ribbon of titles, alternating italic and roman, with edge fades |
| `.ss-shelf`, `.ss-spine`, `--ochre` (default), `--oxblood/slate/bone/moss/night`, `--tall/short/wide/lean`, `__title`, `__no` | The shelf of drawn spines. Mix colors and heights; lean the last one |
| `.ss-cover`, `--oxblood/slate`, `__title`, `__mark` | A flat drawn front cover for a featured item or article plate |
| `.ss-index`, `__row/__no/__title/__text/__meta` | Numbered ledger rows, the default way to list things |
| `.ss-grid`, `.ss-cell` | Three columns of short notes split by hairlines |
| `.ss-quote` | Large italic display quote with a mono byline |
| `.ss-stats`, `.ss-stat`, `__n` | Big display numbers on a ruled row |
| `.ss-toggle` | Square mono segmented toggle; the pressed option is paper on night |
| `.ss-plans`, `.ss-plan`, `--featured`, `__name/__desc/__price/__list` | Plans as columns on one ruled ledger; the featured one sits on `--ss-night-2` with the only celadon button |
| `.ss-table-wrap`, `.ss-table`, `__yes/__no` | Ruled comparison table with mono headers; scrolls sideways on phones |
| `.ss-faq` | `<details>` list with display questions and a bracketed [+] / [-] |
| `.ss-prose`, `.ss-callout`, `.ss-margin`, `.ss-meta` | Article body: celadon drop cap, display h2, mono h3, slash bullets, italic pull quote, mono captions; a bordered note; margin facts |
| `.ss-related`, `__item/__spine/__title` | Related reading: a thin spine beside a title |
| `.ss-form`, `.ss-field`, `.ss-input`, `.ss-select`, `.ss-input-wrap`, `.ss-input-toggle` | Underlined fields with mono labels; a show or hide toggle inside the password field |
| `.ss-help`, `.ss-error`, `.ss-field--error` | Faint help text; a warm error line and mono message |
| `.ss-check`, `.ss-choice` | Square checkbox that fills celadon; a three-way choice strip that fills paper when picked |
| `.ss-footer`, `__cols`, `__mark`, `__bottom` | Footer: link columns, a giant wordmark set barely lighter than the page, a ruled legal line |
| `.ss-fade` | Slow entrance |
| `.ss-hide-sm` | Hide a nav link or spine below 860px |

## Pages in this kit

- `demo.html`: landing page (bar, marquee, hero with the shelf, how it works, ledger of recent items, cover and quote, stats, call to action, footer).
- `pricing.html`: plans on a ledger with a monthly or yearly toggle, a comparison table, an FAQ and a call to action.
- `blog.html`: a long essay with three drawn plates, a margin column of facts, prose and related reading.
- `signup.html`: a split page, the form on the left and the member's future shelf on the right.

## Page recipe

1. `.ss-bar` with the mono wordmark, 3 links and a bracketed "Join". Add a `.ss-subbar` with one soft label and one live status.
2. `.ss-marquee` of the product's item titles, each with an `.ss-note`, one of them `--on`.
3. Hero: a two-column grid, the headline left (2 or 3 lines, one italic phrase, one celadon word), the lead and two buttons bottom right.
4. Right under the hero, the `.ss-shelf` of 7 to 9 spines in mixed colors and heights, with mono captions under the shelf line.
5. A `--raised` section: an h2 on the left and an `.ss-grid` of three numbered notes on the right.
6. An `.ss-index` of the last few items, each with a status in `__meta`.
7. A `--raised` section with an `.ss-cover` beside an `.ss-quote`.
8. `.ss-stats`, then a centered call to action with a hero-size headline, then the footer.

## Pricing page recipe

1. Bar without the sub row. An intro grid: label, hero headline and lead on the left, `.ss-toggle` bottom right.
2. `.ss-plans` with 3 columns. Feature the middle one (`--featured`, an italic name, a live-dot label, the only primary button). Keep both prices in `data-monthly` and `data-yearly` and swap them in a few lines of JS.
3. One mono line of small print under the ledger.
4. A section with a bracketed label, an h2 and an `.ss-table` in `.ss-table-wrap`.
5. An FAQ section: h2 on the left, `.ss-faq` on the right, the first item open.
6. A `--raised` call to action and the footer.

## Article page recipe

1. Bar, then the header in the wide container: bracketed category label, hero title with one italic word, lead, and a `.ss-meta` row on a hairline.
2. A row of three `.ss-cover` plates in different colors. On phones show only the first.
3. A two-column layout: a sticky `aside` of margin facts (label plus `.ss-margin`) and a tiny bar chart drawn in spine colors, then `.ss-prose` at 700px.
4. In the prose: a drop cap on the first paragraph, display h2s with an italic word, mono h3s, slash bullets, one italic blockquote, one `.ss-callout`, one `<figure>` with a mono caption.
5. End on a ruled line with the author and a text button, then a `--raised` `.ss-related` row and the footer.

## Sign-up page recipe

1. Two columns, full height. Left: wordmark and a bracketed "Back", then the form block vertically centered, max 480px.
2. Bracketed label, an h2 with the celadon word, a one-line lead.
3. `.ss-form`: names side by side, email, password in `.ss-input-wrap` with a Show toggle, an `.ss-choice` for the plan, a select, two `.ss-check` boxes, and a block primary button. Show an error with `.ss-field--error` and `.ss-error`.
4. Right column on `--ss-night-2`: a sub row of labels, a short `.ss-shelf` with the first spine in color and the rest `--night`, and an `.ss-quote` at the bottom. Hide it below 860px.

## Don'ts

- Don't round corners, add shadows or float cards. Use hairlines and ledgers.
- Don't bold the display serif, and don't set a headline fully in roman or fully in italic.
- Don't write labels in sentence case or without the mono font.
- Don't use spine colors on chrome, or add a second accent beside celadon.
- Don't use pure black or pure white.
- Don't use em dashes in copy.
