# Glyph Ribbon

Playful and a little nerdy on a pale aqua page. The product lives in a "pad": a rounded panel with a small tab on top (like a file picker), a ribbon of colored symbols across its head, a near-white well for the content and a soft footer bar with one small button. Symbols come in six glyph colors, one per family, and they also show up as square chips beside short paragraphs. Navigation is a centered row of big teal links that stay underlined. Everything is flat: thin slate borders, no drop shadows, no gradients. It feels like a friendly tool made by people who love notation.

Use it for: tools with their own notation or vocabulary (knitting, music, chemistry, sign language, recipes, programming languages), hobby clubs, classes, indie software, community projects. Avoid it for: luxury brands, dark cinematic launches, finance and legal services, image-led shops.

## 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 Glyph Ribbon 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 invented product, Purlwise, a knitting chart editor where every stitch is a colored glyph. They are built only with the kit.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Lexend:wght@500;600;700&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Display | Lexend 500 to 700 | Hero (700), section headings (600), buttons, labels, prices |
| Body | Atkinson Hyperlegible 400 and 700, italic | Paragraphs, nav links, form fields. The bold italic is the header tagline. |
| Mono | DM Mono 400 to 500 | Glyph ribbons, pad lines, eyebrows, badges, table values |

## Color

| Token | Hex | Role |
|---|---|---|
| `--gr-aqua` | #CBE9ED | The page |
| `--gr-aqua-2` | #DDF1F3 | Alternate bands, chips, pad footer |
| `--gr-foam` | #EAF6F7 | Pad heads, cards, plans, legend items |
| `--gr-well` | #F4F8F8 | The pad well, inputs, the picked plan |
| `--gr-line` | #93AEB3 | 2px panel borders and heading rules |
| `--gr-line-soft` | #B4CED2 | 1px inner dividers |
| `--gr-ink` | #263A40 | Text and headings |
| `--gr-ink-soft` / `--gr-faint` | #4F666C / #7F979C | Secondary text, hints, line numbers |
| `--gr-teal` | #0B8597 | Links, the one primary button, the picked plan border |
| `--gr-orange`, `--gr-sun`, `--gr-lime`, `--gr-sky`, `--gr-violet`, `--gr-rose` | #EC7F45, #DFAE22, #6DBB45, #3398D6, #AD55D2, #DF5468 | Glyph colors. Only for symbols, chips, stat numbers and code tokens. Use the `.g-o`, `.g-s`, `.g-l`, `.g-k`, `.g-v`, `.g-r` helpers. |

