/* ==========================================================================
   Includes
   ========================================================================== */
@import "normalize";
@import "colors";
@import "icons";
@import "highlight";
@import "utilities";
$breakpoint-large: 960px;
$breakpoint-medium: 640px;
$breakpoint-small: 480px;
$inner: calc(64rem + 8vw);
/* ==========================================================================
   Basics
   ========================================================================== */
html {
  font-size: 62.5%;
  overflow-x: hidden;
}

.menu-active body,
html.menu-active {
  overflow-y: hidden;
}

body {
  font: 400 1em / 1.5em var(--fira-sans-font);
  font-family: var(--fira-sans-font);
  color: $color-text-primary;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: #fff;
  @media (prefers-color-scheme: dark) {
    background: $color-background-dark;
    color: $color-text-primary-dark;
  }
}

button,
input,
select,
textarea {
  transition: all ease-out 0.2s;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  min-width: 320px;
  font-size: 2em;
  height: 5rem;
  margin: 0.5rem 0;
  padding: 0 2rem;
  border-radius: 5rem;
  border: 1px solid #e1e3e6;
  border-top-color: rgb(225, 227, 230);
  border-right-color: rgb(225, 227, 230);
  border-bottom-color: rgb(225, 227, 230);
  border-left-color: rgb(225, 227, 230);
  background: #f7f8fa;
  box-sizing: border-box;
  box-shadow: none !important;
  outline: 0 !important;
  @media (prefers-color-scheme: dark) {
    border-color: $color-border-dark;
    background: $color-background-dark;
  }

  &:focus,
  &:hover {
    border-color: $color-primary-active;
  }
}

.form-content {
  label {
    display: block;
    padding-left: 1rem;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }

  textarea {
    min-width: 320px;
    font-size: 2em;
    margin: 0.5rem 0;
    padding: 1.2rem 1.2rem;
    line-height: 1.2;
    border-radius: 2rem;
    border: 1px solid #e1e3e6;
    border-top-color: rgb(225, 227, 230);
    border-right-color: rgb(225, 227, 230);
    border-bottom-color: rgb(225, 227, 230);
    border-left-color: rgb(225, 227, 230);
    background: #f7f8fa;
    box-sizing: border-box;
    box-shadow: none !important;
    outline: 0 !important;
    @media (prefers-color-scheme: dark) {
      border-color: $color-border-dark;
      background: $color-background-dark;
    }

    &:focus,
    &:hover {
      border-color: $color-primary-active;
    }
  }

  button {
    min-width: 320px;
    display: inline-block;
    font-size: 2em;
    margin-left: 0em;
    margin-top: 2rem;
    padding: 0 2rem;
    font-weight: var(--fira-sans-font-semibold);
    color: #fff;
    background: $color-primary;
    border: 0;
    appearance: none;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    border-radius: 4em;
    height: 5rem;
    max-width: fit-content;

    &:focus,
    &:hover {
      background: $color-primary-active;
    }
  }
}

.subscribe-form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem;

  form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .subscribe-title {
      font-size: 4em;
      line-height: 1.25em;
      text-align: center;
      margin: 0em;
    }

    .subscribe-description {
      font-size: 2rem;
      line-height: 3rem;
      font-family: var(--cardo-font);
      margin: 2rem auto;
      text-align: center;
    }
  }

  button {
    display: inline-block;
    font-size: 2em;
    margin: 0.5rem 2rem;
    padding: 0 2rem;
    font-weight: var(--fira-sans-font-semibold);
    color: #fff;
    background: $color-primary;
    border: 0;
    appearance: none;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    border-radius: 4em;
    height: 5rem;
    max-width: fit-content;
    &:focus,
    &:hover {
      background: $color-primary-active;
    }
  }

  input {
    text-align: center;
  }
}

