Masthead
Scanline pixel title on the left, two-line serif blurb on the right, a rule of dithered blocks below. The three pieces blur in on load and the title's scanlines thin out on hover. The title wraps to two lines on a phone, so keep it to two short words.
Part of the style
Blueprint Manual
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/blueprint-manual/masthead/figma.html?palette=a00a69e670901cbb
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/blueprint-manual/masthead/figma.html?palette=a00a69e670901cbb and pass that whole HTML document to the html_to_figma tool, so the part "Masthead" 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 {
--paper: #030303;
--card: #e6e6e6;
--ink: #c5c4c9;
--ink-soft: #575654;
--ink-faint: #141313;
--blue-wash: #050505;
--blue: #5460a9;
--blue-light: #474953;
--blue-mid: #474e6f;
--grid-dot: #4b4f60;
}
</style>
<header class="masthead">
<div class="masthead__row">
<a class="masthead__title" href="#">Plain Machines</a>
<p class="masthead__blurb">
A field manual for the machines on your kitchen counter.
<strong>Drawn and annotated at the Slow Bench.</strong>
</p>
</div>
<div class="masthead__rule" aria-hidden="true"></div>
</header>
<style>
.masthead {
container-type: inline-size;
padding: var(--gutter) var(--gutter) 0;
}
.masthead__row {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 1.25rem 3rem;
}
.masthead__title {
display: block;
min-height: var(--tap);
font-family: var(--font-display);
font-size: clamp(1.9rem, 10.6cqi, 3.5rem);
font-variation-settings: "SCAN" 0, "BLED" 0;
line-height: 1.1;
text-transform: uppercase;
text-decoration: none;
text-wrap: balance;
color: var(--blue);
transition: font-variation-settings var(--time-slow) var(--ease-settle);
animation: masthead-blur-in var(--time-slow) linear both;
}
.masthead__title:hover,
.masthead__title:focus-visible {
font-variation-settings: "SCAN" -40, "BLED" 60;
}
.masthead__title:focus-visible {
outline: 1px dashed var(--blue);
outline-offset: 6px;
}
.masthead__blurb {
margin: 0;
max-width: 30rem;
line-height: 1.7;
animation: masthead-blur-in var(--time-slow) linear var(--stagger) both;
}
.masthead__blurb strong {
display: block;
font-weight: 600;
}
.masthead__rule {
height: 8px;
margin-top: clamp(2rem, 4.5cqi, 3.5rem);
background: var(--pattern-dither) 0 0 / 2px 2px;
-webkit-mask-image: var(--pattern-blocks);
mask-image: var(--pattern-blocks);
animation: masthead-blur-in var(--time-slow) linear calc(var(--stagger) * 2) both;
}
@container (min-width: 34rem) {
.masthead__title {
font-size: clamp(1.9rem, 6.9cqi, 3.5rem);
}
}
@container (min-width: 68rem) {
.masthead__blurb {
text-align: right;
}
}
@keyframes masthead-blur-in {
from {
opacity: 0;
filter: blur(4px);
}
to {
opacity: 1;
filter: blur(0);
}
}
@media (prefers-reduced-motion: reduce) {
.masthead__title,
.masthead__blurb,
.masthead__rule {
animation: none;
transition: none;
}
}
</style>