Wordmark masthead
A heavy wide wordmark across half the width, a 28px statement indented two columns, and a three-line nav whose current item carries a solid block. Studio grows the wordmark and statement to full width, Theme flips the masthead dark.
Part of the style
Heat Reel
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/heat-reel/masthead/figma.html?palette=de3fe5e10e82271b
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/heat-reel/masthead/figma.html?palette=de3fe5e10e82271b and pass that whole HTML document to the html_to_figma tool, so the part "Wordmark 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 {
--ink: #4a3124;
--ink-soft: #a9a59a;
--paper: #ececec;
--night: #442c20;
--night-ink: #ececec;
--night-soft: #aba79d;
--film: #3e2619;
--clay-deep: #5d463a;
--bone: #d6d4d1;
--ember: #c79d8a;
--clay: #b79b8f;
--ember-hot: #c79d8a;
--glaze: #7c5645;
--sage: #c79d8a;
--lagoon: #7c5645;
}
</style>
<header class="masthead">
<a class="masthead__mark" href="#" aria-label="Hotwork, home">HOTWORK</a>
<p class="masthead__lead">is a slow-cinema production house making films for workshops shaped by heat, hands, and patience.</p>
<nav class="masthead__nav" aria-label="main">
<button class="masthead__link is-current" type="button" data-layout="home" aria-current="page">Home<span class="masthead__marker" aria-hidden="true"></span></button>
<button class="masthead__link" type="button" data-layout="studio">Studio<span class="masthead__marker" aria-hidden="true"></span></button>
<button class="masthead__link masthead__link--theme" type="button" aria-pressed="false">Theme<span class="masthead__marker" aria-hidden="true"></span></button>
</nav>
</header>
<style>
.masthead {
--masthead-ink: var(--ink);
--masthead-soft: var(--ink-soft);
--masthead-mark-size: 7.62vw;
--masthead-lead-size: var(--text-lead);
--masthead-col: calc((100cqw - 11 * var(--gutter)) / 12);
--masthead-lead-pad: calc(var(--masthead-col) * 2 + 2 * var(--gutter));
--masthead-lead-width: calc(var(--masthead-col) * 8 + 7 * var(--gutter));
--masthead-nav-right: calc(100% / 3 + 12px);
container-type: inline-size;
position: relative;
padding: var(--edge) var(--edge) var(--space-l);
background: var(--paper);
color: var(--masthead-ink);
transition: background-color var(--time-fade) var(--ease-glide), color var(--time-fade) var(--ease-glide);
}
.masthead.is-dark {
--masthead-ink: var(--night-ink);
--masthead-soft: var(--night-soft);
background: var(--night);
}
.masthead.is-open {
--masthead-mark-size: 14.05vw;
--masthead-lead-size: var(--text-lead-open);
--masthead-lead-pad: 0px;
--masthead-lead-width: calc(var(--masthead-col) * 10 + 9 * var(--gutter));
--masthead-nav-right: var(--edge);
}
.masthead__mark {
display: block;
width: max-content;
margin: 0 0 0 -0.055em;
color: inherit;
font-family: var(--font-mark);
font-weight: var(--weight-mark);
font-stretch: var(--stretch-mark);
font-size: var(--masthead-mark-size);
line-height: 0.74;
letter-spacing: var(--tracking-mark);
text-decoration: none;
padding-top: 0.02em;
transition: font-size var(--time-layout) var(--ease-snap), opacity var(--time-fade) var(--ease-glide);
}
.masthead__mark:hover { opacity: 0.92; }
.masthead__lead {
width: var(--masthead-lead-width);
max-width: 100%;
margin: 0.5em 0 0;
padding-left: var(--masthead-lead-pad);
font-size: var(--masthead-lead-size);
line-height: var(--leading-lead);
text-wrap: pretty;
transition:
padding-left var(--time-layout) var(--ease-snap),
width var(--time-layout) var(--ease-snap),
font-size var(--time-layout) var(--ease-snap);
}
.masthead__nav {
position: absolute;
top: var(--edge);
right: var(--masthead-nav-right);
display: flex;
flex-direction: column;
align-items: flex-end;
transition: right var(--time-layout) var(--ease-snap);
}
.masthead__link {
display: flex;
align-items: center;
justify-content: flex-end;
padding: 0;
border: 0;
background: none;
color: inherit;
font: inherit;
font-stretch: inherit;
text-transform: inherit;
line-height: var(--leading-link);
cursor: pointer;
transition: color var(--time-hover) var(--ease-glide);
}
.masthead__marker {
display: block;
width: 0;
height: var(--marker-h);
margin-left: 0;
background: currentColor;
transition: width var(--time-fade) var(--ease-snap), margin-left var(--time-fade) var(--ease-snap);
}
.masthead__link.is-current .masthead__marker,
.masthead__link[aria-pressed="true"] .masthead__marker {
width: var(--marker-w);
margin-left: var(--space-s);
}
@media (hover: hover) {
.masthead__link:hover { color: var(--masthead-soft); }
.masthead__link:hover .masthead__marker { background: var(--masthead-ink); }
}
.masthead__link:focus-visible {
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 3px;
outline: none;
}
.masthead__mark:focus-visible {
outline: 2px solid currentColor;
outline-offset: 3px;
}
@media (max-width: 54.6rem) {
.masthead {
--masthead-mark-size: 14.5vw;
--masthead-lead-pad: 0px;
--masthead-lead-width: 100%;
display: grid;
padding-bottom: var(--space-m);
}
.masthead.is-open { --masthead-mark-size: 14.5vw; --masthead-lead-size: clamp(18px, 5.4vw, 28px); }
.masthead__lead { --masthead-lead-size: clamp(12px, 3.6vw, 14px); line-height: var(--leading-list); }
.masthead.is-open .masthead__lead { --masthead-lead-size: clamp(18px, 5.4vw, 28px); }
.masthead__nav {
position: static;
flex-direction: row;
justify-content: flex-end;
gap: var(--gutter);
margin-top: var(--space-s);
}
}
/* Touch: the three tight lines become rows a finger can hit. */
@media (pointer: coarse), (max-width: 54.6rem) {
.masthead__link { min-height: var(--tap); min-width: var(--tap); }
.masthead__mark { min-height: var(--tap); }
}
</style>
<script>
(() => {
function setLayout(root, layout) {
root.classList.toggle('is-open', layout === 'studio');
for (const link of root.querySelectorAll('[data-layout]')) {
const current = link.dataset.layout === layout;
link.classList.toggle('is-current', current);
if (current) link.setAttribute('aria-current', 'page');
else link.removeAttribute('aria-current');
}
}
function toggleTheme(root, button) {
const dark = !root.classList.contains('is-dark');
root.classList.toggle('is-dark', dark);
button.setAttribute('aria-pressed', String(dark));
}
for (const root of document.querySelectorAll('.masthead')) {
for (const link of root.querySelectorAll('[data-layout]')) {
link.addEventListener('click', () => setLayout(root, link.dataset.layout));
}
root.querySelector('.masthead__mark').addEventListener('click', (event) => {
event.preventDefault();
setLayout(root, 'home');
});
const theme = root.querySelector('.masthead__link--theme');
theme.addEventListener('click', () => toggleTheme(root, theme));
}
})();
</script>