.post-content {
  a {
    color: inherit;
    text-decoration: none;
    font-weight: var(--fira-sans-font-normal);
    box-shadow: inset 0 -2px 0 $color-primary;
    transition: all ease-out 0.1s;

    &:focus,
    &:hover {
      box-shadow: inset 0 -3px 0 $color-primary-active;
    }
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.25em;
    margin: 0 0 4rem;
    text-rendering: optimizeLegibility;
    color: #000;
    @media (prefers-color-scheme: dark) {
      color: #fff;
    }
  }

  h1 {
    font-size: 4rem;
    text-indent: -1px;
  }

  h2 {
    font-size: 3rem;
    text-indent: -1px;
  }

  h3 {
    font-size: 2.4rem;
  }

  h4 {
    font-size: 2rem;
  }

  h5,
  h6 {
    font-size: 2rem;
    font-weight: var(--fira-sans-font-semibold);
  }

  h1 a,
  h2 a,
  h3 a,
  h4 a,
  h5 a,
  h6 a {
    font-weight: inherit;
  }

  p {
    font-family: var(--cardo-font);
    margin: 0 0 4rem;
  }

  ol,
  ul {
    font-family: var(--cardo-font);
    margin: 0 0 4rem;
    padding-left: 2em;
    box-sizing: border-box;
  }

  ul {
    list-style: none;
  }

  li {
    position: relative;
  }

  ol > li:before,
  ul > li:before {
    position: absolute;
    width: 1.5em;
    margin-left: -2em;
    font-size: 1em;
    font-weight: var(--fira-sans-font-semibold);
    line-height: 1.5em;
    text-align: right;
    color: $color-primary;
    font-family: var(--fira-sans-font);
  }

  ul > li:before {
    margin-top: -1px;
    content: "—";
  }

  ol {
    list-style-type: none;
    counter-reset: item;
  }

  ol > li:before {
    content: counter(item) ". " !important;
    counter-increment: item;
  }

  ol ol,
  ol ul,
  ul ol,
  ul ul {
    padding-left: 30px;
    margin: 15px 0;
  }

  hr {
    display: block;
    height: 1px;
    margin: 0 0 4rem;
    padding: 0;
    background: $color-border;
    border: 0;
    width: 100%;
    @media (prefers-color-scheme: dark) {
      background: $color-border-dark;
    }
  }

  blockquote {
    font-family: var(--cardo-font);
    margin: 0 0 4rem;
    padding: 0.25em 1em;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-left: 0.25em solid $color-primary;
    font-style: italic;
    font-weight: var(--cardo-font-normal);
  }

  blockquote * {
    margin: 0 0 1em;
    font-family: inherit;
    color: inherit;
  }

  blockquote *:first-child {
    margin-top: 0;
  }

  blockquote *:last-child {
    margin-bottom: 0;
  }

  em,
  i {
    font-style: italic;
  }

  b,
  strong {
    font-weight: var(--fira-sans-font-bold);
    @media (prefers-color-scheme: dark) {
      color: $color-neutral-80;
    }
  }

  small {
    font-size: 0.9em;
  }

  dl {
    font-family: var(--cardo-font);
    margin: 0 0 4rem;
    padding-left: 30px;
  }

  dl dt {
    font-size: 0.75em;
    line-height: 1.25em;
    font-weight: var(--fira-sans-font-bold);
    margin-bottom: 0.33334em;
  }

  dl dt:before {
    content: "";
    position: absolute;
    width: 1em;
    height: 1px;
    margin-left: -30px;
    margin-top: 0.5em;
    background: $color-neutral-80;
  }

  dl dd {
    margin-left: 0;
    margin-bottom: 1em;
  }

  mark {
    background-color: $color-yellow-100;
  }

  code,
  tt {
    position: relative;
    margin: 0 1px;
    padding: 4px 8px;
    font-family: monospace, sans-serif;
    font-size: 0.75em;
    background: $color-background;
    border: 1px solid $color-border;
    top: -2px;
    white-space: pre-wrap;
    @media (prefers-color-scheme: dark) {
      background: $color-background-dark;
      border-color: $color-border-dark;
    }
  }

  pre {
    position: relative;
    margin: 0 0 4rem;
    padding: 1em;
    overflow: hidden;
    font-family: monospace, sans-serif;
    white-space: pre;
    background: $color-background;
    border: 1px solid $color-border;
    box-sizing: border-box;
    @media (prefers-color-scheme: dark) {
      background: $color-background-dark;
      border-color: $color-border-dark;
    }
  }

  pre .lines {
    position: absolute;
    width: 2.66667em;
    height: 100%;
    left: 0;
    top: 0;
    padding: 1.33334em 0;
    border-right: 1px solid $color-border;
    color: $color-text-secondary;
    font-size: 0.75em;
    line-height: 2em;
    text-align: right;
    box-sizing: border-box;
    background: $color-background;
    user-select: none;
    -webkit-user-select: none;
    @media (prefers-color-scheme: dark) {
      background: $color-background-dark;
      border-color: $color-border-dark;
    }
  }

  pre .lines .line {
    display: block;
    padding-right: 0.33334em;
  }

  pre code,
  pre tt {
    display: block;
    position: static;
    top: auto;
    margin: -1.33334em -1.33334em -1.33334em 1.33334em;
    padding: 1.33334em;
    overflow-x: auto;
    font-size: 0.75em;
    line-height: 2em;
    white-space: pre;
    background: transparent;
    border: none;
    vertical-align: inherit;
  }

  pre code.language-text {
    margin-left: -1.33334em;
  }

  kbd {
    display: inline-block;
    margin-bottom: 0.5em;
    padding: 1px 8px;
    border: $color-border 1px solid;
    text-shadow: #fff 0 1px 0;
    font-size: 0.9em;
    font-weight: bold;
    background: $color-background;
    border-radius: 4px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 1px 0 0 #fff inset;
    @media (prefers-color-scheme: dark) {
      background: $color-background-dark;
      border-color: $color-border-dark;
    }
  }

  table {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 0 4rem;
    border: 1px solid $color-border;
    background: $color-background;
    @media (prefers-color-scheme: dark) {
      border-color: $color-border-dark;
      background: $color-background-dark;
    }

    td,
    th {
      position: relative;
      padding: 1.5rem;
      font-size: 0.75em;
      line-height: 1.33334em;
      border: 1px solid $color-border;
      @media (prefers-color-scheme: dark) {
        border-color: $color-border-dark;
      }
    }

    th {
      text-align: left;
      font-weight: var(--fira-sans-font-semibold);
      letter-spacing: 1px;
      font-size: 0.75em;
      line-height: 1.33334em;
      color: $color-text-secondary;
    }
  }

  figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 0 4rem;
  }

  .fluid-width-video-wrapper {
    margin: 0 0 4rem;
  }
}
/* ==========================================================================
   KG Cards
   ========================================================================== */