Give each glyph color a meaning (a family of symbols) and keep it. Never set body text or buttons in a glyph color.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--gr-text-hero` | 36px to 68px | Hero, Lexend 700, tight line height |
| `--gr-text-h2` | 28px to 40px | Section headings with a 2px rule under them |
| `--gr-text-h3` | 21px | Card, plan and add-on titles |
| `--gr-text-lead` | 18px to 22px | Leads in soft ink |
| `--gr-text-nav` | 17px to 21px | The underlined nav row |
| `--gr-text-body` | 18px | Body. Articles use 19px. |
| `--gr-text-glyph` | 22px | Glyph ribbons |
| `--gr-text-micro` | 13px | Lowercase mono eyebrows and badges |

Headlines are plain and helpful ("Write the pattern once. Read every row at a glance."). Eyebrows are lowercase mono with a violet diamond.

## Shape and space

- Panels use 12px radius and a 2px slate border. Buttons, inputs and chips use 8px. Badges are pills.
- The pad tab is a 48px tall box that sits on the panel's top-left corner, with the panel's own top-left corner squared off underneath it. The picked plan and quotes repeat this "tab on the corner" move.
- No shadows. Depth comes only from the four aqua steps (page, aqua-2, foam, well).
- Links are always underlined, 1.5px, thickening on hover.
- Sections: 72px vertical padding, 48px for tight ones. Container 1080px, reading width 700px.
- Motion: buttons and link cards lift 1px to 2px on hover. Nothing else moves.

## Components (in components.css)

- `.gr` on `<body>` sets the base.
- Layout: `.gr-wrap` (`--reading`), `.gr-section` (`--foam`, `--tight`).
- Header: `.gr-header`, `.gr-header__top` with `.gr-logo` (`.gr-logo__mark`, `--sm`), `.gr-tagline` and `.gr-header__aside`; then `.gr-nav` with `aria-current="page"` on the current link.
- Type: `.gr-hero-title`, `.gr-h2` (ruled; `--bare` without the rule), `.gr-h3`, `.gr-lead`, `.gr-eyebrow`, `.gr-muted`, `.gr-hint`, `.gr-mono`.
- Buttons: `.gr-btn` with `--primary` (teal), `--ghost` (well with border), `--sm`, `--block`. Group in `.gr-actions`.
- Pad: `.gr-pad` holding `.gr-pad__tab` (buttons and a `<span>` title), `.gr-pad__body`, a `.gr-ribbon`, `.gr-pad__well` with `.gr-pad__line` rows (`<i>` number, `<b>` glyphs, `<em>` comment), optional `.gr-pad__tools`, `.gr-pad__foot`, then `.gr-pad__notes` under the panel.
- Ribbon: `.gr-ribbon` of `<span>` glyphs, with `--bare`, `--lg` and `--scroll` (one clipped row).
- Chips: `.gr-chip` (64px) and `--sm` (40px), one glyph each.
- Points: `.gr-points` of `.gr-point` (chip plus a paragraph). Prose: `.gr-cols`.
- Legend: `.gr-legend` list of chip, name and meaning.
- Cards: `.gr-cards` of `.gr-card` (`--white`; an `<a class="gr-card">` becomes a link card).
- Badges: `.gr-badge` (lime dot) and `--teal`. Stats: `.gr-stats` of `.gr-stat` with the number in a glyph color.
- Pricing: `.gr-toggle`, `.gr-plans` of `.gr-plan` (`--pick` with `.gr-plan__tab`), `.gr-plan__glyphs`, `.gr-plan__price`. Table: `.gr-table-wrap` and `.gr-table`. FAQ: `.gr-faq` with `<details>`.
- Forms: `.gr-form`, `.gr-field`, `.gr-label`, `.gr-input`, `.gr-select`, `.gr-check`, `.gr-choices` of `.gr-choice` (glyph radio cards).
- Article: `.gr-meta`, `.gr-avatar`, `.gr-article`, `.gr-figure`, `.gr-quote`.
- Footer: `.gr-footer`, `.gr-footer__grid`, `.gr-footer__base`.

## Pages in this kit

| File | Page |
|---|---|
| `demo.html` | Landing: header, centered hero, the pad with a ribbon and four chart rows, three glyph points, ruled two-column prose, stats, a stitch legend, three quote cards, a closing ribbon and call to action |
| `pricing.html` | Plans with a yearly or monthly toggle, the picked plan with a tab, add-ons with chips, a compare table, FAQ |
| `blog.html` | An article with a pad as its figure, colored glyph words, a tabbed quote and related link cards |
| `signup.html` | Split: headline, three chip ticks and a small pad on the left, the form card with glyph radio cards on the right |

## Page recipe

1. `.gr-header`: logo, italic tagline, small aside link, then the centered underlined nav.
2. A centered hero: headline and lead.
3. The `.gr-pad` showing the product: a ribbon of symbols, a few lines in the well, a footer with a status and one small ghost button, notes underneath.
4. `.gr-points`: three chips with one paragraph each.
5. A `--foam` band with `.gr-cols` under ruled headings.
6. Stats, a legend or cards, then a closing ribbon with one teal button and one ghost button.
7. `.gr-footer`.

Pricing recipe: a short centered header with a `--lg` bare ribbon and `.gr-toggle`, three `.gr-plan` cards with the middle one `--pick` and a `.gr-plan__tab`, add-ons in a foam band, a compare table and a FAQ at reading width.

Article recipe: eyebrow, headline at h2 size and `.gr-meta` at reading width, then `.gr-article` with ruled h2s, one `.gr-pad` as a figure, a `.gr-quote`, and three link cards in a foam band.

Sign-up recipe: two columns. Left: eyebrow, headline, lead, three chip ticks, a small pad with a `--scroll` ribbon. Right: a `.gr-card` with `.gr-choices`, the fields, one block teal button and a log-in link.

## Don'ts

- Don't put glyph colors on text, buttons or backgrounds. They belong to symbols.
- Don't add drop shadows, gradients or blur. Stay flat.
- Don't remove link underlines or use a second link color.
- Don't use more than one teal primary button in view.
- Don't round the pad's top-left corner under its tab.
- Don't fill a ribbon with random emoji. Use simple single-color symbols that mean something in your product.
- Don't use em dashes in copy.
