/* ==============================================================================
   CTA BLOCK
   ============================================================================== */

/* The same row as a text block (rule above, title in the margin column
   from a tablet up, see text.css), so a page reads as one sheet of
   notes rather than a stack of differently shaped boxes. What sets the
   call to action apart is its button, the one solid fill on the page
   below the showcase, not a coloured band around it. The rule here is
   the strong --border-color: the block ends the page's content and
   leads somewhere else. */
.block-cta {
  padding-block-start: var(--spacing-lg);
  border-block-start: 1px solid var(--border-color);
}

.block-cta h2 {
  margin-block-end: var(--spacing-md);
  color: var(--text-primary);
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

.block-cta__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.block-cta p {
  max-width: var(--measure);
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (min-width: 48em) {
  .block-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: var(--spacing-xl);
    align-items: baseline;
  }

  .block-cta h2 {
    margin-block-end: 0;
  }
}