.post-content {
  figure figcaption {
    position: relative;
    color: $color-text-secondary;
    max-width: $inner;
    margin: auto;
    font-size: 0.75em;
    line-height: 2em;
    padding: 1rem 0;
    text-align: center;

    &:after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      height: 1px;
      right: 0;
      background: $color-border;
      @media (prefers-color-scheme: dark) {
        background: $color-border-dark;
      }
    }

    a {
      box-shadow: inset 0 -1px 0 $color-border;
      @media (prefers-color-scheme: dark) {
        box-shadow: inset 0 -1px 0 $color-border-dark;
      }

      &:focus,
      &:hover {
        box-shadow: inset 0 -2px 0 $color-border;
        @media (prefers-color-scheme: dark) {
          box-shadow: inset 0 -2px 0 $color-border-dark;
        }
      }
    }
  }
  // KG Image
  .kg-image-card {
    margin: 0 0 4rem;
    max-width: none !important;

    &.kg-width-wide {
      max-width: calc(72rem + 24vw) !important;
      min-width: 100%;
      width: calc(100vw - 4rem);
    }

    &.kg-width-full {
      max-width: none;
      width: 100vw;
      margin-top: 2em;
    }

    .kg-image {
      margin: 0 auto;
    }

    .kg-image-full + figcaption {
      margin-bottom: 1.33334em;
    }
  }
  // KG Gallery
  .kg-gallery-card {
    margin: 0 0 4rem;
    max-width: calc(72rem + 24vw) !important;
    min-width: 100%;
    width: calc(100vw - 4rem);
  }

  .kg-gallery-container {
    display: flex;
    flex-direction: column;
  }

  .kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .kg-gallery-image img {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
  }

  .kg-gallery-row:not(:first-of-type) {
    margin: 0.75em 0 0;
  }

  .kg-gallery-image:not(:first-of-type) {
    margin: 0 0 0 0.75em;
  }
  // KG Embed
  .kg-embed-card {
    margin: 0 0 4rem;

    > * {
      margin-left: auto;
      margin-right: auto;
    }
  }
  // KG Code
  .kg-code-card {
    min-width: 100%;
    margin: 0 0 4rem;
  }

  .kg-code-card pre {
    margin: 0;
  }
  // KG Bookmark
  .kg-bookmark-card {
    width: 100%;
    margin: 0 0 4rem;
  }

  .kg-bookmark-container {
    display: flex;
    text-decoration: none;
    min-height: 8em;
    background: $color-background;
    border: 1px solid $color-border;
    box-shadow: none !important;
    overflow: hidden;
    @media (prefers-color-scheme: dark) {
      background: $color-background-dark;
      border-color: $color-border-dark;
    }
  }

  .kg-bookmark-content {
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-start;
    justify-content: start;
    padding: 1.5em;
    color: $color-text-secondary;
    @media (prefers-color-scheme: dark) {
      color: $color-text-secondary-dark;
    }
  }

  .kg-bookmark-title {
    color: $color-text-primary;
    font-size: 0.75em;
    line-height: 1.66667em;
    font-weight: var(--fira-sans-font-bold);
    letter-spacing: 0.5px;
    @media (prefers-color-scheme: dark) {
      color: $color-text-primary-dark;
    }
  }

  .kg-bookmark-description {
    display: -webkit-box;
    font-size: 0.75em;
    line-height: 1.66667em;
    font-weight: var(--fira-sans-font-normal);
    margin-top: 0.33334em;
    max-height: 3.33334em;
    overflow-y: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .kg-bookmark-thumbnail {
    position: relative;
    min-width: 33%;
    max-height: 100%;
  }

  .kg-bookmark-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .kg-bookmark-metadata {
    text-rendering: optimizeLegibility;
    display: flex;
    align-items: center;
    font-size: 0.75em;
    line-height: 1.66667em;
    color: $color-text-primary;
    font-weight: var(--fira-sans-font-normal);
    margin-top: 1em;
    flex-wrap: wrap;
    @media (prefers-color-scheme: dark) {
      color: $color-text-primary-dark;
    }
  }

  .kg-bookmark-icon {
    width: 1.33334em;
    margin: 0 0.75em 0 0;
  }

  .kg-bookmark-author:after {
    content: "•";
    margin: 0 0.33334em;
  }

  .kg-bookmark-publisher {
    color: $color-primary;
  }
  @media (max-width: 640px) {
    .kg-bookmark-container {
      flex-direction: column;
    }

    .kg-bookmark-thumbnail {
      order: 1;
      width: 100%;
      min-height: 160px;
    }

    .kg-bookmark-thumbnail img {
      border-radius: 3px 3px 0 0;
    }

    .kg-bookmark-content {
      order: 2;
    }
  }
}
/* ==========================================================================
    Misc
    ========================================================================== */
.clear {
  clear: both;
}

.hidden {
  position: fixed;
  opacity: 0;
  height: 0.25rem;
}

@keyframes fadein {
  0% {
    opacity: 0.2;
  }

  100% {
    opacity: 0.9;
  }
}

.avatar {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 2px solid $color-border;
  background: $color-border;
  box-sizing: border-box;
  @media (prefers-color-scheme: dark) {
    border-color: $color-border-dark;
    background: $color-border-dark;
  }

  &:after,
  &:before {
    content: "";
    position: absolute;
    z-index: 1;
    width: 50%;
    height: 50%;
    bottom: 32.5%;
    left: 25%;
    border-radius: 100%;
    background: $color-background;
    box-sizing: border-box;
    @media (prefers-color-scheme: dark) {
      background: $color-background-dark;
    }
  }

  &:after {
    width: 80%;
    bottom: -25%;
    left: 10%;
  }

  img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* ==========================================================================
   Header
   ========================================================================== */
.blog-header {
  position: relative;
  padding-top: calc(16rem + 4vw);

  &.has-cover {
    padding-top: calc(24rem + 8vw);
    color: #fff;
    background: #000;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

    &:after {
      display: none;
    }
  }

  .blog-box {
    position: relative;
    z-index: 10;
    padding-bottom: calc(4rem + 2vw);
    text-align: center;
    border-bottom: 1px solid $color-border;
    @media (prefers-color-scheme: dark) {
      border-color: $color-border-dark;
    }
  }

  &.has-cover .blog-box {
    border: none;
    padding-bottom: calc(8rem + 4vw);
  }
}

.blog-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 5;
  // background: no-repeat scroll center center / cover #000;
  background: no-repeat scroll center center / cover white;
  animation: 0.5s ease-in forwards fadein;
  display: flex;
  align-items: center;

  @media (prefers-color-scheme: dark) {
    background: no-repeat scroll center center / cover #000;
  }

  &:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 66.666%;
    left: 0;
    bottom: 0;
    z-index: 8;
    background: -webkit-linear-gradient(
      top,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.333) 100%
    );
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.333) 100%
    );
  }

  img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 6;
    object-fit: cover;
  }
}

.blog-name {
  display: block;
  margin: 0;
  padding: 0;
  font-weight: var(--fira-sans-font-bold);
  font-size: 6em;
  line-height: 1em;
  text-decoration: none;
  color: #000;
  @media (prefers-color-scheme: dark) {
    color: #fff;
  }
}

.has-cover .blog-name {
  color: #fff;
}

.blog-description {
  font-family: var(--cardo-font);
  display: block;
  margin-top: 1rem;
  padding: 0;
  font-size: 3em;
  line-height: 1.33334em;
  color: $color-text-secondary;
  @media (prefers-color-scheme: dark) {
    color: $color-text-secondary-dark;
  }
}

.has-cover .blog-description {
  color: #fff;
}

