/* Lanyon and Poole are MIT-licensed projects by @mdo, whose work is
wonderful and magical. This code is based on those projects. */

@font-face {
  font-family: 'Fira Code';
  src: url("../../fonts/FiraCode.ttf");
}

* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
  padding: 0;
}

html {
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
}

@media (min-width: 38em) { html { font-size: 20px } }

body {
  background-color: #FFF;
  color: #515151;

  -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
}

a {
  color: #268BD2;
  text-decoration: none;
}

a strong { color: inherit }

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #313131;
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
  letter-spacing: -.025rem;
  line-height: 1.25;
  margin-bottom: .5rem;
  text-rendering: optimizeLegibility;
}

h1 { font-size: 2rem }

h2 {
  font-size: 1.5rem;
  margin-top: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

h4,
h5,
h6 {
  font-size: 1rem;
  margin-top: 1rem;
}

.wrap {
  position: relative;
  width: 100%;
}

/* -- Container -- */

.container {
  margin: 0 auto;
  max-width: 28rem;
  padding: 0 1rem;
}

@media (min-width: 38em) { .container { max-width: 32rem } }
@media (min-width: 56em) { .container { max-width: 38rem } }

/* -- Body -- */

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

strong { color: #303030 }

/* -- Lists -- */

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

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

/* -- Miscellaneous -- */

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

abbr {
  font-size: 85%;
  font-weight: bold;
  color: #555;
  text-transform: uppercase;
}

abbr[title] {
  border-bottom: 1px dotted #E5E5E5;
  cursor: help;
}

/* -- Code -- */

code,
pre { font-family: 'Fira Code', Menlo, Monaco, monospace }

code {
  background-color: #F9F9F9;
  border-radius: 3px;
  color: #BF616A;
  font-size: 85%;
  padding: .25em .5em;
}

pre {
  background-color: #F9F9F9;
  display: block;
  font-size: .8rem;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 1rem;
  padding: 1rem;
  white-space: pre;
  white-space: pre-wrap;
  word-break: break-all;
  word-wrap: break-word;
}

pre code {
  background-color: transparent;
  color: inherit;
  font-size: 100%;
  padding: 0;
}

p code {
  display: inline-block;
  white-space: nowrap;
}

/* -- Pygments -- */

.highlight {
  border-radius: 4px;
  margin-bottom: 1rem;
}

.highlight pre { margin-bottom: 0 }

/* -- Quotes -- */

blockquote {
  border-left: .25rem solid #E5E5E5;
  color: #7A7A7A;
  margin: .8rem 0;
  padding: .5rem 1rem;
}

blockquote p:last-child { margin-bottom: 0 }

@media (min-width: 30em) {
  blockquote {
    padding-left: 1.25rem;
    padding-right: 5rem;
  }
}

.twitter-tweet { margin: 0px auto }

/* -- Images -- */

img {
  border-radius: 5px;
  display: block;
  margin: 0 0 1rem;
  max-width: 100%;
}

/* -- Tables -- */

table {
  border: 1px solid #E5E5E5;
  border-collapse: collapse;
  margin-bottom: 1rem;
  width: 100%;
}

td,
th {
  border: 1px solid #E5E5E5;
  padding: .25rem .5rem;
}

tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th { background-color: #F9F9F9 }

/* -- Intros -- */

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

.message {
  background-color: #F9F9F9;
  color: #717171;
  margin-bottom: 1rem;
  padding: 1rem;
}

/* -- Masthead -- */

.masthead {
  border-bottom: 1px solid #EEE;
  margin-bottom: 3rem;
  padding: 1rem 0;
}

.masthead-title {
  color: #505050;
  margin: 0;
}

.masthead-title a { color: #009381 }

.masthead-title small {
  color: #595959;
  font-size: 75%;
  font-weight: 400;
  letter-spacing: 0;
}

@media (max-width: 48em) {
  .masthead-title { text-align: center }
  .masthead-title small { display: none }
}

/* -- Sidebar -- */

.sidebar {
  background-color: #009381;
  bottom: 0;
  color: rgba(255, 255, 255, .6);
  font-family: "PT Sans", Helvetica, Arial, sans-serif;
  font-size: .875rem;
  left: -14rem;
  overflow-y: auto;
  position: fixed;
  top: 0;
  visibility: hidden;
  width: 14rem;
  -webkit-transition: all .3s ease-in-out;
          transition: all .3s ease-in-out;
}

@media (min-width: 30em) { .sidebar { font-size: .75rem } }

.sidebar a {
  color: #FFF;
  font-weight: normal;
}

.sidebar-item { padding: 1rem }
.sidebar-item p:last-child { margin-bottom: 0 }
.sidebar-item strong {
  color: rgba(255, 255, 255, .8);
  font-weight: bold;
}

.sidebar-nav { border-bottom: 1px solid rgba(255, 255, 255, .1) }

.sidebar-nav-title {
  color: rgba(255, 255, 255, .8);
  font-size: 1.25em;
  font-weight: bold;
  margin-top: 2rem;
  padding: .5rem 1rem;
}

.sidebar-nav-item {
  display: block;
  padding: .5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

 .sidebar-nav-item.active,
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  background-color: rgba(255, 255, 255, .1);
  border-color: transparent;
  text-decoration: none;
}

@media (min-width: 48em) {
  .sidebar-item { padding: 1.5rem }

  .sidebar-nav-title {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sidebar-nav-item {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.sidebar-checkbox {
  position: absolute;
  opacity: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.sidebar-toggle {
  background-color: #FFF;
  border-radius: .25rem;
  color: #505050;
  cursor: pointer;
  display: block;
  left: 1rem;
  padding: .25rem .75rem;
  position: absolute;
  top: .8rem;
}

#sidebar-checkbox:checked ~ .sidebar-toggle {
  background-color: #009381;
  color: #FFF;
}

.sidebar-checkbox:focus ~ .sidebar-toggle {
  background-color: rgba(0, 147, 129, 0.3);
  color: #FFF;
}

/*@media (min-width: 30.1em) { .sidebar-toggle { position: fixed } }*/
@media print { .sidebar-toggle { display: none } }

.wrap,
.sidebar,
.sidebar-toggle {
  -webkit-backface-visibility: hidden;
      -ms-backface-visibility: hidden;
          backface-visibility: hidden;
}
.wrap,
.sidebar-toggle {
  -webkit-transition: -webkit-transform .3s ease-in-out;
          transition: transform .3s ease-in-out;
}

#sidebar-checkbox:checked + .sidebar {
  z-index: 10;
  visibility: visible;
}
#sidebar-checkbox:checked ~ .sidebar,
#sidebar-checkbox:checked ~ .wrap,
#sidebar-checkbox:checked ~ .sidebar-toggle {
  -webkit-transform: translateX(14rem);
      -ms-transform: translateX(14rem);
          transform: translateX(14rem);
}

footer.sidebar-item { text-align: left; }

/* -- Posts -- */

.page,
.post { margin-bottom: 4em }

.page-title,
.post-title,
.post-title a { color: #303030 }

.page-title,
.post-title { margin-top: 0 }

.post-date {
  color: #9A9A9A;
  display: block;
  margin-bottom: 1rem;
  margin-top: -.5rem;
}

/* -- Related posts -- */

.related {
  border-top: 1px solid #EEE;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.related-posts {
  list-style: none;
  padding-left: 0;
}

.related-posts h3 { margin-top: 0 }

.related-posts li small {
  color: #999;
  font-size: 75%;
}

.related-posts li a:hover {
  color: #268BD2;
  text-decoration: none;
}

.related-posts li a:hover small { color: inherit }

/* -- Embedded media -- */

iframe {
  display: block;
  margin: 20px auto 40px;
}
