Editorial essay row
Editorial essay row: a CSS card. Copy the rules, or the prompt that rebuilds it.
Essay · Typography
The case for one typeface
Constraints are a design tool. Here is what a single family bought us.
By Elif Aydin · 11 minCSS
.card-066 {
display: grid;
grid-template-columns: 1fr 140px;
gap: 20px;
width: 480px;
padding: 20px 0;
border-top: 1px solid #111;
border-bottom: 1px solid #e5e5e5;
font-family: Georgia,serif;
color: #111;
background: #fff
}
.card-066__text span {
font-family: system-ui,sans-serif;
font-size: 11px;
letter-spacing: .1em;
text-transform: uppercase;
color: #777
}
.card-066 h3 {
margin: 8px 0 8px;
font-size: 24px;
line-height: 1.15;
font-weight: 700;
letter-spacing: -.01em
}
.card-066:hover h3 {
text-decoration: underline;
text-underline-offset: 4px;
text-decoration-thickness: 1px
}
.card-066 p {
margin: 0 0 12px;
font-size: 15px;
line-height: 1.5;
color: #444
}
.card-066 small {
font-family: system-ui,sans-serif;
font-size: 12px;
color: #777
}
.card-066__img {
height: 140px;
background: linear-gradient(160deg,#e5e5e5,#8a8a8a);
filter: grayscale(1);
transition: filter .3s
}
.card-066:hover .card-066__img {
filter: grayscale(0)
}
HTML
<article class="card-066">
<div class="card-066__text">
<span>Essay · Typography</span>
<h3>The case for one typeface</h3>
<p>Constraints are a design tool. Here is what a single family bought us.</p>
<small>By Elif Aydin · 11 min</small>
</div>
<div class="card-066__img"></div>
</article>Prompt
Build a 480px editorial blog row in Georgia serif: two-column grid (text 1fr, image 140px), 20px gap, 20px vertical padding, a 1px black top border and a 1px #e5e5e5 bottom border, white background, no radius. Text column: uppercase 11px sans-serif kicker "Essay · Typography" in #777, a 24px bold serif title that underlines on hover, 15px #444 summary, and a 12px sans byline. The image is a 140px square with a 160deg gray gradient #e5e5e5 to #8a8a8a shown in grayscale that regains color on hover.