# Night Doodle

Playful and loud on a deep aubergine night. Heavy rounded-geometric headlines in white, with one hand-drawn pink word tilted off the baseline like it was scribbled on afterwards. Lime works as a highlighter, sparkle stars twinkle in the sky, and the product shows up as chunky cartoon panels with flat fills, bright 2px borders and a flat drop underneath. A pink light beam and a little drawn mascot sit in the middle of the hero. It feels cheeky, confident and nerdy without being cold.

Use it for: products that fix things or run at odd hours, games and hobby communities, repair and delivery services, consumer apps with a sense of humor, developer-adjacent tools that want to feel human. Avoid it for: luxury, healthcare, legal or finance pages that must feel sober, and anything aimed at people who want 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 Night Doodle 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 mobile bike repair service called Spokesy.

## Fonts

All free on Google Fonts:

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

| Role | Font | Use |
|---|---|---|
| Headlines | Rubik 800 | Hero, section headings, plan names, big numbers. Heavy, tight tracking. |
| Body | Rubik 400 to 700 | Paragraphs, nav, buttons (700, uppercase), cards, product UI. |
| Script accent | Caveat 700 | One word per headline, pink, tilted -6deg. Also the article pull quote. |
| Mono | JetBrains Mono 400 to 600 | Eyebrows, ticket IDs, code boxes, readouts. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--nd-night` | #1B1230 | The page background |
| `--nd-night-2` | #150D26 | Deeper bands, footer, code boxes, covers |
| `--nd-panel` | #2A1D47 | Cartoon panels, cards, plans |
| `--nd-panel-2` | #362659 | Inputs, table headers, inline code |
| `--nd-line` | #4B3A78 | Every border and divider |
| `--nd-line-bright` | #7A62C2 | The bright edge on featured panels |
| `--nd-ink` | #FBF8FF | Headlines and body text, the primary button fill |
| `--nd-soft` | #C3B6DE | Leads and secondary text |
| `--nd-pink` | #FF4FA3 | The voice: script word, ghost button border, featured plan, the CTA band |
| `--nd-lime` | #C8F25C | The highlighter: eyebrows, progress bars, checks, stats |
| `--nd-violet` | #9B7BFF | The helper: announcement pill, chips, the mascot |
| `--nd-gold` | #FFD166 | Stars, stickers and the code-box border only |

Rules:
- The page is always dark. Panels are one step lighter, never white.
- Pink and lime can share a screen; pink speaks, lime marks. Violet and gold are supporting, never the main button.
- One pink band per page, max. On it, headings turn night-colored and the script word turns white.
- The only gradient is the pink beam behind the hero stage.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--nd-text-hero` | clamp(44px, 7.4vw, 96px) | Hero headline, centered, 2 lines, 800, tracking -0.035em, line-height 1 |
| `--nd-text-h2` | clamp(32px, 4.4vw, 56px) | Section headings, 800 |
| `--nd-text-h3` | 22px | Card and step titles, 700 |
| `--nd-text-lead` | 20px | Under a headline, soft lavender, max 620px |
| `--nd-text-body` | 16px | Body |
| `--nd-text-micro` | 12px | Eyebrows, chips, uppercase labels |

Headlines are short and a little cheeky ("Flat tire at 11pm? We fix it tonight."). The last or punchiest word goes in `.nd-script`. Exactly one script word per headline, and not every headline needs one.

## Shape and space