.archive {
  position: relative;
  z-index: 10;

  &.archive-box {
    padding-bottom: calc(4rem + 2vw);
    border-bottom: 1px solid $color-border;
    @media (prefers-color-scheme: dark) {
      border-color: $color-border-dark;
    }
  }

  .archive-info {
    display: flex;
    margin-bottom: 2rem;
    font-size: 2em;
    line-height: 1em;

    .archive-type {
      color: $color-primary;
    }

    .archive-count {
      position: relative;
      margin-left: 3rem;
      color: $color-text-secondary;

      &:after {
        content: "";
        position: absolute;
        left: -2rem;
        top: 50%;
        width: 1rem;
        height: 1px;
        background: $color-neutral-80;
      }
    }
  }

  .archive-title {
    font-size: 4em;
    line-height: 1em;
    margin: 1rem 0;
    color: #000;
    @media (prefers-color-scheme: dark) {
      color: #fff;
    }
  }

  .archive-description {
    display: block;
    font-size: 2em;
    line-height: 1.5em;
    margin: 1rem 0;
    font-family: var(--cardo-font);
    color: $color-text-secondary;
    @media (prefers-color-scheme: dark) {
      color: $color-text-secondary-dark;
    }
  }

  .archive-links {
    display: block;
    font-size: 2em;
    line-height: 1.5em;
    margin-top: 1rem;

    a {
      color: $color-primary;
      transition: color linear 0.1s;

      span {
        display: none;
      }

      &:focus,
      &:hover {
        color: $color-primary-active;
      }
    }
  }

  &.archive-search {
    border: 0;
  }

  &.archive-author {
    padding-left: 16rem;
    @media only screen and (max-width: $breakpoint-medium) {
      padding-left: 0;
      padding-right: 10rem;
    }

    .archive-avatar {
      position: absolute;
      top: 0;
      left: 2rem;
      width: 10rem;
      height: 10rem;
      border-radius: 8rem;
      overflow: hidden;
      @media only screen and (max-width: $breakpoint-medium) {
        left: auto;
        right: 0;
        top: 2rem;
        width: 8rem;
        height: 8rem;
      }
    }
  }

  &.archive-tag {
  }
}

.has-cover {
  .archive {
    &.archive-box {
      border: none;
    }

    .archive-info span {
      color: #fff;
    }

    .archive-title {
      color: #fff;
    }

    .archive-description {
      color: rgba(255, 255, 255, 0.8);
    }

    .archive-links a {
      color: rgba(255, 255, 255, 0.8);

      &:focus,
      &:hover {
        color: #fff;
      }
    }
  }
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  padding-right: 0;
}

.inner {
  max-width: $inner;
  margin: 0 auto;
  padding: 0 8rem;
  @media only screen and (max-width: $breakpoint-medium) {
    padding: 0 4rem;
    max-width: 100%;
  }
}
/* ==========================================================================
   Search
   ========================================================================== */
#search {
  position: fixed;
  z-index: 500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  background: $color-background;
  display: none;
  @media (prefers-color-scheme: dark) {
    background: $color-background-dark;
  }
  @media only screen and (max-width: $breakpoint-medium) {
    display: block;
    transition: all ease-out 0.3s;
    transform: translate3d(0, 100%, 0);
    border-top: 1px solid $color-border;
    @media (prefers-color-scheme: dark) {
      border-color: $color-border-dark;
    }
  }

  #results {
    padding-bottom: calc(12rem + 8vw);
  }
}

.search-active {
  overflow-y: hidden;

  #search {
    display: block;
    @media only screen and (max-width: $breakpoint-medium) {
      transform: translate3d(0, 0, 0);
    }
  }
}

.search {
  padding: 2rem 0;
  display: flex;

  input[type="text"] {
    font-size: 2em;
    width: 100%;
    height: 5rem;
    margin: -0.5rem 0;
    padding: 0 2rem;
    border-radius: 5rem;
    border: 1px solid $color-border;
    background: $color-background;
    box-sizing: border-box;
    box-shadow: none !important;
    outline: 0 !important;
    @media (prefers-color-scheme: dark) {
      border-color: $color-border-dark;
      background: $color-background-dark;
    }

    &:focus,
    &:hover {
      border-color: $color-primary-active;
    }
  }

  input[type="submit"] {
    appeareance: none;
    background: none;
    border: 0;
    display: none;
  }
}

.search-close {
  position: fixed;
  z-index: 600;
  top: 0;
  right: 0;
  width: 4rem;
  height: 4rem;
  margin: 2rem;
  border: 1px solid $color-neutral-80;
  border-radius: 4rem;
  box-sizing: border-box;
  cursor: pointer;
  transition: all ease-out 0.1s;
  @media (prefers-color-scheme: dark) {
    border-color: $color-neutral-60;
  }

  &:after,
  &:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20%;
    width: 60%;
    height: 2px;
    margin-top: -1px;
    border-radius: 2px;
    background: $color-neutral-60;
    transition: all ease-out 0.1s;
    @media (prefers-color-scheme: dark) {
      background: $color-neutral-80;
    }
  }

  &:after {
    transform: rotate(45deg);
  }

  &:before {
    transform: rotate(-45deg);
  }

  &:focus,
  &:hover {
    border-color: $color-primary-active;

    &:after,
    &:before {
      background: $color-primary-active;
    }
  }
}
/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 400;
  transition: all ease-out 0.3s;
  @media only screen and (max-width: $breakpoint-medium) {
    transform: translate3d(0, -100%, 0);
  }
}

.menu-active .nav-header {
  transform: translate3d(0, 0, 0);
}

.nav-close {
  position: fixed;
  z-index: 350;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.2;
  display: none;
  @media (prefers-color-scheme: dark) {
    opacity: 0.4;
  }
}

.menu-active .nav-close {
  @media only screen and (max-width: $breakpoint-medium) {
    display: block;
  }
}

