Masthead
Huge hand-drawn lowercase wordmark top left, tiny nav links with search and account icons top right, a hairline, then a big literary serif intro. The wordmark letters flip in turn on hover. On phones the links fold into a Menu button.
Part of the style
Cut-Out Playhouse
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/cut-out-playhouse/masthead/figma.html?palette=a6d21b60c3f874a5
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/cut-out-playhouse/masthead/figma.html?palette=a6d21b60c3f874a5 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 {
--page: #392f25;
--paper: #37312b;
--ink: #54daa9;
--ink-soft: #4ead88;
--ink-faint: #a98259;
--shadow: rgba(84, 218, 169, 0.22);
--cut-cream: #473b30;
--cut-steel: #7c5e3e;
--cut-coal: #53cfa1;
--marker: #44503a;
--cut-ochre: #444d3d;
--cut-moss: #171d13;
--cut-sky: #20562b;
--cut-rust: #186b4b;
--cut-skin: #1b513a;
--cut-plum: #7c8a71;
}
</style>
<header class="masthead">
<div class="masthead__bar">
<a class="masthead__home" href="#" aria-label="kolm, city theatre, home">
<svg class="masthead__mark" viewBox="0 0 268 134" aria-hidden="true">
<g class="masthead__glyph" style="--order: 0">
<path d="M16 8 V95 M5 10 H20 M5 95 H28 M60 45 L18 76 M31 66 Q44 92 64 95 M50 45 H70 M56 95 H72" />
</g>
<g class="masthead__glyph" style="--order: 1">
<path d="M104 44 C88 44 79 56 79 70 C79 85 89 96 104 96 C120 96 129 84 129 70 C129 55 119 44 104 44 Z" />
</g>
<g class="masthead__glyph" style="--order: 2">
<path d="M152 8 V95 M141 10 H156 M141 95 H164" />
</g>
<g class="masthead__glyph" style="--order: 3">
<path d="M184 46 V95 M175 47 H186 M175 95 H193 M184 61 Q187 45 203 45 Q217 45 217 62 V95 M209 95 H225 M217 62 Q220 45 236 45 Q251 45 251 62 V112 Q251 128 233 126 Q224 125 222 118" />
</g>
</svg>
</a>
<button class="masthead__toggle" type="button" aria-expanded="false" aria-controls="masthead-nav">Menu</button>
<nav class="masthead__nav" id="masthead-nav" aria-label="Main">
<a class="masthead__link" href="#">Programme</a>
<a class="masthead__link" href="#">Your visit</a>
<a class="masthead__link" href="#">The house</a>
<a class="masthead__link" href="#">Season passes</a>
<a class="masthead__link" href="#">Hire a hall</a>
<a class="masthead__icon" href="#" aria-label="Search">
<svg viewBox="0 0 16 16" aria-hidden="true"><circle class="masthead__stroke" cx="6.5" cy="6.5" r="4.5" /><path class="masthead__stroke" d="M10 10 L14 14" /></svg>
</a>
<a class="masthead__icon" href="#" aria-label="Your account">
<svg viewBox="0 0 16 16" aria-hidden="true"><circle class="masthead__fill" cx="8" cy="4.5" r="3" /><path class="masthead__fill" d="M2.5 15 C2.5 10 5 8.5 8 8.5 C11 8.5 13.5 10 13.5 15 Z" /></svg>
</a>
</nav>
</div>
<p class="masthead__intro">A season that opens with the harbour lights switched off. After a winter of closed quays and slow ferries, can a theatre be the place where a city admits it is tired, and still finds the nerve to sing? Can a joke hold the roof up? Welcome to season 27–28.</p>
</header>
<style>
.masthead {
padding: var(--space-m) var(--edge) var(--space-xl);
background: var(--page);
color: var(--ink-soft);
}
.masthead__bar {
position: relative;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: var(--space-m);
padding-bottom: var(--space-s);
border-bottom: var(--hairline) solid var(--ink);
}
.masthead__home {
display: block;
width: clamp(10rem, 30vw, 27rem);
color: var(--ink-soft);
}
.masthead__home:focus-visible {
outline: var(--hairline) solid var(--ink);
outline-offset: 4px;
}
.masthead__mark {
width: 100%;
height: auto;
overflow: visible;
}
.masthead__mark path {
fill: none;
stroke: currentColor;
stroke-width: 8.5;
stroke-linecap: butt;
stroke-linejoin: round;
}
.masthead__glyph {
transform-box: fill-box;
transform-origin: center;
}
.masthead__home:hover .masthead__glyph,
.masthead__home:focus-visible .masthead__glyph {
animation: masthead-flip 0.9s var(--ease-out) both;
animation-delay: calc(var(--order) * 90ms);
}
@keyframes masthead-flip {
0% { transform: scaleX(1); }
45% { transform: scaleX(-1); }
100% { transform: scaleX(1); }
}
.masthead__nav {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
column-gap: var(--space-m);
}
.masthead__link,
.masthead__icon {
display: inline-flex;
align-items: center;
min-height: var(--tap);
color: var(--ink-soft);
font-size: var(--text-s);
text-decoration: underline;
text-decoration-color: transparent;
text-underline-offset: 3px;
transition: text-decoration-color var(--slow) ease, color var(--slow) ease;
}
.masthead__link:hover,
.masthead__link:focus-visible {
color: var(--ink);
text-decoration-color: currentColor;
}
.masthead__icon {
justify-content: center;
min-width: var(--tap);
margin-inline: calc(var(--space-m) / -2);
}
.masthead__icon svg {
width: 15px;
height: 15px;
}
.masthead__stroke {
fill: none;
stroke: currentColor;
stroke-width: 1.5;
}
.masthead__fill {
fill: currentColor;
transition: fill var(--slow) ease;
}
.masthead__icon:hover .masthead__fill { fill: var(--ink); }
.masthead__toggle {
display: none;
min-height: var(--tap);
padding: 0 0 0 var(--space-m);
border: 0;
background: none;
color: var(--ink-soft);
font: inherit;
font-size: 1.125rem;
cursor: pointer;
}
.masthead__intro {
max-width: 48rem;
margin: var(--space-m) 0 0;
font-family: var(--font-serif);
font-size: var(--serif-m);
line-height: 1.04;
letter-spacing: var(--tracking-serif);
text-wrap: pretty;
}
@media (max-width: 48rem) {
.masthead__home { width: clamp(9rem, 50vw, 14rem); }
.masthead__toggle { display: block; }
.masthead__nav {
display: none;
position: absolute;
inset: 100% 0 auto;
z-index: 5;
flex-direction: column;
align-items: stretch;
padding: var(--space-s) 0;
background: var(--page);
border-bottom: var(--hairline) solid var(--ink);
}
.masthead.is-open .masthead__nav { display: flex; }
.masthead__link {
font-family: var(--font-serif);
font-size: var(--serif-m);
letter-spacing: var(--tracking-serif);
}
.masthead__icon { justify-content: flex-start; margin: 0; }
.masthead__intro { margin-top: var(--space-l); }
}
@media (prefers-reduced-motion: reduce) {
.masthead__home:hover .masthead__glyph,
.masthead__home:focus-visible .masthead__glyph { animation: 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.textContent = open ? 'Close' : 'Menu';
});
}
})();
</script>