- Borders: 2px `--nd-line` on everything; `--nd-line-bright` on the one panel you want to pop.
- Radius: 6px on buttons and inputs, 12px on panels and cards, 20px on plans and covers.
- Shadows: a flat 6px drop in `--nd-night-2` (`--nd-shadow`), never blurry gray. Pink and lime glows for focus and highlights.
- Sections: 72px to 128px vertical padding. Container 1180px, text 760px.
- Motion: springy (`--nd-ease`). Cards lift and tilt a hair on hover, sparkles twinkle, the marquee scrolls. All of it stops with reduced motion.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.nd-sky`, `.nd-sparkle`, `--pink/--lime/--gold/--sm` | Star-dusted background and 4-point twinkling sparkles you place absolutely |
| `.nd-hero-title`, `.nd-h2`, `.nd-h3` | Heavy Rubik headlines |
| `.nd-script` | The tilted pink Caveat word |
| `.nd-mark` | A lime highlighter stroke under a word |
| `.nd-lead`, `.nd-eyebrow` | Soft lead; lime mono uppercase label |
| `.nd-announce` | Violet pill above the hero |
| `.nd-nav`, `__inner`, `__links`, `__actions`, `.nd-logo` | Uppercase nav, ghost and primary buttons on the right |
| `.nd-btn--primary/pink/ghost/dark/social`, `--sm`, `--block` | Uppercase buttons; white primary next to a pink-outlined glowing ghost |
| `.nd-hero`, `.nd-stage`, `__beam`, `__col`, `__col--side` | Centered hero and the 3-column cartoon scene with a pink beam |
| `.nd-panel`, `--bright`, `__title`, `__title--lime` | Flat cartoon panel holding mini product UI |
| `.nd-bar--pink/lime/violet`, `.nd-row`, `.nd-codebox` | Progress bars, check rows and a gold-bordered mono box |
| `.nd-switch` | Pink toggle switch |
| `.nd-chip`, `--pink/--lime/--solid`, `.nd-dot`, `.nd-sticker` | Small pills and a tilted gold sticker |
| `.nd-marquee`, `__track` | Scrolling row of partner names, clipped |
| `.nd-grid`, `--2`, `.nd-card`, `__icon--lime/--violet`, `__title`, `__text` | Feature cards with a bright icon tile |
| `.nd-steps`, `.nd-step` | Numbered lime circles joined by a dashed line |
| `.nd-quote`, `__text`, `__by`, `.nd-avatar` | Bold pull quote with an initials avatar |
| `.nd-stats`, `.nd-stat__num`, `__label` | Big lime numbers |
| `.nd-section--deep/panel/pink` | Section surfaces |
| `.nd-billing` | Monthly or yearly toggle |
| `.nd-plans`, `.nd-plan`, `--featured`, `__flag/__name/__desc/__price/__list` | Pricing cards; the featured one glows pink |
| `.nd-table-wrap`, `.nd-table`, `__yes/__no` | Comparison table that scrolls sideways on phones |
| `.nd-faq` | `<details>` FAQ with a pink plus that turns into a cross |
| `.nd-prose`, `.nd-callout` | Article text with lime bullets, pink numbers, script pull quote, gold-bordered code; lime callout |
| `.nd-meta`, `.nd-author`, `--card`, `.nd-cover` | Article byline and cover panel |
| `.nd-post`, `__thumb/__body/__title/__text` | Related post card |
| `.nd-form`, `.nd-field`, `.nd-label`, `.nd-input`, `.nd-select`, `.nd-input-wrap`, `.nd-input-toggle` | Form fields with a pink glow focus |
| `.nd-help`, `.nd-error`, `.nd-field--error`, `.nd-check`, `.nd-divider-text` | Hints, errors, lime checkbox, "or" divider |
| `.nd-footer`, `__cols`, `__bottom` | Four-column footer on the deep night |
| `.nd-pop`, `--2`, `--3` | Springy entrance |

## Pages in this kit

- `demo.html`: landing page (hero with the cartoon stage, marquee, steps, feature cards, fleet split, quote and stats, pink CTA band).
- `pricing.html`: three plans with a monthly or yearly toggle, a comparison table, an FAQ and a final call to action.
- `blog.html`: an article with a drawn cover, prose, a callout, a figure and related posts.
- `signup.html`: a split sign-up page, the form on the left and a deep panel with a live ticket and a quote on the right.

## Page recipe

1. Nav: logo left, uppercase links center, a pink ghost and a white primary button right.
2. Hero, centered on `.nd-sky` with 3 or 4 sparkles: a violet `.nd-announce`, a 2-line headline ending in a `.nd-script` word, a lead, white primary plus pink ghost.
3. `.nd-stage` right under: two stacked panels left, a drawn SVG mascot or object center, two panels right, the pink beam across. Side columns hide below 860px.
4. `.nd-marquee` of partner names.
5. Steps section, then feature cards on `--deep`.
6. A split section: copy left, a bright panel with bars right.
7. Quote and stats on `--deep`.
8. One `--pink` band with a dark button.
9. Footer.

## Pricing page recipe

1. Nav as on the landing page.
2. Centered hero with eyebrow, a script word, a lead, then `.nd-billing` and a gold `.nd-sticker` ("2 months free yearly"). Keep both prices in `data-monthly` and `data-yearly` and swap them with a few lines of JS.
3. `.nd-plans` with 3 cards. Feature the middle one (`--featured`, a solid lime chip in `__flag`, the only pink button). The others get ghost buttons.
4. One line of small print.
5. `--deep` section with the comparison table.
6. `.nd-faq` in the narrow container, first item open.
7. Final call to action on `--panel`.

## Article page recipe

1. Nav, then in the narrow container: eyebrow as a path ("Garage notes / Drivetrain"), a smaller hero title ending in a script word, a lead, `.nd-author` with `.nd-meta`.
2. `.nd-cover` in the wide container: a drawn SVG next to a bright panel with readouts.
3. `.nd-prose`: short paragraphs, h2 per point, one list, one script blockquote, a `<pre>`, one `.nd-callout`, a `<figure>` holding a panel.
4. `.nd-author--card` to close, then 3 `.nd-post` cards on `--deep`, then the footer.

## Sign-up page recipe

1. Two columns, full height. Left: logo, an h2 with a script word, a short lead.
2. `.nd-form`: first and last name side by side, email (shown in its error state), password with a show/hide toggle and help text, a select, an `.nd-check`, then a pink block button.
3. `.nd-divider-text`, two `.nd-btn--social` with letter tiles, a "Log in" line.
4. Right column on `--nd-night-2` with sparkles: a bright panel showing a live job, then a quote. Hidden below 860px.

## Don'ts

- Don't use more than one script word per headline, and never set body text in Caveat.
- Don't put white or light backgrounds behind sections.
- Don't use soft blurry gray shadows; use the flat drop or a colored glow.
- Don't make the gold or violet the main call to action.
- Don't use photos in the hero; draw the scene with panels and SVG.
- Don't use em dashes in copy.
