/**
 * @file
 * Section heading component.
 */

.xp-heading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.xp-heading__label {
  margin: 0 0 0.75rem;
  color: var(--bs-primary);
  font-family: var(--bs-font-monospace);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.xp-heading__title {
  margin: 0;
  font-size: var(--xp-font-size-h2);
}

.xp-heading__intro {
  max-width: 40rem;
  margin: 0.5rem 0 0;
  color: var(--bs-secondary-color);
  font-size: var(--xp-font-size-lead);
}

.xp-heading__link {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.xp-heading__link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .xp-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}
