/* Callout ------------------------------------------------------------- */

.callout {
  display: flex;
  gap: var(--space-3);
  /* No outer margin: a callout is a section, and the stack of sections sets
     the gap — with a margin of its own it stood 48 px from its neighbours
     where every other section stands 32. */
  margin: 0;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--secondary);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.callout--note {
  border-inline-start-color: var(--secondary);
  background: var(--secondary-soft);
}

.callout--tip {
  border-inline-start-color: var(--success);
  background: var(--success-soft);
}

.callout--warning {
  border-inline-start-color: var(--warning);
  background: var(--warning-soft);
}

.callout__icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}

.callout__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.callout--note .callout__icon {
  color: var(--secondary);
}

.callout--tip .callout__icon {
  color: var(--success);
}

.callout--warning .callout__icon {
  color: var(--warning);
}

/* Text a section says is set at --text-lg wherever it stands — prose, an
   FAQ answer, a callout, a countdown's lead; a caption under a picture or an
   icon (a tile, a feature) is --text-sm. Two levels, so the same kind of
   sentence is one size across a page. */
.callout__content {
  flex: 1;
  min-width: 0;
  font-size: var(--text-lg);
}

.callout__title {
  margin: 0 0 var(--space-1);
  font-weight: 700;
}

.callout__body > :first-child {
  margin-top: 0;
}

.callout__body > :last-child {
  margin-bottom: 0;
}

.callout--quote {
  display: block;
  border: 0;
  border-inline-start: 4px solid var(--secondary);
  border-radius: 0;
  background: transparent;
  padding: var(--space-2) var(--space-5);
  font-style: italic;
  font-size: var(--text-lg);
}

.callout__attribution {
  margin-top: var(--space-2);
  font-family: var(--font-body, inherit);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.callout__attribution::before {
  content: "— ";
}
