.landing-page {
  p,
  li {
    font-family: 'mastodon-font-sans-serif', sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    margin-bottom: 12px;
    color: $ui-primary-color;
    a {
      color: $ui-highlight-color;
      text-decoration: underline;
    }
  }
  em {
    display: inline;
    margin: 0;
    padding: 0;
    font-weight: 700;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: lighten($ui-primary-color, 10%);
  }
  h1 {
    font-family: 'mastodon-font-display', sans-serif;
    font-size: 26px;
    line-height: 30px;
    font-weight: 500;
    margin-bottom: 20px;
    color: $ui-secondary-color;
    small {
      font-family: 'mastodon-font-sans-serif', sans-serif;
      display: block;
      font-size: 18px;
      font-weight: 400;
      color: $ui-base-lighter-color;
    }
  }
  h2 {
    font-family: 'mastodon-font-display', sans-serif;
    font-size: 22px;
    line-height: 26px;
    font-weight: 500;
    margin-bottom: 20px;
    color: $ui-secondary-color;
  }
  h3 {
    font-family: 'mastodon-font-display', sans-serif;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: $ui-secondary-color;
  }
  h4 {
    font-family: 'mastodon-font-display', sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: $ui-secondary-color;
  }
  h5 {
    font-family: 'mastodon-font-display', sans-serif;
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: $ui-secondary-color;
  }
  h6 {
    font-family: 'mastodon-font-display', sans-serif;
    font-size: 12px;
    line-height: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: $ui-secondary-color;
  }
  ul,
  ol {
    margin-left: 20px;
    &[type='a'] {
      list-style-type: lower-alpha;
    }
    &[type='i'] {
      list-style-type: lower-roman;
    }
  }
  ul {
    list-style: disc;
  }
  ol {
    list-style: decimal;
  }
  li > ol,
  li > ul {
    margin-top: 6px;
  }
  hr {
    border-color: rgba($ui-base-lighter-color, .6);
  }
  .container {
    width: 100%;
    box-sizing: border-box;
    max-width: 800px;
    margin: 0 auto;
    word-wrap: break-word;
  }
  .header-wrapper {
    padding-top: 15px;
    background: $ui-base-color;
    background: linear-gradient(150deg, lighten($ui-base-color, 8%), $ui-base-color);
    position: relative;
    &.compact {
      background: $ui-base-color;
      padding-bottom: 15px;
      .hero .heading {
        padding-bottom: 20px;
        font-family: 'mastodon-font-sans-serif', sans-serif;
        font-size: 16px;
        font-weight: 400;
        font-size: 16px;
        line-height: 30px;
        color: $ui-primary-color;
        a {
          color: $ui-highlight-color;
          text-decoration: underline;
        }
      }
    }
    .mascot-container {
      max-width: 800px;
      margin: 0 auto;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 100%;
    }
    .mascot {
      position: absolute;
      bottom: -14px;
      width: auto;
      height: auto;
      left: 60px;
      z-index: 3;
    }
  }
  .header {
    line-height: 30px;
    overflow: hidden;
    .container {
      display: flex;
      justify-content: space-between;
    }
    .links {
      position: relative;
      z-index: 4;
      a {
        display: flex;
        justify-content: center;
        align-items: center;
        color: $ui-primary-color;
        text-decoration: none;
        padding: 12px 16px;
        line-height: 32px;
        font-family: 'mastodon-font-display', sans-serif;
        font-weight: 500;
        font-size: 14px;
        &:hover {
          color: $ui-secondary-color;
        }
      }
      .brand {
        a {
          padding-left: 0;
          padding-right: 0;
          color: $white;
        }
        img {
          height: 32px;
          position: relative;
          top: 4px;
          left: -10px;
        }
      }
      ul {
        list-style: none;
        margin: 0;
        li {
          display: inline-block;
          vertical-align: bottom;
          margin: 0;
          &:first-child a {
            padding-left: 0;
          }
          &:last-child a {
            padding-right: 0;
          }
        }
      }
    }
    .hero {
      margin-top: 50px;
      align-items: center;
      position: relative;
      .floats {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        div {
          position: absolute;
          transition: all 0.1s linear;
          animation-name: floating;
          animation-iteration-count: infinite;
          animation-direction: alternate;
          animation-timing-function: ease-in-out;
          z-index: 2;
        }
        .float-1 {
          width: 324px;
          height: 170px;
          right: -120px;
          bottom: 0;
          animation-duration: 3s;
          background-image: url('data:image/svg+xml;utf8,');
        }
        .float-2 {
          width: 241px;
          height: 100px;
          right: 210px;
          bottom: 0;
          animation-duration: 3.5s;
          animation-delay: 0.2s;
          background-image: url('data:image/svg+xml;utf8,');
        }
        .float-3 {
          width: 267px;
          height: 140px;
          right: 110px;
          top: -30px;
          animation-duration: 4s;
          animation-delay: 0.5s;
          background-image: url('data:image/svg+xml;utf8,');
        }
      }
      .heading {
        position: relative;
        z-index: 4;
        padding-bottom: 150px;
      }
      .simple_form,
      .closed-registrations-message {
        background: darken($ui-base-color, 4%);
        width: 280px;
        padding: 15px 20px;
        border-radius: 4px 4px 0 0;
        line-height: initial;
        position: relative;
        z-index: 4;
        .actions {
          margin-bottom: 0;
          button,
          .button,
          .block-button {
            margin-bottom: 0;
          }
        }
      }
      .closed-registrations-message {
        min-height: 330px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }
    }
  }
  .about-short {
    background: darken($ui-base-color, 4%);
    padding: 50px 0 30px;
    font-family: 'mastodon-font-sans-serif', sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    color: $ui-primary-color;
    a {
      color: $ui-highlight-color;
      text-decoration: underline;
    }
  }
  .information-board {
    background: darken($ui-base-color, 4%);
    padding: 20px 0;
    .container {
      position: relative;
      padding-right: 280px + 15px;
    }
    .information-board-sections {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
    }
    .section {
      flex: 1 0 0;
      font-family: 'mastodon-font-sans-serif', sans-serif;
      font-size: 16px;
      line-height: 28px;
      color: $primary-text-color;
      text-align: right;
      padding: 10px 15px;
      span,
      strong {
        display: block;
      }
      span {
        &:last-child {
          color: $ui-secondary-color;
        }
      }
      strong {
        font-weight: 500;
        font-size: 32px;
        line-height: 48px;
      }
    }
    .panel {
      position: absolute;
      width: 280px;
      box-sizing: border-box;
      background: darken($ui-base-color, 8%);
      padding: 20px;
      padding-top: 10px;
      border-radius: 4px 4px 0 0;
      right: 0;
      bottom: -40px;
      .panel-header {
        font-family: 'mastodon-font-display', sans-serif;
        font-size: 14px;
        line-height: 24px;
        font-weight: 500;
        color: $ui-primary-color;
        padding-bottom: 5px;
        margin-bottom: 15px;
        border-bottom: 1px solid lighten($ui-base-color, 4%);
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        a,
        span {
          font-weight: 400;
          color: darken($ui-primary-color, 10%);
        }
        a {
          text-decoration: none;
        }
      }
    }
    .owner {
      text-align: center;
      .avatar {
        width: 80px;
        height: 80px;
        margin: 0 auto;
        margin-bottom: 15px;
        img {
          display: block;
          width: 80px;
          height: 80px;
          border-radius: 48px;
        }
      }
      .name {
        font-size: 14px;
        a {
          display: block;
          color: $primary-text-color;
          text-decoration: none;
          &:hover {
            .display_name {
              text-decoration: underline;
            }
          }
        }
        .username {
          display: block;
          color: $ui-primary-color;
        }
      }
    }
  }
  .features {
    padding: 50px 0;
    .container {
      display: flex;
    }
    #mastodon-timeline {
      display: flex;
      -webkit-overflow-scrolling: touch;
      -ms-overflow-style: -ms-autohiding-scrollbar;
      font-family: 'mastodon-font-sans-serif', sans-serif;
      font-size: 13px;
      line-height: 18px;
      font-weight: 400;
      color: $primary-text-color;
      width: 330px;
      margin-right: 30px;
      flex: 0 0 auto;
      background: $ui-base-color;
      overflow: hidden;
      border-radius: 4px;
      box-shadow: 0 0 6px rgba($black, 0.1);
      .column-header {
        color: inherit;
        font-family: inherit;
        font-size: 16px;
        line-height: inherit;
        font-weight: inherit;
        margin: 0;
        padding: 0;
      }
      .column {
        padding: 0;
        border-radius: 4px;
        overflow: hidden;
      }
      .scrollable {
        height: 400px;
      }
      p {
        font-size: inherit;
        line-height: inherit;
        font-weight: inherit;
        color: $primary-text-color;
        margin-bottom: 20px;
        &:last-child {
          margin-bottom: 0;
        }
        a {
          color: $ui-secondary-color;
          text-decoration: none;
        }
      }
    }
    .about-mastodon {
      max-width: 675px;
      p {
        margin-bottom: 20px;
      }
      .features-list {
        margin-top: 20px;
        .features-list__row {
          display: flex;
          padding: 10px 0;
          justify-content: space-between;
          &:first-child {
            padding-top: 0;
          }
          .visual {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            margin-left: 15px;
            .fa {
              display: block;
              color: $ui-primary-color;
              font-size: 48px;
            }
          }
          .text {
            font-size: 16px;
            line-height: 30px;
            color: $ui-primary-color;
            h6 {
              font-size: inherit;
              line-height: inherit;
              margin-bottom: 0;
            }
          }
        }
      }
    }
  }
  .extended-description {
    padding: 50px 0;
    font-family: 'mastodon-font-sans-serif', sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    color: $ui-primary-color;
    a {
      color: $ui-highlight-color;
      text-decoration: underline;
    }
  }
  .footer-links {
    padding-bottom: 50px;
    text-align: right;
    color: $ui-base-lighter-color;
    p {
      font-size: 14px;
    }
    a {
      color: inherit;
      text-decoration: underline;
    }
  }
  @media screen and (max-width: 840px) {
    .container {
      padding: 0 20px;
    }
    .information-board {
      .container {
        padding-right: 20px;
      }
      .section {
        text-align: center;
      }
      .panel {
        position: static;
        margin-top: 20px;
        width: 100%;
        border-radius: 4px;
        .panel-header {
          text-align: center;
        }
      }
    }
    .header-wrapper .mascot {
      left: 20px;
    }
  }
  @media screen and (max-width: 689px) {
    .header-wrapper .mascot {
      display: none;
    }
  }
  @media screen and (max-width: 675px) {
    .header-wrapper {
      padding-top: 0;
      &.compact {
        padding-bottom: 0;
      }
      &.compact .hero .heading {
        text-align: initial;
      }
    }
    .header .container,
    .features .container {
      display: block;
    }
    .header {
      .links {
        padding-top: 15px;
        background: darken($ui-base-color, 4%);
        a {
          padding: 12px 8px;
        }
        .nav {
          display: flex;
          flex-flow: row wrap;
          justify-content: space-around;
        }
        .brand img {
          left: 0;
          top: 0;
        }
      }
      .hero {
        margin-top: 30px;
        padding: 0;
        .floats {
          display: none;
        }
        .heading {
          padding: 30px 20px;
          text-align: center;
        }
        .simple_form,
        .closed-registrations-message {
          background: darken($ui-base-color, 8%);
          width: 100%;
          border-radius: 0;
          box-sizing: border-box;
        }
      }
    }
    .features #mastodon-timeline {
      height: 70vh;
      width: 100%;
      margin-bottom: 50px;
      .column {
        width: 100%;
      }
    }
  }
  .cta {
    margin: 20px;
  }
  &.tag-page {
    .features {
      padding: 30px 0;
      .container {
        max-width: 820px;
        #mastodon-timeline {
          margin-right: 0;
          border-top-right-radius: 0;
        }
        .about-mastodon {
          .about-hashtag {
            background: darken($ui-base-color, 4%);
            padding: 0 20px 20px 30px;
            border-radius: 0 5px 5px 0;
            .brand {
              padding-top: 20px;
              margin-bottom: 20px;
              img {
                height: 48px;
                width: auto;
              }
            }
            p {
              strong {
                color: $ui-secondary-color;
                font-weight: 700;
              }
            }
            .cta {
              margin: 0;
              .button {
                margin-right: 4px;
              }
            }
          }
          .features-list {
            margin-left: 30px;
            margin-right: 10px;
          }
        }
      }
    }
    @media screen and (max-width: 675px) {
      .features {
        padding: 10px 0;
        .container {
          display: flex;
          flex-direction: column;
          #mastodon-timeline {
            order: 2;
            flex: 0 0 auto;
            height: 60vh;
            margin-bottom: 20px;
            border-top-right-radius: 4px;
          }
          .about-mastodon {
            order: 1;
            flex: 0 0 auto;
            max-width: 100%;
            .about-hashtag {
              background: unset;
              padding: 0;
              border-radius: 0;
              .cta {
                margin: 20px 0;
              }
            }
            .features-list {
              display: none;
            }
          }
        }
      }
    }
  }
}
@keyframes floating {
  from {
    transform: translate(0, 0);
  }
  65% {
    transform: translate(0, 4px);
  }
  to {
    transform: translate(0, -0);
  }
}