Offer panel
Split headline with a railed list of lessons, then three cells in one framed panel, each with a picture, an outlined pill tag, a serif title and an arrowed text link.
Part of the style
Night Moss Essay
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/night-moss-essay/work/figma.html?type=floating-card-showcase
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/night-moss-essay/work/figma.html?type=floating-card-showcase and pass that whole HTML document to the html_to_figma tool, so the part "Offer panel" 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;700&display=swap");
:root {
--font-display: "Figtree", system-ui, sans-serif;
--font-body: "Figtree", system-ui, sans-serif;
--font-label: "Figtree", system-ui, sans-serif;
}
</style>
<section class="work">
<p class="work__eyebrow work__item">What I make</p>
<div class="work__head">
<h2 class="work__title work__item">Bread worth <em class="work__accent">the walk.</em></h2>
<div class="work__lessons work__item">
<p class="work__kicker">Things the oven taught me</p>
<ul class="work__list">
<li class="work__lesson">People don't taste a loaf. They smell it from the door.</li>
<li class="work__lesson">A crust that cuts the roof of your mouth isn't rustic.</li>
<li class="work__lesson">Most good baking is waiting, done properly.</li>
</ul>
</div>
</div>
<div class="work__panel work__item">
<article class="work__card">
<img class="work__pic" src="assets/mill.jpg" alt="A painted mill house under old trees by a slow river" width="800" height="549" loading="lazy">
<span class="work__tag">Flour</span>
<h3 class="work__name">Stone-Ground Valley Flour</h3>
<p class="work__text">Wheat from three farms within a morning's walk, milled slowly on granite and sold by the paper sack while it still smells of the field.</p>
<a class="work__link" href="#">See the mill <span class="work__arrow" aria-hidden="true">→</span></a>
</article>
<article class="work__card">
<img class="work__pic" src="assets/wheat.jpg" alt="A painted haystack in a snowy field at dusk" width="800" height="563" loading="lazy">
<span class="work__tag">Weekly</span>
<h3 class="work__name">The Friday Loaf Club</h3>
<p class="work__text">One loaf a week, chosen by the weather and the flour, left at your door before seven with a note on how it was made.</p>
<a class="work__link" href="#">How it works <span class="work__arrow" aria-hidden="true">→</span></a>
</article>
<article class="work__card work__card--now">
<img class="work__pic" src="assets/thistles.jpg" alt="A painting of pale dry thistles against a rust brown bank" width="800" height="629" loading="lazy">
<span class="work__tag">Now growing</span>
<h3 class="work__name">Heritage Rye Plot</h3>
<p class="work__text">Half an acre of an old rye nobody sells any more. First harvest in August, first bread from it when the cold comes back.</p>
</article>
</div>
</section>
<style>
.work {
padding: var(--section-space) var(--inset);
background: var(--night);
}
.work__eyebrow,
.work__kicker {
margin: 0 0 var(--space-l);
color: var(--moss);
font: 500 var(--text-label)/1 var(--font-label);
letter-spacing: var(--track-label);
text-transform: uppercase;
}
.work__kicker {
font-size: 0.8125rem;
margin-bottom: var(--space-m);
}
.work__head {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: var(--gap);
align-items: start;
margin-bottom: var(--space-xl);
}
.work__title {
margin: 0;
color: var(--ink);
font-family: var(--font-display);
font-weight: 400;
font-size: var(--display-l);
line-height: var(--leading-display);
}
.work__accent {
display: block;
color: var(--moss);
}
.work__list {
display: grid;
gap: var(--space-s);
margin: 0;
padding: 0;
list-style: none;
}
.work__lesson {
padding: var(--space-xs) 0 var(--space-xs) var(--space-m);
border-left: var(--rule) solid var(--line-strong);
color: var(--ink-soft);
font-size: var(--text-m);
line-height: 1.6;
}
.work__panel {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
border: var(--rule) solid var(--line-strong);
border-radius: var(--radius);
overflow: hidden;
}
.work__card {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--space-m);
padding: var(--space-l);
background: var(--night);
transition: background var(--slow) var(--ease);
}
.work__card + .work__card {
border-left: var(--rule) solid var(--line-strong);
}
.work__card--now {
background: var(--night-raised);
}
.work__card:hover {
background: var(--night-lift);
}
.work__pic {
width: 100%;
height: auto;
aspect-ratio: 16 / 9;
object-fit: cover;
border-radius: calc(var(--radius) / 2);
filter: saturate(0.6) brightness(0.8);
transition: filter var(--slow) var(--ease);
}
.work__card:hover .work__pic {
filter: saturate(0.95) brightness(0.95);
}
.work__tag {
padding: var(--space-xs) var(--space-s);
border: var(--rule) solid var(--moss-deep);
border-radius: var(--radius-pill);
color: var(--moss);
font: 500 var(--text-label)/1 var(--font-label);
letter-spacing: var(--track-label);
text-transform: uppercase;
}
.work__name {
margin: 0;
color: var(--ink);
font-family: var(--font-display);
font-weight: 500;
font-size: var(--display-xs);
line-height: 1.3;
letter-spacing: -0.01em;
}
.work__text {
margin: 0;
color: var(--ink-soft);
font-size: var(--text-l);
line-height: var(--leading-body);
}
.work__link {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
min-height: 44px;
margin-top: auto;
color: var(--ink);
font: 500 var(--text-label)/1 var(--font-label);
letter-spacing: var(--track-label);
text-transform: uppercase;
text-decoration: none;
border-bottom: var(--rule) solid var(--line-strong);
transition: color var(--quick) var(--ease), border-color var(--quick) var(--ease), gap var(--quick) var(--ease);
}
.work__link:hover,
.work__link:focus-visible {
gap: var(--space-s);
color: var(--moss);
border-color: var(--moss-deep);
}
.work__link:focus-visible {
outline: var(--rule) solid var(--moss);
outline-offset: 4px;
}
.work__item {
opacity: 0;
transform: translateY(24px);
transition: opacity var(--reveal) var(--ease-out), transform var(--reveal) var(--ease-out);
transition-delay: calc(var(--order, 0) * 90ms);
}
.work.is-seen .work__item {
opacity: 1;
transform: none;
}
@media (max-width: 56rem) {
.work__head { grid-template-columns: 1fr; }
.work__panel { grid-template-columns: 1fr; }
.work__card + .work__card { border-left: 0; border-top: var(--rule) solid var(--line-strong); }
}
@media (prefers-reduced-motion: reduce) {
.work__item { opacity: 1; transform: none; transition: none; }
}
</style>
<script>
(() => {
const seen = new IntersectionObserver((entries) => {
for (const entry of entries) {
if (!entry.isIntersecting) continue;
entry.target.classList.add('is-seen');
seen.unobserve(entry.target);
}
}, { threshold: 0.05 });
for (const root of document.querySelectorAll('.work')) {
root.querySelectorAll('.work__item').forEach((item, order) => item.style.setProperty('--order', order));
seen.observe(root);
}
})();
</script>