/**
 * Site header
 */
.site-header {
  border-top: 5px solid var(--brand-color);
  border-bottom: 1px solid var(--grey-muted);
  min-height: calc(var(--spacing-unit) * 1.865);
  position: relative;
}

.site-header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.site-title {
  font-size: calc(var(--base-font-size) * 1.625);
  font-weight: 300;
  line-height: calc(var(--base-line-height) * var(--base-font-size) * 2.25);
  letter-spacing: -1px;
  margin-bottom: 0;

  &,
  &:visited {
    color: var(--grey-prominent);
  }
}

.site-nav {
  line-height: calc(var(--base-line-height) * var(--base-font-size) * 2.25);
  display: flex;
  align-items: center;

  & .nav-trigger {
    display: none;
  }

  & .menu-icon {
    display: none;
  }

  & .page-link {
    color: var(--text-color);
    line-height: var(--base-line-height);

    &:not(:last-child) {
      margin-right: 20px;
    }
  }

  /* @media screen and (max-width: var(--on-palm)) { */
  @media screen and (max-width: 600px) {
    position: absolute;
    top: 9px;
    right: calc(var(--spacing-unit) / 2);
    background-color: var(--background-color);
    border: 1px solid var(--grey-muted);
    border-radius: 5px;
    text-align: right;
    flex-direction: column;
    z-index: 10;

    & label[for="nav-trigger"] {
      display: block;
      width: 36px;
      height: 36px;
      z-index: 2;
      cursor: pointer;
      align-self: flex-end;
    }

    & .menu-icon {
      display: block;
      width: 36px;
      height: 26px;
      line-height: 0;
      padding-top: 10px;
      text-align: center;

      & > svg {
        fill: var(--grey-prominent);
      }
    }

    & input ~ .trigger {
      display: none;
    }

    & input:checked ~ .trigger {
      display: block;
      padding-bottom: 5px;
    }

    & .page-link {
      display: block;
      padding: 5px 10px;
      margin-left: 20px;

      &:not(:last-child) {
        margin-right: 0;
      }
    }
  }
}
