Style guide

The live type scale, color tokens, and spacing system pulled from globals.css — how the site looks. The editorial guide at the end documents how it reads. This page is the system's self-documentation and a visual-regression reference.

Headings

.h1Lyon Displayclamp(32px, base×7, 84px)
Design that ships
.h2Lyon Displayclamp(24px, base×4, 48px)
Design that ships
.h3Lyon Displayclamp(20px, base×3, 36px)
Design that ships
.h4IBM Plex Sans — large labelclamp(16px, base×8/3, 36px)
Design that ships
.h5IBM Plex Sans — labelclamp(13px, base×2, 32px)
Design that ships
.h6IBM Plex Sans — small labelclamp(12px, base×1.5, 24px)
Design that ships

Display emphasis

Two families ship: Lyon sets the voice — Lyon Display announces, Lyon Text carries the standfirst — and IBM Plex Sans does labels and reading. Inside .h1.h3 the one emphasis available is strong → Plex, and a headline gets at most one; Lyon Display ships here as a single weight with no italic, so there is nothing else to reach for. Thatstrong is set at 0.951emso its cap matches Lyon’s — the only line where the two faces meet. .h4.h6 are flat Plex labels and do not swap. The earlier em → PP Pangaia and u → Sharp Roman swaps were retired in mutation #54.

.h1base / strong
Lyon Display IBM Plex Sans
.h2base / strong
Lyon Display IBM Plex Sans
.h3base / strong
Lyon Display IBM Plex Sans

Subheads

.subhead--largePlex, gray
Section label, larger
.subheadPlex, gray
Section label

Body copy

.content pclamp(14px, base×2, 32px)

Body copy is IBM Plex Sans at a fluid size. Inline strong, emphasis, and links inherit the running color with an underline-color shift on hover.

p.smallclamp(12px, base×1.5, 24px)

Small print — captions, footnotes, secondary detail.

Spacing scale

All spacing derives from --base: clamp(4px, 0.5vw, 16px). Multiply by a fixed factor. At 1440px viewport, base ≈ 7.2px.

×0.5
×1
×2
×3
×5
×8
×10

Class naming: .padding--80 = base×10, .margin-top--24 = base×3. The number is the pixel value at 1920px (where base = 9.6px), not the multiplier.

Color tokens

Every value below is read out of the :root block in globals.css when the page builds, so this table cannot drift from the stylesheet it documents. Click any swatch to copy the variable. Contrast ratios are measured against --white (#fefefe).

Palette — what the value is

Kyle's five values, still the SSOT. Nothing outside the role tier should consume these directly.

--white#fefefePage background
--lightest#eeeeeeSubtle fills, image placeholders1.36:1
--light#c0c0c0Hairline borders, input placeholders, muted arrows1.80:1
--gray#707070Secondary text, subhead labels4.91:1 ✓ AA
--black#060606Primary text20.09:1 ✓ AAA

Functional

Already role-named, and outside both tiers. The first three are rewritten on :root at runtime per case study.

--accent#1E40AFLinks, focus ring, brand wordmark. Rewritten per case study8.65:1 ✓ AAA
--accent-text#1E40AF--accentNav/footer wordmark — tracks the accent unless a page darkens it
--focus-halo#060606Focus-ring halo. Fixed near-black so the ring stays legible on every accent
--selection#BFDBFEText-highlight tint. Read by JS only — WebKit drops a ::selection rule that uses var()
--error#b42318Contact-form validation feedback. Scoped to .form*

Role — what the value is for

What components actually consume (mutation #53). A plain alias points at a palette value; an -rgborphan is an off-palette ink that only ever appears at partial alpha, so it's stored as a channel triple and used as rgb(var(--token) / N%). Orphans are named, never snapped onto the nearest palette value — merging them would change pixels.

Surfaces
--surface-page#fefefe--whitepage + card + popover backgrounds
--surface-subtle#eeeeee--lightestfills, image placeholders, code, arrows
--surface-inverse#060606--blackskip link, button hover
--surface-plate-dark-rgbrgb(16 16 16)orphan — the media-stage "black-950" plate
Ink
--ink-primary#060606--blackbody copy
--ink-muted#707070--graysubheads, captions, secondary nav
--ink-faint#c0c0c0--lightplaceholders, muted ::after arrows, underlines
--ink-inverse#fefefe--whitecopy + icons on a dark surface
--ink-nav-active#282828orphan — table-of-contents hover/active
Rules (hairlines)
--rule-subtle#eeeeee--lightestrow dividers, popover + swatch borders
--rule-strong#c0c0c0--lightinput borders, toc rail, link underlines
--rule-on-dark-rgbrgb(242 242 242)orphan — hairline over a dark plate
Elevation inks
--shadow-ink#060606--blackthe color-mix elevation shadows
--shadow-ink-paper-rgbrgb(16 24 40)orphan — .paper's Figma-derived ink
--shadow-ink-neutral-rgbrgb(0 0 0)orphan — pure-black washes over media
--shadow-ink-stage-rgbrgb(12 10 8)orphan — media-stage inset shadow

Interaction states

Global transition timing: --transition: 0.15s. All interactive elements carry cursor: pointer and a color/opacity shift on hover.

Linksunderline-color shift

Default link — resting underline uses --light; hover and focus deepen it to --gray. Text color stays inherited; only the underline shifts.

Focus ring2px accent, 2px offset
Simulated focusTab through this page to see live focus rings.
Button.button

Editorial guide

The system above governs how the site looks. This governs how it reads. Every article and case study is written to one philosophy and passed through one audit before it ships.

Philosophyvoice, ranked

Elegance first, selling second. Writing here is editorial — considered prose that positions the work, not fast-food content chasing clicks. Reader experience and taste lead; SEO growth-hacking and CTA-pushing never drive a piece.

No skimmer tactics. The aggressive-skimmer playbook — bolding whole phrases into a “skeleton,” keyword-stuffed headers, clickbait titles — is deliberately rejected. When a readability convention conflicts with elegance, elegance wins.

The auditbefore every piece ships
  1. No wall paragraphs. Target two to four sentences, one idea each. Five or more is a wall — split it at its natural beat.
  2. Section on real turns. A header marks a shift in phase, question, or time — not decoration. A short essay wants three to six, not ten.
  3. One emphasis per section. A single bold line on the thesis stays scannable; bolding everything makes nothing stand out.
  4. Assets earn their place. A figure goes in when it shows what prose can't. Two or three strong visuals beat six decorative ones.
  5. Lists over inline runs. Three or more parallel items become a list, not a buried sentence.

The test: skim at reading speed. If your eye slides off a gray block, split it; if a header or image hits every screen, pull some back.

In practicethe same words, audited
Before — one wall

This portfolio was built as a design-engineering exercise, which means the writing and the code were treated as one system rather than two separate jobs, and every article is passed through the same reading-friendliness audit before it ships, because a strong argument buried in a wall of gray text still loses the reader, and the goal here is an editorial experience a busy recruiter can read top to bottom without effort, so paragraphs stay short, sections mark real turns in the argument, and visuals appear only when they show something the prose cannot.

After — audited

This portfolio was built as a design-engineering exercise — the writing and the code are one system, not two separate jobs.

So every article passes through the same reading-friendliness audit before it ships. A strong argument buried in gray text still loses the reader.

The goal is an editorial experience a busy recruiter can read top to bottom: short paragraphs, sections that mark real turns, visuals only when they show what prose can't.