.nav-header .nav-wrapper-control {
  position: absolute;
  z-index: 500;
  left: 0;
  top: 100%;
  width: 100%;
  cursor: pointer;
  display: none;
  color: $color-text-secondary;
  border-top: 1px solid transparent;
  box-sizing: border-box;
  transition: all linear 0.1s;
  @media (prefers-color-scheme: dark) {
    color: $color-text-secondary-dark;
  }
  @media only screen and (max-width: $breakpoint-medium) {
    display: block;
  }

  .inner {
    display: flex;
    justify-content: space-between;
  }

  a {
    position: relative;
    display: block;
    width: 100%;
    padding: 2rem 0;
    font-size: 2em;
    line-height: 2rem;
    color: inherit;
    transition: all ease-out 0.1s;
    text-decoration: none;

    i {
      display: inline-block;
      width: 4rem;
    }

    &.nav-search {
      width: auto;
      text-align: right;

      span {
        display: none;
      }
    }

    &:focus,
    &:hover {
      color: $color-text-primary;
      @media (prefers-color-scheme: dark) {
        color: $color-text-primary-dark;
      }
    }
  }
}

.cover-active .nav-header .nav-wrapper-control {
  color: #fff;
}

.menu-active .nav-header .nav-wrapper-control {
  background: $color-neutral-15;
  color: $color-text-secondary;
  border-color: $color-border-dark;
  @supports (-webkit-backdrop-filter: blur(2rem)) {
    background: rgba(34, 36, 38, 0.9);
    -webkit-backdrop-filter: blur(2rem);
  }

  a {
    &:focus,
    &:hover {
      color: $color-text-primary-dark;
    }
  }
}

.nav-header .nav-wrapper {
  display: flex;
  max-height: calc(100vh - 6rem);
  padding: 2rem 4rem;
  overflow-y: auto;
  @media only screen and (max-width: $breakpoint-medium) {
    background: $color-neutral-15;
    flex-direction: column;
    @supports (-webkit-backdrop-filter: blur(2rem)) {
      background: rgba(34, 36, 38, 0.9);
      -webkit-backdrop-filter: blur(2rem);
    }
  }
}

.nav-header .logo {
  margin-right: 3rem;
  @media only screen and (max-width: $breakpoint-medium) {
    display: none;
  }

  a {
    display: block;
    height: 4rem;
    padding: 0;

    img {
      display: block;
      width: auto;
      height: 4rem;
    }
  }
}

.nav-header ul {
  position: relative;
  display: flex;
  width: 100%;
  margin: auto;
  padding: 0;
  list-style: none;
  @media only screen and (max-width: $breakpoint-medium) {
    flex-direction: column;
    flex-shrink: 0;
    padding: 2rem 0;
  }

  &:last-child {
    justify-content: flex-end;
    @media only screen and (max-width: $breakpoint-medium) {
      //display: none;
      justify-content: space-between;
    }
  }
}

.nav-header li {
  position: relative;
  margin-right: 3rem;

  .active {
    span:before {
      position: absolute;
      content: "";
      width: 100%;
      height: 3px;
      left: 0;
      top: 0;
      padding: 0 1rem;
      margin-left: -1rem;
      margin-top: -2rem;
      background: $color-primary;
      @media only screen and (max-width: $breakpoint-medium) {
        left: 0;
        top: 50%;
        width: 1.5rem;
        height: 2px;
        margin-left: 6px;
        margin-top: -1px;
        border-radius: 2px;
        padding: 0;
      }
    }

    span {
      color: $color-neutral-25;
      font-weight: var(--fira-sans-font-semibold);
      @media (prefers-color-scheme: dark) {
        color: $color-neutral-90;
      }
      @media only screen and (max-width: $breakpoint-medium) {
        color: #fff;
      }
    }
  }

  a {
    display: block;
    padding: 1rem 0;
    font-size: 1.5em;
    line-height: 2rem;
    color: $color-neutral-60;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
    font-weight: var(--fira-sans-font-normal);
    cursor: pointer;
    transition: color linear 0.1s;
    @media only screen and (max-width: $breakpoint-medium) {
      font-size: 2em;
      padding-left: 4rem;

      &:before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 1.5rem;
        height: 2px;
        margin-left: 6px;
        margin-top: -1px;
        border-radius: 2px;
        background: $color-neutral-25;
      }
    }

    &:focus,
    &:hover {
      color: $color-neutral-25;
      @media (prefers-color-scheme: dark) {
        color: $color-neutral-90;
      }
      @media only screen and (max-width: $breakpoint-medium) {
        color: $color-neutral-80;
      }
    }
  }

  &.nav-facebook,
  &.nav-rss,
  &.nav-search,
  &.nav-subscribe,
  &.nav-twitter {
    margin-right: 1.5rem;

    a {
      font-size: 1.75em;
    }

    span {
      display: none;
    }
  }

  &:last-child {
    margin-right: 0;
  }
}

.cover-active {
  .nav-wrapper-control a {
    color: rgba(255, 255, 255, 0.8);

    &:focus,
    &:hover {
      color: #fff;
    }
  }

  .nav-header li {
    a {
      @media only screen and (min-width: $breakpoint-medium) {
        color: rgba(255, 255, 255, 0.8);
      }

      &:focus,
      &:hover {
        @media only screen and (min-width: $breakpoint-medium) {
          color: #fff;
        }
      }
    }

    &.active a {
      @media only screen and (min-width: $breakpoint-medium) {
        color: #fff;
      }
    }
  }
}
/* ==========================================================================
   Reading Progress
   ========================================================================== */
.progress-container {
  position: fixed;
  width: 100%;
  height: 4px;
  left: 0;
  top: 0;
  z-index: 1000;
  background: transparent;
  transition: all ease-out 0.2s;

  &.complete {
    transform: translateY(-3px);
  }
}

.progress-bar {
  display: block;
  width: 0;
  height: 3px;
  background: $color-primary;
}
/* ==========================================================================
   Footer
   ========================================================================== */
.nav-footer {
  position: relative;
  z-index: 20;
  padding-bottom: 4rem;
  margin-top: auto;

  .inner {
    max-width: none;
    padding: 0 4rem;
  }

  hr {
    display: block;
    height: 1px;
    margin: 3rem 0 4rem;
    padding: 0;
    background: $color-border;
    border: 0;
    width: 100%;
    @media (prefers-color-scheme: dark) {
      background: $color-border-dark;
    }
  }

  .credits {
    display: flex;
    justify-content: center !important;
    margin-bottom: 0;
  }
}

