Slip rail masthead
The signature: a left column of tilted colour slips (links on yellow, editions on green, contact on grey with rules, a yellow newsletter strip that unfolds into a form), beside the name, a language switch, a slideshow with thin chevrons and a mono caption, and a ruled statement with a serif read-more. On phones a round outlined burger opens the slips as a full-screen sheet.
Part of the style
Pinned Paper Slips
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/pinned-paper-slips/masthead/figma.html?type=toon-orbit
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/pinned-paper-slips/masthead/figma.html?type=toon-orbit and pass that whole HTML document to the html_to_figma tool, so the part "Slip rail 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=Figtree:wght@400;500;600&display=swap');
:root {
--font-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-serif: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-mono: "Space Mono", ui-monospace, monospace;
}
</style>
<header class="masthead">
<button class="masthead__burger" type="button" aria-expanded="false" aria-label="Open menu">
<span class="masthead__burger-line"></span>
<span class="masthead__burger-line"></span>
<span class="masthead__burger-line"></span>
</button>
<nav class="masthead__rail" aria-label="Main">
<div class="masthead__slip masthead__slip--lemon">
<ul class="masthead__links">
<li><a class="masthead__link" href="#" aria-current="page">Home</a></li>
<li><a class="masthead__link" href="#">About</a></li>
<li><a class="masthead__link" href="#">Notices</a></li>
<li><a class="masthead__link" href="#">Open desk</a></li>
<li><a class="masthead__link" href="#">Programme</a></li>
<li><a class="masthead__link" href="#">Papers</a></li>
</ul>
</div>
<div class="masthead__slip masthead__slip--moss">
<p class="masthead__slip-label">Editions</p>
<ul class="masthead__links masthead__links--indented">
<li><a class="masthead__link" href="#">2027</a></li>
<li><a class="masthead__link" href="#">2024</a></li>
<li><a class="masthead__link" href="#">2021</a></li>
<li><a class="masthead__link" href="#">2018</a></li>
<li><a class="masthead__link" href="#">Symposium</a></li>
</ul>
</div>
<div class="masthead__slip masthead__slip--ash">
<ul class="masthead__contact">
<li class="masthead__contact-row"><a class="masthead__contact-link" href="#">desk@lowtide.example</a></li>
<li class="masthead__contact-row masthead__contact-row--text">Lowtide Congress<br>Quay Street 14, Harrowick</li>
<li class="masthead__contact-row"><a class="masthead__contact-link" href="#">Instagram</a> / <a class="masthead__contact-link" href="#">Mastodon</a></li>
<li class="masthead__contact-row"><a class="masthead__contact-link" href="#">Privacy</a></li>
</ul>
</div>
<form class="masthead__slip masthead__slip--strip masthead__strip" novalidate>
<button class="masthead__strip-toggle" type="button" aria-expanded="false">Get the tide sheet</button>
<div class="masthead__strip-fields" hidden>
<label class="masthead__strip-label">
<span>Your email</span>
<input class="masthead__strip-input" type="email" name="email" autocomplete="email" required placeholder="name@example.org">
</label>
<button class="masthead__strip-send" type="submit">Send →</button>
</div>
<p class="masthead__strip-note" aria-live="polite"></p>
</form>
</nav>
<div class="masthead__main">
<a class="masthead__name" href="#">Lowtide Congress</a>
<p class="masthead__lang"><a class="masthead__lang-link" href="#" aria-current="true">EN</a> / <a class="masthead__lang-link" href="#">NL</a></p>
<div class="masthead__show" aria-roledescription="slideshow" aria-label="Pictures from the 2024 congress">
<div class="masthead__frames">
<figure class="masthead__frame is-current" data-caption="Low-water walk across the flats, 2024.">
<img class="masthead__pic" src="assets/mudflat-walk.jpg" alt="A group of walkers out on wet mudflats at low tide" width="600" height="400">
</figure>
<figure class="masthead__frame" data-caption="Opening talks in the old lecture hall by the quay.">
<img class="masthead__pic" src="assets/lecture-hall.jpg" alt="Rows of empty wooden seats in a lecture hall, a screen at the front" width="600" height="400">
</figure>
<figure class="masthead__frame" data-caption="The river mouth at low tide, a pastel from the archive shown in 2021.">
<img class="masthead__pic" src="assets/beach-at-low-tide.jpg" alt="A pastel of a pale beach at low tide, a boat far out on the water" width="600" height="400">
</figure>
<button class="masthead__arrow masthead__arrow--prev" type="button" aria-label="Previous picture">
<svg viewBox="0 0 14 30" aria-hidden="true"><path d="M13 1 1 15l12 14" /></svg>
</button>
<button class="masthead__arrow masthead__arrow--next" type="button" aria-label="Next picture">
<svg viewBox="0 0 14 30" aria-hidden="true"><path d="M1 1l12 14L1 29" /></svg>
</button>
</div>
<p class="masthead__caption" aria-live="polite">Low-water walk across the flats, 2024.</p>
</div>
<article class="masthead__statement">
<h1 class="masthead__statement-title">A congress as slow as the water it watches</h1>
<p>On 9 and 10 May 2026 the Lowtide Congress took its first steps towards the 2027 edition, led by Maren Osei and Pieter Vland.</p>
<p>The weekend gathered people from oceanography, folk song, maritime law and inshore fishing: Ada Lindqvist, Bram Hoekstra, Corin Ash, Dalia Farouk, Elin Strand, Fenna Bakker, Gus Tolland and the Quay Street choir.</p>
<a class="masthead__more" href="#">Read more about the weekend and the 2027 congress →</a>
</article>
</div>
</header>
<style>
.masthead {
display: grid;
grid-template-columns: var(--rail) minmax(0, 1fr);
column-gap: var(--col-gap);
padding-right: var(--gutter);
overflow-x: clip;
}
/* The slip column */
.masthead__rail {
display: flex;
flex-direction: column;
padding: 0.75rem 0 var(--space-m);
}
.masthead__slip {
margin: 0;
padding: var(--space-m) 1.5rem;
rotate: var(--slip-tilt);
box-shadow: var(--slip-shadow);
}
.masthead__slip--lemon {
--slip-tilt: var(--tilt-lemon);
--order: 0;
margin-inline: 1rem 0.5rem;
background: var(--slip-lemon);
}
.masthead__slip--moss {
--slip-tilt: var(--tilt-moss);
--order: 1;
position: relative;
margin: -0.4rem 0 0 0.15rem;
padding-bottom: 1.25rem;
background: var(--slip-moss);
}
.masthead__slip--ash {
--slip-tilt: var(--tilt-ash);
--order: 2;
margin: 1rem 1.25rem var(--space-xl) 0.75rem;
padding-block: 0.75rem 1.25rem;
background: var(--slip-ash);
}
.masthead__slip--strip {
--slip-tilt: var(--tilt-strip);
--order: 3;
position: sticky;
bottom: 0.75rem;
z-index: 2;
margin: auto -0.25rem 0 0;
padding-block: var(--space-s);
background: var(--slip-lemon);
}
.masthead__links,
.masthead__contact {
margin: 0;
padding: 0;
list-style: none;
}
.masthead__links--indented {
padding-left: 1.25rem;
}
.masthead__link,
.masthead__slip-label {
display: flex;
align-items: center;
min-height: var(--tap);
margin: 0;
color: var(--ink);
font-size: var(--text-head);
line-height: var(--leading-tight);
text-decoration: none;
transition: color var(--fade);
}
.masthead__contact-row {
display: flex;
align-items: center;
min-height: var(--tap);
border-bottom: var(--rule) solid var(--ink-full);
font-size: var(--text-body);
line-height: 1.2;
}
.masthead__contact-row:last-child {
border-bottom: 0;
}
.masthead__contact-row--text {
padding-block: var(--space-s);
}
.masthead__contact-link {
display: inline-flex;
align-items: center;
min-height: var(--tap);
min-width: var(--tap);
color: var(--ink);
text-decoration: none;
transition: color var(--fade);
}
/* Newsletter strip */
.masthead__strip-toggle,
.masthead__strip-send {
min-height: var(--tap);
padding: 0;
border: 0;
background: none;
color: var(--ink);
cursor: pointer;
transition: color var(--fade);
}
.masthead__strip-toggle {
width: 100%;
font: var(--text-head) / var(--leading-tight) var(--font-sans);
text-align: left;
}
.masthead__strip-fields {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: end;
gap: var(--space-m);
padding-bottom: var(--space-s);
}
.masthead__strip-fields[hidden] {
display: none;
}
.masthead__strip-label {
display: grid;
gap: var(--space-xs);
font: var(--text-cap) / 1.3 var(--font-mono);
}
.masthead__strip-input {
width: 100%;
min-height: var(--tap);
padding: 0;
border: 0;
border-bottom: var(--rule) solid var(--ink-full);
border-radius: 0;
background: none;
color: var(--ink);
font: var(--text-body) var(--font-sans);
}
.masthead__strip-input:focus {
outline: none;
border-bottom-color: var(--hover);
}
.masthead__strip-send {
font: var(--text-lead) var(--font-serif);
}
.masthead__strip-note {
margin: 0;
font: var(--text-cap) / 1.4 var(--font-mono);
}
.masthead__strip-note:empty {
display: none;
}
.masthead__link:hover,
.masthead__link[aria-current="page"],
.masthead__contact-link:hover,
.masthead__strip-toggle:hover,
.masthead__strip-send:hover,
.masthead__name:hover,
.masthead__lang-link:hover,
.masthead__more:hover {
color: var(--hover);
}
.masthead a:focus-visible,
.masthead button:focus-visible {
outline: var(--rule) solid var(--ink-full);
outline-offset: 2px;
}
/* Name, language, slideshow, statement */
.masthead__main {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
grid-template-areas:
"name name lang"
"show show statement";
column-gap: var(--col-gap);
align-content: start;
padding-top: 1.5rem;
padding-bottom: var(--section-space);
}
.masthead__name {
grid-area: name;
justify-self: start;
color: var(--ink);
font-size: var(--text-name);
line-height: var(--leading-tight);
text-decoration: none;
transition: color var(--fade);
}
.masthead__lang {
grid-area: lang;
justify-self: end;
align-self: start;
margin: -0.9rem -0.5rem 0 0;
font: var(--text-small) var(--font-serif);
}
.masthead__lang-link {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: var(--tap);
min-height: var(--tap);
margin-inline: -0.6rem;
color: var(--ink);
text-decoration: none;
transition: color var(--fade);
}
.masthead__show {
grid-area: show;
position: relative;
display: grid;
align-content: start;
gap: var(--space-m);
margin-top: var(--space-xl);
}
.masthead__frames {
position: relative;
display: grid;
padding-inline: 3rem;
}
.masthead__frame {
grid-area: 1 / 1;
margin: 0;
opacity: 0;
transition: opacity var(--fade);
}
.masthead__frame.is-current {
opacity: 1;
}
.masthead__pic {
display: block;
width: 100%;
height: auto;
aspect-ratio: 3 / 2;
object-fit: cover;
filter: saturate(0.7) contrast(0.95);
}
.masthead__arrow {
position: absolute;
top: 0;
display: grid;
place-items: center;
width: var(--tap);
height: 100%;
padding: 0;
border: 0;
background: none;
color: var(--ink-full);
cursor: pointer;
transition: color var(--fade);
}
.masthead__arrow:hover {
color: var(--hover);
}
.masthead__arrow--prev { left: -0.5rem; }
.masthead__arrow--next { right: -0.5rem; }
.masthead__arrow svg {
width: 0.75rem;
fill: none;
stroke: currentColor;
stroke-width: 1;
}
.masthead__caption {
min-height: 2.6em;
margin: 0;
padding-inline: 3rem;
color: var(--ink-full);
font: var(--text-cap) / 1.3 var(--font-mono);
text-align: center;
}
.masthead__statement {
grid-area: statement;
margin-top: var(--space-xl);
}
.masthead__statement-title {
margin: 0 0 var(--space-m);
padding-bottom: var(--space-s);
border-bottom: var(--rule) solid var(--ink-full);
font-size: var(--text-title);
font-weight: 400;
line-height: var(--leading);
}
.masthead__statement p {
margin: 0 0 var(--space-l);
}
.masthead__more {
display: inline-block;
padding-block: var(--space-s);
color: var(--ink);
font: var(--text-lead) / 1.4 var(--font-serif);
text-decoration: none;
transition: color var(--fade);
}
.masthead__burger {
display: none;
}
/* Phones and small tablets: the slips move into a full-screen sheet behind a round burger */
@media (max-width: 52rem) {
.masthead {
position: relative;
display: block;
padding: var(--gutter);
}
.masthead__main {
grid-template-columns: minmax(0, 1fr);
grid-template-areas:
"lang"
"name"
"show"
"statement";
padding: 0;
}
.masthead__lang {
margin: 0 -0.6rem 0 0;
}
.masthead__name {
margin-top: var(--space-l);
font-size: clamp(2.75rem, 11vw, 4.5rem);
}
.masthead__frames,
.masthead__caption {
padding-inline: 2.25rem;
}
.masthead__arrow--prev { left: -0.75rem; }
.masthead__arrow--next { right: -0.75rem; }
.masthead__burger {
position: absolute;
top: var(--gutter);
left: var(--gutter);
z-index: 21;
display: block;
width: var(--tap);
height: var(--tap);
padding: 0;
border: var(--rule) solid var(--ink-full);
border-radius: 50%;
background: var(--page);
cursor: pointer;
}
.masthead.is-open .masthead__burger {
position: fixed;
}
.masthead__burger-line {
position: absolute;
left: 50%;
top: 50%;
width: 1.1rem;
height: var(--rule);
margin-left: -0.55rem;
background: var(--ink-full);
transition: transform var(--fade), opacity var(--fade);
}
.masthead__burger-line:nth-child(1) { transform: translateY(-0.35rem); }
.masthead__burger-line:nth-child(3) { transform: translateY(0.35rem); }
.masthead.is-open .masthead__burger-line:nth-child(1) { transform: rotate(45deg); }
.masthead.is-open .masthead__burger-line:nth-child(2) { opacity: 0; }
.masthead.is-open .masthead__burger-line:nth-child(3) { transform: rotate(-45deg); }
.masthead__rail {
position: fixed;
inset: 0;
z-index: 20;
overflow-y: auto;
overflow-x: hidden;
padding: calc(var(--gutter) + var(--tap) + var(--space-m)) var(--gutter) var(--space-l);
background: var(--page);
visibility: hidden;
opacity: 0;
transition: opacity var(--fade), visibility 0s linear 0.3s;
}
.masthead.is-open .masthead__rail {
visibility: visible;
opacity: 1;
transition: opacity var(--fade);
}
.masthead__slip {
opacity: 0;
rotate: 0deg;
translate: 0 -0.75rem;
transition: rotate var(--swing), translate var(--swing), opacity var(--fade);
transition-delay: calc(var(--order) * var(--stagger));
}
.masthead.is-open .masthead__slip {
opacity: 1;
rotate: var(--slip-tilt);
translate: 0 0;
}
.masthead__slip--lemon { margin-inline: 0.5rem 0.25rem; }
.masthead__slip--strip {
position: relative;
bottom: auto;
margin-inline: 0 0.25rem;
}
}
</style>
<script>
(() => {
const OPEN = "is-open";
const CURRENT = "is-current";
const STEP_MS = 5000;
const phoneLayout = matchMedia("(max-width: 52rem)");
const reducedMotion = matchMedia("(prefers-reduced-motion: reduce)");
const setUpMenu = (root) => {
const burger = root.querySelector(".masthead__burger");
const rail = root.querySelector(".masthead__rail");
const setOpen = (open) => {
root.classList.toggle(OPEN, open);
rail.inert = phoneLayout.matches && !open;
burger.setAttribute("aria-expanded", String(open));
burger.setAttribute("aria-label", open ? "Close menu" : "Open menu");
};
burger.addEventListener("click", () => setOpen(!root.classList.contains(OPEN)));
rail.addEventListener("click", (event) => {
if (event.target.closest("a")) setOpen(false);
});
root.addEventListener("keydown", (event) => {
if (event.key !== "Escape" || !root.classList.contains(OPEN)) return;
setOpen(false);
burger.focus();
});
phoneLayout.addEventListener("change", () => setOpen(false));
setOpen(false);
};
const setUpStrip = (root) => {
const strip = root.querySelector(".masthead__strip");
const toggle = strip.querySelector(".masthead__strip-toggle");
const fields = strip.querySelector(".masthead__strip-fields");
const input = strip.querySelector(".masthead__strip-input");
const note = strip.querySelector(".masthead__strip-note");
toggle.addEventListener("click", () => {
const opening = fields.hidden;
fields.hidden = !opening;
toggle.setAttribute("aria-expanded", String(opening));
if (opening) input.focus();
});
strip.addEventListener("submit", (event) => {
event.preventDefault();
if (!input.checkValidity()) {
note.textContent = "That address looks unfinished.";
input.focus();
return;
}
fields.hidden = true;
toggle.setAttribute("aria-expanded", "false");
note.textContent = "Thank you. The next sheet goes out at spring tide.";
});
};
const setUpShow = (root) => {
const show = root.querySelector(".masthead__show");
const frames = [...show.querySelectorAll(".masthead__frame")];
const caption = show.querySelector(".masthead__caption");
let current = 0;
let inView = false;
let held = false;
let timer = 0;
const goTo = (index) => {
current = (index + frames.length) % frames.length;
frames.forEach((frame, order) => {
frame.classList.toggle(CURRENT, order === current);
frame.setAttribute("aria-hidden", String(order !== current));
});
caption.textContent = frames[current].dataset.caption;
};
const schedule = () => {
clearInterval(timer);
if (inView && !held && !reducedMotion.matches) timer = setInterval(() => goTo(current + 1), STEP_MS);
};
show.querySelector(".masthead__arrow--prev").addEventListener("click", () => { goTo(current - 1); schedule(); });
show.querySelector(".masthead__arrow--next").addEventListener("click", () => { goTo(current + 1); schedule(); });
show.addEventListener("pointerenter", () => { held = true; schedule(); });
show.addEventListener("pointerleave", () => { held = false; schedule(); });
show.addEventListener("focusin", () => { held = true; schedule(); });
show.addEventListener("focusout", () => { held = false; schedule(); });
new IntersectionObserver(([entry]) => { inView = entry.isIntersecting; schedule(); }).observe(show);
goTo(0);
};
document.querySelectorAll(".masthead").forEach((root) => {
setUpMenu(root);
setUpStrip(root);
setUpShow(root);
});
})();
</script>