Graph Paper Novel
A book launch set on cool grey graph paper: one giant green high-contrast serif title with a grayscale object pushed through it, pencil notes scribbled in the margins and light narrow serif text that turns from grey to black as you read. Suits a single book, a record or any one-object launch that wants to feel literary rather than salesy.
Parts
Top bar
Bold wordmark with an italic edition note, centred text links with an underlined current page, a green outlined language pill with a small menu, and a bold buy link with a superscript price.
Code
React For Figma<header class="bar">
<a class="bar__brand" href="#">
<strong class="bar__name">True North</strong>
<em class="bar__edition">2027 Edition</em>
</a>
<nav class="bar__nav" aria-label="Sections">
<a class="bar__link is-current" href="#" aria-current="page">Intro</a>
<a class="bar__link" href="#">The book</a>
<a class="bar__link" href="#">About the Author</a>
</nav>
<div class="bar__lang">
<button class="bar__pill" type="button" aria-expanded="false" aria-haspopup="true">
<span class="bar__pill-label">En</span>
<svg class="bar__chevron" viewBox="0 0 10 6" width="8" height="5" aria-hidden="true"><path d="M1 1l4 4 4-4" fill="none" stroke="currentColor" stroke-width="1.4"/></svg>
</button>
<ul class="bar__menu" role="menu">
<li><button class="bar__option" type="button" role="menuitem">En</button></li>
<li><button class="bar__option" type="button" role="menuitem">Es</button></li>
<li><button class="bar__option" type="button" role="menuitem">Fr</button></li>
<li><button class="bar__option" type="button" role="menuitem">Pt</button></li>
</ul>
</div>
<a class="bar__buy" href="#">Buy it now!<sup class="bar__price">$2.49</sup></a>
</header>
<style>
.bar {
display: grid;
grid-template-columns: 1fr auto auto 1fr;
align-items: center;
gap: var(--gap);
padding: 0.75rem var(--edge);
font-size: var(--text-s);
font-weight: 400;
}
.bar a { color: inherit; }
.bar__brand {
display: inline-flex;
gap: 0.75rem;
min-height: var(--tap);
align-items: center;
text-decoration: none;
white-space: nowrap;
}
.bar__name { font-weight: 600; letter-spacing: 0; }
.bar__edition { font-weight: 300; font-style: italic; }
.bar__nav { display: flex; gap: clamp(1rem, 4vw, 3.75rem); }
.bar__link,
.bar__buy {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: var(--tap);
min-height: var(--tap);
text-decoration: underline;
text-decoration-color: transparent;
text-decoration-thickness: 1px;
text-underline-offset: 0.2em;
transition: text-decoration-color var(--quick) ease;
}
.bar__link:hover,
.bar__link:focus-visible { text-decoration-color: currentColor; }
.bar__link.is-current {
font-weight: 600;
text-decoration-color: currentColor;
text-decoration-thickness: 2px;
}
.bar__lang { position: relative; }
.bar__pill {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.3rem;
min-width: var(--tap);
height: var(--tap);
padding: 0 0.9rem;
border: none;
background: none;
color: var(--green);
font: italic 400 var(--text-s) var(--font-body);
cursor: pointer;
}
/* The drawn pill is smaller than its tap area, like the source. */
.bar__pill::before {
content: "";
position: absolute;
inset: 0.4rem 0;
border: var(--rule) solid var(--green);
border-radius: var(--radius-pill);
transition: background-color var(--quick) ease;
}
.bar__pill:hover::before { background: color-mix(in srgb, var(--green) 8%, transparent); }
.bar__chevron { transition: rotate var(--quick) var(--ease); }
.bar__lang.is-open .bar__chevron { rotate: 180deg; }
.bar__menu {
position: absolute;
top: calc(100% + 0.25rem);
left: 50%;
z-index: 5;
translate: -50% -0.25rem;
margin: 0;
padding: 0.25rem;
list-style: none;
border: var(--rule) solid var(--green);
border-radius: 1.5rem;
background: var(--page);
opacity: 0;
visibility: hidden;
transition: opacity var(--quick) ease, translate var(--quick) var(--ease), visibility 0s var(--quick);
}
.bar__lang.is-open .bar__menu {
translate: -50% 0;
opacity: 1;
visibility: visible;
transition-delay: 0s;
}
.bar__option {
width: var(--tap);
height: var(--tap);
border: 0;
border-radius: 50%;
background: none;
color: var(--green);
font: italic 400 var(--text-s) var(--font-body);
cursor: pointer;
}
.bar__option:hover,
.bar__option:focus-visible { background: var(--green); color: var(--on-dark); }
.bar__buy {
justify-self: end;
align-items: flex-start;
padding-top: 0.6rem;
font-weight: 600;
text-decoration-color: currentColor;
text-decoration-thickness: 2px;
white-space: nowrap;
}
.bar__buy:hover { text-decoration-color: var(--green); }
.bar__price {
margin-left: 0.35rem;
font-size: 0.7em;
font-weight: 300;
text-decoration: none;
display: inline-block;
}
@media (max-width: 52rem) {
.bar { grid-template-columns: 1fr auto auto; gap: 0.5rem; }
.bar__nav { display: none; }
.bar__edition { display: none; }
.bar__name { font-size: 1.15rem; }
.bar__buy { font-size: 1.15rem; }
}
</style>
<script>
(() => {
for (const lang of document.querySelectorAll('.bar__lang')) {
const pill = lang.querySelector('.bar__pill');
const label = lang.querySelector('.bar__pill-label');
const setOpen = (open) => {
lang.classList.toggle('is-open', open);
pill.setAttribute('aria-expanded', String(open));
};
pill.addEventListener('click', () => setOpen(!lang.classList.contains('is-open')));
for (const option of lang.querySelectorAll('.bar__option')) {
option.addEventListener('click', () => {
label.textContent = option.textContent;
setOpen(false);
pill.focus();
});
}
lang.addEventListener('keydown', (event) => {
if (event.key === 'Escape') setOpen(false);
});
lang.addEventListener('focusout', (event) => {
if (!lang.contains(event.relatedTarget)) setOpen(false);
});
}
})();
</script>
Cover
The signature: a full-width two-line green caps title with a drawn grayscale compass pushed through it, pencil bearings scattered on the grid, a tiny ink figure standing on the baseline, an italic byline and a hand-lettered scroll cue. Fades the title out on scroll.
Code
React For Figma<section class="cover" aria-labelledby="cover-title">
<p class="cover__kicker">The Quiet Rules of Getting Home</p>
<div class="cover__stage">
<h1 class="cover__title" id="cover-title">
<span class="cover__line">True</span>
<span class="cover__line">North</span>
<svg class="cover__figure" viewBox="0 0 40 90" aria-hidden="true">
<path d="M24 6c3-4 0-7 3-10M23 10c2-3 6-2 5-6" fill="none" stroke="currentColor" stroke-width="0.8" stroke-linecap="round"/>
<circle cx="20" cy="15" r="4.2" fill="currentColor"/>
<path d="M15 12.5h10" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
<path d="M14 21c3-2 9-2 12 0l2 36c-5 2-11 2-16 0z" fill="currentColor"/>
<path d="M26 26l7 14" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
<rect x="30.5" y="39" width="5" height="7" rx="1" fill="none" stroke="currentColor" stroke-width="1.2"/>
<path d="M17 57l-1 26M23 57l1 26M12 84h9M22 84h9" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
<path d="M2 86c12 1 26-1 37 0" fill="none" stroke="currentColor" stroke-width="0.7"/>
</svg>
</h1>
<svg class="cover__object" viewBox="0 0 200 340" role="img" aria-label="A rolled sea chart tied with string, a pocket compass strapped to its front">
<defs>
<linearGradient id="cover-roll" x1="0" x2="1">
<stop style="stop-color: var(--metal-dark)" offset="0"/>
<stop style="stop-color: var(--metal-mid)" offset="0.28"/>
<stop style="stop-color: var(--metal-light)" offset="0.45"/>
<stop style="stop-color: var(--metal-mid)" offset="0.7"/>
<stop style="stop-color: var(--metal-dark)" offset="1"/>
</linearGradient>
<radialGradient id="cover-case" cx="0.38" cy="0.32" r="0.75">
<stop style="stop-color: var(--metal-light)" offset="0"/>
<stop style="stop-color: var(--metal-mid)" offset="0.55"/>
<stop style="stop-color: var(--metal-dark)" offset="1"/>
</radialGradient>
<radialGradient id="cover-face" cx="0.45" cy="0.4" r="0.7">
<stop style="stop-color: var(--metal-light)" offset="0"/>
<stop style="stop-color: var(--metal-mid)" offset="1"/>
</radialGradient>
<pattern id="cover-hatch" width="3" height="3" patternUnits="userSpaceOnUse">
<path style="stroke: var(--metal-dark)" d="M0 0.5h3" stroke-width="0.5" opacity="0.35"/>
</pattern>
<clipPath id="cover-body"><rect x="38" y="36" width="124" height="276" rx="4"/></clipPath>
</defs>
<ellipse style="fill: var(--metal-dark)" cx="102" cy="318" rx="70" ry="10" opacity="0.25"/>
<rect x="38" y="36" width="124" height="276" rx="4" fill="url(#cover-roll)"/>
<g style="stroke: var(--metal-dark)" clip-path="url(#cover-body)" fill="none" stroke-width="0.9" opacity="0.55">
<path d="M30 70c30 10 50-8 80 4s40 2 60-6"/>
<path d="M30 92c26 6 46-12 82 0s38 4 58-4"/>
<path d="M30 230c20-8 50 12 80 2s48-10 60 0"/>
<path d="M30 262c24-6 52 10 78 0s48-8 62 2"/>
<path d="M60 36v276M100 36v276M140 36v276" stroke-dasharray="2 4"/>
<path d="M120 280l14-10 6 8-12 8z"/>
</g>
<rect x="38" y="36" width="124" height="276" fill="url(#cover-hatch)" clip-path="url(#cover-body)"/>
<ellipse style="fill: var(--metal-light); stroke: var(--metal-dark)" cx="100" cy="36" rx="62" ry="15" stroke-width="1.2"/>
<path style="stroke: var(--metal-mid)" d="M100 36c-8 0-10-6-2-7s16 2 16 7-10 10-22 9-24-6-22-12 18-10 34-9 34 6 32 13" fill="none" stroke-width="1"/>
<path style="stroke: var(--metal-dark)" d="M38 112c40 18 84 18 124 0M38 118c40 18 84 18 124 0" fill="none" stroke-width="2.4"/>
<path style="stroke: var(--metal-dark)" d="M38 258c40 18 84 18 124 0M38 264c40 18 84 18 124 0" fill="none" stroke-width="2.4"/>
<path style="stroke: var(--metal-light)" d="M38 113c40 18 84 18 124 0M38 259c40 18 84 18 124 0" fill="none" stroke-width="0.6"/>
<circle cx="100" cy="132" r="10" fill="none" stroke="url(#cover-case)" stroke-width="5"/>
<circle style="stroke: var(--metal-dark)" cx="100" cy="190" r="56" fill="url(#cover-case)" stroke-width="1.5"/>
<circle style="stroke: var(--metal-dark)" cx="100" cy="190" r="46" fill="url(#cover-face)" stroke-width="1"/>
<circle style="stroke: var(--metal-dark)" cx="100" cy="190" r="40" fill="none" stroke-width="5" stroke-dasharray="0.8 7.05"/>
<g style="fill: var(--metal-dark); font-family: var(--font-display)" font-size="11" text-anchor="middle">
<text x="100" y="164">N</text><text x="128" y="194">E</text><text x="100" y="223">S</text><text x="72" y="194">W</text>
</g>
<g class="cover__needle">
<path style="fill: var(--metal-dark)" d="M100 152l6 38h-12z"/>
<path style="fill: var(--metal-light); stroke: var(--metal-dark)" d="M100 228l6-38h-12z" stroke-width="0.8"/>
<circle style="fill: var(--metal-mid); stroke: var(--metal-dark)" cx="100" cy="190" r="3.2"/>
</g>
<path style="stroke: var(--on-dark)" d="M68 160a44 44 0 0 1 30-14" fill="none" stroke-width="3" stroke-linecap="round" opacity="0.7"/>
</svg>
<div class="cover__notes" aria-hidden="true">
<span class="cover__note" style="--x: 9%; --y: -4%; --r: -8deg">N 12° E</span>
<span class="cover__note" style="--x: 21%; --y: 18%; --r: 6deg">ssw</span>
<span class="cover__note" style="--x: 36%; --y: 34%; --r: -10deg">4 kn</span>
<span class="cover__note" style="--x: 61%; --y: 22%; --r: 4deg">48°N</span>
<span class="cover__note" style="--x: 85%; --y: 46%; --r: 8deg">06:40</span>
<span class="cover__note" style="--x: 70%; --y: 58%; --r: -6deg">bear 270</span>
<span class="cover__note" style="--x: 29%; --y: 72%; --r: 7deg">fog</span>
<span class="cover__note" style="--x: 64%; --y: 88%; --r: -4deg">+2.5 nm</span>
<span class="cover__note" style="--x: 14%; --y: 96%; --r: -9deg">W by N</span>
<span class="cover__note" style="--x: 79%; --y: 104%; --r: 5deg">log 31</span>
</div>
</div>
<p class="cover__byline"><em>A novel by</em> Ines Calloway</p>
<a class="cover__cue" href="#" aria-label="Scroll to the story">
<span class="cover__arc" aria-hidden="true">
<span class="cover__letter" style="--a: -62deg; --i: 0"><span>s</span></span>
<span class="cover__letter" style="--a: -38deg; --i: 1"><span>c</span></span>
<span class="cover__letter" style="--a: -13deg; --i: 2"><span>R</span></span>
<span class="cover__letter" style="--a: 13deg; --i: 3"><span>o</span></span>
<span class="cover__letter" style="--a: 38deg; --i: 4"><span>l</span></span>
<span class="cover__letter" style="--a: 62deg; --i: 5"><span>l</span></span>
</span>
<svg class="cover__mouse" viewBox="0 0 30 56" aria-hidden="true">
<path d="M15 2l-3 4M15 2l3 4" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/>
<rect x="4" y="9" width="22" height="36" rx="11" fill="none" stroke="currentColor" stroke-width="1.3"/>
<path d="M4 23h22M15 9v14" stroke="currentColor" stroke-width="1"/>
<rect class="cover__wheel" x="13" y="13" width="4" height="7" rx="2" fill="none" stroke="currentColor" stroke-width="1"/>
<path d="M12 50l3 4 3-4" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/>
</svg>
</a>
</section>
<style>
.cover {
position: relative;
display: grid;
justify-items: center;
padding: clamp(1rem, 2.5vw, 2.25rem) var(--edge) var(--space-l);
overflow: hidden;
text-align: center;
}
.cover__kicker {
margin: 0;
font-size: var(--text-l);
font-weight: 300;
line-height: 1.2;
}
.cover__stage {
position: relative;
width: 100%;
margin-top: 0.06em;
font-size: var(--display);
}
.cover__title {
position: relative;
z-index: 1;
display: grid;
justify-items: center;
margin: 0;
color: var(--green);
font: 400 1em / 0.82 var(--font-display);
letter-spacing: var(--tracking-display);
text-transform: uppercase;
}
.cover__line {
display: block;
animation: cover-in var(--fade) var(--ease) both;
}
.cover__line + .cover__line { animation-delay: 0.15s; }
.cover__figure {
position: absolute;
bottom: 0.03em;
left: calc(50% - 1.74em);
width: 0.16em;
color: var(--ink);
}
.cover__object {
position: absolute;
z-index: 2;
top: -0.12em;
left: 50%;
width: 0.92em;
translate: -48% 0;
rotate: 4deg;
filter: drop-shadow(0.02em 0.03em 0.04em var(--shade));
animation: cover-drop calc(var(--fade) * 1.3) var(--ease) 0.25s both;
}
.cover__needle {
transform-box: view-box;
transform-origin: 100px 190px;
animation: cover-sway 5s ease-in-out infinite alternate;
}
.cover__notes {
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
}
.cover__note {
position: absolute;
left: var(--x);
top: var(--y);
color: var(--scribble);
font: 400 var(--text-hand) / 1 var(--font-hand);
letter-spacing: 0;
white-space: nowrap;
rotate: var(--r);
animation: cover-in 0.6s ease both;
}
.cover__note:nth-child(1) { animation-delay: 0.5s; }
.cover__note:nth-child(2) { animation-delay: 0.62s; }
.cover__note:nth-child(3) { animation-delay: 0.74s; }
.cover__note:nth-child(4) { animation-delay: 0.86s; }
.cover__note:nth-child(5) { animation-delay: 0.98s; }
.cover__note:nth-child(6) { animation-delay: 1.1s; }
.cover__note:nth-child(7) { animation-delay: 1.22s; }
.cover__note:nth-child(8) { animation-delay: 1.34s; }
.cover__note:nth-child(9) { animation-delay: 1.46s; }
.cover__note:nth-child(10) { animation-delay: 1.58s; }
.cover__byline {
position: relative;
z-index: 3;
margin: var(--space-s) 0 0;
font-size: var(--text-l);
font-weight: 300;
line-height: 1.2;
}
.cover__byline em { font-weight: 200; }
.cover__cue {
position: relative;
display: grid;
justify-items: center;
width: 6.5rem;
height: 6.5rem;
margin-top: var(--space-s);
color: var(--ink);
text-decoration: none;
}
.cover__arc {
position: absolute;
left: 50%;
top: 3.4rem;
}
.cover__letter {
position: absolute;
left: -0.3em;
top: -0.5em;
width: 0.6em;
transform: rotate(var(--a)) translateY(-2.6rem);
font: 400 1.35rem / 1 var(--font-hand);
}
.cover__letter span {
display: block;
animation: cover-bob 1.8s ease-in-out calc(var(--i) * 0.12s) infinite alternate;
}
.cover__mouse { width: 1.9rem; margin-top: 1.4rem; }
.cover__wheel { animation: cover-wheel 1.6s ease-in-out infinite; }
.cover.is-offscreen .cover__needle,
.cover.is-offscreen .cover__letter span,
.cover.is-offscreen .cover__wheel { animation-play-state: paused; }
@keyframes cover-in { from { opacity: 0; } }
@keyframes cover-drop { from { opacity: 0; translate: -48% -24px; } }
@keyframes cover-sway { from { rotate: -9deg; } to { rotate: 7deg; } }
@keyframes cover-bob { to { translate: 0 -3px; } }
@keyframes cover-wheel { 50% { translate: 0 4px; opacity: 0.4; } }
@media (max-width: 40rem) {
.cover__note:nth-child(n + 7) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.cover__needle, .cover__letter span, .cover__wheel { animation: none; }
}
</style>
<script>
(() => {
for (const cover of document.querySelectorAll('.cover')) {
const title = cover.querySelector('.cover__title');
const notes = cover.querySelector('.cover__notes');
let visible = false;
const fadeOnScroll = () => {
const box = cover.getBoundingClientRect();
const passed = Math.min(Math.max(-box.top / (box.height * 0.55), 0), 1);
title.style.opacity = String(1 - passed);
notes.style.opacity = String(1 - passed);
};
new IntersectionObserver(([entry]) => {
visible = entry.isIntersecting;
cover.classList.toggle('is-offscreen', !visible);
if (visible) fadeOnScroll();
}).observe(cover);
addEventListener('scroll', () => { if (visible) fadeOnScroll(); }, { passive: true });
}
})();
</script>
Scroll-lit reading
A dateline row with a live date in green, then a large centred light-serif paragraph with ink pictograms in the line. Words turn from grey to black as you scroll, a green N to S rail fills beside it and a paper boat drifts across.
Code
React For Figma<section class="dispatch" aria-label="From the book">
<div class="dispatch__meta">
<strong class="dispatch__name">True North.</strong>
<span class="dispatch__subtitle">The Quiet Rules of Getting Home.</span>
<time class="dispatch__date">March 4, 2027, 5:12 AM</time>
<strong class="dispatch__place">Halifax, NS</strong>
</div>
<p class="dispatch__text">
Most of us leave the harbour
<svg class="dispatch__icon" viewBox="0 0 40 30" aria-hidden="true"><path d="M4 21h32l-5 6H9z M20 3v18 M20 4l11 14H20 M20 7l-8 11h8"/></svg>
as if the sea were a road already drawn, without reading
<svg class="dispatch__icon" viewBox="0 0 40 30" aria-hidden="true"><path d="M17 28l2-18h2l2 18z M16 10h8 M18 6h4v4h-4z M20 3v3 M24 8l12-4 M24 8l12 4 M16 8L4 4 M16 8L4 12 M18 16h4 M17 22h6"/></svg>
the wind, without asking which marks truly hold, and trusting that rowing harder will be enough to reach
<svg class="dispatch__icon" viewBox="0 0 40 30" aria-hidden="true"><path d="M20 7v20 M14 11h12 M8 19c1 6 7 8 12 8s11-2 12-8 M5 21l3-3 3 3 M29 21l3-3 3 3"/><circle cx="20" cy="5" r="2.5"/></svg>
the shore. But the water keeps its own ledger, its own
<svg class="dispatch__icon" viewBox="0 0 40 30" aria-hidden="true"><path d="M2 12c4-4 8-4 12 0s8 4 12 0 8-4 12 0 M2 20c4-4 8-4 12 0s8 4 12 0 8-4 12 0"/></svg>
currents, its penalties and its gifts. True North is the story of a course plotted the hard way, and an invitation to learn that arriving
<svg class="dispatch__icon" viewBox="0 0 40 30" aria-hidden="true"><path d="M22 3l10 9-10 9-10-9z M22 21c-2 3-6 4-8 7 M17 25l-3 1 M19 22l-4 0"/></svg>
is not about speed, but about knowing where you stand, and being free to change your heading without fear.
</p>
<div class="dispatch__rail" aria-hidden="true">
<span class="dispatch__pole">N</span>
<span class="dispatch__track"><span class="dispatch__fill"></span></span>
<span class="dispatch__pole">S</span>
</div>
<svg class="dispatch__boat" viewBox="0 0 160 90" aria-hidden="true">
<defs>
<linearGradient id="dispatch-paper" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" style="stop-color: var(--metal-light)"/>
<stop offset="1" style="stop-color: var(--metal-mid)"/>
</linearGradient>
</defs>
<path d="M6 48h148l-26 36H32z" style="fill: var(--metal-mid)"/>
<path d="M6 48l74-44 74 44z" style="fill: url(#dispatch-paper)"/>
<path d="M80 4l-22 44h44z" style="fill: var(--metal-light)"/>
<path d="M6 48h148M80 4v44M58 48l22-44 22 44M32 84l48-36 48 36" fill="none" style="stroke: var(--metal-dark)" stroke-width="0.8"/>
<g fill="none" style="stroke: var(--metal-dark)" stroke-width="0.6" opacity="0.6">
<path d="M24 40h40M30 34h30M96 40h36M98 34h26M44 62h72M52 70h56"/>
<path d="M112 30c6 2 10-4 16 0" />
</g>
</svg>
</section>
<style>
.dispatch {
position: relative;
padding: var(--space-m) var(--edge) var(--section-space);
overflow: clip;
}
.dispatch__meta {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: var(--space-xs) var(--gap);
font-size: var(--text-s);
font-weight: 300;
}
.dispatch__name,
.dispatch__place { font-weight: 600; }
.dispatch__date { color: var(--green); }
.dispatch__place { text-align: right; }
.dispatch__text {
position: relative;
z-index: 1;
max-width: 46rem;
margin: var(--space-l) auto 0;
font-size: var(--text-xl);
font-weight: 300;
line-height: 1.32;
letter-spacing: -0.01em;
text-align: center;
text-wrap: pretty;
}
.dispatch__word,
.dispatch__icon {
color: var(--ink-dim);
transition: color var(--quick) ease;
}
.dispatch__word.is-lit,
.dispatch__icon.is-lit { color: var(--ink); }
.dispatch__icon {
display: inline-block;
width: 1.15em;
height: 0.85em;
margin: 0 0.12em;
vertical-align: -0.08em;
fill: none;
stroke: currentColor;
stroke-width: 1.4;
stroke-linecap: round;
stroke-linejoin: round;
}
.dispatch__rail {
position: absolute;
top: 10rem;
right: var(--edge);
display: grid;
justify-items: center;
gap: 0.3rem;
color: var(--green);
font-size: var(--text-xs);
}
.dispatch__track {
position: relative;
width: 1px;
height: 9rem;
background: var(--ink-dim);
}
.dispatch__fill {
position: absolute;
inset: 0 -0.5px;
background: var(--green);
transform: scaleY(var(--read, 0));
transform-origin: top;
transition: transform var(--quick) linear;
}
.dispatch__boat {
position: absolute;
z-index: 2;
top: 38%;
left: 0;
width: clamp(5rem, 9vw, 8rem);
filter: drop-shadow(0 0.4rem 0.4rem var(--shade));
pointer-events: none;
animation: dispatch-drift var(--drift) ease-in-out infinite alternate;
}
.dispatch.is-offscreen .dispatch__boat { animation-play-state: paused; }
@keyframes dispatch-drift {
0% { translate: -20% -6rem; rotate: -14deg; }
30% { translate: 30vw 2rem; rotate: 8deg; }
60% { translate: 58vw -3rem; rotate: -6deg; }
100% { translate: calc(100vw - 9rem) 5rem; rotate: 16deg; }
}
@media (max-width: 48rem) {
.dispatch__meta { grid-template-columns: 1fr 1fr; }
.dispatch__subtitle { text-align: right; }
.dispatch__rail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.dispatch__boat { animation: none; translate: 70vw 4rem; rotate: 8deg; }
}
</style>
<script>
(() => {
const formatDay = new Intl.DateTimeFormat('en-US', { dateStyle: 'long' });
const formatTime = new Intl.DateTimeFormat('en-US', { timeStyle: 'short' });
function splitIntoWords(text) {
for (const node of [...text.childNodes]) {
if (node.nodeType !== Node.TEXT_NODE) continue;
const pieces = node.textContent.split(/(\s+)/).filter(Boolean);
const words = pieces.map((piece) => {
if (/^\s+$/.test(piece)) return document.createTextNode(' ');
const word = document.createElement('span');
word.className = 'dispatch__word';
word.textContent = piece;
return word;
});
node.replaceWith(...words);
}
return [...text.querySelectorAll('.dispatch__word, .dispatch__icon')];
}
for (const root of document.querySelectorAll('.dispatch')) {
const text = root.querySelector('.dispatch__text');
const rail = root.querySelector('.dispatch__rail');
const date = root.querySelector('.dispatch__date');
const words = splitIntoWords(text);
let visible = false;
const now = new Date();
date.textContent = `${formatDay.format(now)}, ${formatTime.format(now)}`;
date.dateTime = now.toISOString();
const lightByScroll = () => {
const box = text.getBoundingClientRect();
const read = Math.min(Math.max((innerHeight * 0.8 - box.top) / box.height, 0), 1);
const litCount = Math.round(read * words.length);
words.forEach((word, index) => word.classList.toggle('is-lit', index < litCount));
rail.style.setProperty('--read', read.toFixed(3));
};
new IntersectionObserver(([entry]) => {
visible = entry.isIntersecting;
root.classList.toggle('is-offscreen', !visible);
if (visible) lightByScroll();
}).observe(root);
addEventListener('scroll', () => { if (visible) lightByScroll(); }, { passive: true });
addEventListener('resize', lightByScroll);
}
})();
</script>
Book shelf
Bold label with a light subhead, then a sideways track of book views: the cover on a green square and printed page spreads, moved with an outlined back circle and a black next circle.
Code
React For Figma<section class="shelf" aria-labelledby="shelf-title">
<div class="shelf__head">
<h2 class="shelf__title" id="shelf-title">The Book</h2>
<p class="shelf__subtitle">4 Languages. 3 Formats. One Course.</p>
</div>
<div class="shelf__track" tabindex="0" aria-label="Views of the book">
<figure class="shelf__slide">
<div class="shelf__panel">
<div class="shelf__book">
<span class="shelf__book-title">True<br>North</span>
<svg class="shelf__book-mark" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 4l2.5 8h-5zM12 20l2.5-8h-5z"/></svg>
<span class="shelf__book-author">Ines Calloway</span>
</div>
</div>
<figcaption class="shelf__caption">Hardcover, 312 pages</figcaption>
</figure>
<figure class="shelf__slide">
<div class="shelf__page">
<p class="shelf__page-head">One. Slack Water</p>
<p>Nell Varga learned the harbour before she learned to read. She knew which buoys leaned after a storm, which moorings were rented and which were simply taken, and that her father checked the tide table twice because he did not trust himself once.</p>
<p>The night he did not come back, she sat at the kitchen table with his pencil and his chart and tried to work out where a small boat goes when nobody is steering it.</p>
<p><em>You never know where you are,</em> he used to say. <em>You only know where you were, and how long you have been going.</em></p>
<p>It took her eleven years to understand that he had not been talking about the sea.</p>
<span class="shelf__folio">9</span>
</div>
<figcaption class="shelf__caption">Opening page</figcaption>
</figure>
<figure class="shelf__slide">
<div class="shelf__page shelf__page--contents">
<p class="shelf__page-head">Contents</p>
<ol class="shelf__toc">
<li><span>Slack Water</span><span>9</span></li>
<li><span>The Tide Table</span><span>31</span></li>
<li><span>Leeway</span><span>58</span></li>
<li><span>A Borrowed Mooring</span><span>87</span></li>
<li><span>Fog Signal</span><span>120</span></li>
<li><span>Set and Drift</span><span>163</span></li>
<li><span>The Fix</span><span>204</span></li>
<li><span>Making Port</span><span>271</span></li>
</ol>
</div>
<figcaption class="shelf__caption">Contents</figcaption>
</figure>
<figure class="shelf__slide">
<div class="shelf__panel">
<div class="shelf__book shelf__book--back">
<p class="shelf__blurb">A daughter, a lost boat and eleven years of learning to say <em>here I am</em> with nothing but a pencil and a clock.</p>
</div>
</div>
<figcaption class="shelf__caption">Back cover</figcaption>
</figure>
</div>
<div class="shelf__controls">
<button class="shelf__button shelf__button--back" type="button" aria-label="Previous view" disabled>
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M16 10H4M9 5l-5 5 5 5"/></svg>
</button>
<button class="shelf__button shelf__button--next" type="button" aria-label="Next view">
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 10h12M11 5l5 5-5 5"/></svg>
</button>
</div>
</section>
<style>
.shelf {
display: grid;
gap: var(--space-m);
padding: var(--space-l) var(--edge) var(--section-space);
}
.shelf__head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.25rem var(--space-m);
}
.shelf__title {
margin: 0;
font-size: var(--text-m);
font-weight: 600;
}
.shelf__subtitle {
margin: 0;
font-size: var(--text-m);
font-weight: 300;
}
.shelf__track {
display: flex;
gap: var(--space-m);
overflow-x: auto;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
scrollbar-width: none;
padding-bottom: 0.25rem;
}
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__track:focus-visible { outline: var(--rule) solid var(--green); outline-offset: 0.25rem; }
.shelf__slide {
flex: none;
width: clamp(15rem, 34vw, 26rem);
margin: 0;
scroll-snap-align: start;
}
.shelf__panel {
display: grid;
place-items: center;
aspect-ratio: 1;
background:
linear-gradient(to bottom, transparent 72%, var(--shade-light) 72%),
var(--green);
}
.shelf__book {
position: relative;
width: 46%;
aspect-ratio: 2 / 3;
display: grid;
justify-items: center;
align-content: space-between;
padding: 14% 8% 10%;
background:
linear-gradient(to right, var(--shade), transparent 7%, var(--sheen) 9%, transparent 14%),
var(--green);
box-shadow: 0.6rem 0.9rem 1.2rem var(--shade), inset 0 0 0 var(--rule) var(--sheen);
color: var(--on-dark);
text-align: center;
}
.shelf__book-title {
font: 400 clamp(1.5rem, 3.4vw, 2.5rem) / 0.9 var(--font-display);
text-transform: uppercase;
letter-spacing: var(--tracking-display);
}
.shelf__book-mark {
width: 26%;
fill: none;
stroke: currentColor;
stroke-width: 1;
}
.shelf__book-author { font-size: var(--text-xs); font-style: italic; }
.shelf__book--back { place-items: center; }
.shelf__blurb {
margin: 0;
font-size: clamp(0.75rem, 1.2vw, 0.95rem);
font-weight: 300;
line-height: 1.35;
}
.shelf__page {
position: relative;
aspect-ratio: 1;
padding: 9% 11%;
border-radius: var(--radius-card);
background:
linear-gradient(to right, var(--shade-light), transparent 6%),
var(--sheet);
box-shadow: 0 0.5rem 1rem var(--shade-light);
color: var(--ink-soft);
font-size: clamp(0.6rem, 0.9vw, 0.78rem);
font-weight: 400;
line-height: 1.45;
text-align: justify;
hyphens: auto;
overflow: hidden;
}
.shelf__page p { margin: 0 0 0.7em; }
.shelf__page-head {
margin-bottom: 1.4em !important;
font-style: italic;
text-align: left;
}
.shelf__folio {
position: absolute;
bottom: 6%;
left: 50%;
}
.shelf__toc {
margin: 0;
padding: 0;
list-style: none;
}
.shelf__toc li {
display: flex;
justify-content: space-between;
gap: 1em;
padding: 0.55em 0;
border-bottom: var(--rule) solid var(--grid-line);
}
.shelf__caption {
margin-top: var(--space-xs);
color: var(--ink-soft);
font: 400 var(--text-xs) var(--font-label);
letter-spacing: 0;
}
.shelf__controls {
display: flex;
justify-content: flex-end;
gap: 0.6rem;
}
.shelf__button {
display: grid;
place-items: center;
width: var(--tap);
height: var(--tap);
padding: 0;
border: var(--rule) solid var(--ink);
border-radius: 50%;
background: var(--ink);
color: var(--on-dark);
cursor: pointer;
transition: opacity var(--quick) ease, background-color var(--quick) ease;
}
.shelf__button--back { background: transparent; color: var(--ink); }
.shelf__button:disabled { opacity: 0.3; cursor: default; }
.shelf__button:not(:disabled):hover { background: var(--green); border-color: var(--green); color: var(--on-dark); }
.shelf__button svg {
width: 1.1rem;
fill: none;
stroke: currentColor;
stroke-width: 1.4;
}
@media (prefers-reduced-motion: reduce) {
.shelf__track { scroll-behavior: auto; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.shelf')) {
const track = root.querySelector('.shelf__track');
const back = root.querySelector('.shelf__button--back');
const next = root.querySelector('.shelf__button--next');
const step = () => track.querySelector('.shelf__slide').offsetWidth + parseFloat(getComputedStyle(track).columnGap || 0);
const updateButtons = () => {
back.disabled = track.scrollLeft < 4;
next.disabled = track.scrollLeft + track.clientWidth > track.scrollWidth - 4;
};
back.addEventListener('click', () => track.scrollBy({ left: -step() }));
next.addEventListener('click', () => track.scrollBy({ left: step() }));
track.addEventListener('scroll', updateButtons, { passive: true });
new ResizeObserver(updateButtons).observe(track);
}
})();
</script>
Formats and sample
A grey card with a ruled price table and a green pill buy button beside a stacked light statement, body copy with bold italic names and a pill email field with a black send button that spins and thanks you.
Code
React For Figma<section class="formats" aria-label="Formats and free sample">
<div class="formats__side">
<div class="formats__card">
<table class="formats__table">
<thead>
<tr><th scope="col">Formats</th><th scope="col">Price (USD)</th></tr>
</thead>
<tbody>
<tr><th scope="row">Paperback</th><td>$14.50</td></tr>
<tr><th scope="row">Hardcover</th><td>$24.00</td></tr>
<tr><th scope="row">E-book</th><td>$2.49*</td></tr>
<tr><th scope="row">Audiobook</th><td>Spring</td></tr>
</tbody>
</table>
<a class="formats__buy" href="#">Buy from your bookshop</a>
</div>
<p class="formats__aside"><em>(*) Launch price for the first month only</em></p>
</div>
<div class="formats__main">
<p class="formats__statement">
<span>Not a sailing manual.</span>
<span>Not only a novel.</span>
<span>A story about knowing where you are when nothing tells you.</span>
</p>
<div class="formats__body">
<p><strong><em>Nell Varga</em></strong> grows up on a harbour where boats are owned by people who never go out in them. Her father fishes for others, keeps his log in pencil and trusts the clock more than the sky.</p>
<p>When his boat does not return, she inherits his chart and his habit of counting. <strong><em>Slowly she learns that a course is not a line you hold, but a guess you correct, again and again, without shame.</em></strong></p>
<p>True North is a novel about debt, inheritance and the courage to admit you were wrong by a few degrees.</p>
</div>
<form class="formats__form" action="#">
<label class="formats__label" for="formats-email">Read the first chapter for free</label>
<div class="formats__field">
<input class="formats__input" id="formats-email" type="email" name="email" placeholder="Your email" autocomplete="email" required>
<button class="formats__send" type="submit"><span class="formats__send-text">Send</span><span class="formats__spinner" aria-hidden="true"></span></button>
</div>
<p class="formats__note" role="status">(*) We write twice a year, about the book only.</p>
</form>
</div>
</section>
<style>
.formats {
display: grid;
grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
align-items: start;
gap: var(--space-l) var(--gap);
padding: var(--space-m) var(--edge) var(--section-space);
}
.formats__card {
display: grid;
gap: var(--space-m);
padding: 1rem 1rem 1rem;
border-radius: var(--radius-card);
background: var(--panel);
}
.formats__table {
width: 100%;
border-collapse: collapse;
font-size: var(--text-m);
}
.formats__table th,
.formats__table td {
padding: 0.6rem 0 0.45rem;
font-weight: 400;
text-align: left;
}
.formats__table td { text-align: right; }
.formats__table thead th {
padding-bottom: 1.2rem;
font-size: var(--text-s);
font-weight: 300;
}
.formats__table thead th:last-child { text-align: right; }
.formats__table tbody tr + tr { border-top: var(--rule) solid var(--ink); }
.formats__buy {
display: grid;
place-items: center;
min-height: 3.1rem;
border-radius: var(--radius-pill);
background: var(--green);
color: var(--on-dark);
font-size: var(--text-m);
font-weight: 300;
text-decoration: none;
transition: background-color var(--quick) ease;
}
.formats__buy:hover,
.formats__buy:focus-visible { background: var(--green-hover); }
.formats__aside { margin: var(--space-s) 1rem 0; font-size: var(--text-s); }
.formats__statement {
display: grid;
margin: 0 0 var(--space-m);
font-size: var(--text-l);
font-weight: 200;
line-height: 1.12;
letter-spacing: -0.015em;
}
.formats__body {
max-width: var(--column);
}
.formats__body p { margin: 0 0 var(--space-s); }
.formats__body strong { font-weight: 500; }
.formats__form {
display: grid;
gap: var(--space-s);
max-width: 21rem;
margin-top: var(--space-l);
}
.formats__label {
font-size: var(--text-m);
font-weight: 400;
text-decoration: underline;
text-underline-offset: 0.2em;
}
.formats__field {
display: flex;
padding: 1px;
border: var(--rule) solid var(--ink);
border-radius: var(--radius-pill);
background: var(--sheet);
}
.formats__input {
flex: 1;
min-width: 0;
min-height: var(--tap);
padding: 0 1rem;
border: 0;
background: none;
font: italic 300 var(--text-l) var(--font-body);
font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
}
.formats__input::placeholder { color: var(--ink-soft); }
.formats__input:focus { outline: none; }
.formats__field:focus-within { box-shadow: 0 0 0 2px var(--green); }
.formats__send {
position: relative;
min-width: 5rem;
min-height: var(--tap);
border: 0;
border-radius: var(--radius-pill);
background: var(--ink);
color: var(--on-dark);
font: 300 clamp(1.2rem, 1rem + 0.6vw, 1.45rem) var(--font-body);
cursor: pointer;
transition: background-color var(--quick) ease;
}
.formats__send:hover { background: var(--green); }
.formats__spinner {
position: absolute;
inset: 0;
margin: auto;
width: 1.1rem;
height: 1.1rem;
border: 1.5px solid var(--on-dark);
border-right-color: transparent;
border-radius: 50%;
opacity: 0;
}
.formats__form.is-sending .formats__send-text { opacity: 0; }
.formats__form.is-sending .formats__spinner { opacity: 1; animation: formats-spin 0.7s linear infinite; }
.formats__form.is-sent .formats__send { background: var(--green); }
.formats__note { margin: 0; font-size: var(--text-xs); }
.formats__form.is-sent .formats__note { color: var(--green); }
@keyframes formats-spin { to { rotate: 1turn; } }
@media (max-width: 48rem) {
.formats { grid-template-columns: 1fr; }
.formats__main { order: -1; }
}
</style>
<script>
(() => {
for (const form of document.querySelectorAll('.formats__form')) {
const note = form.querySelector('.formats__note');
const send = form.querySelector('.formats__send-text');
form.addEventListener('submit', (event) => {
event.preventDefault();
form.classList.remove('is-sent');
form.classList.add('is-sending');
setTimeout(() => {
form.classList.replace('is-sending', 'is-sent');
send.textContent = 'Sent';
note.textContent = 'Chapter one is on its way. Check your inbox.';
}, 1100);
});
}
})();
</script>
Author
A narrow centred column with a small heading, a place-and-year caption and a paragraph with bold italic phrases, next to a small dark portrait that tones from grayscale on hover.
Code
React For Figma<section class="author" aria-labelledby="author-title">
<figure class="author__portrait">
<img class="author__picture" src="assets/author-stand-in.jpg" alt="Studio portrait of a woman with dark wavy hair, looking past the camera" width="120" height="157">
<figcaption class="author__credit">Archive portrait, public domain</figcaption>
</figure>
<div class="author__text">
<h2 class="author__title" id="author-title">The Author</h2>
<p class="author__origin">Halifax, Canada. 1981</p>
<p><strong><em>Ines Calloway</em></strong> has spent twenty years between ferry decks, harbour offices and night classes in <strong><em>coastal navigation and public accounting.</em></strong> She has kept the books for a fishing co-operative, taught chart work to adults who failed it at school, and crossed the North Atlantic twice as crew.</p>
<p>Along the way she noticed that people who are good with money and people who are good at sea share one quiet habit: <strong><em>they write down where they think they are, and they check.</em></strong> True North is her first novel.</p>
</div>
</section>
<style>
.author {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 34rem) minmax(0, 1fr);
align-items: start;
gap: var(--gap);
padding: var(--section-space) var(--edge);
}
.author__portrait {
justify-self: end;
width: clamp(5.5rem, 9vw, 8rem);
margin: 0;
}
.author__picture {
display: block;
width: 100%;
height: auto;
aspect-ratio: 4 / 5;
object-fit: cover;
object-position: 50% 30%;
filter: grayscale(1) contrast(1.15);
transition: filter var(--fade) ease;
}
.author__portrait:hover .author__picture { filter: grayscale(0.6) sepia(0.25) contrast(1); }
.author__credit {
margin-top: 0.35rem;
font: 400 0.5rem / 1.3 var(--font-label);
letter-spacing: 0;
}
.author__text {
font-size: var(--text-m);
font-weight: 300;
line-height: 1.5;
text-align: center;
}
.author__text p { margin: 0 0 var(--space-m); }
.author__text strong { font-weight: 500; }
.author__title {
margin: 0;
font-size: var(--text-s);
font-weight: 400;
}
.author__origin {
margin-bottom: var(--space-l) !important;
font: 400 0.6rem / 1.4 var(--font-label);
letter-spacing: 0.08em;
text-transform: uppercase;
}
@media (max-width: 48rem) {
.author { grid-template-columns: 1fr; justify-items: center; }
.author__portrait { justify-self: center; }
}
</style>
Closing and footer
A centred closing line that lights word by word, a row of tiny ink figures standing on one baseline, and a three-column footer with links, credits and a follow list.
Code
React For Figma<footer class="footer">
<p class="footer__statement">The sea, the ledger and the heart keep one rule: you only arrive once you admit where you are.</p>
<div class="footer__crowd" aria-hidden="true">
<svg class="footer__person" viewBox="0 0 30 70"><circle cx="15" cy="8" r="5"/><path d="M8 18h14l3 26H5z"/><path d="M11 44v24M19 44v24"/></svg>
<svg class="footer__person" viewBox="0 0 30 70"><path d="M9 4h12M11 4V0h8v4"/><circle cx="15" cy="9" r="4.5"/><path d="M9 17h12l2 30H7z"/><path d="M12 47v21M18 47v21M23 26l5 18"/></svg>
<svg class="footer__person" viewBox="0 0 30 70"><circle cx="15" cy="9" r="5"/><path d="M10 18h10l9 34H1z"/><path d="M12 52v16M18 52v16"/></svg>
<svg class="footer__person" viewBox="0 0 30 70"><circle cx="15" cy="8" r="4.5"/><path d="M9 16h12v28H9z"/><path d="M11 44v24M19 44v24M21 30h6v8h-6"/></svg>
<svg class="footer__person footer__person--small" viewBox="0 0 30 70"><circle cx="15" cy="30" r="4"/><path d="M10 37h10l2 18H8z"/><path d="M12 55v13M18 55v13"/></svg>
<svg class="footer__person" viewBox="0 0 30 70"><path d="M4 8c4-8 18-8 22 0z"/><circle cx="15" cy="11" r="4.5"/><path d="M8 19h14l4 32H4z"/><path d="M12 51v17M18 51v17"/></svg>
<svg class="footer__person" viewBox="0 0 30 70"><circle cx="13" cy="8" r="4.5"/><path d="M7 16h12l1 30H6z"/><path d="M10 46v22M16 46v22M20 22l7 46"/></svg>
<svg class="footer__person" viewBox="0 0 30 70"><path d="M1 14c6-12 22-12 28 0zM15 14v8"/><circle cx="15" cy="25" r="4"/><path d="M10 32h10l3 22H7z"/><path d="M12 54v14M18 54v14"/></svg>
<svg class="footer__person footer__person--dog" viewBox="0 0 40 30"><path d="M6 14h22l4-8 5 3-3 5v8H8z"/><path d="M8 22v8M14 22v8M24 22v8M30 22v8M6 14L1 9"/></svg>
</div>
<div class="footer__row">
<div class="footer__col">
<strong class="footer__name">True North.</strong>
<nav class="footer__nav" aria-label="Footer">
<a class="footer__link" href="#">The Book</a>
<a class="footer__link" href="#">About the Author</a>
<a class="footer__link" href="#">Buy Now</a>
</nav>
</div>
<p class="footer__legal">© 2027 Ines Calloway. All rights reserved.</p>
<div class="footer__col footer__col--end">
<strong class="footer__name">Follow the author</strong>
<nav class="footer__nav" aria-label="Elsewhere">
<a class="footer__link" href="#">Letters</a>
<a class="footer__link" href="#">Readings</a>
<a class="footer__link" href="#">Press</a>
</nav>
</div>
</div>
</footer>
<style>
.footer {
display: grid;
gap: var(--space-l);
padding: var(--space-l) var(--edge) var(--space-m);
}
.footer__statement {
max-width: 44rem;
margin: 0 auto;
font-size: var(--text-xl);
font-weight: 400;
line-height: 1.15;
letter-spacing: -0.015em;
text-align: center;
text-wrap: balance;
}
.footer__word {
color: var(--ink-dim);
transition: color var(--quick) ease;
}
.footer__word.is-lit { color: var(--ink); }
.footer__crowd {
display: flex;
justify-content: center;
align-items: flex-end;
gap: clamp(0.6rem, 3vw, 2.75rem);
padding-bottom: 0.4rem;
border-bottom: var(--rule) solid var(--ink);
width: min(100%, 44rem);
margin: 0 auto;
}
.footer__person {
flex: none;
width: clamp(1.1rem, 2.6vw, 1.9rem);
fill: var(--ink);
stroke: var(--ink);
stroke-width: 1.6;
stroke-linecap: round;
transform-origin: 50% 100%;
transition: rotate var(--quick) var(--ease);
}
.footer__person--dog { width: clamp(1.3rem, 3vw, 2.3rem); }
.footer__person path:not(:first-of-type) { fill: none; }
.footer__person:hover { rotate: -6deg; }
.footer__row {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: start;
gap: var(--gap);
font-size: var(--text-s);
}
.footer__col { display: grid; justify-items: start; }
.footer__col--end { justify-items: end; text-align: right; }
.footer__col--end .footer__link { justify-content: flex-end; }
.footer__name { font-weight: 600; }
.footer__nav { display: grid; justify-items: inherit; }
.footer__link {
display: inline-flex;
align-items: center;
min-width: var(--tap);
min-height: var(--tap);
color: inherit;
font-weight: 300;
text-decoration: underline;
text-decoration-color: transparent;
text-underline-offset: 0.2em;
transition: text-decoration-color var(--quick) ease, color var(--quick) ease;
}
.footer__link:hover,
.footer__link:focus-visible { color: var(--green); text-decoration-color: currentColor; }
.footer__legal {
margin: 0;
font-size: var(--text-xs);
font-weight: 300;
}
@media (max-width: 40rem) {
.footer__row { grid-template-columns: 1fr 1fr; }
.footer__legal { grid-column: 1 / -1; grid-row: 2; }
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.footer')) {
const statement = root.querySelector('.footer__statement');
const words = statement.textContent.trim().split(/\s+/).map((text) => {
const word = document.createElement('span');
word.className = 'footer__word';
word.textContent = text;
return word;
});
statement.replaceChildren(...words.flatMap((word) => [word, ' ']));
let visible = false;
const lightByScroll = () => {
const box = statement.getBoundingClientRect();
const read = Math.min(Math.max((innerHeight * 0.65 - box.top) / (box.height + innerHeight * 0.2), 0), 1);
const litCount = Math.round(read * words.length);
words.forEach((word, index) => word.classList.toggle('is-lit', index < litCount));
};
new IntersectionObserver(([entry]) => {
visible = entry.isIntersecting;
if (visible) lightByScroll();
}).observe(statement);
addEventListener('scroll', () => { if (visible) lightByScroll(); }, { passive: true });
}
})();
</script>
Style
- --page #e6e6e6
- --grid-line #d0d0d0
- --ink #000000
- --ink-soft #2b2b2b
- --ink-dim #acacac
- --green #00846a
- --green-hover #006b56
- --scribble #6e9e91
- --panel #d9d9d9
- --sheet #f6f5f1
- --on-dark #ffffff
- --metal-light #f2f2f2
- --metal-mid #8a8a8a
- --metal-dark #1e1e1e
- --shade rgb(0 0 0 / 0.3)
- --shade-light rgb(0 0 0 / 0.1)
- --sheen rgb(255 255 255 / 0.1)
Type
- Playfair Display for giant title, stands in for the display cut of a sharp, high-contrast editorial serif set in caps at full page width
- Newsreader for everything else, stands in for the same editorial serif in ultralight and light weights, narrow, with a calligraphic italic for names and emphasis
- Reenie Beanie for margin notes and scroll cue, stands in for a loose hand-drawn script used for pencil notation scattered over the grid
Motion
- On load the giant title fades in over 0.7 s while the drawn object drops 24 px into place and the pencil notes appear one after another, 120 ms apart.
- Scrolling past the cover fades the title out while the object stays, so the object outlives its headline.
- Reading text starts grey and each word turns black as the paragraph rises through the screen, with a 0.25 s colour ease, while a thin green N to S rail fills alongside.
- A drawn paper boat drifts and tilts slowly across the reading section on a 26 s loop that pauses off screen.
- The compass needle on the cover sways on a slow loop and the scroll cue letters bob, both paused off screen.
- The author portrait goes from grayscale to toned on hover with a 0.7 s filter ease; links fade their underline colour in 0.25 s.
Rules
- Every section sits on one cool grey graph-paper grid with hairline lines; nothing gets a solid background except the green book panel and the grey price card.
- Only one colour besides black and grey: a deep bank-note green, used for the giant title, the buy button, the live date and the reading rail.
- The title is set in caps across the full width, two lines, tightly leaded, with a grayscale picture overlapping the middle letters.
- Body type is light and narrow, centred for statements and left aligned for long reading, with names in bold italic.
- Small pencil notes, written like a log or a game score, sit loosely on the grid and are never aligned to it.
- Buttons are full pills or perfect circles: a green pill to buy, a black circle for next and an outlined circle for back.
- Tiny ink pictograms sit inside running text at the height of a capital letter, as if drawn into the line.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=Newsreader:ital,opsz,wght@0,6..72,200..600;1,6..72,200..600&family=Reenie+Beanie&display=swap");
:root {
/* One token per line, with its role in a comment. Every color, font, radius, spacing step and timing a part uses lives here. */
--page: #e6e6e6; /* page background, cool paper grey */
--grid-line: #d0d0d0; /* hairline graph-paper grid behind everything */
--ink: #000000; /* main text, rules, the filled round button */
--ink-soft: #2b2b2b; /* secondary text, captions */
--ink-dim: #acacac; /* words not yet read in scroll-lit text */
--green: #00846a; /* the one accent: giant title, buy button, live date, rail */
--green-hover: #006b56; /* buy button on hover */
--scribble: #6e9e91; /* handwritten bearings scattered on the grid */
--panel: #d9d9d9; /* price card behind the formats table */
--sheet: #f6f5f1; /* book pages and the email field */
--on-dark: #ffffff; /* text on green and black */
--metal-light: #f2f2f2; /* highlights on the drawn compass and paper boat */
--metal-mid: #8a8a8a; /* midtones on the drawn objects */
--metal-dark: #1e1e1e; /* shadows and engraving lines on the drawn objects */
--shade: rgb(0 0 0 / 0.3); /* drop shadows under drawn objects and the book */
--shade-light: rgb(0 0 0 / 0.1); /* page gutters, the floor of the green panel */
--sheen: rgb(255 255 255 / 0.1); /* light edge on the book spine */
--font-display: "Playfair Display", "Times New Roman", serif; /* the giant high-contrast caps title */
--font-body: "Newsreader", "Times New Roman", serif; /* every other word: light, narrow book serif */
--font-hand: "Reenie Beanie", "Bradley Hand", cursive; /* pencil notes and the scroll cue */
--font-label: "Helvetica Neue", Arial, sans-serif; /* tiny captions under pictures */
--text-xs: 0.75rem; /* footnotes, picture captions */
--text-s: 1rem; /* nav links, table rows, footer */
--text-m: clamp(1.0625rem, 1rem + 0.2vw, 1.15rem); /* running text */
--text-l: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); /* statements, card heading lines */
--text-xl: clamp(1.75rem, 1.1rem + 2.4vw, 2.6rem); /* scroll-lit reading text */
--text-hand: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); /* handwritten notes */
--display: clamp(5.25rem, 23vw, 23rem); /* the giant title, set to fill the width */
--tracking-display: -0.02em; /* title tracking */
--tracking-text: 0.01em; /* light text tracking */
--grid-step: clamp(5rem, 11.6vw, 10.5rem); /* size of one graph-paper square */
--edge: clamp(1rem, 1.9vw, 1.75rem); /* side padding of the page */
--gap: clamp(1rem, 2.5vw, 3rem); /* gap between columns */
--space-xs: 0.5rem; /* between label and value */
--space-s: 1rem; /* between lines of one block */
--space-m: 1.75rem; /* between paragraphs */
--space-l: 3rem; /* between blocks */
--section-space: clamp(3.5rem, 2rem + 6vw, 7.5rem); /* vertical room between sections */
--column: 33rem; /* measure of running text */
--tap: 2.75rem; /* smallest tappable size */
--rule: 1px; /* table rules and outlines */
--radius-pill: 2.6rem; /* buy button, email field, language pill */
--radius-card: 3px; /* price card and book pages */
--ease: cubic-bezier(0.22, 0.8, 0.3, 1); /* every reveal: quick start, long settle */
--quick: 0.25s; /* link underline, colour changes, lit words */
--fade: 0.7s; /* portrait filter, title intro */
--drift: 26s; /* one pass of the drifting paper boat */
}
*, *::before, *::after { box-sizing: border-box; }
body {
margin: 0;
background-color: var(--page);
background-image:
linear-gradient(to right, var(--grid-line) var(--rule), transparent var(--rule)),
linear-gradient(to bottom, var(--grid-line) var(--rule), transparent var(--rule));
background-size: var(--grid-step) var(--grid-step);
background-position: calc(var(--grid-step) * 0.82) calc(var(--grid-step) * 0.5);
color: var(--ink);
font: 300 var(--text-m) / 1.45 var(--font-body);
letter-spacing: var(--tracking-text);
-webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
For your agent
Use the kitbash MCP server at https://kitbash.me/mcp. Call get_pack("graph-paper-novel"), then get_component for the parts you need, and build my site in that style: keep its tokens and rules, replace the placeholder copy with mine.
How to connect