.nav-footer .nav-wrapper {
  display: flex;
  padding: 0 4rem;
  @media only screen and (max-width: $breakpoint-medium) {
    flex-direction: column;
    text-align: center;
  }
}

.side-nav.side-nav-social {
  @media only screen and (max-width: $breakpoint-medium) {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    li {
      a {
        padding-left: 0;
        &:before {
          width: 0;
        }
      }
    }
  }
}

.nav-footer ul {
  position: relative;
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  margin-bottom: 0;
  @media only screen and (max-width: $breakpoint-medium) {
    margin-top: 1rem;
    justify-content: center;
    flex-direction: column;
    li {
      margin-right: 0;
      text-align: center;
      margin-bottom: 1.5rem;
    }
  }
}

.nav-footer li {
  position: relative;
  margin-right: 3rem;

  &.active a {
    color: $color-neutral-25;
    font-weight: var(--fira-sans-font-semibold);
    @media (prefers-color-scheme: dark) {
      color: $color-neutral-90;
    }
  }

  a {
    display: block;
    font-size: 1.5em;
    line-height: 2rem;
    color: $color-neutral-60;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
    font-weight: var(--fira-sans-font-normal);
    cursor: pointer;

    &:focus,
    &:hover {
      color: $color-neutral-25;
      @media (prefers-color-scheme: dark) {
        color: $color-neutral-90;
      }
    }
  }

  &:last-child {
    margin-right: 0;
  }
}

.nav-copy {
  display: block;
  width: 100%;
  font-size: 1.5em;
  line-height: 2rem;
  color: $color-text-secondary;
  @media (prefers-color-scheme: dark) {
    color: $color-text-secondary-dark;
  }
  @media only screen and (max-width: $breakpoint-medium) {
    margin-bottom: 1rem;
  }
}

.nav-credits {
  flex-shrink: 0;
  display: block;
  font-size: 1.5em;
  line-height: 2rem;
  color: $color-text-secondary;
  @media (prefers-color-scheme: dark) {
    color: $color-text-secondary-dark;
  }

  a {
    color: inherit;
    text-decoration: none;
    font-weight: var(--fira-sans-font-semibold);
  }
}
/* ==========================================================================
   Index
   ========================================================================== */
.container {
  position: relative;

  .post .post-box {
    padding-top: calc(4rem + 2vw);
    padding-bottom: calc(4rem + 2vw);
    border-bottom: 1px solid $color-border;
    @media (prefers-color-scheme: dark) {
      border-color: $color-border-dark;
    }
  }

  #results .post .post-box {
    border-top: 1px solid $color-border;
    @media (prefers-color-scheme: dark) {
      border-color: $color-border-dark;
    }
  }
}

.container .post.featured .post-title:after {
  position: absolute;
  width: 4rem;
  height: 4rem;
  left: -4rem;
  top: 0;
  font-family: "icon";
  font-size: 0.5em;
  font-style: normal;
  font-weight: normal;
  content: "\e806";
  color: $color-yellow-100;
  text-align: center;
}
/* ==========================================================================
   Post
   ========================================================================== */
.post-header {
  position: relative;
  padding: calc(16rem + 4vw) 0 calc(2rem + 2vw);
}

.post-header.has-cover {
  padding: calc(16rem + 8vw) 0 calc(4rem + 6vw);
  margin-bottom: calc(4rem + 2vw);
  background: #000;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.post-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 5;
  background: no-repeat scroll center center / cover #000;
  animation: 0.5s ease-in forwards fadein;
  display: flex;
  align-items: center;

  img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 6;
    object-fit: cover;
  }

  &:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 66.666%;
    left: 0;
    bottom: 0;
    z-index: 8;
    background: -webkit-linear-gradient(
      top,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.333) 100%
    );
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.333) 100%
    );
  }
}

.post {
  position: relative;
  z-index: 10;
}

.post-info {
  position: relative;
  z-index: 10;
  display: flex;
  margin-bottom: 2rem;
  font-size: 2em;
  line-height: 1em;

  .post-type {
    color: $color-primary;
  }

  .post-count {
    position: relative;
    margin-left: 3rem;
    color: $color-text-secondary;

    &:after {
      content: "";
      position: absolute;
      left: -2rem;
      top: 50%;
      width: 1rem;
      height: 1px;
      background: $color-neutral-80;
    }
  }
}

.has-cover .post-info {
  .post-count {
    color: #fff;

    &:after {
      background: #fff;
    }
  }

  .post-type {
    color: #fff;
  }
}

.post-title {
  position: relative;
  z-index: 10;
  margin: 0 0 2rem;
  font-size: 4em;
  line-height: 1.25em;
  font-weight: var(--fira-sans-font-bold);
  text-indent: -1px;
  color: #000;
  @media (prefers-color-scheme: dark) {
    color: #fff;
  }

  a {
    text-decoration: none;
    color: inherit;
    font-weight: inherit;
  }
}

.post-header .post-title {
  margin: 0 0 4rem;
  font-size: 6em;
  line-height: 1.25em;
}

.has-cover .post-title {
  color: #fff;
}

.post-meta {
  font-weight: var(--fira-sans-font-normal);
  font-size: 1.5rem;
  line-height: 2rem;
  color: $color-text-secondary;
  @media (prefers-color-scheme: dark) {
    color: $color-text-secondary-dark;
  }

  a {
    display: inline-block;
    text-decoration: none;
    color: inherit;

    &:focus,
    &:hover {
      text-decoration: underline;
    }
  }
}

.post-header .post-meta {
  position: relative;
  padding-bottom: 4rem;
  z-index: 10;

  &:after {
    clear: both;
    content: "";
    display: table;
  }

  &:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 8rem;
    height: 1px;
    background: $color-border;
    @media (prefers-color-scheme: dark) {
      background: $color-border-dark;
    }
  }

  .post-meta-avatars {
    float: left;
    margin-right: 1rem;

    &:after {
      clear: both;
      content: "";
      display: table;
    }

    .post-meta-avatar {
      float: left;
      display: block;
      vertical-align: top;
      width: 4rem;
      height: 4rem;
      margin-right: -1rem;
      border-radius: 100%;

      &:last-child {
        margin-right: 0;
      }

      a {
        height: 100%;
      }
    }
  }

  .post-meta-author {
    color: $color-text-primary;
    font-weight: var(--fira-sans-font-semibold);
    margin: 0;
    @media (prefers-color-scheme: dark) {
      color: $color-text-primary-dark;
    }
  }
}

