# Silk Grid

Crisp infrastructure SaaS on white. Two thin guide rails run down the page like a blueprint, and a silky ribbon of periwinkle, magenta and tangerine sweeps diagonally through the hero. Headlines are two-tone: a short statement in deep navy, then the explanation in slate in the same sentence. One confident indigo carries every action, corners stay tight (4px) and buttons end in a small chevron. It feels precise, well funded and quietly ambitious.

Use it for: infrastructure and API products, aerospace, logistics, fintech, developer platforms, anything technical that still wants a bit of glamour. Avoid it for: cosy consumer brands, kids, handmade or rustic products, anything that should feel loose or noisy.

## 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 Silk Grid 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 ground station booking service called Perigee.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Schibsted Grotesk 500 | Hero, section headings, prices, big numbers, pull quotes. Medium weight, tight tracking. |
| Body | Inter 400 to 600 | Paragraphs, nav, buttons, cards, forms, product UI. |
| Mono | JetBrains Mono 400 | Live counters, times, IDs, code. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--sg-white` | #FFFFFF | The main background |
| `--sg-mist` | #F4F6FB | Quiet sections, table heads, the sign-up side panel |
| `--sg-rail` | #E2E7F0 | Guide rails, every border and divider |
| `--sg-ink` | #0C1A3D | Headlines, body text, the first half of a two-tone headline |
| `--sg-slate` | #4A5F80 | The second half of a headline, leads |
| `--sg-soft` | #6B7A93 | Secondary text, captions |
| `--sg-indigo` | #5B3DF5 | The one action color: buttons, links, eyebrows, checks |
| `--sg-indigo-soft` | #ECE8FF | Icon tiles, chips, callouts |
| `--sg-navy` | #0C1A3D | Dark bands, code blocks, blog covers |
| `--sg-peri`, `--sg-magenta`, `--sg-coral`, `--sg-tangerine` | #9DB0FF, #F455C0, #FF6A5C, #FF8B26 | Ribbon only. Combined in `--sg-ribbon` |

Rules:
- White is the default. Mist for one or two quiet sections, navy for one dark band per page.
- The ribbon gradient appears in the hero ribbon and in tiny touches (the logo mark, avatars, the featured plan's top edge, a pull quote's rule, `.sg-silk` on one eyebrow). Never as a button, never as a full section background.
- Indigo is the only flat accent in page chrome. Green, amber and red live only inside product UI and form errors.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--sg-text-hero` | clamp(38px, 5vw, 66px) | Hero headline, left-aligned, tracking -0.035em, line-height 1.06 |
| `--sg-text-h2` | clamp(30px, 3.6vw, 46px) | Section headings, tracking -0.028em |
| `--sg-text-h3` | 21px | Sub-headings |
| `--sg-text-lead` | 19px | Slate lead under a heading, max 620px |
| `--sg-text-body` | 16px | Body |

The two-tone headline is the signature: `<h2 class="sg-h2">One calendar for every pass. <span class="sg-tone">Perigee predicts each window and books the best antenna.</span></h2>`. The navy part is a short claim with a period; the slate part explains it. Keep the whole thing under about 25 words.

## Shape and space

- Radius: 4px on buttons, inputs, chips and toggles; 8px on cards and windows; 14px on large covers.
- Borders: 1px `--sg-rail`. Feature columns and stats use a 2px rail on the left instead of a box.
- Shadows: soft and long, with a faint indigo tint (`--sg-shadow-lg`) on product windows. Cards are flat with a border, or `--sg-shadow` when they float.
- Guide rails: wrap `main` in `.sg-rails`. Full-bleed rules (`.sg-rule`) and the logo strip cross the rails edge to edge.
- Container 1200px, narrow 760px. Sections 112px top and bottom (72px on phones).

## Components (in components.css)

