/* General styles */

a, a:hover, a:visited {
  color: rebeccapurple;
  font-weight: bold;
  text-decoration: none;
}

body {
  font-size: 14px;
  line-height: 20px;
  margin: auto;
  max-width: 900px;
  padding: 20px;
}

blockquote {
  background-color: #efefef;
  border-left: 3px solid rebeccapurple;
  font-style: italic;
  padding: 4px;
}

blockquote>p:first-of-type {
  margin-top: 0;
}

blockquote>p:last-of-type {
  margin-bottom: 0;
}

code {
  background-color: #efefef;
  border: 1px solid #888;
  margin: 0 -1px 0 -1px;
  padding: 0 1px 0 1px;
}

pre {
  background-color: #efefef;
  border: 1px solid #888;
  overflow: scroll;
  padding: 10px;
}

pre>code {
  border: none;
}

/* Nav bar and header */

#header {
  text-align: center;
}

#logo {
  margin: auto;
  padding: auto;
  width: 600px;
  max-width: 100%;
}

#nav {
  border-radius: 2em;
  background-color: rebeccapurple;
  width: 100%;
  margin: 0;
  margin-bottom: 40px;
  padding: 0;
}

#nav>li {
  display: inline;
  font-size: 14px;
  font-weight: bold;
  list-style: none;
  margin: 0;
  padding: 0;
}

#nav>li>a {
  border-radius: 2em;
  color: white;
  display: inline-block;
  margin: 8px;
  padding: 10px 20px 10px 20px;
}

#nav>li>a:hover, #nav>li>a.current {
  background-color: #669f25;
  text-decoration: none;
}

/* Posts */

.story-title {
  border-bottom: 1px solid #888;
  font-family: 'Roboto Slab';
  margin-left: calc(150px + 20px); /* meta width plus body */
  padding-bottom: 5px;
  padding-left: 0;
}

.post-content {
  display: flex;
}

.post {
  margin-bottom: 30px;
}

.post-content>.meta {
  color: #888;
  flex: 0 0 auto;
  font-style: italic;
  text-align: right;
  width: 150px;
}

.post-content>.meta abbr {
  text-decoration: none;
  border-bottom: none;
}

.post-content>.body {
  flex: 1 auto;
  margin: auto;
  padding-left: 20px;
}

.entry-categories {
  font-size: 90%;
  font-style: italic;
  list-style: none;
}


/* Semistatics */

.semistatic {
  font-size: 18px;
  line-height: 1.5em;
  max-width: 800px;
  margin: auto;
}

/* Archive/list pages */

#post-summaries {
  margin: auto;
  max-width: 800px;
}

.post-summary {
  margin-bottom: 30px;
}

.summary-story-title {
  font-size: 16px;
  margin-bottom: 0;
}

.summary-meta {
  color: #888;
  font-style: italic;
}

.summary-body {
  font-style: italic;
  padding-left: 25px;
}

/* Footer */

#footer {
  font-size: 90%;
  text-align: center;
}
