/* Global settings */

* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}
@media (min-width: 1160px) {
  html {
    font-size: 20px;
  }
}

body {
  color: #515151;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
}

/* Links */

a, a strong {
  color: #0086b3;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Headings */

h1, h2, h3, h4, h5, h6 {
  margin-bottom: .5rem;
  font-weight: bold;
  line-height: 1.25;
  color: #313131;
  text-rendering: optimizeLegibility;
}
h1 {
  margin-top: 1.5rem;
  font-size: 1.5rem;
}
h2 {
  margin-top: 1.25rem;
  font-size: 1.25rem;
}
h3, h4, h5, h6 {
  margin-top: 1rem;
  font-size: 1rem;
}

/* Body text */

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

strong {
  color: #303030;
}


/* Lists */

ul, ol, dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

dt {
  font-weight: bold;
}
dd {
  margin-bottom: .5rem;
}

/* Misc */

#display-cat {
  line-height: 1;
  font-size: 1rem;
}

hr {
  position: relative;
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #fff;
}

.footnotes {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

abbr {
  font-size: 85%;
  font-weight: bold;
  color: #555;
  text-transform: uppercase;
}
abbr[title] {
  cursor: help;
  border-bottom: 1px dotted #e5e5e5;
}

/* Code */

code,
pre {
  font-family: "Source Code Pro", Menlo, Monaco, "Courier New", monospace;
}
code {
  padding: .125rem .3rem;
  font-size: 85%;
  color: #990073;
  background-color: #faf0f7;
  border-radius: 5px;
}
pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  font-size: .7rem;
  line-height: 1.4;
  white-space: pre;
  white-space: pre-wrap;
  word-break: break-all;
  word-wrap: break-word;
  background-color: #f9f9f9;
  border-radius: 5px;
}
pre code {
  padding: 0;
  font-size: 100%;
  color: inherit;
  background-color: transparent;
}
.highlight {
  margin-bottom: 1rem;
  border-radius: 5px;
}
.highlight pre {
  margin-bottom: 0;
}

/* Quotes */

blockquote {
  padding: .5rem 1rem;
  margin: .8rem 0;
  color: #7a7a7a;
  border-left: .25rem solid #e5e5e5;
}
blockquote p:last-child {
  margin-bottom: 0;
}
@media (min-width: 600px) {
  blockquote {
    padding-right: 5rem;
    padding-left: 1.25rem;
  }
}

img, video {
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
  max-width: 100%;
  max-height: 80vh;
}

video {
  margin-bottom: 1rem;
}

.noborder {
  border-radius: 0;
}

.shadow {
  box-shadow: 0px 2px 5px 2px #ccc;
}

/* Copyright */

.copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,.25);
  display: none;
}
@media (min-width: 1160px) {
  .copyright {
    display: block;
  }
}

/* Tagline */

.tagline {
  font-family: "Source Code Pro", Menlo, Monaco, "Courier New", monospace;
  display: none;
}
@media (min-width: 1160px) {
  .tagline {
    display: block;
  }
}

/* Tables */

table {
  margin-bottom: 1rem;
  width: 100%;
  border: 1px solid #e5e5e5;
  border-collapse: collapse;
}
td,
th {
  padding: .25rem .5rem;
  border: 1px solid #e5e5e5;
}
tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th {
  background-color: #f9f9f9;
}


/* Container */

.container {
  max-width: 38rem;
  padding-left:  1rem;
  padding-right: 1rem;
  margin-left:  auto;
  margin-right: auto;
}

/* Posts and Pages */

.page,
.post {
  margin-bottom: 4em;
  word-wrap: break-word;
}

/* Blog post or page title */

.page-title,
.post-title,
.post-title a {
  color: #303030;
}
h1.post-title,
h1.page-title {
  font-size: 2rem;
}
.page-title,
.post-title {
  margin-top: 0;
}

/* Meta data line below post title */

