/**

* Site header
*/

.site-header {

// border-top: 5px solid $grey-color-dark;
border-bottom: 1px solid $grey-color-light;
min-height: $spacing-unit * 1.865;
line-height: $base-line-height * $base-font-size * 2.25;

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

}

.site-title {

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

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

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

}

.site-nav {

position: absolute;
top: 9px;
right: $spacing-unit / 2;
background-color: $background-color;
border: 1px solid $grey-color-light;
border-radius: 5px;
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: $grey-color-dark;
  }
}

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;

  // Gaps between nav items, but not on the last one
  &: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 $grey-color-light;
padding: $spacing-unit 0;

.for-the-record {
  color: rgba(0,0,0,.65);
  font-size: 14px;
  text-align: center;
}
a {
  text-decoration: none;
  color: gray;
}

}

.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-content {

@include relative-font-size(0.9375);
color: $grey-color;
margin-left: -$spacing-unit / 2;
@extend %clearfix;

} .footer-description {

margin: 0px 12px;
@media screen and (min-width: $on-palm) {
  margin: 0px 6px;
}

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

.profile-content {
  display: block;
}

}

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

.profile-content {

padding: $spacing-unit 24px;
position: absolute;
@include media-query($on-palm) {
  display: none;
}

} /**

* Page content
*/

.page-content {

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

}

.page-heading {

@include relative-font-size(2);

}

.post-list-heading {

@include relative-font-size(1.75);

}

.post-list {

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

> li {
  margin-bottom: $spacing-unit;
}

}

.post-meta {

font-size: $small-font-size;
color: $grey-color;

}

.post-link {

display: block;
@include relative-font-size(1.5);

}

/**

* Posts
*/

.post-header {

margin-bottom: $spacing-unit;

}

.post-title, .post-content h1 {

@include relative-font-size(2.625);
letter-spacing: -1px;
line-height: 1;

@media screen and (min-width: $on-large) {
  @include relative-font-size(2.625);
}

}

.post-content {

margin-bottom: $spacing-unit;

h2 {
  @include relative-font-size(1.75);

  @media screen and (min-width: $on-large) {
    @include relative-font-size(2);
  }
}

h3 {
  @include relative-font-size(1.375);

  @media screen and (min-width: $on-large) {
    @include relative-font-size(1.625);
  }
}

h4 {
  @include relative-font-size(1.125);

  @media screen and (min-width: $on-large) {
    @include relative-font-size(1.25);
  }
}

}

.social-media-list {

display: table;
margin: 0 auto;
li {
  float: left;
  margin: 0 5px;
  &:first-of-type {
    margin-left: 0;
  }
  &:last-of-type {
    margin-right: 0;
  }
  a {
    display: block;
    padding: $spacing-unit / 4;
    // border: 1px solid $grey-color-light;
  }
  &:hover .svg-icon {
    fill: currentColor;
  }
}

}

/**

* Grid helpers
*/

.one-half {

width: -webkit-calc(50% - (#{$spacing-unit} / 2));
width: calc(50% - (#{$spacing-unit} / 2));
@include media-query($on-palm) {
  width: auto;
}

}