# Glyph Glow

Quiet, nerdy and a little magical, like a terminal that learned to draw. Pages are near-black with hairline borders and calm grey sans copy. The hero is a window frame (three traffic-light dots and a small centered title) holding a picture made only of text characters: a moon shaded from `.` to `@`, ringed by a halo of electric blue `x + = o ~` that glows softly, with a few blue character stars twinkling around it. Everything else is restrained: outline buttons, one blue accent, mono labels that start with `//`, prompt lines that start with `$`, and terminal logs colored with the window-dot red, amber and green.

Use it for: developer tools and command line products, science and hobby apps, astronomy, weather, maps and data products, indie software, technical newsletters and anything that wants to feel crafted, precise and a bit nocturnal. Avoid it for: children's products, food and fashion retail, wellness, anything that should feel warm, loud or photographic.

## 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 Glyph Glow 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 a made-up app called Nightjar that forecasts clear, steady skies for amateur astronomers.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Geist 600 | Hero, section headings, plan names, post titles. Sentence case, tracking -0.03em, line-height about 1.05. |
| Body and UI | Geist 400 and 500 | Paragraphs, nav, buttons (500), cards, forms, quotes (500). |
| Mono | Geist Mono 400 and 500 | The ASCII art, labels, prompts and logs, prices and stats, badges, chips, table heads, kbd hints, window commands. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--gg-void` | #0D0D10 | The page background |
| `--gg-pane` | #131318 | Windows, cards, plans, inputs, alternate sections |
| `--gg-raise`, `--gg-raise-hover` | #1A1A21, #202029 | Hover states, avatars, inline code, the pressed toggle |
| `--gg-line`, `--gg-line-strong` | #2A2A33, #3D3D49 | Hairlines; strong lines for window frames, buttons and inputs |
| `--gg-glow-bg` | soft blue radial | Behind ASCII art only (window bodies, post art, the pricing hero) |
| `--gg-text` | #ECECF1 | Headlines, strong text, the brightest art characters |
| `--gg-soft` | #A3A3B0 | Body text and mid art characters |
| `--gg-faint`, `--gg-ghost` | #6A6A77, #45454F | Meta, placeholders, dim art characters and table dashes |
| `--gg-blue` | #5468FF | The one accent: the art halo, the main button outline, focus, the featured plan, blockquote rules |
| `--gg-blue-light`, `--gg-blue-deep` | #8B98FF, #3846D1 | Links, `//` and `$` and `>` marks, stars; solid button hover |
| `--gg-blue-tint` | 14% blue | Blue badges, pressed chips, primary button hover |
| `--gg-red`, `--gg-amber`, `--gg-green` | #EE5C55, #F1B43C, #3DBE5C | Window dots, and status words in logs (skip, maybe, go), errors and "yes" cells |

Rules:
- Blue is light, not paint. It outlines, glows and marks; the only filled blue is one `.gg-btn--solid` per page (the featured plan or the form submit).
- Red, amber and green belong to window dots and status. Never use them as decoration.
- No gradients except `--gg-glow-bg` behind art. No photos, no illustrations other than character art.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--gg-text-hero` | clamp(36px, 4.6vw, 60px) | Hero headline, centered under the art |
| `--gg-text-h2` | clamp(28px, 3.2vw, 40px) | Section headings |
| `--gg-text-h3` | 19px | Sub-headings |
| `--gg-text-lead` | 18px | The sentence under a headline, max 600px |
| `--gg-text-body` | 16px | Body (article prose is 17px) |
| `--gg-text-label` | 12px | Mono labels, uppercase, tracking 0.08em, with a blue `//` |
| `--gg-ascii` | clamp(6px, 1.62vw, 12.5px) | Hero art; it scales with the viewport so the grid never overflows |

Headlines are short and plain ("Know when the sky is worth it"). Labels and code bits are lowercase and literal (`--free`, `step 1/2`, `$ brew install nightjar`).

## Shape and space

