/**

* Site header
*/

.site-header {

min-height: $spacing-unit * 2;
line-height: $base-line-height * $base-font-size * 2.25;

border-top: 3px solid $accent-color;
position: relative;
padding-top: $spacing-unit;

}

.site-title {

@include relative-font-size(2.5);
font-weight: 300;
letter-spacing: -1px;
margin-bottom: 0;
float: left;
color: $accent-color;

@include media-query($on-palm) {
  padding-right: 45px;
}

}

.site-nav {

position: absolute;
top: 9px;
right: $spacing-unit / 2;
background-color: lighten($background-color, 10%);
border-radius: 7px;
text-align: right;

.nav-trigger {
  display: none;
}

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

  > svg path {
    fill: $accent-color;
  }
}

label[for="nav-trigger"] {
  display: block;
  float: right;
  width: 36px;
  height: 36px;
  z-index: 2;
  cursor: pointer;
}

input ~ .trigger {
  clear: both;
  display: none;
}

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

.page-link {
  color: $text-color;
  line-height: $base-line-height;
  display: block;
  padding: 5px 10px;

  &:hover {
    color: $accent-color;
  }

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

  margin-left: 20px;
}

@media screen and (min-width: $on-medium) {
  position: static;
  float: right;
  border: none;
  background-color: inherit;

  label[for="nav-trigger"] {
    display: none;
  }

  .menu-icon {
    display: none;
  }

  input ~ .trigger {
    display: block;
  }

  .page-link {
    display: inline;
    padding: 0;

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

}

/**

* Site footer
*/

.site-footer {

border-top: 1px solid $alt-accent-color;
padding: $spacing-unit 0;
background-color: lighten($background-color, 2%);

}

.contact-list {

list-style: none;
margin-left: 0;

}

.footer-col-wrapper {

@include relative-font-size(0.9375);
color: $accent-color;

}

.footer-col-1, .footer-col-2 {

width: calc(50% - (#{$spacing-unit} / 2));

}

.footer-col-3 {

width: calc(100% - (#{$spacing-unit} / 2));

}

@media screen and (min-width: $on-large) {

.footer-col-1 {
  width: calc(35% - (#{$spacing-unit} / 2));
}

.footer-col-2 {
  width: calc(20% - (#{$spacing-unit} / 2));
}

.footer-col-3 {
  width: calc(45% - (#{$spacing-unit} / 2));
}

}

@media screen and (min-width: $on-medium) {

.footer-col-wrapper {
  display: flex;
}

.footer-col {
  width: calc(100% - (#{$spacing-unit} / 2));
  padding: 0 ($spacing-unit / 2);

  &:first-child {
    padding-right: $spacing-unit / 2;
    padding-left: 0;
  }

  &:last-child {
    padding-right: 0;
    padding-left: $spacing-unit / 2;
  }
}

}

/**

* Page content
*/

.page-content {

padding: $spacing-unit 0;
flex: 1 0 auto;

}

.page-heading {

@include relative-font-size(2);

}

/**

* Pagination navbar
*/

.pagination {

margin-bottom: $spacing-unit;
li {
  a,
  div {
    min-width: 41px;
    text-align: center;
    box-sizing: border-box;
  }
  div {
    display: block;
    padding: $spacing-unit / 4;
    border: 1px solid transparent;

    &.pager-edge {
      color: $background-color;
      border: 1px dashed;
    }
  }
}

}

/**

* Grid helpers
*/

@media screen and (min-width: $on-large) {

.one-half {
  width: calc(50% - (#{$spacing-unit} / 2));
}

}