/* Step 1: Page layout
   - Style body and .page-header with comfortable outer padding.
   - Stack cards in a single column (.card-list): no grid, no side-by-side rows.
   - The finished page must scroll well past the viewport; 40 stacked cards
     with spacing should get you there. */

/* Step 2: Card component
   - Style .card, .card-number, .card-title, .card-body.
   - Give each card generous padding and margin (or gap on .card-list) so the
     list feels readable and the scroll distance is obvious in your video. */

/* Step 3: After the page scrolls smoothly and cards look right, add to .card:
     content-visibility: auto;
     contain-intrinsic-size: auto 180px;
   Enable Paint Flashing in DevTools and compare before/after.
   Try removing contain-intrinsic-size to see the scrollbar jump. */

.card-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 75rem;
  margin-inline: auto;
  padding: 2rem;
}

/* Card component */
.card {
  /* min-height: 180px; */
  padding: 2rem;
  border: 1px solid #d8dee8;
  border-radius: 1rem;
  background-color: #ffffff;
  content-visibility: auto;
  contain-intrinsic-size: auto 180px;
}

.card-number {
  display: block;
  margin-bottom: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 700;
}

.card-title {
  margin: 0 0 0.75rem;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 700;
}

.card-body {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}