# Ink Sky

A painted night sky you can build a product in. Pages are deep ink-violet, and the top of each one is a framed sky panel, inset a few pixels from the window edge with rounded corners and a hairline border, full of tiny stars and soft plum clouds with a rose-lit upper rim. Over it sit centred headlines in a warm book serif (Source Serif 4) and a plain sans lead (Inter). One violet button with a lighter rim does all the asking; everything else is a near-black ghost button. On the landing page a dark app window rises out of the bottom of the sky, with breadcrumbs, underlined tabs and a dotted canvas of small cards. Below the sky the page settles into calm dark panels and small mono eyebrows. It feels quiet, a little dreamy and quietly confident: a serious tool that happens to keep late hours.

Use it for: products that live in the evening or at night (bookshops, reading and writing apps, sleep and audio, events, observatories, late-night venues), developer and infrastructure tools that want warmth, memberships and clubs, cinematic launches. Avoid it for: bright daylight brands, kids' products, food and retail that need photography, dense data dashboards, anything urgent or loud.

## 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 Ink Sky 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 company called Late Pages: a night bookshop that runs six-chair reading circles from 7pm to 2am.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Source Serif 4, 600 (500 for FAQ questions) | Every h1 to h3, prices, pull quotes. Tracking -0.02em, line height 1.08. |
| Body and UI | Inter 400 to 600 | Leads, body, nav, buttons, form labels. The wordmark is Inter 600 with -0.02em. |
| Labels | JetBrains Mono 400 to 500 | Eyebrows (uppercase, 0.14em tracking, lilac), badges, table heads, small metadata in app cards. |

Serif for things people read as a voice, sans for things people use, mono for small labels. Never set body copy in the serif or headlines in the sans.

## Color

| Token | Hex | Use |
|---|---|---|
| `--ik-ink` | #14111E | The page |
| `--ik-well` | #0D0B15 | App windows, inputs, ghost buttons, code |
| `--ik-panel` | #1C1829 | Cards, plans, the form panel |
| `--ik-panel-hi` | #252037 | Hovered cards, table heads, the picked plan |
| `--ik-sky-top` / `--ik-sky-low` | #1B1830 / #2C2340 | The sky panel, fading warmer toward the bottom |
| `--ik-cloud` / `--ik-cloud-lit` / `--ik-cloud-glow` | #4E3D5E / #8A6681 / #B98A9B | Clouds only |
| `--ik-star` | #F3EEE6 | Headlines, body, stars |
| `--ik-mute` | #A39CB6 | Leads, secondary text |
| `--ik-faint` | #6F6884 | Hints, captions, inactive tabs |
| `--ik-violet` | #6A48D6 | The one filled button |
| `--ik-violet-rim` | #9B82F0 | The button's rim, the picked plan's border, focus rings |
| `--ik-lilac` | #C2B2F7 | Links, eyebrows, the active tab line, list markers |
| `--ik-moss` | #8FC79A | Ticks, "Yes" in tables, live dots |
| `--ik-lamp` | #F2C98B | One tiny warm detail per page at most |

