//----------------------------------------------
// Post
//----------------------------------------------
.post {

  &__header {
    @extend %text-center;
    border-bottom: $border;

    blockquote {
      margin-top: 2em;

      border-top: 2px solid $color-darkergrey;
      border-bottom: 2px solid $color-darkergrey;

      color: $color-grey;
      font-style: italic;
      font-size: 100%;
    }

    a {
      color: $color-darkgrey;
      text-decoration: none;
    }

    img {
      width: 18em;
    }
  }

  &__date, &__source {
    @extend %font-header;

    color: $color-darkgrey;
    margin-top: 0.25em;
    font-size: $font-xsmall;
  }

  &__date {
    display: inline;
  }

  &__img {
    height: 18em;
    padding: 1em;

    @media (min-width: $mq-small) {
      height: 36em;
      padding: 2em;
    }

    @media (min-width: $mq-med) {
      height: calc(100vh - 3em);
      min-height: 36em;
    }

    & > * {
      position: relative;

      height: 100%;
      width: 100%;

      background-color: $color-lightgrey;
    }
  }

  &__content {
    border-top: $border;
  }

  &__source {
    margin-left: 0.5em;
    padding-left: 0.5em;
  }

  &__source:before {
    margin-right: 1em;

    content: "·";
  }

  &__social {
    @extend %flex-center;
    @extend %no-list-style;

    margin: {
      top: 2em;
      bottom: 0;
      left: 0;
    }

    @media (min-width: $mq-med) {
      margin-top: 3em;
    }

    @media (min-width: $mq-xlarge) {
      margin-top: 4em;
    }

    & > * {
      &:not(:last-child) {
        margin-right: 0.75em;
      }
    }

    a {
      font-size: 1.1em;
      color: $color-darkgrey;
    }
  }

  &__author {
    @extend %font-header;
    @extend %font-size;

    display: block;

    a {
      color: $color-white;
      transition: color 200ms ease-in-out;

      &:hover,
      &:active,
      &:focus {
        color: darken($color-white, 5);
      }
    }
  }

  &__bio {
    @extend %font-size;

    margin-bottom: 0;
  }

  &__comments {
    border-top: $border;
  }
}

//----------------------------------------------
// Jekyll
//----------------------------------------------
#markdown {
  display: flex;
  flex-direction: column;
  align-items: center;

  .post-layout &,
  #style-guide & {
    font-family: $font-post;
  }

  & > *:not(#tippin-button) {
    min-width: 100%;

    &:first-child {
      margin-top: 0;
    }

    &:last-child {
      margin-bottom: 0;
    }
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-bottom: 0.5rem;
    font-family: $font-post;
  }

  h1 {
    font-size: 2.25em;
    line-height: 1.2;
  }

  h2 {
    font-size: 2em;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.75em;
    line-height: 1.3;
  }

  h4 {
    font-size: 1.5em;
    line-height: 1.3;
  }

  h5 {
    font-size: 1.25em;
    line-height: 1.4;
  }

  h6 {
    font-size: 1.1em;
  }

  h6 + hr {

    #style-guide & {
      margin-top: 1rem;
    }
  }

  p {
    margin-bottom: 1.5rem;
    font-family: $font-post;

    font-size: 1.1em;

    @media (min-width: $mq-small) {
      font-size: 1.25em;
    }

    img {
      margin-bottom: 0;
    }
  }

  blockquote {

    p:first-child {
      &:before {
        content: "\201C";
      }
      &:after {
        content: "\201D";
      }
    }
  }

  a {
    color: $color-orange;
  }

  a:hover {
    text-decoration: underline;
  }

  hr {
    height: 1px;
    width: 100%;
    margin: {
      top: 2rem;
      bottom: 3.5rem;
    }

    border: 0;
    background-color: rgba($color-white, 0.1);
  }

  img, figure {
    text-align: center;
  }

  figure {
    margin: 2rem 0;
  }

  img[src$="#full"] {
    width: 100vw;
    max-width: none;
  }

  .flex-vid {
    margin-bottom: 1.5rem;

    iframe {
      display: block;
    }
  }
}
