# Eclipse Rim

A quiet tool for the small hours. Pages sit on a violet-black void and the light is rationed. Headlines are medium-weight Geist, centred, with tight tracking, and they fade from bright white at the top to a cool lilac grey at the bottom, like light catching brushed metal. Body text is a soft lavender grey; keys, times, labels and captions are Geist Mono. The signature is an eclipse: a dark disc whose rim burns ultraviolet and pale pink, rising from behind a glass app window, with faint orbit rings and a few node dots drifting around it. Buttons are small glass slabs with 8px corners; the main one is lit violet from inside. It feels calm, focused and a little futuristic, the look of software you open at 3am and trust.

Use it for: productivity and planning apps, health and sleep tools, AI products, note and knowledge tools, night-time services, premium consumer apps, anything that wants to feel calm, private and modern after dark. Avoid it for: kids and family brands, food and retail shops that live on photography, loud sales pages, long legal or finance copy, anything that should feel warm, handmade or sunny.

## 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 Eclipse Rim 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. Use one eclipse per view, rising from behind a window or card.

`demo.html` (a landing page), `pricing.html`, `blog.html` and `signup.html` are complete example pages built only with the kit, for an invented sleep and shift planner for night workers called Vesper.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Geist 500 | Hero and section titles at 500 with -0.03em to -0.035em tracking, always filled with `--er-title-fill` (white fading to lilac grey). Stats and prices. |
| Body and UI | Geist 400 to 600 | Body at 400, buttons, card titles and labels at 500, the logo at 600. |
| Mono | Geist Mono 400 to 500 | Eyebrows (uppercase, 0.06em tracking), keys (`⌘K`), times, badges, table heads, captions. 11 to 13px. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--er-void` | #08061A | The page, inputs and the eclipse disc |
| `--er-deep` | #0E0B22 | App windows, plans, figures, the CTA band |
| `--er-panel` | #15112E | Search fields, icon tiles, the featured plan |
| `--er-raised` | #1F1940 | Second buttons, keys, active nav link |
| `--er-line` | #2C2552 | Input and button borders, stat rules |
| `--er-text` | #EEEAF8 | Body headings and UI text |
| `--er-dim` | #9C95BA | Leads, body, card text |
| `--er-faint` | #655E86 | Captions, placeholders, logo walls |
| `--er-uv` | #7A5CF6 | The one accent: lit buttons, shift bars, focus rings |
| `--er-uv-deep` | #4E33C2 | Primary button fill, today in the calendar, avatars |
| `--er-lilac` | #C2B3FF | Eyebrows, links, icons, checks, orbit nodes |
| `--er-flare` | #F4D9FF | The hottest edge of the eclipse rim and lit card edges |
| `--er-sky` | #7DB6FF | Sleep bars and "tonight" status only |

Rules:
- Color arrives as light, never as a flat fill over a big area. Ultraviolet glows around one or two things per view: the eclipse, the main button, the featured plan.
- Headlines are never flat white. Always `--er-title-fill` clipped to the text.
- Sky blue means rest. Use it for sleep bars and a status dot, never for buttons.
- Every surface is a shade of the void. No light sections, no grey backgrounds.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--er-text-hero` | clamp(34px, 6vw, 68px) | Page titles, centred, two short lines |
| `--er-text-h2` | clamp(26px, 3.6vw, 42px) | Section titles |
| `--er-text-h3` | 18px | Card and plan names |
| `--er-text-lead` | 18px | Dim lead under a title |
| `--er-text-body` | 15px | Body and UI |
| `--er-text-small` | 13px | Notes and side links |
| `--er-text-micro` | 12px | Mono eyebrows and captions |

Hero titles are two short sentences on two lines ("Plan your nights. / Keep your sleep."). Break lines by hand with `<br>`. Copy is calm and plain, never shouty; no exclamation marks.

## Shape and space