Rules:
- The page is always ink. The sky is the only place with gradients and the only place clouds appear.
- Violet is a button colour, never a background block or a headline colour.
- Lilac is for small things: eyebrows, links, one line under the active tab.
- Lines are translucent cream (`--ik-line`, `--ik-line-strong`), never grey hex.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--ik-text-hero` | clamp(40px, 5.6vw, 70px) | Centred page titles, usually two balanced lines |
| `--ik-text-h2` | clamp(30px, 3.6vw, 46px) | Section titles |
| `--ik-text-h3` | 21px | Card, plan and article-link titles |
| `--ik-text-lead` | clamp(17px, 1.5vw, 20px) | Leads under titles, in `--ik-mute` |
| `--ik-text-body` | 16px | Body and UI (18px inside `.ik-prose`) |
| `--ik-text-small` / `--ik-text-micro` | 14px / 12px | Notes, eyebrows, badges |

Headlines are plain sentences with a little warmth ("A bookshop for people who read after dark"). Leads are two or three calm sentences.

## Shape and space

- Radius: 6px small buttons, 10px buttons, inputs and app cards, 14px cards, plans, panels and the app window, 20px the sky panel, pill for badges only.
- The sky panel is inset from the viewport by `--ik-gutter` (12 to 18px) on the left and right, with a 1px `--ik-line` border. This framed, inset look is the signature; don't run the sky edge to edge.
- Borders over shadows. Cards have a 1px line; only the app window, the form panel and the violet button get shadows.
- Generous vertical rhythm: 112px between sections (`--ik-s9`), 72px for tight ones. Content max width 1120px.

## Components (in components.css)

- `.ik-nav`, `.ik-brand`, `.ik-nav-links`, `.ik-nav-end`: nav sits on plain ink above the sky. Links hide under 860px, the sign-in link under 480px.
- `.ik-sky`: the framed sky panel with stars. Add two to four `.ik-cloud` divs (`--a` top left, `--b` right, `--c` bottom, `--d` small top right) as its first children.
- `.ik-hero` (and `--short`): centred eyebrow, `.ik-display`, `.ik-lead`, `.ik-hero-actions`.
- `.ik-window`, `.ik-window-bar`, `.ik-crumbs`, `.ik-tabs`, `.ik-tab--on`, `.ik-window-body`, `.ik-node`: the app window that rises out of the sky's bottom edge. Place it as the last child of `.ik-sky`.
- `.ik-btn` with `--primary`, `--ghost`, `--sm`, `--block`.
- `.ik-card`, `.ik-card-icon`, `.ik-grid`, `.ik-badge` (`--live`, `--violet`), `.ik-quote`.
- Forms: `.ik-panel`, `.ik-field`, `.ik-label`, `.ik-input`, `.ik-select`, `.ik-choice`, `.ik-check`, `.ik-hint`.
- Pricing: `.ik-plans`, `.ik-plan` (`--pick`), `.ik-price`, `.ik-list`, `.ik-table-wrap`, `.ik-table`, `.ik-yes`, `.ik-no`, `.ik-faq`.
- Article: `.ik-article`, `.ik-prose`, `.ik-meta`, `.ik-avatar`, `.ik-figure`.
- `.ik-cta` (put it on an `.ik-sky` section), `.ik-footer`, `.ik-footer-grid`, `.ik-footer-base`.

## Pages in this kit

- `demo.html`: landing page. Nav, sky with hero and the app window, three feature cards, a split section with stats, a serif pull quote, a small sky CTA, footer.
- `pricing.html`: short sky hero, three plans pulled up over the sky's bottom edge, a comparison table, FAQ, CTA.
- `blog.html`: short sky hero with title and byline, a 700px article with serif subheads, a pull quote, a figure drawn in a small sky, related posts as cards.
- `signup.html`: the whole page is one sky panel, with the pitch on the left and the form panel on the right.

## Page recipe

1. `.ik-nav` on plain ink.
2. `.ik-sky` with clouds, then `.ik-hero` (eyebrow, two-line serif title, lead, one primary and one ghost button).
3. On product pages, an `.ik-window` as the sky's last child, showing the product's real objects as `.ik-node` cards.
4. Sections on plain ink: eyebrow, h2, lead, then cards or a split.
5. Finish with a small `.ik-sky.ik-cta` and the footer.

Pricing recipe: `.ik-hero--short` in the sky, then the plan grid in a wrapper with a negative top margin and `position: relative; z-index: 1` so the plans overlap the sky's edge. Mark one plan `--pick`; only it gets the violet button.

Article recipe: short sky hero with `.ik-meta` byline, then `.ik-article.ik-prose`. Subheads are serif, quotes have a lilac rule. Draw figures inside a borderless `.ik-sky`.

Sign-up recipe: one `.ik-sky` filling the viewport (minus the gutter) as a two-column grid; pitch with eyebrow, title, lead and two badges on the left, `.ik-panel` form on the right. Stack under 900px.

## Don'ts

- Don't run the sky to the viewport edges or remove its border and radius.
- Don't put clouds or gradients outside a sky, or use photos in the sky.
- Don't use violet for more than one button per view, or for text.
- Don't set headlines in Inter or body text in the serif.
- Don't add bright colours; warmth comes from the cloud rims and the cream text.
- Don't use em dashes in copy.
