.article--header {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  z-index: 0;
  min-height: 100vh;
  align-content: center;
  text-align: center;

  article {
    z-index: 10;
    color: #fff;

    * { display: block; }

    h2 {
      font-weight: bold;
      
      @media screen and (max-width: 360px) {
        font-size: 1.5rem !important;
      }
    }

    time {
      padding: 1rem 0;
    }

    span {
      display: block;
      font-style: italic;
    }

    @media screen and (min-width: $tablet) {
      padding: 0 5rem;
    }
  }

  &:after {
    content: "";
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(#000, 0.5);
  }
}

.article {
  &--content,
  &--share,
  &--comments,
  &--sep,
  &--related {
    justify-content: center;

    @media screen and (max-width: $tablet) {
      padding-left: 3rem;
      padding-right: 3rem;
    }
  }
}

.article--content {
  padding-top: 1rem;

  @for $i from 1 through 6 {
    h#{$i} {
      @extend .is-size-#{$i};
      padding-top: 1rem;
      padding-bottom: 1.25rem;
      font-weight: bold;
    }
  }

  blockquote {
    border-left: 3px solid rgba($primary, 0.25);
    padding: 1rem;
    color: rgba($text, 0.7);
    font-style: italic;
  }

  pre[class="language-*"] {
      margin: 1.5rem 0 !important;
  }

  p {
    padding-bottom: 1rem;
  }

  ul {
    list-style: disc;
    padding: 1.5rem 1rem;
    
    li { padding-bottom: 0.75rem; }
  }
}

.article--share {
  text-align: center;
  padding: 2rem 0;

  a {
    font-size: 3rem;
    padding-right: 1rem;

    &:last-child { padding-right: 0; }
  }
}

.article--comments {
  padding-bottom: 3rem;
}