| Class | What it is |
|---|---|
| `.sg-announce` | Navy strip above the nav with one line |
| `.sg-nav-wrap`, `.sg-nav`, `__links`, `__actions` | Sticky translucent white nav with a bottom hairline |
| `.sg-logo`, `__mark` | Wordmark with a small ribbon ring |
| `.sg-rails`, `.sg-rule` | The two vertical guide rails; a full-width hairline |
| `.sg-hero`, `__copy`, `.sg-ribbon`, `--soft`, `--band` | Hero that clips the diagonal silk ribbon behind the copy |
| `.sg-ticker` | A small live counter above the hero headline, number in mono |
| `.sg-hero-title`, `.sg-h2`, `.sg-h3`, `.sg-tone`, `.sg-silk` | Headlines; `.sg-tone` makes the slate half; `.sg-silk` fills a word with the ribbon |
| `.sg-lead`, `.sg-eyebrow` | Slate lead; small indigo label |
| `.sg-btn--primary/secondary/white/ghost/social`, `--sm`, `--block`, `--plain` | Square-ish buttons with a chevron that nudges right on hover; `--plain` drops the chevron |
| `.sg-logos` | Customer wordmarks in hairline cells that run edge to edge |
| `.sg-grid`, `--2`, `.sg-card`, `--shadow`, `__icon/__title/__text/__link` | Cards with an indigo icon tile and a text link |
| `.sg-cols` | Four feature columns divided by left rails, no boxes |
| `.sg-window`, `--navy`, `__bar/__dots/__body` | Product windows; the navy one holds code |
| `.sg-chip`, `--indigo/--green/--amber`, `.sg-dot` | Small status chips for product UI |
| `.sg-stats`, `.sg-stat` | Big numbers with a left rail |
| `.sg-quote`, `.sg-avatar` | Large grotesk pull quote with a ribbon avatar |
| `.sg-section--mist/navy` | Section surfaces |
| `.sg-toggle` | Two-option segmented control for billing period |
| `.sg-plans`, `.sg-plan`, `--featured`, `__name/__desc/__price/__note/__list` | Three plans joined in one bordered strip; the featured one gets a ribbon top edge |
| `.sg-table-wrap`, `.sg-table`, `__group`, `.sg-yes`, `.sg-no` | Comparison table with group rows in indigo |
| `.sg-faq` | Questions in `<details>` with a chevron |
| `.sg-meta`, `.sg-author`, `--card` | Dot-separated meta and the author line or card |
| `.sg-prose`, `.sg-callout` | Article text: grotesk h2, dash bullets, ribbon-ruled pull quote, navy code; an indigo-soft note |
| `.sg-post`, `__thumb`, `--b`, `--c` | Related post with a navy thumbnail crossed by a ribbon |
| `.sg-form`, `.sg-row`, `.sg-field`, `--error`, `.sg-label`, `.sg-input`, `.sg-select`, `.sg-input-wrap`, `.sg-input-toggle`, `.sg-help`, `.sg-error`, `.sg-check`, `.sg-divider-text`, `.sg-btn__letter` | Form parts |
| `.sg-footer`, `__cols`, `__bottom` | Five-column footer and a legal line |
| `.sg-fade` | Small rise-in, respects reduced motion |

## Pages in this kit

- `demo.html`: landing page (announcement, hero with ribbon, logo strip, two-tone split with a pass schedule window, feature columns, navy developer band with code and stats, quote, final call to action).
- `pricing.html`: hero with ribbon and billing toggle, joined plan strip, comparison table, FAQ, navy call to action.
- `blog.html`: engineering article with a navy ribbon cover, prose, a small bar chart figure and related posts.
- `signup.html`: split page, form on white, mist panel with a ribbon corner, an onboarding window and a quote.

## Page recipe

1. Navy announcement strip, then the sticky nav: logo, 5 links, a secondary "Sign in" (`--plain`) and a primary small button.
2. `main.sg-rails`. Hero: ticker, two-tone hero title (left-aligned, max about 860px), primary and secondary buttons. The ribbon enters from the top right and passes behind the right half of the headline.
3. Logo strip in hairline cells.
4. Split section: eyebrow, two-tone h2, lead, secondary button on the left; a product window on the right.
5. `.sg-rule`, then a wide two-tone h2 with `.sg-cols` under it.
6. Navy band: code window, white and ghost buttons, four `.sg-stat`s.
7. Pull quote in the narrow container.
8. Mist call to action, centered.

## Pricing page recipe

1. Nav, then a hero with eyebrow, two-tone title and an `.sg-toggle`. Keep both prices in `data-monthly` and `data-yearly` and swap them in a few lines of JS.
2. `.sg-plans` pulled up into the hero by about 56px. Feature the middle plan; it gets the only primary button.
3. One line of small print, then the comparison table inside `.sg-table-wrap`.
4. Mist FAQ in the narrow container, then a navy call to action.

## Article page recipe

1. Nav with one primary button. Narrow header: eyebrow, hero title at a smaller clamp with a slate tail, lead, `.sg-author` with `.sg-meta`.
2. A navy cover in the wide container with a ribbon and one small window.
3. `.sg-narrow .sg-prose`: short paragraphs, h2 and h3, dash bullets, one pull quote, navy code, a figure, one `.sg-callout`.
4. `.sg-author--card`, then a mist section with three `.sg-post`s.

## Sign-up page recipe

1. Two columns, full height. Left on white: logo, two-tone h2, short lead.
2. `.sg-form`: names in a `.sg-row`, email (show the error state), password with a show/hide toggle and help text, a select, a terms checkbox, a block primary button, the "or" divider and two social buttons with letter tiles.
3. Right column in mist with a ribbon in the top corner, a small window listing first steps and a quote. Hide it below 900px.

## Don'ts

- Don't center the hero. Left-aligned copy with the ribbon on the right is the look.
- Don't use the ribbon gradient on buttons, text blocks or whole sections.
- Don't round corners past 8px on anything small, and never use pill buttons.
- Don't write one-color headlines in the hero or main sections; use the navy then slate split.
- Don't drop the guide rails or replace hairlines with heavy borders.
- Don't use em dashes in copy.
