* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  font-family: sans-serif;
}

#main li {
  margin-bottom: 0.1em;
}

#posts-list {
  list-style: none;
}

#rss-link {
  text-decoration: none;
}

#rss-link img {
  margin-left: 0.3em;
  vertical-align: middle;
  width: 0.9em;
}

body {
  background: #202020;
  color: #fafafa;
}

a {
  color: #57bde6;
}

header {
  text-align: center;
  padding: 2em 0;
  background-color: rgb(88, 132, 149);
  color: white;
  margin-bottom: 2em;
}

main {
  /* I could use CSS variables but that's not
   * supported by all browsers out there, especially
   * the minimalist ones. So I will keep it simple */
  max-width: 720px;
  line-height: 1.3;
  margin: 0 auto;
  margin-top: 1.5em;
  padding: 1em 1em 3em 1em;
}

#main__description li {
  margin-bottom: 0.3em;
  font-size: 0.85rem;
}

/* text styling and spacing, hard to get right */
.post__content h1, .post__content h2, .post__content h3,
.post__content h4, .post__content h5, .post__content h6 {
  margin-bottom: 0.5em;
  margin-top: 1.5em;
  font-style: italic;
  font-weight: 400;
}

.link__favorite { color: #e6d057 }
.link_philo { color: #ff6c6c }
.link__poop { color: #d2945e }
.link__cs { color: #84e657 }

.post__content p code {
  padding: 0.13em 0.3em;
  border-radius: 6px;
  background-color: #444;
  font-family: monospace;
}

.post__content > p {
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
}

.post__content ul {
  list-style: square;
  margin-left: 2em;
  margin-top: 1em;
}

.post__content li {
  margin-bottom: 0.8em;
}

#featured-image {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

#featured-image img {
  margin-bottom: 1em;
  max-width: 100%;
}

.post__content blockquote {
  font-style: italic;
  padding: 1em;
  border-left: 7px solid #151515;
  background-color: #1a1a1a;
  text-indent: 1em;
  margin: 1.0em 0 1.5em 0;
}

.post__content blockquote p + p {
  margin-top: 1em;
}

#books {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em;
}

#books span {
  background-color: #1e4655;
  border: 1px solid black;
  padding: 0.13em 0.5em;
  white-space: nowrap;
  font-size: 0.75rem;
}

.post__content pre {
  padding: 1em;
  border: 1px solid black;
  overflow-x: scroll;
  background: #131313;
  color: #dddddd;
  font-size: 0.8rem;
}

.post__content pre code { display: block; }
.post__content code span { font-family: monospace; }

/* syntax highlighting color scheme */
/* stolen from the Internet, this is so ugly! */
.dv, .bn, .fl { color: #d3869b }
.co { color: #928374; font-style: italic }
.kw, .cf { color: #fb4934 } 
.dt { color: #fb4934 }
.st { color: #b8bb26 }
