Reading passage
Running copy under a sticky dark heading band: italic links on a double rule that flip to a dark chip, a marked passage with a square bullet and solid underline, a footnote chip and a small citation set a third of the way into the column.
Part of the style
Scanline Red
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/scanline-red/passage/figma.html?palette=df0d153a575f623d
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/scanline-red/passage/figma.html?palette=df0d153a575f623d and pass that whole HTML document to the html_to_figma tool, so the part "Reading passage" lands as editable layers in my open Figma file. Fonts come from Google Fonts: if a face is missing in Figma, pick the closest one.
Code
<style>
/* Goes after the pack's base.css */
:root {
--red: #241f23;
--dark: #c6b4be;
--glow: rgba(36, 31, 35, 0.95);
}
</style>
<article class="passage">
<h2 class="passage__heading">Who is it for?</h2>
<p class="passage__text">A numbers station is a voice, usually synthetic, that comes up on a fixed frequency at a fixed minute and reads groups of five digits until it stops. Nobody announces it and nobody signs off. The <a class="passage__link" href="#">attic post logbook</a> has four hundred and twelve of these since October, and the keepers agree on almost nothing about them except the schedule.<sup class="passage__ref">1</sup></p>
<p class="passage__text">The schedule is the interesting part. <mark class="passage__mark">A message meant for one listener is sent to the whole hemisphere, because that is the only way nobody can tell who was listening.</mark> Everything else about the broadcast follows from that: the flat voice, the repeats, the cheap transmitter left running in a field.</p>
<aside class="passage__cite">
<span class="passage__ref">1</span>
<p class="passage__source">Counted from the shared log, entries marked “voice, digits”. Repeats inside one hour are counted once.</p>
</aside>
</article>
<style>
.passage {
position: relative;
padding: var(--space-m) var(--gutter) var(--space-l) var(--edge);
background: var(--red);
color: var(--dark);
font-weight: 500;
}
/* Registration blocks on both page edges. */
.passage::before,
.passage::after {
content: "";
position: absolute;
inset-block: 0;
width: var(--tick-w);
background:
linear-gradient(var(--dark), var(--dark)) 0 14% / 100% var(--tick-1) no-repeat,
linear-gradient(var(--dark), var(--dark)) 0 46% / 100% var(--tick-2) no-repeat,
linear-gradient(var(--dark), var(--dark)) 0 100% / 100% var(--tick-3) no-repeat;
pointer-events: none;
}
.passage::before {
left: 0;
}
.passage::after {
right: 0;
}
/* A dark band that sticks to the top while its section is read. It is wider than the column by its own padding. */
.passage__heading {
position: sticky;
top: 0;
z-index: 1;
max-width: calc(var(--measure) + 2 * var(--space-s));
margin: 0 calc(-1 * min(var(--space-s), var(--gutter))) var(--space-m) calc(-1 * min(var(--space-s), var(--edge)));
padding: 0.55em min(var(--space-s), var(--edge));
background: var(--dark);
color: var(--red);
font-size: var(--text-l);
font-weight: 700;
line-height: var(--leading-tight);
text-shadow: 0 0 0.06rem var(--glow), 0 0 0.06rem var(--glow);
}
.passage__text {
max-width: var(--measure);
margin: 0 0 var(--space-m);
text-wrap: pretty;
}
/* Text links are italic on a double rule and flip to a dark chip on hover. The padding only makes the tap area taller. */
.passage__link {
padding-block: max(0px, (var(--tap) - 1em) / 2);
background-clip: content-box;
color: inherit;
font-style: italic;
text-decoration: underline double calc(var(--rule-double) / 3);
text-underline-offset: 0.16em;
}
.passage__link:hover,
.passage__link:focus-visible {
background-color: var(--dark);
color: var(--red);
outline: none;
}
/* A marked passage keeps the page colour: a square bullet, then a solid rule under every line. */
.passage__mark {
background: none;
box-shadow: 0 var(--rule-mark) 0 var(--dark);
color: inherit;
}
.passage__mark::before {
content: "";
position: relative;
top: 0.3em;
display: inline-block;
width: 0.45em;
height: 0.45em;
background: var(--dark);
}
.passage__ref {
padding-inline: 0.35em;
background: var(--dark);
color: var(--red);
font-size: var(--text-xs);
font-weight: 700;
line-height: 1.5;
}
sup.passage__ref {
margin-left: 0.2em;
vertical-align: super;
line-height: 0;
}
/* Citations are small, regular weight and start a third of the way into the column. */
.passage__cite {
display: flex;
align-items: start;
column-gap: var(--space-xs);
max-width: var(--measure);
padding-left: min(33%, 15rem);
font-size: var(--text-xs);
font-weight: 400;
line-height: 1.3;
}
.passage__source {
margin: 0;
}
@media (max-width: 40rem) {
.passage__cite {
padding-left: 0;
}
}
</style>