Stacked confession
A three-line stacked serif headline ending in an italic moss phrase, an italic subline, and a scroll rail with a sliding thumb; lines rise in on load.
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/hero/figma.html?palette=badb825c54a0c19e
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/night-moss-essay/hero/figma.html?palette=badb825c54a0c19e and pass that whole HTML document to the html_to_figma tool, so the part "Stacked confession" 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 {
--night: #e9e9e9;
--night-raised: #e3e3e3;
--night-lift: #dddddd;
--line: #ececec;
--line-strong: #bdbdbd;
--ink: #363736;
--ink-soft: #5b5c5b;
--ink-faint: #5e5f5e;
--ink-dim: #727272;
--moss: #04735f;
--moss-deep: #176755;
}
</style>
<section class="hero">
<div class="hero__inner">
<h1 class="hero__title">
<span class="hero__line">I bake</span>
<span class="hero__line">before</span>
<span class="hero__line hero__line--accent">dawn.</span>
</h1>
<p class="hero__sub">This is what comes out of the oven while the town sleeps.</p>
</div>
<div class="hero__rail" aria-hidden="true"><span class="hero__thumb"></span></div>
</section>
<style>
.hero {
position: relative;
display: flex;
align-items: center;
min-height: clamp(34rem, 58vw, 52rem);
padding: var(--space-xl) var(--inset) calc(var(--space-xl) + 3rem);
background: var(--night);
}
.hero__title {
margin: 0;
color: var(--ink);
font-family: var(--font-display);
font-weight: 400;
font-size: var(--display-xl);
line-height: 1.02;
letter-spacing: -0.02em;
}
.hero__line {
display: block;
opacity: 0;
transform: translateY(28px);
animation: hero-rise var(--hero-fade) var(--ease-out) forwards;
}
.hero__line:nth-child(2) { animation-delay: 120ms; }
.hero__line:nth-child(3) { animation-delay: 240ms; }
.hero__line--accent {
color: var(--moss);
font-style: italic;
}
.hero__sub {
margin: var(--space-l) 0 0;
max-width: 30rem;
color: var(--ink-faint);
font-family: var(--font-display);
font-style: italic;
font-size: clamp(1.125rem, 1.6vw, 1.375rem);
line-height: 1.5;
opacity: 0;
animation: hero-fade var(--hero-fade) var(--ease-out) 600ms forwards;
}
.hero__rail {
position: absolute;
left: var(--inset);
bottom: var(--space-l);
width: var(--rule);
height: 3.5rem;
background: var(--line);
overflow: hidden;
}
.hero__thumb {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 40%;
background: var(--moss-deep);
animation: hero-thumb 2.4s var(--ease-out) infinite;
}
@keyframes hero-rise {
to { opacity: 1; transform: none; }
}
@keyframes hero-fade {
to { opacity: 1; }
}
@keyframes hero-thumb {
0% { transform: translateY(-100%); opacity: 0; }
30% { opacity: 1; }
100% { transform: translateY(260%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.hero__line, .hero__sub { opacity: 1; transform: none; animation: none; }
.hero__thumb { animation: none; transform: none; }
}
</style>