- Radius: 10px on windows, cards, plans and tables, 8px on posts, 6px on buttons and inputs, 4px on chips, kbd and code. Pills only for badges.
- Borders do the work: 1px hairlines everywhere, strong lines on window frames. The featured plan gets a blue border with `--gg-blue-glow`.
- Shadows: `--gg-shadow-window` under windows only. No other drop shadows.
- Bullets are a blue mono `>`. FAQ toggles are `[+]` and `[-]`. Article h2s start with a blue `#`. Steps are numbered `01 02 03` in mono.
- Sections: 72px to 112px vertical padding with a hairline between them. Container 1120px, art window 860px, text column 680px.
- Motion: stars twinkle, the log cursor blinks, hero parts rise in. All stop for reduced motion.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.gg`, `.gg-container`, `.gg-narrow`, `.gg-center`, `.gg-split` | Body class and layout wrappers |
| `.gg-nav`, `__inner`, `__links`, `__end`, `.gg-logo`, `__mark`, `.gg-kbd` | Sticky blurred nav with a hairline, a mono glyph logo tile and a kbd hint |
| `.gg-display`, `.gg-h2`, `.gg-h3`, `.gg-lead`, `.gg-label`, `.gg-small`, `.gg-mono`, `.gg-blue`, `.gg-glow` | Type |
| `.gg-btn`, `--primary` (blue outline), `--solid`, `--sm`, `--block`, `.gg-actions`, `.gg-go` | Buttons and mono arrow links |
| `.gg-window`, `__bar`, `--bare`, `.gg-dots`, `__title`, `__body`, `--art` | The signature window frame |
| `.gg-ascii`, `--sm`, `--md`, `.gg-a-hi/mid/lo/rim/star` | Character art and its five character colors |
| `.gg-prompt`, `.gg-log` (`.cmd .ok .warn .bad .dim`), `.gg-cursor` | Prompt lines and terminal output |
| `.gg-hero`, `__art`, `__copy` | Art window first, centered copy under it |
| `.gg-section`, `--tight`, `--pane`, `.gg-head`, `.gg-grid-2/3/4` | Sections and grids |
| `.gg-card`, `__glyph`, `__title`, `__text` | Hairline card with a tiny glowing ASCII icon |
| `.gg-badge`, `--blue`, `__dot` | Mono pills; the dot glows green for live status |
| `.gg-list`, `.gg-steps`, `.gg-step`, `.gg-stats`, `.gg-stat__num`, `__label` | Lists, numbered steps, a bordered stat strip (wrap a unit in `<em>` for blue) |
| `.gg-quote`, `.gg-quote-by`, `.gg-avatar` | Big sans quote with blue quote marks, mono initials avatar |
| `.gg-segment`, `.gg-plans`, `.gg-plan`, `--featured`, `__cmd/__body/__name/__price/__desc` | Pricing cards that wear a window bar |
| `.gg-table-wrap`, `.gg-table`, `.gg-yes`, `.gg-no` | Comparison table |
| `.gg-faq` | `<details>` FAQ with `[+]` toggles |
| `.gg-meta`, `.gg-author`, `--card`, `.gg-prose`, `.gg-figure`, `.gg-callout`, `.gg-post`, `__art/__body/__title` | Article parts |
| `.gg-form`, `.gg-row-2`, `.gg-field`, `.gg-field-label`, `.gg-input`, `.gg-select`, `.gg-input-wrap`, `.gg-input-toggle`, `.gg-help`, `.gg-error`, `.gg-field--error`, `.gg-chips`, `.gg-chip`, `.gg-check`, `.gg-divider-text` | Forms; errors read like `error: ...` in mono red |
| `.gg-footer`, `__cols`, `__bottom` | Footer with mono column heads and a version line |
| `.gg-rise`, `--2`, `--3` | Entrance animation |

## Drawing the art

The art is generated, not pasted. Each page ends with a small inline script that fills every `<pre class="gg-ascii" data-light="...">`:

- `data-cols` and `data-rows` set the grid (72 by 34 for a hero, 34 by 16 for a post card). Characters are about 0.6em wide and 1.08em tall, so a circle is drawn with that ratio.
- `data-light` is the sun angle: 0 is a full moon, 50 a gibbous, 90 a half, 130 to 150 a crescent. `data-seed` changes the stars and texture.
- Inside the disk, brightness from the light angle picks a character from the ramp ` .:-=+*#%@` and a color class (`gg-a-hi`, `gg-a-mid`, `gg-a-lo`). A few craters darken the shading.
- A ring just outside the disk is drawn in blue `x + = o ~` (`gg-a-rim`, glowing). Sparse stars outside use `gg-a-star` with a random negative animation delay.

