# Hub Ring

Bold and friendly on a deep navy night. Heavy Title Case headlines sit on the left, a blue glow pools on the right, and the product shows up as a dark app window with colored lanes and dots, overlapped by the signature hub ring: a glowing core node joined by thin spokes to a ring of five satellite nodes. Buttons are squared and violet, one filled and one outlined, each with a small caption under it. It feels capable and welcoming at the same time, like a power tool that wants you to bring your family.

Use it for: consumer apps with a "many things, one place" story, collaboration tools, family and community products, hubs that connect people, records or devices. Avoid it for: calm editorial reading sites, luxury fashion, anything that should feel light, airy or quiet.

## 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 Hub Ring 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 family history app called Kinloom.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800&family=Figtree:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Plus Jakarta Sans 800 (700 for h3) | Hero, section headings, card titles, plan names, big numbers, quotes. Always Title Case. |
| Body | Figtree 400 to 600 | Paragraphs, nav, buttons, forms, product UI. |
| Mono | IBM Plex Mono 400 to 500 | Eyebrows (uppercase), window titles, tags, timestamps. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--hr-night` | #0B0E1F | The page background. Never pure black |
| `--hr-deep` | #12162D | Every second section, footer, window title bars |
| `--hr-panel` | #191E3A | Cards, windows, inputs, plan cards |
| `--hr-line` | #2A3154 | Every border and divider |
| `--hr-glow` | #1B2C74 | The blue glow that pools on the right of a hero |
| `--hr-snow` | #F4F3FA | Headlines and body text |
| `--hr-haze` | #A9ADC9 | Leads and secondary text |
| `--hr-violet` | #7B2DF0 | The action color: filled and outlined buttons, featured plan, toggle |
| `--hr-orchid` | #D273F8 | Links (underlined), node rims, bullets in articles |
| `--hr-cyan` | #4FD8E8 | The ring's glow, eyebrows, checks, "yes" in tables |

Lane colors (`--hr-lane-1` to `--hr-lane-4`: cyan, orchid, gold, green) appear only inside product windows and tags.

Rules:
- Navy is the default everywhere. Alternate `--hr-night` and `--hr-deep` sections.
- Violet is for actions only. Orchid is for links. Cyan is for light: glows, dots and checks.
- One violet band (`.hr-section--band`) per page at most, near the end.
- Gradients only in three places: the hero glow, the violet button, the ring nodes.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--hr-text-hero` | clamp(38px, 5.4vw, 64px) | Hero headline, left aligned, 2 or 3 lines, weight 800, line-height 1.12 |
| `--hr-text-h2` | clamp(30px, 3.6vw, 44px) | Section headings, weight 800 |
| `--hr-text-h3` | 22px | Sub-headings, weight 700 |
| `--hr-text-lead` | 19px | The sentence under a headline, haze gray, max 600px |
| `--hr-text-body` | 16px | Body |

Headlines are confident Title Case statements ("Research Your Line, Then Weave It Back In"). Every word capitalized, no period. Body copy is sentence case.

## Shape and space

