.shelf {
  container-type: inline-size;
  container-name: shelf;
  max-inline-size: 100%;
  padding: 0.5rem;
  background: whitesmoke;
}

.card {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  color: black;
  background: white;
  border: 1px solid silver;
}

.title {
  margin: 0;
  font: 700 1rem system-ui, sans-serif;
}

.lead {
  margin: 0;
  font: 0.875rem system-ui, sans-serif;
}

@container shelf (inline-size >= 20em) {
  .card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}