html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  color: #333;
}

body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

a {
  outline: 0;
}

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

/* Not a fan of !important. Prism is loading after these styles and is part of the processing pipeline.
   I can either !important or fork prism... */
code[class*="language-"] {
  white-space: pre-wrap !important;
}

.header, .footer {
  text-align: center;
  padding: 0.25rem;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.nav__item {
  cursor: pointer;
  opacity: .6;
  transition: opacity 1s ease;
}

.nav__item:hover {
  opacity: 1;
}

.nav__item a {
  color: #000;
  font-size: 1.5rem;
  text-decoration: none;
}

.nav__item img {
  height: 2.5rem;
}

.main {
  flex: 1 0 0;
  padding: 1rem 0.5rem;
}

.post {
  padding: 2rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.post:last-child {
  border-bottom: none;
}

.post a {
  text-decoration: none;
  color: #333;
}

.post__date {
  color: #aaa;
}

.growing-line {
  border-top: .2rem solid #333;
  width: 2rem;
  transition: width .3s ease;
}

.post:hover .growing-line,
.article__title:hover .growing-line {
  width: 9rem;
}

.nav, .main {
  max-width: 800px;
  margin: 0 auto;
}

@media screen and (min-width: 426px) {
  .nav__item img {
    height: 3.5rem;
  }
}