# Ink Margin

A quiet, bookish companion-app look. Plain white pages, light-weight serif headlines, a friendly sans for everything else, and flat warm-gray tiles that hold drawn app screens and phones. The signature is pen-and-ink illustration: outlined objects with cross-hatched shading, drawn as inline SVG in a single ink color. It is almost monochrome, with one muted sap green used for small marks only. It feels calm, crafted and a little dreamy, like a sketchbook that happens to be an app.

Use it for: consumer companion apps, hobby and habit trackers, reading, gardening, cooking or journaling tools, small subscriptions, anything personal and gentle. Avoid it for: loud launches, games, finance dashboards, enterprise software or anything that needs strong color.

## 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 Ink Margin 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. Draw any illustration as inline SVG line art in currentColor with hatch patterns for shading.

`demo.html` (a landing page), `pricing.html`, `blog.html` and `signup.html` are complete example pages built only with the kit, for an invented houseplant app called Fernly.

## Fonts

All free on Google Fonts:

```html
<link href="https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,300;7..72,400;7..72,500&family=Figtree:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap" rel="stylesheet">
```

| Role | Font | Use |
|---|---|---|
| Headlines | Literata 300 (400 for small headings) | Hero, section headings, plan names, big numbers, pull quotes. Light, never bold. |
| Body | Figtree 400 to 600 | Paragraphs, nav, buttons, forms, product UI. |
| Mono | JetBrains Mono 400 | Dates, tiny labels and categories inside cards. |

## Color

| Token | Hex | Role |
|---|---|---|
| `--im-paper` | #FFFFFF | The page, cards, phone screens and the fill inside drawings |
| `--im-tile` | #F4F4F2 | Feature tiles, pricing plans, figures, selected rows |
| `--im-tile-2` | #EAEAE6 | Avatars, empty progress tracks, focus rings |
| `--im-line` | #E3E3DE | Every hairline border and divider |
| `--im-line-strong` | #CFCFC8 | Input and outline-button borders |
| `--im-ink` | #121211 | Text, drawings, primary buttons, phone frames |
| `--im-soft` | #62625C | Leads and secondary text |
| `--im-sap` | #56704A | The one accent: progress fill, status dots, one chip |
| `--im-sap-soft` | #E7EDDF | Accent chips and the tip note |
| `--im-blush` | #F6E4DC | Only behind a drawn object inside an app screen |

Rules:
- White and ink do almost all the work. Tiles are the only fill on the page itself.
- Sap green never fills a button or a heading. Use it for dots, a progress bar or a status chip.
- Blush lives only inside product screens, never in page chrome.
- No gradients. No photos. Illustration is ink line art.

## Type scale

| Token | Size | Use |
|---|---|---|
| `--im-text-hero` | clamp(40px, 5.2vw, 64px) | Hero headline, left aligned in the hero, line-height 1.12 |
| `--im-text-h2` | clamp(30px, 3.4vw, 42px) | Section headings, centered inside tiles |
| `--im-text-h3` | 24px | Card and plant names (weight 400) |
| `--im-text-lead` | 18px | The sentence under a heading, soft gray (14px inside tiles) |
| `--im-text-body` | 16px | Body; articles use 18px at line-height 1.75 |

Headlines are short, warm and plain: "The quiet companion for every houseplant". Sentence case, no period.

## Shape and space

- Borders: 1px hairlines in `--im-line`. Pricing highlights one plan with a 1px ink border instead of color.
- Radius: 14px on tiles and cards, 12px on app windows, 8px on buttons and inputs, 34px on phone frames, pills only for small chips.
- Shadows: only the soft `--im-shadow-window` under drawn app windows. Tiles, cards and buttons are flat.
- Tiles sit edge to edge with a 12px gap, like a grid of index cards. Headings center at the top; the drawn screen rises from the bottom edge and is cut off by it.
- Sections: 72px to 112px vertical padding. Container 1180px, text 640px.
- Drawings: 1.6px stroke, round caps and joins, `currentColor`. Shade with 45 degree hatch lines (`patternTransform="rotate(45)"`), cross-hatch with a second angle, and fill shapes that overlap with `class="im-pf"` so lines behind them disappear.

