Media right
Media right: a CSS card. Copy the rules, or the prompt that rebuilds it.
Weekly digest
The five links our team argued about this week.
CSS
.card-009 {
display: grid;
grid-template-columns: 1fr 160px;
width: 440px;
background: #fff;
border-radius: 16px;
overflow: hidden;
font-family: system-ui,sans-serif;
color: #0f172a;
box-shadow: 0 2px 8px rgba(0,0,0,.08)
}
.card-009__body {
padding: 22px
}
.card-009 h3 {
margin: 0 0 6px;
font-size: 18px
}
.card-009 p {
margin: 0 0 14px;
font-size: 14px;
color: #475569
}
.card-009 button {
padding: 8px 14px;
border: 0;
border-radius: 8px;
background: #0f172a;
color: #fff;
font-size: 13px;
font-weight: 600;
cursor: pointer
}
.card-009 button:hover {
background: #1e293b
}
.card-009__img {
background: linear-gradient(200deg,#c7d2fe,#6366f1);
clip-path: polygon(18% 0,100% 0,100% 100%,0 100%)
}
.card-009 :is(a,button,input,select,textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
HTML
<article class="card-009">
<div class="card-009__body">
<h3>Weekly digest</h3>
<p>The five links our team argued about this week.</p>
<button>Subscribe</button>
</div>
<div class="card-009__img"></div>
</article>Prompt
Create a 440px card using a two-column grid (1fr and 160px), white background, 16px radius, shadow 0 2px 8px rgba(0,0,0,.08). Left body padding 22px: 18px title #0f172a, 14px text #475569, a dark pill-ish button (#0f172a, 8px radius, 13px semibold white). Right column is an image placeholder with a 200deg gradient #c7d2fe to #6366f1 cut with a diagonal clip-path polygon(18% 0,100% 0,100% 100%,0 100%) so it slants into the text.