@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:400,700');

*, *:before, *:after {
  box-sizing: border-box;
}

body {
  background-color: #fffdf0;
  font-family: "Roboto Slab", serif;
  font-size: 18px;
  line-height: 1.6rem;
  padding: 2rem;
  max-width: 50rem;
  margin: auto;
  color: #1a1a19;
}

p {
  color: #1a1a19;
}

h1 {
  line-height: normal;
}

h2 {
  margin-top: 2rem;
  line-height: 1.4em;
}

a {
  text-decoration: none;
  color: #df5049;
}

a:visited {
  color: #df5049;
}

/* Nav/menu overrides */
.menu {
  text-align: left;
  background: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.menu li {
  display: inline-block;
  margin-right: 1rem;
}

.menu a {
  background: none;
  padding: 0;
  border-radius: 0;
  color: #df5049;
  font-family: "Roboto Slab", serif;
  font-size: 1rem;
}

.menu a:hover {
  color: #1a1a19;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 1rem 0 2rem;
}

/* Article meta */
.article-meta {
  background: none;
  padding: 0;
  border-radius: 0;
  color: #666;
  font-size: 0.9em;
  text-align: left;
  margin-bottom: 2rem;
  display: block;
}

.article-meta a {
  color: #df5049;
}

.title {
  font-size: 1.6em;
  line-height: 1.3;
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
}

blockquote {
  background-color: #fcfcfc;
  border-left: 4px solid #ccc;
  padding-left: 1em;
  margin: 1rem 0;
}

img, video {
  max-width: 100%;
  display: block;
  margin: auto;
}

iframe {
  max-width: 100%;
}

footer {
  font-size: 1rem;
  text-align: center;
  margin-top: 2rem;
}

footer a {
  color: #df5049;
}

/* Code */
.highlight {
  background: #181818;
  color: white;
  font-family: Consolas, Monaco, "Lucida Console", monospace;
  font-size: 0.8rem;
  padding: 0.3em 0.2em;
  border-radius: 0.4em;
}

pre {
  padding: 1rem 2rem;
  margin: 0;
  font-family: Consolas, Monaco, "Lucida Console", monospace;
  font-size: 1em;
  line-height: 1.6em;
  border: none;
  box-shadow: none;
  background: none;
}

:not(pre) > code {
  font: inherit;
  background-color: rgba(0, 0, 0, 0.07);
}

/* Table */
table {
  margin: auto;
  border-top: none;
  border-bottom: none;
  border-spacing: 1em 0;
}

table.articles {
  margin: 1rem 0;
  border-spacing: 0;
}

table.articles td.date {
  font-family: Consolas, Monaco, "Lucida Console", monospace;
  font-size: 0.8em;
}

table.articles td.link {
  padding-left: 1rem;
  white-space: nowrap;
}

thead, tfoot, tr:nth-child(even) {
  background: none;
}

th, td {
  padding: 5px;
}
