/**

* Site header
*/

.site-header {

border-bottom: 1px solid $border-color-01;
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(2.25);
font-weight: $extrabold-font-weight;
letter-spacing: -1px;
margin-bottom: 0;
float: left;
text-transform: uppercase;
@include media-query($on-palm) {
  padding-right: 45px;
}
&,
&:visited {
  color: $site-title-color;
}
&:hover {
  color: $title-bracket-color;
  text-decoration: none;
}
&:hover .title-bracket {
  color: $site-title-color;
}

}

.title-bracket {

color: $title-bracket-color;
font-weight: $thin-font-weight;

}

.site-nav {

position: absolute;
top: 9px;
right: $spacing-unit / 2;
background-color: $background-color;
border: 1px solid $border-color-01;
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: $border-color-03;
  }
}
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;
  & .link-bracket {
    color: $brand-color-dark;
    margin-left: 0.2rem;
  }
  &:hover {
    text-decoration: none;
  }
  &:hover .link-bracket {
    color: $brand-contrast-color;
  }
  // 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;
  }
}

}

.avatar {

max-width: 100px;
border-radius: 50%;
border: 2px solid $brand-contrast-color;
display: block;
margin: 0 auto;

}

.intro {

text-align: center;

}

.intro.intro-main {

margin-top: $spacing-unit;
margin-bottom: 0;

}

.intro.intro-sub {

margin-top: 5px;
margin-bottom: 0;

}

.content {

padding: $spacing-unit 0;

}

/**

* Site footer
*/

.site-footer {

padding: $spacing-unit 0;

}

.feed-subscribe .svg-icon {

padding: 5px 5px 2px 0;

}

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

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

}

.footer-message {

display: flex;
align-items: center;
justify-content: center;

}

.footer-message span {

font-weight: $semibold-font-weight;

}

.social-links {

// @include relative-font-size(0.9375);
color: $brand-color;
& a {
  color: $brand-color;
  &:hover {
    color: $brand-contrast-color;
  }
}

}

/**

* Page content
*/

.page-content {

padding: $spacing-unit * 2 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: $brand-color;

}

.post-link {

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

}

/**

* Skills / Projects
*/

.skills, .projects {

margin-bottom: $spacing-unit;

}

.skills {

display: flex;
flex-flow: row wrap;
justify-content: space-around;
padding: 0;

}

.skills > h2 {

flex: 0 0 100%;

}

.skills > .skill-item {

text-align: center;
flex-grow: 1;

}

.skills > .skill-item > svg {

fill: $brand-color;
max-height: 92px;
max-width: 92px;
display: block;
margin: 0 auto;

}

.projects > .project-item {

display: flex;
background-color: $box-background-color;
margin-bottom: 1rem;
border-radius: 10px;
padding: 1.2rem;

}

.project-image {

flex: 1;
text-align: center;

}

.project-image img {

max-height: 250px;

}

.project-details {

flex: 2;
margin-left: 1.5rem;

}

.project-item h2 {

color: $brand-contrast-color;
font-size: 18px;
font-weight: $semibold-font-weight;

}

/**

* Posts
*/

.post-header {

margin-bottom: $spacing-unit;

}

.post-title, .post-content h1 {

@include relative-font-size(2.625);
letter-spacing: -1px;
line-height: 1.15;
@media screen and (min-width: $on-large) {
  @include relative-font-size(2.625);
}

}

.post-content {

margin-bottom: $spacing-unit;
h1,
h2,
h3 {
  margin-top: $spacing-unit * 2;
}
h4,
h5,
h6 {
  margin-top: $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.25);
}
h5 {
  @include relative-font-size(1.125);
}
h6 {
  @include relative-font-size(1.0625);
}

}

.social-media-list {

display: table;
margin: 0 auto;
li {
  float: left;
  // margin: 5px 10px 5px 0;
  &:last-of-type {
    margin-right: 0;
  }
  a {
    display: block;
    padding: $spacing-unit / 4;
    // border: 1px solid $border-color-01;
    &:hover {
      border-color: $border-color-02;
    }
  }
}

}

/**

* Tags
*/

.tags {

list-style: none;
margin: 0;
overflow: hidden;
padding: 0;
li {
  float: left;
}

}

.tag {

background: $tag-bg-color;
border-radius: 3px;
color: $tag-text-color;
font-size: $tag-font-size;
font-weight: $tag-font-weight;
display: inline-block;
height: 26px;
line-height: 26px;
padding: 0 15px 0 23px;
position: relative;
margin-right: 10px;
text-decoration: none;
transition: color 0.1s, background-color 0.1s;
-webkit-transition: color 0.1s, background-color 0.1s;
&:before {
  background: $tag-text-color;
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(0, 0, 0, 0.25);
  content: "";
  height: 6px;
  left: 10px;
  position: absolute;
  width: 6px;
  top: 10px;
}
&:visited {
  color: $tag-text-color;
}
&:hover {
  background-color: $brand-contrast-color;
  color: #fff;
  text-decoration: none;
}

}

/**

* Pagination navbar
*/

.pagination {

margin-bottom: $spacing-unit;
@extend .social-media-list;
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: $border-color-01;
      border: 1px dashed;
    }
  }
}

}

/**

* Grid helpers
*/

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

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

}