Skip to content

Layout

A · Magazine is the template for marketing surfaces — homepage, articles, podcasts, op-eds, topic landings, email. B · Documentation is the template for product surfaces — library, tools, workbooks, saved, search. They share the locked color system, the locked icons, and the same 12-column grid. Type scale, density, and module library differ.

A · Magazine
Marketing surfaces
/ · /articles · /podcasts · /topics · /email
B · Documentation
Product surfaces
/library · /tools · /workbook · /saved · /search

01 · Routing. Which template each route gets

One rule, applied at the route level. If a new route doesn't fit either bucket, it gets escalated — not improvised.

RouteTemplateSurfaceNote
/A · MAGMarketing homepageEditorial — what's here this week.
/articles/[slug]A · MAGArticle / Op-Ed / StoryLong-form. Marginalia, pull quotes.
/podcasts/[slug]A · MAGPodcast episodeHero image + episode notes column.
/topics/[slug]A · MAGTopic landing (editorial)Curated long-form collection.
/email/*A · MAGNewslettersEditorial template in HTML email.
/libraryB · DOCLibrary indexBrowse all, with sidebar nav.
/library/[category]B · DOCCategory landingCard grid; structured.
/tools/[slug]B · DOCTool / assessmentWorkbook UX, step lists, callouts.
/workbook/[slug]B · DOCMulti-step workbookTOC sidebar, progress.
/savedB · DOCSaved itemsPersonal index — tool-like.
/searchB · DOCResultsList-led, filters.

Note on /: The marketing homepage uses Template A. A signed-in dashboard at the same root would use Template B. The decision is by mode of arrival, not by URL.

02 · Shared foundations. What both templates inherit

The grid, the base unit, the spacing scale, the breakpoints. Anything below the type scale is shared — both templates compute spacing from the same 4px rhythm.

Spacing scale · 4px base
4px
1 units
8px
2 units
12px
3 units
16px
4 units
20px
5 units
24px
6 units
32px
8 units
40px
10 units
56px
14 units
72px
18 units
88px
22 units
Negative space rule

40%+ of every layout is empty. If a surface looks dense before it ships, it isn't done. Empty space is hierarchy, not laziness — it tells the reader what doesn't need their attention.

Measured against the desktop viewport, not the content area.

Other shared rules
  • One H1 per page. Never more.
  • Body text is left-aligned. Never justified.
  • Vertical rhythm is on the 8px grid (every 2 base units).
  • Section spacing on the 24px grid.
  • Max content width 1280px; 680px (A) / 640px (B) for body copy.
Breakpoints · 12 / 6 / 4 column grid
Desktop
≥ 1024px
12 cols · 24px gutter
Tablet
768–1023px
6 cols · 20px gutter
Mobile
< 768px
4 cols · 16px gutter

03 · Template A. Magazine — for marketing surfaces

Generous, column-led, image-first. Display type 4× body. Long-form column capped at 680px. Built for the experience of opening a quarterly.

Type scale
Display
Friend who is with you
64/1 · 300
H1
The first-week workbook
44/1.05 · 300
H2
What changes immediately
26/1.15 · 400
H3
Telling your manager
19/1.3 · 500
Body
A workbook for adults who've recently been diagnosed.
18/1.55 · 400
Caption
Photo · Kitchen table, morning light
13/1.4 · 400
Eyebrow
Op-Ed · 12 min
11/1.3 · 500
Grid & density
Columns12
Gutter32px
Max content1200px
Long-form max680px
Section rhythm88px
Vertical rhythm8 / 16 / 24px
Image aspect3:2 hero · 4:5 portrait
A · Magazine modules
Editorial heroArticle bodyPull quoteMarginaliaPhoto essaySign-off
understoodMarketing · Magazine
Story · Adults · 6 min
What changes in the year after.

Long-form column capped at 680px. 88px section rhythm. Display 64 / body 18.

04 · Template B. Documentation — for product surfaces

Sidebar-led, structured, scannable. Display type still exists but is the exception. Built for tasks — the user came with a job to do.

Type scale
Display
The first-week workbook
40/1.05 · 400
H1
What changes immediately
28/1.1 · 500
H2
Telling your manager
20/1.25 · 500
H3
Step 03
16/1.35 · 600
Body
A workbook for adults who've recently been diagnosed.
15/1.55 · 400
Caption
Updated · 2 hours ago
12/1.4 · 400
Eyebrow
Diagnosis · Adults
10.5/1.3 · 600
Grid & density
Columns12 (sidebar takes 3)
Gutter24px (shared default)
Max content1280px
Long-form max640px
Section rhythm48px
Vertical rhythm8 / 12 / 20px
Sidebar width240px persistent
B · Documentation modules
Sidebar navCard gridStep listCalloutProgressTOC
DIAGNOSIS · ADULTS
What changes immediately

Documentation template. 240px sidebar. 48px section rhythm. Display 40 / body 15.

Guide
Step 01
Guide
Step 02
Guide
Step 03
Guide
Step 04

05 · Responsive. How each template reduces

Both templates target 12/6/4 column grids. At mobile, A drops its marginalia and image-first hierarchy; B collapses its sidebar to a drawer + bottom tab bar. C-style grids (4-up tiles) become 2-up.

A · Mobile rules
  • Display 72 → 38. H1 44 → 28.
  • Hero image keeps its place above the lede.
  • Marginalia disappears — meta sits inline above the headline.
  • CTAs stack vertically; primary is full-width.
B · Mobile rules
  • Display 40 → 26. H1 28 → 22.
  • Left sidebar collapses to a drawer trigger.
  • Card grids collapse 2×2 → 1-col stack.
  • Bottom tab bar appears (Home / Library / Tools / Saved).

06 · Rules. Do · Don't

Do
  • Pick a template by route. Don't improvise per page.
  • Aim for 40%+ empty space on every surface.
  • Use the locked color tokens for every fill, rule, and accent.
  • Use the locked icons inline at 16/24px.
  • Keep long-form body within 680px (A) / 640px (B).
  • Mobile drops density first, structure second.
Don't
  • Mix the two templates within one page — pick whole-page.
  • Use Magazine's display type sizes inside Documentation surfaces.
  • Use floating glass cards, gradient backgrounds, or "bento" grids.
  • Center-align body text. Center display type only.
  • Use justified body text. Ever.
  • Build a Channel-style image-tile grid as a primary surface.

07 · Engineering. Tokens

Layout-specific tokens — type scale per template, grid, breakpoints.

/* layout-tokens.css — v1.0
   Hybrid layout system: Magazine (A) + Documentation (B). */

:root {
  /* Base unit & grid */
  --l-unit:           4px;
  --l-cols:           12;
  --l-gutter-desktop: 24px;
  --l-gutter-tablet:  20px;
  --l-gutter-mobile:  16px;
  --l-max-width:      1280px;

  /* Breakpoints */
  --l-bp-tablet:  768px;
  --l-bp-desktop: 1024px;

  /* A · Magazine type scale */
  --l-a-display: 64px / 1.0;
  --l-a-h1:      44px / 1.05;
  --l-a-h2:      26px / 1.15;
  --l-a-h3:      19px / 1.3;
  --l-a-body:    18px / 1.55;
  --l-a-caption: 13px / 1.4;
  --l-a-eyebrow: 11px / 1.3;
  --l-a-long-form-max: 680px;

  /* B · Documentation type scale */
  --l-b-display: 40px / 1.05;
  --l-b-h1:      28px / 1.1;
  --l-b-h2:      20px / 1.25;
  --l-b-h3:      16px / 1.35;
  --l-b-body:    15px / 1.55;
  --l-b-caption: 12px / 1.4;
  --l-b-eyebrow: 10.5px / 1.3;
  --l-b-long-form-max: 640px;
  --l-b-sidebar:       240px;
}