@font-face {
  font-family: "Source Sans Pro";
  src: url("SourceSansPro-Regular.woff2") format("woff2"), url("SourceSansPro-Regular.woff") format("woff");
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("SourceSansPro-Italic.woff2") format("woff2"), url("SourceSansPro-Italic.woff") format("woff");
  font-style: italic;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("SourceSansPro-Bold.woff2") format("woff2"), url("SourceSansPro-Bold.woff") format("woff");
  font-weight: bold;
}
@font-face {
  font-family: "Source Code Pro";
  src: url("SourceCodePro-Regular.woff2") format("woff2"), url("SourceCodePro-Regular.woff") format("woff");
}

html, body {
  background: #1d1f21;
  color: #c5c8c6;
  font: 20px/1.6em "Source Sans Pro", sans-serif;
  margin: 0;
}

::-moz-selection {
  background: #373b41;
}

::selection {
  background: #373b41;
}

a {
  color: #81a2be;
}

ul {
    margin-top: 0;
}


/* General style */
#wrapper, .CenteredWrapperWithPadding {
  max-width: 800px;
  padding: 0 .5em;
  margin: 0 auto;
}

#top {
  background: #282a2e;
  padding: 1em 0.5em;
}

.top-wrapper {
  margin: 0 auto;
  max-width: 800px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: baseline;
  align-items: baseline;
}

@media (max-width: 400px) {
  .top-wrapper {
    display: block;
  }
}

#top h1 {
  -webkit-flex: 1;
  flex: 1;
}

.archives {
  padding: 0 .5em;
}

.rss {
  width: 2em;
  vertical-align: middle;
}

/* Blogpost style */
.navlinks {
  display: -webkit-flex;
  display: flex;
  margin: 0;
}

.navlinks a {
  -webkit-flex: 1;
  flex: 1;
  padding: 1em 0;
}

.navlinks a:hover {
  background: #282a2e;
}

.navlinks .next {
  text-align: right;
}

.navlinks span {
  display: none;
}

.post-title {
  margin-top: 2em;
}

.post-info {
  background: #282a2e;
  text-align: right;
}

.post-excerpt {
  font-style: italic;
  color: #969896;
  border: 1px dotted;
  border-width: 1px 0;
}

/* Blogpost content style */

article h2 {
  margin-top: 1.5em;
}

sup {
    vertical-align: baseline;
}

sup a {
    display: inline-block;
    position: relative;
    min-width: 32px;
    height: 1em;
    line-height: 1em;
    margin: 0 .2em;
    text-align: center;
    background-color: #282a2e;
    border-radius: 1em;
    overflow: hidden;
}

sup a.is-showing-details::after {
    position: absolute;
    content: "╳";
    background-color: inherit;
    top: 0; bottom: 0; left: 0; right: 0;
}

code {
  font-family: "Source Code Pro", Menlo, monospace;
  font-size: 0.90em;
}

textarea {
  width: 100%;
}

.post-content h1 {
  margin-top: 2em;
}

.post-content a {
  text-decoration: none;
}
.post-content a:hover {
  text-decoration: underline;
}

pre {
  overflow: auto;
  border: 1px solid;
  border-left-width: 5px;
}

img {
  max-width: 100%;
}

.footnotes {
  border-top: 1px dotted;
}
.footnotes h4 {
  margin-top: .5em;
}
.footnotes hr {
    display: none;
}

#comments, #comment-form {
  margin-top: 5em;
  border-top: 2px dashed;
}

#comments article {
  padding: 1em 0;
}

#comments article.odd {
  background: #282a2e;
  margin: 0 -.5em;
  padding: .5em .5em;
}

#comments article p:first-child {
  margin-top: 0;
}

#comments footer {
  text-align: right;
}

input, textarea {
  background: #282a2e;
  color: #c5c8c6;
  font: inherit;
  border: 1px solid transparent;
  border-bottom-color: inherit;
  padding: 0 .4em;
  box-sizing: border-box;
}

textarea, input[type=submit], input:focus {
  border-color: inherit;
}

.comment-form-header {
  display: flex;
  display: -webkit-flex;
}
.comment-form-header h3 {
  flex-grow: 1;
  -webkit-flex-grow: 1;
}

.table {
  display: table;
  width: 100%;
}
.table-row {
  display: table-row;
}
.table-cell {
  display: table-cell;
}
label.table-cell {
  text-align: right;
  width: 1px;
  white-space: nowrap;
  padding-right: 0.4em;
}
input.table-cell {
  width: 100%;
  margin: 0.4em 0;
}

#comments-feed {
  position: relative;
}
#comments-feed:before {
  content: "";
  background: url('/blog/themes/relax/rss.svg');
  background-size: contain;
  width: 20px;
  height: 20px;
  display: block;
  position: absolute;
  top: 7px;
}

.feed {
  padding-left: 20px;
}


/* Archive style */
.archives-month {
    position: relative;
}

.archives-month h3 {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    margin-bottom: 0;
    background-color: #1d1f21;
}

.BottomDrawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 25vh;
    background-color: #282a2e;
    border-top: 5px solid;
    transition: transform 250ms ease-out;
    transform: translateY(100%);
    overflow-y: scroll;
}

.BottomDrawer--displayed {
    transform: translateY(0);
}