.post-info {
  font-size: 0.8rem;
  display: block;
  margin-top: -.5rem;
  margin-bottom: 1rem;
  color: #7a7a7a;
}

.inline-post-date {
  color: #7a7a7a;
}

/* Related posts */

.related {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid #eee;
}
.related-posts {
  padding-left: 0;
  list-style: none;
}
.related-posts h3 {
  margin-top: 0;
}
.related-posts li small {
  font-size: 75%;
  color: #999;
}
.related-posts li a:hover {
  color: #0086b3;
  text-decoration: none;
}
.related-posts li a:hover small {
  color: inherit;
}

/* Pagination */

.pagination {
  overflow: hidden;
  margin-left: -1rem;
  margin-right: -1rem;
  color: #ccc;
  text-align: center;
}

.pagination-item {
  display: block;
  padding: 1rem;
  border: 1px solid #eee;
}
.pagination-item:first-child {
  margin-bottom: -1px;
}

a.pagination-item:hover {
  background-color: #f5f5f5;
}

@media (min-width: 600px) {
  .pagination {
    margin: 3rem 0;
  }
  .pagination-item {
    float: left;
    width: 50%;
  }
  .pagination-item:first-child {
    margin-bottom: 0;
    border-top-left-radius:    4px;
    border-bottom-left-radius: 4px;
  }
  .pagination-item:last-child {
    margin-left: -1px;
    border-top-right-radius:    4px;
    border-bottom-right-radius: 4px;
  }
}

/* Sidebar */

.sidebar {
  text-align: center;
  padding: 1rem 1rem;
  color: rgba(255,255,255,.5);
  background-color: #1d0040;
}
@media (min-width: 1160px) {
  .sidebar {
    padding: 2rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 16rem;
    text-align: left;
  }
}

/* Sidebar Links */

.sidebar a {
  color: #fff;
}

/* About Section */

.sidebar-about h1 {
  color: #fff;
  margin-top: 0;
  font-family: "Source Code Pro", Menlo, Monaco, "Courier New", monospace;
  font-weight: 500;
  font-size: 1.2rem;
}

/* Sidebar Navigation */

.sidebar-nav {
  padding-left: 0;
  list-style: none;
}
.sidebar-nav-item {
  display: block;
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: underline;
}
.sidebar-nav-item.active {
  font-weight: bold;
}

/* Sticky Sidebar */

@media (min-width: 1160px) {
  .sidebar-sticky {
    position: absolute;
    right:  1rem;
    bottom: 1rem;
    left:   1rem;
  }
}

/* Sidebar Trigger */

#menu-icon {
  display: none;
}

.trigger {
  display: none;
  padding-top: 0.5rem;
}

input[type=checkbox]:checked ~ .trigger {
  display: block;
}

.menu-label {
  font-family: "Source Code Pro", Menlo, Monaco, "Courier New", monospace;
}

input[type=checkbox] ~ .menu-label:after {
  content: "[+]";
}

input[type=checkbox]:checked ~ .menu-label:after {
  content: "[-]";
}

@media (min-width: 1160px) {
  .menu-label {
    display: none;
  }

  .trigger {
    display: block;
    padding-top: inherit;
  }
}

/* Container */

.content {
  padding-top:    1rem;
  padding-bottom: 4rem;
}

@media (min-width: 1160px) {
  .content {
    padding-top: 4rem;
    max-width: 40rem;
    margin-left: 20rem;
    margin-right: 2rem;
  }
}

@media (min-width: 1280px) {
  .content {
    margin-left: 22rem;
    margin-right: 4rem;
  }
}

/* Projects page */

.project-box img {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-radius: 0;
  box-shadow: 0px 2px 5px 2px #ccc;
}

/*
 * Copyright (c) Anish Athalye. Based on poole/hyde by @mdo, which is released
 * under a MIT license. Original license text is included below:
 *
 * ---
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/hyde.
 *
 * ---
 *
 * The full license for the original source can be found at
 * https://github.com/poole/hyde/blob/master/LICENSE.md.
 */