.has-cover .post-meta {
  color: rgba(255, 255, 255, 0.8);
  padding: 0;

  &:before {
    display: none;
  }

  .post-meta-avatar {
    border-color: #fff;
  }

  .post-meta-author {
    color: #fff;
  }
}

.post-excerpt {
  margin: 1em 0 0;
  font-family: var(--cardo-font);
  font-size: 2em;
  line-height: 1.5em;
}

.post-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 2rem;
  line-height: 3rem;
}

.post-content > * {
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  &:last-child {
    margin-bottom: 0;
  }

  &:first-child {
    margin-top: 0;
  }
}
/* ==========================================================================
   Post Info
   ========================================================================== */
.post-footer {
  margin: 12rem 0 6rem;

  &:after {
    clear: both;
    content: "";
    display: table;
  }
}

.post-info-label {
  margin-right: 0.75em;
  font-size: 1.5em;
  line-height: 3rem;
  font-weight: var(--fira-sans-font-normal);
  color: $color-neutral-60;
}

.post-share {
  position: relative;
  max-width: 50%;
  float: right;
  display: flex;
  @media only screen and (max-width: $breakpoint-medium) {
    max-width: none;
    float: none;
    margin-bottom: 2rem;
  }
}

.post-share a,
.post-share .copy {
  display: block;
  width: 3rem;
  height: 3rem;
  margin-right: 0.5em;
  padding: 0;
  font-size: 1.5em;
  line-height: 3rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border-radius: 2em;
  transition: all ease 0.2s;
  @media only screen and (max-width: $breakpoint-medium) {
    margin-left: 0;
    margin-right: 0.66667em;
  }

  &:focus,
  &:hover {
    background-color: $color-neutral-15;
    @media (prefers-color-scheme: dark) {
      background-color: $color-primary-active;
    }
  }
}

.post-share .copy {
  border-style: solid;
  border-color: transparent;
  background-color: $color-social-mail;
}

.post-share a:last-child {
  margin-right: 0;
}

.post-share a i {
  color: inherit;

  &:before {
    width: auto;
    height: auto;
  }
}

.post-share .twitter {
  background-color: $color-social-twitter;
}

.post-share .facebook {
  background-color: $color-social-facebook;
}

.post-share .linkedin {
  background-color: $color-social-linkedin;
}

.post-share .email {
  background-color: $color-social-mail;
}

.post-share .pinterest {
  background-color: $color-social-pinterest;
}

.post-share .whatsapp {
  background-color: $color-social-whatsapp;
}

.post-tags {
  position: relative;
  max-width: 50%;
  float: left;
  display: flex;
  flex-wrap: wrap;
  @media only screen and (max-width: 640px) {
    max-width: none;
    float: none;
    margin-bottom: 2rem;
  }
}

.post-tags a {
  display: inline-block;
  margin-right: 0.5em;
  margin-bottom: 0.5em;
  padding: 0 1.5rem;
  background: $color-primary;
  font-size: 1.5em;
  font-weight: var(--fira-sans-font-semibold);
  line-height: 3rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border-radius: 2em;
  transition: all ease 0.2s;
  box-sizing: border-box;
  white-space: nowrap;

  &:focus,
  &:hover {
    background: $color-primary-active;
  }
}
/* ==========================================================================
   Post Comments
   ========================================================================== */
.post-comments {
  position: relative;
  padding: 4rem;
  text-align: center;
  border-top: 1px solid $color-border;
  border-bottom: 1px solid $color-border;
  box-sizing: border-box;
  @media (prefers-color-scheme: dark) {
    border-color: $color-border-dark;
  }

  &.activated {
    background: $color-background;
    border: 1px solid $color-border;
    @media (prefers-color-scheme: dark) {
      background: $color-background-dark;
      border-color: $color-border-dark;
    }
  }
}

.post-comments-activate {
  display: inline-block;
  height: 4rem;
  margin: 2rem 0;
  padding: 0 2rem;
  border: 1px solid $color-neutral-80;
  font-weight: var(--fira-sans-font-semibold);
  font-size: 1.5em;
  line-height: 4rem;
  color: $color-neutral-60;
  text-align: center;
  cursor: pointer;
  transition: all ease 0.2s;
  border-radius: 2em;
  @media (prefers-color-scheme: dark) {
    border-color: $color-neutral-60;
    color: $color-neutral-80;
  }

  &:focus,
  &:hover {
    color: $color-primary-active;
    border-color: $color-primary-active;
  }
}

.activated .post-comments-activate {
  display: none;
}
/* ==========================================================================
   Post Subscribe
   ========================================================================== */
.post-subscribe {
  position: relative;
  padding: 4rem 0;
  margin: 1em 0;
  text-align: center;
  background: $color-neutral-25;
  color: $color-neutral-80;
  box-sizing: border-box;
  border-radius: 2px;

  p {
    max-width: 13.33334em;
    margin: 0 auto 1.33334em;
    font-size: 1.2em;
    line-height: 1.33334em;
  }

  .post-subscribe-form {
    display: flex;
    justify-content: center;

    .post-subscribe-input {
      width: 100%;
      font-size: 0.8em;
      height: 2.5em;
      padding: 0 0.25em 0 1.25em;
      border: 0;
      border-right: none;
      appearance: none;
      outline: none;
      box-shadow: none;
      box-sizing: border-box;
      border-radius: 4em 0 0 4em;
      color: $color-neutral-25;
    }

    .post-subscribe-button {
      display: inline-block;
      font-size: 0.8em;
      height: 2.5em;
      padding: 0 1.25em 0 1em;
      font-weight: var(--fira-sans-font-semibold);
      color: #fff;
      background: $color-neutral-60;
      border: 0;
      appearance: none;
      outline: none;
      box-shadow: none;
      box-sizing: border-box;
      border-radius: 0 4em 4em 0;

      &:focus,
      &:hover {
        background: $color-primary-active;
      }
    }
  }
}
/* ==========================================================================
   Post Comments
   ========================================================================== */
