Case file
A project write-up in the big square with credits, copy and facts, a red duotone picture and a tile that turns the sheet upside down.
Part of the style
Red Spiral Grid
6 parts that belong together, with their tokens, type and rules.
https://kitbash.me/components/red-spiral-grid/casefile/figma.html?palette=80976dc52fc573ea
Use the Figma MCP server (https://mcp.figma.com/mcp). Download https://kitbash.me/components/red-spiral-grid/casefile/figma.html?palette=80976dc52fc573ea and pass that whole HTML document to the html_to_figma tool, so the part "Case file" 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 {
--ink: #fff4df;
--ink-soft: #cdb68a;
--paper: #04578b;
--paper-tint: #145d90;
--night: #5a5140;
--key: #18537f;
--key-ink: #04578b;
--red: #dec9ac;
--red-deep: #907f68;
}
</style>
<article class="casefile" aria-labelledby="casefile-title">
<div class="casefile__frame">
<div class="casefile__panel casefile__major">
<div class="casefile__sheet">
<div class="casefile__head">
<p class="casefile__kicker">Case 06</p>
<a class="casefile__visit" href="#">Visit</a>
</div>
<h2 class="casefile__title" id="casefile-title">Lighthouse Reading Room</h2>
<div class="casefile__body">
<dl class="casefile__credits">
<dt>With</dt>
<dd>Ada Morrow</dd>
<dd>Tomas Pell</dd>
<dd>Ines Okafor-Lund</dd>
<dd>Rufus Haig</dd>
<dd>The keepers' trust</dd>
</dl>
<p class="casefile__text">
A reading room in an old lamp house, where every desk lamp turns with the beam that used to sweep the bay.
We rebuilt the lens mount as a slow clock, wrote the timing for twenty-two desk lights and laid the floor
out on a golden cut so every chair sits in its own square.
</p>
</div>
<ul class="casefile__facts">
<li><span>Year</span>2026</li>
<li><span>Place</span>North quay</li>
<li><span>Our part</span>Lighting, timing, furniture</li>
</ul>
</div>
</div>
<div class="casefile__minor">
<figure class="casefile__panel casefile__figure">
<img class="casefile__img" src="assets/lighthouse.jpg" alt="Painting of a rocky cove with bathers in the shallows" width="800" height="475" loading="lazy">
<figcaption class="casefile__caption">The cove below the lamp house, as the founders painted it.</figcaption>
</figure>
<div class="casefile__panel casefile__side">
<p class="casefile__side-label">Read it the other way</p>
<button class="casefile__turn" type="button" aria-pressed="false">
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 10a6 6 0 0 1 10.5-4M16 10a6 6 0 0 1-10.5 4M14.5 2v4h-4M5.5 18v-4h4" /></svg>
<span>Turn</span>
</button>
</div>
</div>
</div>
</article>
<style>
.casefile {
background: var(--night);
color: var(--ink);
}
.casefile__frame {
display: grid;
grid-template-columns: 61.8034fr 38.1966fr;
gap: var(--seam);
min-height: min(720px, 61.8034vw);
}
.casefile__panel {
position: relative;
min-width: 0;
margin: 0;
overflow: hidden;
background: var(--wave-texture), var(--paper-tint);
}
.casefile__major {
padding: var(--space-xl);
}
.casefile__sheet {
display: flex;
flex-direction: column;
gap: var(--space-m);
height: 100%;
transition: transform var(--slow) var(--ease-in);
}
.casefile.is-turned .casefile__sheet {
transform: rotate(180deg);
}
.casefile__head {
display: flex;
align-items: center;
justify-content: space-between;
}
.casefile__kicker {
margin: 0;
color: var(--red);
font-size: var(--text-s);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.casefile__visit {
display: inline-grid;
place-items: center;
min-width: var(--tap);
min-height: var(--tap);
padding: 0 var(--space-s);
border: var(--rule-thin) solid var(--ink);
border-radius: var(--radius);
color: var(--ink);
font-size: var(--text-s);
font-weight: 700;
text-decoration: none;
transition: background var(--quick) var(--ease), color var(--quick) var(--ease), border-color var(--quick) var(--ease);
}
.casefile__visit:hover,
.casefile__visit:focus-visible {
border-color: var(--red);
background: var(--red);
color: var(--paper);
}
.casefile__title {
max-width: 12em;
margin: 0;
font-family: var(--font-display);
font-size: var(--display-m);
font-weight: 700;
line-height: var(--leading-display);
letter-spacing: var(--track-display);
}
.casefile__body {
display: grid;
grid-template-columns: minmax(0, 38.1966fr) minmax(0, 61.8034fr);
gap: var(--space-l);
margin-top: auto;
}
.casefile__credits {
margin: 0;
font-size: var(--text-s);
line-height: 1.7;
}
.casefile__credits dt {
color: var(--ink-soft);
}
.casefile__credits dd {
margin: 0;
font-weight: 500;
transition: color var(--quick) var(--ease);
}
.casefile__credits dd:hover {
color: var(--red);
}
.casefile__text {
max-width: 32em;
margin: 0;
font-size: var(--text-m);
line-height: 1.55;
}
.casefile__facts {
display: flex;
flex-wrap: wrap;
gap: var(--space-xs) var(--space-l);
margin: 0;
padding: var(--space-s) 0 0;
border-top: var(--rule-thin) solid var(--ink);
list-style: none;
font-size: var(--text-s);
font-weight: 700;
}
.casefile__facts span {
display: block;
color: var(--ink-soft);
font-weight: 400;
}
.casefile__minor {
display: grid;
grid-template-rows: 61.8034fr 38.1966fr;
gap: var(--seam);
min-height: 0;
}
.casefile__figure {
display: grid;
grid-template-rows: minmax(0, 1fr) auto;
background: var(--red);
}
.casefile__img {
width: 100%;
height: 100%;
min-height: 180px;
object-fit: cover;
filter: grayscale(1) contrast(1.3);
mix-blend-mode: multiply;
}
.casefile__caption {
padding: var(--space-s) var(--space-m);
color: var(--paper);
font-size: var(--text-s);
line-height: 1.4;
}
.casefile__side {
display: flex;
align-items: stretch;
justify-content: space-between;
gap: var(--space-m);
padding: var(--space-l);
}
.casefile__side-label {
margin: 0;
font-family: var(--font-display);
font-size: var(--text-xl);
font-weight: 700;
line-height: 1.05;
writing-mode: vertical-rl;
transform: rotate(180deg);
}
.casefile__turn {
display: grid;
place-items: center;
align-content: space-between;
align-self: flex-end;
width: 72px;
height: 104px;
padding: var(--space-m) var(--space-xs) var(--space-s);
border: 0;
border-radius: 0;
background: var(--red);
color: var(--paper);
font: 700 var(--text-l) / 1 var(--font-body);
cursor: pointer;
transition: background var(--medium) var(--ease), border-radius var(--quick) var(--ease-out);
}
.casefile__turn svg {
width: 26px;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
}
.casefile__turn:hover,
.casefile__turn:focus-visible,
.casefile.is-turned .casefile__turn {
background: var(--red-deep);
border-top-left-radius: 36px;
}
.casefile__turn:focus-visible {
outline: var(--rule-thin) solid var(--red);
outline-offset: 3px;
}
@media (max-width: 760px) {
.casefile__frame {
grid-template-columns: 1fr;
}
.casefile__major {
padding: var(--space-l) var(--space-m);
}
.casefile__body {
grid-template-columns: 1fr;
gap: var(--space-m);
}
.casefile__minor {
grid-template-rows: none;
grid-template-columns: 61.8034fr 38.1966fr;
}
.casefile__side {
flex-direction: column;
padding: var(--space-m);
}
.casefile__side-label {
font-size: var(--text-l);
writing-mode: horizontal-tb;
transform: none;
}
.casefile__turn {
align-self: flex-start;
}
}
@media (prefers-reduced-motion: reduce) {
.casefile__sheet {
transition: none;
}
}
</style>
<script>
(() => {
for (const root of document.querySelectorAll('.casefile')) {
const turn = root.querySelector('.casefile__turn');
turn.addEventListener('click', () => {
const turned = root.classList.toggle('is-turned');
turn.setAttribute('aria-pressed', String(turned));
});
}
})();
</script>