<main class="flow">
<article class="card">
<div class="card__media">
<img src="https://source.unsplash.com/F-B7kWlkxDQ/1200x675" alt="A turntable with a brigh orange vinyl on it" />
</div>
<div class="[ card__content ] [ flow ]">
<h2>Join the Vinyl revolution</h2>
<p>
Donec id elit non mi porta gravida at eget metus. Aenean lacinia bibendum
nulla sed consectetur. Vivamus sagittis lacus vel augue laoreet rutrum
faucibus dolor auctor.
</p>
<a href="#" class="button">Find out more</a>
</div>
</article>
</main>
body {
font-family: "Inter", sans-serif;
max-width: 50rem;
padding: 2rem 1.5rem;
margin: 0 auto;
color: #241623;
background: #eef2f4;
}
h1 {
font-weight: 900;
font-size: 3rem;
line-height: 1.1;
}
h2 {
font-weight: 900;
font-size: 2.5rem;
line-height: 1.1;
}
p {
max-width: 60ch;
}
.card {
--flow-space: 1rem;
background: #ffffff;
border-radius: 1em;
overflow: hidden;
box-shadow: 0 0 20px hsl(0 0% 0% / 10%);
}
.card__content {
padding: 1.5rem;
}
.card h2 {
font-weight: 900;
font-size: 1.8rem;
line-height: 1.1;
}
.card__media {
aspect-ratio: 16/9;
}
.button {
display: inline-block;
background: #8cfbde;
color: #000000;
padding: 0.5rem 1rem;
font: inherit;
font-weight: 900;
text-decoration: none;
letter-spacing: 0.03ch;
text-transform: uppercase;
border-radius: 0.8em;
}
.flow > * + * {
margin-top: var(--flow-space, 1em);
}
This Pen doesn't use any external JavaScript resources.