/* ==========================================================================
   Title.
   ========================================================================== */
h1,
.title--h1,
.content-title,
h2,
.title--h2,
h3,
.title--h3,
h4,
.title--h4 {
  display: inline-flex;
  margin: 0 0 var(--space-l);
  line-height: var(--line-height-heading);

  &:before {
    content: "";
    position: relative;
    top: 13px;
    display: inline-block;
    flex-shrink: 0;
    width: 10px;
    height: 24px;
    margin-right: 16px;
    background: var(--color-fg-primary);
    transform: skew(-35deg);
  }
}

h1,
.title--h1,
.content-title {
  font-family: var(--font-family-heading);
  color: var(--color-heading);
  font-size: var(--font-size-h1);

  /* Responsive.
     ========================================================================== */
  @media screen and (max-width: 48em) {
    font-size: var(--font-size-h2);
  }
}

h2,
.title--h2 {
  font-family: var(--font-family-heading);
  color: var(--color-heading);
  font-size: var(--font-size-h2);

  &:before {
    top: 7px;
  }
}

h3,
.title--h3 {
  font-family: var(--font-family-heading);
  color: var(--color-heading);
  font-size: var(--font-size-h3);

  &:before {
    top: 8px;
  }
}

h4,
.title--h4 {
  color: var(--color-heading);
  font-size: var(--font-size-h4);

  &:before {
    top: 8px;
  }
}

/* ==========================================================================
   Dataviz.
   ========================================================================== */
.title--dataviz {
  margin: 0;
  color: var(--color-fg-primary);
}
