TypographyFluid Type Scale
A seven-step type scale built with clamp() and custom properties, plus measure, leading and spacing tokens that you can copy into your own styles.
Typography for long text: headings, lists, links, inline code, a quote, a table and a figure set in a comfortable 65-character column.
Checked on 3 December 2026 in Chrome 143.0.7499.169: 12 automated checks. What the checks are
<article class="prose-demo">
<header class="prose-demo__header">
<p class="prose-demo__eyebrow">Example essay</p>
<h1>Keeping a field notebook</h1>
<p class="prose-demo__standfirst">A notebook only helps if you can read it a month later. These notes are about the habits that make that likely.</p>
<p class="prose-demo__meta">By the example author · <time datetime="2026-12-03">3 December 2026</time> · 4 minute read</p>
</header>
<p>Most notebooks fail in the same way: they fill up with <strong>fast scribbles</strong> that made sense on the day. The cure is small. Decide what a good page looks like, and write every page the same way.</p>
<figure>
<img src="assets/field-notes.svg" width="640" height="280" alt="A flat drawing of green hills, a small house and a low sun.">
<figcaption>Figure 1. A sketch is often quicker than a sentence. Example image.</figcaption>
</figure>
<h2 id="prose-start">Start every page the same way</h2>
<p>Put the date and the place at the top, even when it feels obvious. Two lines of context save ten minutes of guessing later. See the <a href="#prose-habits">list of habits</a> below for the rest.</p>
<h3>Three things to record</h3>
<ol>
<li>What you saw, in plain words.</li>
<li>What you did not expect.</li>
<li>One question for next time.</li>
</ol>
<blockquote>
<p>A note you cannot read is a note you did not take.</p>
</blockquote>
<h2 id="prose-habits">Habits that last</h2>
<p>Write with whatever is nearest, but copy the key facts into one place each week. Short labels such as <code>weather</code> or <code>route</code> make a page easy to scan, and the <kbd>Ctrl</kbd> + <kbd>F</kbd> shortcut finds them again on a screen.</p>
<ul>
<li>Number the pages once, at the start.</li>
<li>Leave a margin for later remarks.</li>
<li>Keep one pen with the book.</li>
</ul>
<table>
<caption>A weekly routine. Example schedule.</caption>
<thead>
<tr><th scope="col">Day</th><th scope="col">Task</th><th scope="col">Time</th></tr>
</thead>
<tbody>
<tr><th scope="row">Monday</th><td>Copy key facts</td><td>10 min</td></tr>
<tr><th scope="row">Thursday</th><td>Tidy the index</td><td>5 min</td></tr>
<tr><th scope="row">Sunday</th><td>Read back one page</td><td>15 min</td></tr>
</tbody>
</table>
<h2>Read it back</h2>
<p>Once a month, read the book from the start. You will find notes you can now act on and notes that need a better label. Fix those two kinds first.</p>
<hr>
<p class="prose-demo__end">That is the whole method. It fits on one page, and so should your notes.</p>
</article>.prose-demo {
--pd-bg: #fffdf8;
--pd-ink: #231f1a;
--pd-muted: #5a5249;
--pd-line: #e0d8c9;
--pd-tint: #f5efe2;
--pd-link: #1d4fb3;
--pd-accent: #a1330f;
--pd-focus: #231f1a;
box-sizing: border-box;
min-height: 100vh;
max-width: calc(65ch + 2.5rem);
margin-inline: auto;
padding: clamp(1.25rem, 4vw, 3rem) 1.25rem 4rem;
color: var(--pd-ink);
background: var(--pd-bg);
box-shadow: 0 0 0 100vmax var(--pd-bg);
clip-path: inset(0 -100vmax);
font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
line-height: 1.7;
}
.prose-demo *, .prose-demo *::before, .prose-demo *::after { box-sizing: border-box; }
.prose-demo h1, .prose-demo h2, .prose-demo h3, .prose-demo__eyebrow, .prose-demo__meta, .prose-demo figcaption, .prose-demo caption, .prose-demo th {
font-family: system-ui, system, "Segoe UI", Roboto, sans-serif;
}
.prose-demo__eyebrow { margin: 0 0 0.5rem; color: var(--pd-accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.prose-demo h1 { margin-block: 0 0.5rem; font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.prose-demo__standfirst { margin-block: 0 0.9rem; color: var(--pd-muted); font-size: 1.2em; line-height: 1.5; }
.prose-demo__meta { margin-block: 0 2rem; padding-bottom: 1.25rem; color: var(--pd-muted); font-size: 0.85rem; border-bottom: 1px solid var(--pd-line); }
.prose-demo p { margin-block: 0 1.2em; }
.prose-demo h2 { margin-block: 2.2em 0.5em; font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.01em; scroll-margin-top: 1rem; }
.prose-demo h3 { margin-block: 1.8em 0.4em; font-size: 1.15rem; line-height: 1.3; }
.prose-demo a { color: var(--pd-link); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
.prose-demo a:hover { text-decoration-thickness: 0.16em; }
.prose-demo a:focus-visible { outline: 3px solid var(--pd-focus); outline-offset: 3px; border-radius: 2px; }
.prose-demo strong { font-weight: 700; }
.prose-demo code, .prose-demo kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85em; background: var(--pd-tint); border: 1px solid var(--pd-line); border-radius: 5px; padding: 0.08em 0.38em; }
.prose-demo kbd { border-bottom-width: 2px; }
.prose-demo ul, .prose-demo ol { margin-block: 0 1.4em; padding-inline-start: 1.5em; }
.prose-demo li { margin-block: 0.3em; padding-inline-start: 0.2em; }
.prose-demo li::marker { color: var(--pd-accent); font-weight: 700; }
.prose-demo blockquote { margin: 1.8em 0; padding: 0.2em 0 0.2em 1.2em; border-left: 4px solid var(--pd-accent); font-size: 1.2em; font-style: italic; line-height: 1.5; }
.prose-demo blockquote p { margin: 0; }
.prose-demo figure { margin: 2em 0; }
.prose-demo figure img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--pd-line); }
.prose-demo figcaption { margin-top: 0.6rem; color: var(--pd-muted); font-size: 0.85rem; line-height: 1.45; }
.prose-demo table { width: 100%; margin-block: 2em; border-collapse: collapse; font-family: system-ui, sans-serif; font-size: 0.92rem; line-height: 1.4; }
.prose-demo caption { margin-bottom: 0.5rem; color: var(--pd-muted); font-size: 0.85rem; text-align: left; }
.prose-demo th, .prose-demo td { padding: 0.6em 0.8em; text-align: left; border-bottom: 1px solid var(--pd-line); }
.prose-demo thead th { background: var(--pd-tint); border-bottom: 2px solid var(--pd-ink); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.prose-demo hr { margin-block: 2.5em; border: 0; border-top: 1px solid var(--pd-line); }
.prose-demo__end { color: var(--pd-muted); font-style: italic; }
@media (max-width: 30rem) {
.prose-demo { padding-inline: 1rem; }
.prose-demo th, .prose-demo td { padding-inline: 0.4em; }
}
@media (prefers-color-scheme: dark) {
.prose-demo {
--pd-bg: #17140f; --pd-ink: #efe9dc; --pd-muted: #bdb3a3; --pd-line: #3a342b; --pd-tint: #231f18;
--pd-link: #9fc0ff; --pd-accent: #ff9a74; --pd-focus: #ffffff;
}
.prose-demo figure img { opacity: 0.92; }
}Written by the author of the snippet. Each note has a test step or a markup check that reads the page.
TypographyA seven-step type scale built with clamp() and custom properties, plus measure, leading and spacing tokens that you can copy into your own styles.
Data DisplayA table with caption, scoped headers and right-aligned numbers that reflows into labelled stacked cards on a phone, in plain CSS.
FeedbackInformation, success, warning and error banners with an icon, a heading, a dismiss button and the right live-region role for each kind.