Blackletter masthead
A giant blackletter initial over a hairline-ruled bar with name, year, trade and three nav words; on phones a six-line menu icon opens a ruled drawer.
Part of the style
Blackletter Credit Stack
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/blackletter-credit-stack/masthead/figma.html?type=blush-script-parlour
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/blackletter-credit-stack/masthead/figma.html?type=blush-script-parlour and pass that whole HTML document to the html_to_figma tool, so the part "Blackletter 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 */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@125,900&family=Inter+Tight:wght@400;500&family=Newsreader:opsz,wght@6..72,400&family=Pinyon+Script&display=swap");
:root {
--font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
--font-mark: "Newsreader", Georgia, serif;
--font-small: "Newsreader", Georgia, serif;
}
</style>
<header class="masthead">
<a class="masthead__mark" href="#" aria-label="Ottoline Plate House, home">O</a>
<div class="masthead__bar">
<p class="masthead__name"><span class="masthead__brand">OTTOLINE PLATE HOUSE,</span> <span class="masthead__est">Est. 1987</span></p>
<p class="masthead__trade">Reproduction & Restoration</p>
<nav class="masthead__nav" aria-label="Main">
<a class="masthead__link" href="#">WORK</a>
<a class="masthead__link" href="#">STUDIO</a>
<a class="masthead__link" href="#">CONTACT</a>
</nav>
<button class="masthead__toggle" type="button" aria-expanded="false" aria-label="Open menu">
<span class="masthead__lines" aria-hidden="true"></span>
</button>
</div>
<nav class="masthead__drawer" aria-label="Main, small screens">
<a class="masthead__drawer-link" href="#">WORK</a>
<a class="masthead__drawer-link" href="#">STUDIO</a>
<a class="masthead__drawer-link" href="#">CONTACT</a>
</nav>
</header>
<style>
.masthead {
background: var(--paper);
color: var(--ink);
border-bottom: var(--hair) solid var(--rule);
}
.masthead__mark {
display: block;
width: max-content;
padding: 0 var(--edge) 0 calc(var(--edge) * 0.4);
font-family: var(--font-mark);
font-size: var(--mark-size);
line-height: 0.92;
letter-spacing: 0;
color: var(--ink);
text-decoration: none;
transition: color var(--quick) var(--ease);
}
.masthead__mark:hover,
.masthead__mark:focus-visible {
color: var(--oxblood);
}
.masthead__bar {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
min-height: var(--bar-h);
margin-top: clamp(24px, 6vw, 96px);
padding: 0 var(--edge);
}
.masthead__name,
.masthead__trade {
margin: 0;
font-size: var(--text-m);
line-height: 1;
}
.masthead__est {
margin-left: clamp(16px, 2.6vw, 40px);
}
.masthead__trade {
text-align: center;
}
.masthead__nav {
display: flex;
justify-content: flex-end;
gap: var(--space-s);
}
.masthead__link,
.masthead__drawer-link {
display: inline-flex;
align-items: center;
min-height: 44px;
padding: 0 var(--space-xs);
color: inherit;
text-decoration: none;
transition: opacity var(--quick) var(--ease);
}
.masthead__nav:hover .masthead__link {
opacity: 0.35;
}
.masthead__nav .masthead__link:hover,
.masthead__link:focus-visible {
opacity: 1;
}
.masthead__toggle {
display: none;
justify-self: end;
width: 44px;
height: 44px;
padding: 0;
border: 0;
background: none;
color: inherit;
cursor: pointer;
}
/* Six hairlines stacked: the menu icon is a little ruled block, like the caption stacks. */
.masthead__lines {
display: block;
width: 26px;
height: 11px;
margin: auto;
background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 2px);
transition: transform 400ms var(--ease-out);
}
.masthead.is-open .masthead__lines {
transform: scaleY(0.2);
}
.masthead__drawer {
display: none;
padding: 0 var(--edge);
}
.masthead__drawer-link {
border-top: var(--hair) solid var(--rule);
}
@media (max-width: 52rem) {
.masthead__mark {
font-size: clamp(220px, 70vw, 420px);
line-height: 0.95;
}
.masthead__bar {
grid-template-columns: 1fr auto;
margin-top: var(--space-m);
}
.masthead__trade,
.masthead__nav {
display: none;
}
.masthead__toggle {
display: block;
}
.masthead.is-open .masthead__drawer {
display: grid;
padding-bottom: var(--space-s);
}
}
@media (max-width: 24rem) {
.masthead__est {
display: none;
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.masthead')) {
const toggle = root.querySelector('.masthead__toggle');
toggle.addEventListener('click', () => {
const open = root.classList.toggle('is-open');
toggle.setAttribute('aria-expanded', String(open));
toggle.setAttribute('aria-label', open ? 'Close menu' : 'Open menu');
});
}
})();
</script>