@font-face {
  font-family: "Source Sans Pro";
  src: url("SourceSansPro-Regular.ttf.woff");
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("SourceSansPro-It.ttf.woff");
  font-style: italic;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("SourceSansPro-Bold.ttf.woff");
  font-weight: bold;
}

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;
}


/* General style */
#wrapper {
  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: top;
}

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

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;
}

#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;
}