- Radius: 6px keys and badges, 8px buttons, inputs and choices, 12px cards, quotes and FAQ rows, 18px windows, plans and the CTA band. Pills only for the nav capsule and the announcement chip.
- Borders: hairlines drawn as inset box-shadows (`--er-line-soft` on glass, `--er-line` on inputs). Raised things carry a 1px white highlight on their top edge.
- Lit edges: windows, featured cards and the featured plan get a thin line along the top edge that fades out at both ends (`.er-card--lit`, `.er-window::before`).
- Shadows: long, soft, near-black drops under windows (`--er-shadow-window`). The primary button has an inner highlight, a lilac ring and a violet glow (`--er-shadow-btn`).
- Sections: 72px to 112px vertical padding. Container 1160px with 24px gutters. Text column 680px.
- Motion: content rises 12px on load (`.er-rise`), buttons lift 1px on hover. Respect reduced motion.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.er` | Put on `<body>`: void page, Geist, light text, clipped sideways overflow |
| `.er-container`, `.er-narrow`, `.er-section`, `--tight`, `--lit` | Layout and section spacing; `--lit` adds a soft violet glow from the top |
| `.er-nav`, `__inner`, `__links`, `__end`, `.er-logo`, `__mark` | Top bar with links grouped in a hairline capsule; the logo mark is a tiny eclipse |
| `.er-hero-title`, `.er-h2`, `.er-h3`, `.er-lead`, `.er-eyebrow`, `.er-micro`, `.er-muted` | Type |
| `.er-btn`, `--primary`, `--ghost`, `--sm`, `--lg`, `--block` | 8px glass buttons |
| `.er-chip`, `__spark` | Announcement chip with a four-point spark |
| `.er-kbd` | Mono key cap |
| `.er-badge`, `--uv`, `--sky`, `.er-dot` | Small mono labels and a glowing status dot |
| `.er-hero`, `__copy`, `__actions`, `__note` | Centred hero |
| `.er-eclipse`, `__disc`, `--sm` | The signature: top half of a dark disc with a burning rim |
| `.er-orbits`, `.er-node`, `.er-node--dim` | Faint orbit rings with node dots, drawn in inline SVG |
| `.er-stage`, `.er-window`, `__grid`, `__side`, `__main`, `__aside` | Glass app window that overlaps the eclipse |
| `.er-search`, `.er-side-link`, `--on`, `.er-entry-title`, `.er-bullets`, `.er-link-tag` | Window contents |
| `.er-cal`, `__head`, `__grid`, `.is-shift`, `.is-today` | Mini month calendar |
| `.er-track`, `__fill`, `--sky`, `--dim` | Time bars for shifts, sleep and progress |
| `.er-grid`, `--2`, `--4`, `.er-card`, `--lit`, `.er-icon` | Glass cards with a small icon tile |
| `.er-split` | Two-column text and visual row |
| `.er-stats`, `.er-stat`, `__num`, `__label` | Big numbers in the title fill |
| `.er-checks` | List with tiny eclipse rings as bullets |
| `.er-quote` | Pull quote |
| `.er-toggle`, `.er-plans`, `.er-plan`, `--featured`, `__name`, `__price`, `.er-table-wrap`, `.er-table`, `.er-yes` | Pricing |
| `.er-faq` | Details and summary list |
| `.er-article-head`, `.er-meta`, `.er-avatar`, `.er-prose`, `.er-figure` | Article |
| `.er-form`, `.er-field`, `.er-row`, `.er-label`, `.er-input`, `.er-select`, `.er-hint`, `.er-choices`, `.er-choice`, `.er-divider` | Forms |
| `.er-cta` | CTA band with a small eclipse rising from its bottom edge |
| `.er-footer`, `__grid`, `__base` | Footer |
| `.er-rise`, `--2`, `--3` | Load animation |

## Pages in this kit

- `demo.html`: landing page with the chip, a two-line fading title, the eclipse rising behind an app window inside orbit rings, a logo row, a week of shift and sleep bars, feature cards, stats and a CTA band.
- `pricing.html`: centred title over an eclipse, a monthly and yearly toggle, three plans overlapping the eclipse (the middle one lit), a compare table and an FAQ.
- `blog.html`: a night-shift story with a small eclipse as the horizon under the title, a bar chart figure, a pull quote and related cards.
- `signup.html`: two columns, the pitch on the left over orbit rings, the form card on the right with an eclipse rising from its top edge.

## Page recipe

1. `<body class="er">`, then `.er-nav`.
2. `.er-hero` holding `.er-orbits` (inline SVG: two or three circles and three to seven `.er-node` dots), then `.er-hero__copy` with `.er-chip`, a two-line `.er-hero-title`, `.er-lead`, two buttons (`--primary` and plain) and a `.er-hero__note`.
3. Under the copy: `.er-eclipse` followed straight away by `.er-window`. The window pulls up over the bottom of the eclipse, so only the top of the rim shows.
4. Plain void sections below: an `.er-split` with text and a window of `.er-track` bars, an `.er-section--lit` with a `.er-grid` of `.er-card`s (one `--lit`), then `.er-stats`.
5. Close with `.er-cta` (with an `.er-eclipse--sm` at its bottom) inside the container, then `.er-footer`.

Pricing recipe: centred eyebrow, title, lead and `.er-toggle`, then an `.er-eclipse`. The `.er-plans` row pulls up over it with a negative top margin, middle plan `--featured` with a `.er-badge--uv`. Then the `.er-table` in `.er-table-wrap` and `.er-faq` on `.er-section--lit`.

Article recipe: `.er-article-head` in `.er-narrow` (eyebrow, title, `.er-meta` with an `.er-avatar`), then a small `.er-eclipse` as a horizon. The body is `.er-prose` in `.er-narrow` with one `.er-figure` built from `.er-track` bars and one `.er-quote`. End with three related `.er-card`s.

Sign-up recipe: the page holds `.er-orbits` behind a two-column grid. Left: eyebrow, title, lead, `.er-checks` and a `.er-badge--sky` status line. Right: an `.er-card--lit` with an eclipse rising from its top edge and the `.er-form` (a two-field `.er-row`, email, `.er-choices` radio tiles, a primary block button, `.er-divider`, a plain block button).

## Don'ts

- Don't use more than one large eclipse per view, and never show the whole disc; only the top half rises.
- Don't set headlines in flat white or in bold; they are 500 weight with the fading fill.
- Don't make buttons into pills or round them past 8px; only the nav capsule and the chip are pills.
- Don't fill large areas with ultraviolet. It's a light source, not a background.
- Don't use sky blue for actions; it means rest.
- Don't add light sections, photos with bright skies, or warm colors.
- Don't crowd the orbits: a few thin rings and a handful of dots, nothing more.