To draw something other than a moon (a planet, a logo, a mountain), keep the same rules: a dense character ramp for the body, a blue glyph halo around the edge, faint stars around it, all inside a `.gg-window__body--art`.

## Pages in this kit

- `demo.html`: landing page (nav; a live badge; the hero window with a gibbous moon; a centered headline, lead and two buttons; four cards with tiny ASCII icons and a stat strip; a pane section with a terminal log window beside copy and a list; three steps; a big quote; a call to action with a prompt line; the footer).
- `pricing.html`: a glow hero with a small half moon, the billing toggle, three plans that wear window bars (featured with a blue border and the only solid button), a comparison table, a FAQ and a call to action.
- `blog.html`: meta with a blue badge, display title, lead and byline, a window cover with a crescent, prose with `#` headings, `>` bullets, a blockquote, a log figure, a dashed callout, an author card and three posts with small moons.
- `signup.html`: a split page with the form on the left (mono step counter, display headline, fields, chips, the solid button, "or" and two outline buttons) and a pane on the right with a crescent window, a log window and a quote.

## Page recipe

1. `.gg-nav` with the glyph logo, five links, a kbd hint and one small outline button.
2. `.gg-hero`: an optional live `.gg-badge`, the art window, then a centered `.gg-display`, a lead and two buttons (`--primary` first).
3. A section head with a `//` label and an h2, then four `.gg-card`s with ASCII icons and a `.gg-stats` strip.
4. A `--pane` section: copy and a `.gg-list` beside a window holding a `.gg-log`.
5. `.gg-steps`, then a centered `.gg-quote`.
6. A centered call to action with a `.gg-prompt`, then the footer.

## Pricing page recipe

1. A centered hero on `--gg-glow-bg`: small art, a label, the display headline, a lead and `.gg-segment`. Keep prices in `data-monthly` and `data-yearly` and swap them with a few lines of JS.
2. Three `.gg-plan`s with window bars showing a flag (`--free`, `--club`) or a badge. The featured plan is blue-bordered and holds the only `--solid` button.
3. A small print line, the comparison table in a pane section, a FAQ beside its heading and a call to action.

## Article page recipe

1. Meta line with a blue badge, a smaller display title, lead and byline in the text column.
2. A wider window cover with character art. No photos.
3. `.gg-prose`: short paragraphs, `#` h2s, `>` bullets, inline `code`, one blockquote, one `.gg-figure` log window with a mono caption, one `.gg-callout`.
4. `.gg-author--card`, then three `.gg-post` cards with small art, and the footer.

## Sign-up page recipe

1. Two columns. Left: logo and a mono `step 1/2` over a hairline, a label, the display headline and a lead.
2. Two-up name fields, email, password with a `show` toggle, a select, chips, a checkbox, a block `--solid` button, "or" and two outline buttons.
3. Errors use `.gg-field--error` and `.gg-error`; hints use `.gg-help`.
4. Right column on `--gg-pane`: an art window, a small log window and a quote. Hide it below 900px.

## Don'ts

- Don't fill large areas with blue or use more than one solid blue button per page.
- Don't use photos, emoji or drawn illustrations; draw with characters.
- Don't use the dot colors for anything except dots and status.
- Don't add light sections or gradients other than the soft glow behind art.
- Don't round things past 10px or add drop shadows outside windows.
- Don't let the art overflow on phones: size it with `--gg-ascii` or the `--sm` and `--md` modifiers.
- Don't use em dashes in copy.
