Floating card feature
Full-bleed photograph with a blush card inset over it: lead line, thumbnail, big serif title and a ruled link row.
Part of the style
Blush Script Parlour
7 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/blush-script-parlour/feature/figma.html?palette=0895964076ba9491
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/blush-script-parlour/feature/figma.html?palette=0895964076ba9491 and pass that whole HTML document to the html_to_figma tool, so the part "Floating card feature" 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 {
--blush: #965a0a;
--cocoa: #fff8e4;
--cocoa-veil: rgba(23, 18, 3, 0.5);
--cocoa-line: rgba(22, 17, 3, 0.35);
--blush-line: rgba(167, 99, 0, 0.4);
--blush-soft: rgba(167, 99, 0, 0.72);
--night: #eee7d1;
--pink: #796e4c;
}
</style>
<section class="feature">
<img class="feature__photo" src="assets/terrace.jpg" alt="A watercolour of a sunlit stone terrace with columns and green foliage" width="1200" height="806" />
<article class="feature__card">
<div class="feature__top">
<p class="feature__lead">A summer edition made with the Linden Garden Trust, bottling the hour after rain on a stone terrace</p>
<img class="feature__thumb" src="assets/bottle.jpg" alt="A silver scent flask wrapped in a vine of tiny flowers" width="800" height="800" />
</div>
<h2 class="feature__title">Order the Terrace After Rain collection, poured in small batches</h2>
<a class="feature__row" href="#">
<span>Linden Garden Trust</span>
<span class="feature__chip" aria-hidden="true">↗</span>
</a>
</article>
</section>
<style>
.feature {
position: relative;
display: grid;
align-content: end;
min-height: clamp(34rem, 50vw, 52rem);
padding: clamp(5rem, 10vw, 7rem) var(--card-inset) var(--space-l);
overflow: hidden;
background: var(--cocoa);
}
.feature__photo {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.feature__card {
position: relative;
display: grid;
align-content: space-between;
min-height: clamp(18rem, 26vw, 28rem);
gap: var(--space-l);
padding: var(--space-m);
background: var(--blush);
color: var(--cocoa);
}
.feature__top {
display: grid;
grid-template-columns: minmax(0, 1fr) clamp(5rem, 9vw, 7rem);
gap: var(--space-l);
align-items: start;
}
.feature__lead {
margin: 0;
max-width: 62ch;
font-size: var(--text-s);
line-height: 1.25;
text-transform: uppercase;
}
.feature__thumb {
width: 100%;
height: auto;
aspect-ratio: 4 / 5;
object-fit: cover;
mix-blend-mode: multiply;
filter: sepia(0.35) saturate(1.3);
}
.feature__title {
margin: var(--space-l) 0 0;
font-family: var(--font-serif);
font-size: var(--serif-l);
font-weight: 400;
letter-spacing: var(--tracking-serif);
line-height: 1;
text-transform: uppercase;
text-wrap: balance;
}
.feature__row {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 48px;
border-top: var(--rule) solid var(--cocoa);
color: inherit;
font-size: var(--text-m);
text-decoration: none;
}
.feature__chip {
display: grid;
place-items: center;
width: var(--arrow-box);
height: var(--arrow-box);
background: var(--cocoa-line);
font-size: var(--text-s);
transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), rotate var(--quick) var(--ease);
}
.feature__row:hover .feature__chip,
.feature__row:focus-visible .feature__chip {
background: var(--cocoa);
color: var(--blush);
rotate: 45deg;
}
.feature__row:focus-visible {
outline: var(--rule) solid var(--pink);
outline-offset: 4px;
}
</style>