# Dusk Select

A harbour at dusk seen through a well-kept tool. A flat charcoal strip runs across the top, then the page opens into a wide band of evening gradient that slides from slate blue into plum. Headlines don't float on that colour: they sit on dark, slightly transparent "selection" bars, as if someone had just highlighted the words in an editor. Under the headline, a layered app window (title bar with three dots, a file sidebar, tabs, line numbers, a minimap) rises out of the band and runs into the charcoal page below. Corners are nearly square, the main button is a flat steel blue in capitals, and warm amber marks the small things: eyebrows, a blinking caret, the chosen plan. It feels crafted, calm and a little nostalgic, like software from people who still care about plain text.

Use it for: tools with a real working surface (logbooks, planners, editors, trackers), clubs and associations that run on records, hobby and outdoor software, indie apps, desktop downloads, booking tools that show their schedule. Avoid it for: fashion and beauty, children's products, bright daytime food brands, image-led editorial sites, anything with no app window or text to show.

## 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 Dusk Select 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. Put every main headline on `.ds-selected` bars inside a `.ds-band`, and show the product in a `.ds-window`.

`demo.html` (a landing page), `pricing.html`, `blog.html` and `signup.html` are complete example pages built only with the kit, for an invented race logbook for small sailing clubs called Tidewell.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Red Hat Display 800 | Display, h1, h2, prices and stat numbers. Tight tracking (-0.025em). Card titles and FAQ questions use 700. |
| Body and UI | Red Hat Text 400 to 700 | Body at 400, nav at 500, buttons and labels at 700. Italic 400 for the little version note beside the main button. |
| Code and labels | Red Hat Mono 400 to 500 | Everything inside an app window, eyebrows (uppercase amber, spaced), badges, table heads and keycaps. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--ds-page` | #22252B | The charcoal page under the band |
| `--ds-strip` | #3B3D42 | The flat top strip |
| `--ds-panel` | #2B2F37 | Cards, plans, alternate sections |
| `--ds-window` | #262A31 | App window and editor body |
| `--ds-sidebar` | #1E2126 | Window bar, file sidebar, inputs, footer |
| `--ds-select` | #3A3460 | Text selection colour; the headline bars use `--ds-select-deep`, the same tone at 82% |
| `--ds-paper` | #F3F1EC | Main text |
| `--ds-fog` | #B9BCC6 | Leads and body copy in cards |
| `--ds-dim` | #828796 | Captions, line numbers, meta |
| `--ds-steel` | #3A7DC0 | The one main button |
| `--ds-amber` | #F2A541 | Eyebrows, caret, chosen plan rule, strings in code |
| `--ds-sea` | #7FC3B8 | Check marks, success, one syntax colour |

The band is `--ds-dusk`: a 100 degree gradient through `--ds-dusk-a` #46628F, `--ds-dusk-b` #6A507F and `--ds-dusk-c` #93416E. Syntax colours inside windows: `--ds-rose` for keys, `--ds-amber` for strings, `--ds-lilac` for numbers and times, `--ds-sea` for plain values, `--ds-dim` italic for comments.

Rules:
- Colour lives in the band and in the code. Outside the band the page is charcoal, grey and off-white.
- Only one steel button per screen. Every other button is a dark tab-grey one, or a ghost on the band.
- Amber is a highlight, never a fill for buttons or big areas.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--ds-text-display` | clamp(38px, 6vw, 76px) | Landing headline, one short line on a selection bar |
| `--ds-text-h1` | clamp(34px, 4.8vw, 58px) | Page titles, CTA titles |
| `--ds-text-h2` | clamp(28px, 3.4vw, 42px) | Section headings |
| `--ds-text-h3` | 20px | Card and plan names |
| `--ds-text-lead` | 19px | Leads, max 600px |
| `--ds-text-body` | 16px | Body (articles 18px) |
| `--ds-text-micro` | 12px | Mono eyebrows and labels |

Headlines are short and sure of themselves, in sentence case with a comma where a tagline would pause ("Club sailing, logged right").

## Shape and space