.post-nav {
  position: relative;
  margin-top: -1px;
  border-top: 1px solid $color-border;
  border-bottom: 1px solid $color-border;
  @media (prefers-color-scheme: dark) {
    border-color: $color-border-dark;
  }
}

.post-nav:after {
  position: absolute;
  content: "";
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  background: $color-border;
  z-index: 2;
  @media (prefers-color-scheme: dark) {
    background: $color-border-dark;
  }
  @media only screen and (max-width: $breakpoint-medium) {
    display: none;
  }
}

.post-nav-next,
.post-nav-prev {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 50%;
  @media only screen and (max-width: $breakpoint-medium) {
    display: block;
    width: 100%;
  }

  &:focus,
  &:hover {
    color: inherit;

    i {
      color: $color-primary-active;
    }
  }
}

.post-nav-next {
  float: left;

  .post-nav-teaser {
    padding-right: 3rem;
    @media only screen and (max-width: $breakpoint-medium) {
      padding-right: 0;
    }
  }
}

.post-nav-prev {
  float: right;

  .post-nav-teaser {
    padding-left: 3rem;
    @media only screen and (max-width: $breakpoint-medium) {
      padding-left: 0;
    }
  }
}

.post-nav-teaser {
  position: relative;
  padding: 2rem 0;
  min-height: 8rem;
  @media only screen and (max-width: $breakpoint-medium) {
    min-height: 4em;
    padding: 2em 0;

    &:after {
      position: absolute;
      content: "";
      width: 100%;
      height: 1px;
      left: 0;
      bottom: 0;
      margin-bottom: -1px;
      background: $color-border;
      z-index: 2;
      @media (prefers-color-scheme: dark) {
        background: $color-border-dark;
      }
    }
  }
}

.post-nav i {
  position: absolute;
  top: 50%;
  width: 4rem;
  height: 4rem;
  margin-top: -2rem;
  font-size: 4rem;
  line-height: 4rem;
  text-align: center;
  transition: all ease-out 0.2s;
  color: $color-border;
  @media (prefers-color-scheme: dark) {
    color: $color-border-dark;
  }

  &:before {
    margin: 0;
    width: auto;
  }
}

.post-nav-next i {
  left: 0;
  margin-left: -4rem;
}

.post-nav-prev i {
  right: 0;
  margin-right: -4rem;
}

.post-nav-title {
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 2em;
  line-height: 3rem;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #000;
  @media (prefers-color-scheme: dark) {
    color: #fff;
  }
}

.post-nav-excerpt {
  height: 5rem;
  margin: 0 0 1rem;
  font-family: var(--cardo-font);
  font-size: 1.75em;
  line-height: 2.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-nav-meta {
  margin: 0;
  font-size: 1.5em;
  line-height: 2rem;
  color: $color-text-secondary;
}
/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  position: relative;
  margin: 0;

  .pagination-box {
    padding-top: calc(2rem + 1vw);
    padding-bottom: calc(2rem + 1vw);

    &:after {
      clear: both;
      content: "";
      display: table;
    }
  }
}

.pagination a {
  position: relative;
  display: block;
  height: 4rem;
  margin: -1px 0;
  padding: 0 2rem;
  z-index: 100;
  border: 1px solid $color-neutral-80;
  font-size: 1.5em;
  line-height: 4rem;
  font-weight: var(--fira-sans-font-semibold);
  text-align: center;
  text-decoration: none;
  color: $color-neutral-60;
  transition: all ease 0.2s;
  border-radius: 4rem;
  box-sizing: border-box;
  @media (prefers-color-scheme: dark) {
    border-color: $color-neutral-60;
    color: $color-neutral-80;
  }

  &:focus,
  &:hover {
    color: $color-primary-active;
    border-color: $color-primary-active;
  }
}

.pagination .pagination-prev {
  float: right;
  padding-right: 1.5rem;
}

.pagination .pagination-next {
  float: left;
  padding-left: 1.5rem;
}

.pagination .pagination-label {
  position: relative;
  top: -1px;
  display: inline-block;
  @media only screen and (max-width: $breakpoint-small) {
    display: none;
  }
}

.pagination a i {
  position: relative;
  top: 1px;
  width: auto;
  margin: auto 4px;
  color: inherit;
  font-size: 1.33334em;
  line-height: 0.75em;

  &:before {
    position: relative;
    width: auto;
    margin: auto;
  }
}

.pagination .pagination-info {
  position: absolute;
  width: 100%;
  font-size: 1.5em;
  line-height: 4rem;
  height: 4rem;
  left: 0;
  z-index: 50;
  display: block;
  text-align: center;
  color: $color-text-secondary;
}

.extra-pagination {
  display: none;
}

.paged .extra-pagination {
  display: block;

  .pagination-box {
    border-bottom: 1px solid $color-border;
    @media (prefers-color-scheme: dark) {
      border-color: $color-border-dark;
    }
  }
}

@media screen and (max-width: 425px) {
  iframe {
    max-width: 100%;
  }
  figure img {
    max-width: 100%;
  }
}

.error-message-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  justify-content: center;
  align-items: center;

  .error-message {
    max-width: 42rem;
    padding: 1.5rem;
    @media (min-width: 1000px) {
      padding: 3rem;
    }
  }

  .error-code {
    font-size: 3.5rem;
  }

  .error-description {
    font-family: var(--cardo-font);
    font-size: 2em;
    line-height: 1.5em;
  }

  .error-link {
    display: block;
    padding: 1rem 0;
    font-size: 2em;
    line-height: 2rem;
    color: $color-primary;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: none;
    font-weight: var(--fira-sans-font-normal);
    cursor: pointer;
    transition: color linear 0.1s;

    &:focus,
    &:hover {
      text-decoration: underline;
    }
  }
}

.fb-comments iframe {
  width: 100% !important;
}