## Components (in components.css)

| Class | What it is |
|---|---|
| `.im-nav`, `.im-nav__links`, `.im-nav__actions`, `.im-logo` | Serif logo with a small drawn mark left, plain links center, outline and ink buttons right |
| `.im-hero`, `.im-drawing` | Two-column hero: headline and buttons left, big ink drawing right |
| `.im-hero-title`, `.im-h2`, `.im-h3`, `.im-lead`, `.im-eyebrow`, `.im-small`, `.im-mono` | Type styles |
| `.im-btn--ink/line/ghost`, `--sm`, `--block`, `.im-store` | Square-ish 8px buttons; the store badge is an ink button with two lines |
| `.im-tiles`, `.im-tiles--2`, `.im-tile`, `.im-tile--flat`, `.im-tile__stage` | Gray feature tiles; the stage pins product art to the bottom edge |
| `.im-window`, `.im-window__bar/__body/__side/__main` | Drawn desktop app with sidebar |
| `.im-phone`, `.im-phone__screen` | Ink phone frame cut off by the tile edge |
| `.im-row`, `.im-thumb`, `.im-bar`, `.im-chip`, `.im-chip--sap`, `.im-dot`, `.im-avatar` | Product UI pieces |
| `.im-stats`, `.im-stat-card`, `.im-stat` | White stat cards with light serif numbers |
| `.im-quote`, `.im-cite` | Italic serif pull quote |
| `.im-toggle`, `.im-plans`, `.im-plan`, `.im-plan--ink`, `.im-plan__name/__price` | Pricing |
| `.im-faq` | Hairline accordion with serif questions |
| `.im-article`, `.im-article__meta`, `.im-prose`, `.im-figure`, `.im-note` | Long-form article |
| `.im-card`, `.im-field`, `.im-label`, `.im-input`, `.im-hint`, `.im-check`, `.im-choices`, `.im-choice`, `.im-divider` | Forms |
| `.im-footer`, `.im-footer__grid` | Four-column hairline footer |
| `.im-pf` | Paper fill for shapes inside drawings |

## Pages in this kit

- `demo.html`: landing with drawn hero, a wide tile with app window and phone, two tiles with phones, a stats tile and a closing call to action with a small drawing.
- `pricing.html`: centered header, monthly or yearly toggle, three plans (the middle one ink-bordered), a comparison table and an FAQ.
- `blog.html`: journal post with meta row, a drawn cross-section figure, a pull quote, a sap tip note and three related tiles.
- `signup.html`: a white form card beside a drawn shelf of plants.

## Page recipe

1. Nav: logo, three to five links, Sign in (line) and Join (ink).
2. Hero: a two-line light serif headline, an ink button plus a store badge, a small "Already a member?" line, and a large ink drawing on the right that floats free of any box.
3. One wide tile, then two half tiles, then one more wide tile. Each has a centered h2, a short gray lead and drawn product art rising from the bottom edge.
4. A plain white closing section with one headline, two buttons and a small drawing.
5. Footer with hairline top border.

Pricing recipe: centered header with eyebrow and toggle, three gray plans, the recommended one white with a 1px ink border and a sap chip, then a hairline table and a two-column FAQ.

Article recipe: 680px column, eyebrow, light serif title, gray lead, meta row with avatar and mono date, 18px prose, one drawn figure in a gray tile, an ink-ruled pull quote, a sap note, then related tiles.

Sign-up recipe: two columns, a bordered white card with labelled fields, choice chips and an ink submit, next to a drawing and three short benefit lines.

## Don'ts

- Don't make headlines bold or colored. Light serif in ink only.
- Don't fill buttons with green. Primary is ink, secondary is outline.
- Don't use photos, gradients, glows or heavy shadows.
- Don't put drawings inside boxes or circles; they float on white or sit in a tile.
- Don't round buttons into pills.
- Don't use em dashes in copy.