- Radius: 2px for selection bars and badges, 3px for buttons, inputs, cards and plans, 6px for the top of app windows. Nothing is round except avatars and the window dots.
- Selection bars: `.ds-selected` on an inline span inside the heading. It uses `box-decoration-break: clone`, so a wrapped headline gets one bar per line with a hairline gap, exactly like highlighted text.
- The rise: on the landing page the hero window sits at the bottom of the band with no bottom padding and only its top corners rounded, so the band ends behind it and the window runs on into the charcoal page.
- Borders: 1px `--ds-line`. Plans share one box with 1px dividers; the chosen plan gets a 3px amber rule on top.
- Shadows: one deep shadow under windows (`--ds-shadow-window`), a faint inset highlight on cards. Nothing glows.
- Sections: 64 to 120px vertical padding. Container 1200px with 24px gutters; articles 700px.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.ds` | Body class: charcoal page, Red Hat Text, clip sideways overflow |
| `.ds-strip`, `.ds-strip__links`, `.ds-strip__rule`, `.ds-wordmark` | Flat top bar with a thin divider between product and community links |
| `.ds-band`, `.ds-hero`, `.ds-hero--short`, `.ds-hero__body`, `.ds-hero__tools` | The dusk gradient band and hero layouts |
| `.ds-selected`, `.ds-caret`, `.ds-mark` | Headline selection bars, a blinking amber caret, an amber inline highlight |
| `.ds-btn`, `--steel`, `--ghost`, `--sm`, `--block`, `.ds-link`, `.ds-note` | Buttons, underlined links, the version note |
| `.ds-seg` | Segmented toggle (Dusk / Day, Week / Race day / Season) |
| `.ds-window`, `__bar`, `__dots`, `__body`, `--closed` | The app window |
| `.ds-files`, `.ds-tabs`, `.ds-tab`, `.ds-code`, `.ds-lines`, `.ds-minimap` | Sidebar, tabs, numbered code lines, minimap |
| `.ds-k`, `.ds-s`, `.ds-n`, `.ds-t`, `.ds-c`, `.ds-h` | Syntax colours |
| `.ds-feature`, `--flip`, `.ds-dots` | Copy beside a window, with carousel dashes |
| `.ds-grid`, `.ds-card`, `.ds-card__key` | Cards with a keycap badge |
| `.ds-badge`, `--amber`, `--sea` | Mono badges |
| `.ds-stats`, `.ds-stat`, `.ds-quote` | Ruled stat row and an amber-ruled quote |
| `.ds-plans`, `.ds-plan`, `--pick`, `.ds-price`, `.ds-list` | Pricing |
| `.ds-table`, `.ds-faq` | Comparison table and FAQ |
| `.ds-prose`, `.ds-callout`, `.ds-article__meta`, `.ds-author`, `.ds-avatar` | Article |
| `.ds-form`, `.ds-field`, `.ds-input`, `.ds-select`, `.ds-choices`, `.ds-check` | Forms |
| `.ds-footer` | Footer on the sidebar colour |

## Pages in this kit

- `demo.html`: landing page with the hero window, a feature row, keycap cards, stats, a quote and a CTA band.
- `pricing.html`: three plans pulled up into the band, a comparison table and an FAQ.
- `blog.html`: an article with a selection-bar title on the band, an inline window and a callout.
- `signup.html`: copy on the band beside a form inside an app window.

## Page recipe

1. `.ds-strip` with the wordmark, a few links, a rule, then community links.
2. A `.ds-band.ds-hero`: the headline on `.ds-selected` bars, then one row with the steel button, the version note in italic and a plain link.
3. `.ds-hero__tools` with one or two `.ds-seg` toggles, then a `.ds-window` showing real-looking content from the product, with a sidebar, tabs and numbered lines.
4. Charcoal sections: a `.ds-feature` with a smaller closed window, a `.ds-section--panel` of keycap cards, a stats row and a quote.
5. A second `.ds-band` for the CTA, headline on selection bars with a `.ds-caret`.
6. `.ds-footer`.

Pricing: a short band with the title on bars and a billing `.ds-seg`, then `.ds-plans` pulled up with a negative top margin so the plans overlap the band. Table and FAQ below.

Article: a short band holding the eyebrow, the title on bars and the author row. Below, a 700px `.ds-prose` column with one `.ds-window--closed` showing a snippet and one `.ds-callout`.

Sign up: the whole page under the strip is the band. Copy on the left with the title on bars, the form on the right inside a `.ds-window--closed` whose bar shows a file name.

## Don'ts

- Don't set a headline straight on the gradient. It always sits on selection bars.
- Don't round things. 3px is the limit outside the window top.
- Don't fill the page with gradient. One band at the top and at most one more for the CTA.
- Don't use amber or the gradient for buttons.
- Don't show an empty window. Fill it with plausible product content in the mono font.
- Don't add glows, blurs or glass.
