/**

* Site header
*/

.site-header {

border-top: 5px solid $grey-color-dark;
border-bottom: 1px solid $grey-color-light;
min-height: $spacing-unit * 1.865;

// Positioning context for the mobile navigation icon
position: relative;

}

.site-title {

@include relative-font-size(1.625);
font-weight: 300;
line-height: $base-line-height * $base-font-size * 2.25;
letter-spacing: -1px;
margin-bottom: 0;
float: left;

&,
&:visited {
  color: $grey-color-dark;
}

}

.site-nav {

float: right;
line-height: $base-line-height * $base-font-size * 2.25;

.nav-trigger {
    display: none;
}

.menu-icon {
  display: none;
}

.page-link {
  color: $text-color-base;
  line-height: $base-line-height;

  // Gaps between nav items, but not on the last one
  &:not(:last-child) {
    margin-right: 20px;
  }
}

@include media-query($on-palm) {
  position: absolute;
  top: 9px;
  right: $spacing-unit / 2;
  background-color: $background-color-base;
  border: 1px solid $grey-color-light;
  border-radius: 5px;
  text-align: right;

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

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

    > svg path {
      fill: $grey-color-dark;
    }
  }

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

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

  .page-link {
    display: block;
    padding: 5px 10px;

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

}

/**

* Site footer
*/

.site-footer {

border-top: 1px solid $grey-color-light;
padding: $spacing-unit 0;

}

.footer-heading {

@include relative-font-size(1.125);
margin-bottom: $spacing-unit / 2;

}

.contact-list, .social-media-list {

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

}

.footer-col-wrapper {

@include relative-font-size(0.9375);
display: flex;
flex-direction: row;
justify-content: center;
color: $grey-color;
margin-left: -$spacing-unit / 2;
@extend %clearfix;

}

.footer-col {

float: left;
margin-bottom: $spacing-unit / 2;
padding-left: $spacing-unit / 2;

}

.footer-col-1 {

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

}

.footer-col-2 {

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

}

.footer-col-3 {

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

}

@include media-query($on-laptop) {

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

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

}

@include media-query($on-palm) {

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

}

.page {

padding: 0 20px;
> header {
  display: block;
  padding: 1em 0;
  margin-bottom: 1em;
  border-bottom: 1px dashed #999;

  > .title {
    margin: 0;
    font-weight: 500;
  }
  > time {
    @include time($base-font-size);
    margin-top: .5em;
  }
}

}

.post {

margin-top: 25px;
> header {
  display: block;
  margin-bottom: 1em;
  padding: 0 20px;
  .title {
    margin-bottom: .3em;
    font-weight: 400;
  }
  > time {
    @include time($small-font-size);
  }
}

}

.diary-feed {

margin-top: 40px;
>header {
  padding: 0;
}

}

.feed {

margin-top: 20px;
padding-left: 20px;

> header {
  padding-bottom: 10px;
  .title {
    display: inline;
  }
  .title p {
    display: inline;
    font-weight: 400;
    margin-right: 30px;
  }

  time {
    display: inline;
    @include time($small-font-size);
  }
}

}

@include media-query($on-palm) {

.feed {
  padding-left: 10px;

  > header {
    display: block;
    .title {
      display: block;
    }
    time {
      margin-top: 5px;
      display: block;
    }
  }
}

}