- Borders: 1px `--hr-line`. Outlined buttons use 2px violet.
- Radius: 6px on buttons, inputs and the toggle (squared, not pills). 12px on cards and windows, 18px on stages and the ring tile. Fully round only for ring nodes, avatars and dots.
- Shadows: deep and dark under windows (`--hr-shadow-lg`). Glows, not shadows, on ring parts (`--hr-ring-glow`, `--hr-node-glow`).
- Sections: 72px to 120px vertical padding. Container 1200px, text 740px.
- Motion: a short rise on load, cards lift 2px on hover. Nothing spins.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.hr-glow` | Wrapper for the nav and hero: navy with a blue glow on the right and a faint violet one bottom left |
| `.hr-nav-bar`, `.hr-nav`, `.hr-logo`, `__mark` | Dark nav with a hairline under it; logo is a gradient ring node and a heavy wordmark |
| `.hr-hero-title`, `.hr-h2`, `.hr-h3`, `.hr-lead` | Heavy Title Case headlines and a haze lead |
| `.hr-eyebrow` | Uppercase mono label in cyan with a glowing dot |
| `.hr-btn--primary/outline/white/outline-white/quiet`, `--sm`, `--block` | Squared buttons. Violet filled next to violet outline |
| `.hr-btn-group`, `.hr-btn-note` | A button with a small caption under it ("Works on: Web, iPhone or Android") |
| `.hr-link` | Underlined orchid link, usually ending in an arrow |
| `.hr-hero`, `.hr-hero__caption` | Two-column hero: text left, stage right, with a bold caption under the stage |
| `.hr-pager` | Carousel arrows and dots centered under a hero |
| `.hr-stage` | Holds a window with the ring overlapping its bottom right corner |
| `.hr-window`, `__bar`, `__dots`, `__body` | Dark app window with a mono title bar |
| `.hr-lanes`, `__svg`, `.hr-lane-row`, `--plain`, `__text`, `__meta` | Activity rows with colored lanes and dots drawn in an inline SVG on the left |
| `.hr-tag`, `--cyan/gold/green` | Small mono tags inside windows |
| `.hr-ring`, `--bare`, `__orbit`, `__spoke`, `__core`, `__node`, `--text` | The hub ring. Place spokes and nodes with `.hr-at-1` to `.hr-at-5` (top, then clockwise) |
| `.hr-logos` | A row of text wordmarks in faint gray |
| `.hr-grid`, `--2`, `.hr-card`, `__icon/__title/__text` | Feature cards with a glowing round icon node |
| `.hr-split`, `.hr-checks` | Text beside a visual, with glowing dot checks |
| `.hr-stats`, `.hr-stat` | Big numbers with a violet left rule |
| `.hr-quote`, `.hr-avatar` | Bold quote card with a gradient initial avatar |
| `.hr-section`, `--deep`, `--band`, `--tight` | Section surfaces and the violet band |
| `.hr-toggle` | Squared two-option toggle with the active option in violet |
| `.hr-plans`, `.hr-plan`, `--featured`, `__label/__name/__desc/__price/__list` | Pricing cards; the featured one has a violet ring and a cyan label |
| `.hr-table-wrap`, `.hr-table`, `__yes/__no` | Comparison table; the wrap scrolls sideways on phones |
| `.hr-faq` | `<details>` list with an orchid plus that turns into a cross |
| `.hr-prose`, `.hr-callout` | Article text: heavy h2, orchid bullets, cyan quote rule, deep code blocks; a cyan tinted note |
| `.hr-author`, `--card`, `.hr-meta` | Author line and closing author card |
| `.hr-post`, `__thumb` | Related post card with a glow thumbnail |
| `.hr-form`, `.hr-field`, `.hr-field-row`, `.hr-label`, `.hr-input`, `.hr-select` | Dark stacked form fields with a violet focus ring |
| `.hr-input-wrap`, `.hr-input-toggle`, `.hr-help`, `.hr-error`, `.hr-field--error`, `.hr-check` | Password toggle, hints, errors and a violet checkbox |
| `.hr-divider-text`, `.hr-social`, `.hr-btn__letter` | "or" divider and two quiet social buttons with letter tiles (no brand logos) |
| `.hr-footer`, `__cols`, `__about`, `__bottom` | Four-column footer on deep navy |
| `.hr-fade` | Entrance rise, respects reduced motion |

## Pages in this kit

- `demo.html`: the landing page (glow hero with window and ring, pager, logos, feature cards, a split with a people ring, quote and stats, violet band, footer).
- `pricing.html`: centered hero, monthly or yearly toggle, three plans, comparison table, FAQ, violet band.
- `blog.html`: an article with a cover that pairs a window and a ring, prose, author card and related posts.
- `signup.html`: a split sign-up page, the form on night navy and a glow panel with a "You" ring and a quote.

## Page recipe

1. `.hr-glow` wrapper holding the nav bar and the hero.
2. Hero: Title Case headline over 2 or 3 lines on the left, a lead, then two `.hr-btn-group`s side by side: violet filled and violet outline, each with a `.hr-btn-note` caption.
3. Right column: `.hr-stage` with a `.hr-window` of `.hr-lanes` rows, and the `.hr-ring` overlapping its corner. Under it a `.hr-hero__caption` with a bold name, one line and an `.hr-link`.
4. `.hr-pager` under the hero.
5. Deep tight section with a line of small text and `.hr-logos`.
6. Night section: eyebrow, h2, lead, then three `.hr-card`s.
7. Deep section: `.hr-split` with checks on one side and a bare ring of people on the other.
8. Quote and stats, then a `.hr-section--band` call to action, then the footer.

## Pricing page recipe

1. Same `.hr-glow` wrapper and nav. Centered eyebrow, hero title and lead, then `.hr-toggle` for Monthly / Yearly. Keep both prices in `data-monthly` and `data-yearly` and swap them in a few lines of JS.
2. `.hr-plans` with three cards inside the glow. Feature the middle one with `.hr-plan--featured`, a cyan `.hr-plan__label` and the only primary button.
3. A small print line, then a deep section with the comparison table.
4. `.hr-faq` in the narrow container, the first item open.
5. Violet band and footer.

## Article page recipe

1. Glow wrapper with nav, then in the narrow container: cyan eyebrow for the category, a smaller hero title, lead and `.hr-author`.
2. A cover tile in the wide container that pairs a window with a bare ring. No photos needed.
3. `.hr-narrow .hr-prose`: short paragraphs, Title Case h2s, sentence case h3s, one blockquote, one `.hr-callout`, a code block and a `<figure>` with a window.
4. `.hr-author--card`, then a deep section with three `.hr-post` cards, then the footer.

## Sign-up page recipe

1. Two columns, full height. Left on night navy: logo, h2 headline, a one-line lead.
2. `.hr-form`: a `.hr-field-row` for names, email, password with `.hr-input-wrap` and a show or hide toggle, a select, `.hr-check` and a block primary button.
3. `.hr-divider-text`, two quiet social buttons with letter tiles, then a log in link.
4. Show errors with `.hr-field--error` and `.hr-error`, hints with `.hr-help`.
5. Right column with `.hr-glow`: a bare ring with "You" in the core and relatives on the nodes, then a quote. Hide it below 860px.

## Don'ts

- Don't use pill buttons or pure black. Buttons are squared and the night is navy.
- Don't write headlines in sentence case or in light weights.
- Don't use violet for links or cyan for buttons. Each accent has one job.
- Don't put more than five nodes on a ring, or more than one ring per screen.
- Don't use photos or brand logos; draw icons as inline SVG strokes.
- Don't use em dashes in copy.
