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

body {
  -webkit-text-size-adjust:none;
  -moz-text-size-adjust:none;
  -ms-text-size-adjust:none;
  -webkit-text-size-adjust:100%;
  -moz-text-size-adjust:100%;
  -ms-text-size-adjust:100%;
}

html {
  font: 16px sans-serif;
  background: #fff;
}

a {
  color: #00f;
  text-decoration: none;
}

em {
  line-height: 150%;
}

a:hover {
  color: #f00;
  text-decoration: underline;
}

h1 {
  margin-bottom: 0.2em;
}

h2 {
  margin-top: 2em;
  margin-bottom: 1em;
}

h3 {
  margin-top: 2em;
  margin-bottom: 1em;
}

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

.bandcamp-player {
  margin-bottom: 1em;
}

.wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5em 1.5em 4em 1.5em;
  margin: 0 auto;
}

.nav {
  text-align: left;
  font-size: 1.2em;
  line-height: 200%;
}

.nav a {
  margin-right: 1em;
  margin-bottom: 1em;
}

.nav b {
  margin-right: 1em;
}

.nav .home {
  font-weight: 700;
}

.nav .spacer {
  display: inline-block;
}

.content {
  flex: 1;
  padding-top: 2em;
  padding-bottom: 6em;
}

.post-list,
.book-list {
  line-height: 150%;
  display: grid;
  grid-template-columns: 1fr;
  grid-column-gap: 5px;
  grid-row-gap: 0em;
}

.book-list .link,
.book-list .author,
.post-list .link {
  white-space: normal;
}

.post-list .date,
.book-list .rating {
  margin-bottom: 0.75em;
}

.notes-link {
  padding-bottom: 2em;
}

.star {
  width: 13px;
  height: 12px;
  display: inline-block;
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuMzA5IDkuMjJMMi40MDkgMTJsMS40NC00LjU2N0wwIDQuNTgzbDQuNzg4LS4wNDJMNi4zMDggMCA3LjgzIDQuNTRsNC43ODkuMDQ0LTMuODUgMi44NDlMMTAuMjA5IDEyeiIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+");
}

.blog-post a {
  text-decoration: underline;
}

.blog-post img {
  margin-bottom: 1em;
}

.blog-post .img-no-pad {
  padding-bottom: 0em;
}

.blog-post .img-really-no-pad {
  padding-bottom: 0em;
  margin-bottom: 0em;
}

.blog-post .img-horiz {
  display: inline-block;
  margin-left: 0.5em;
  margin-right: 0.5em;
  margin-bottom: 1em;
  text-align: center;
}

.blog-post h4 {
  margin-top: 1.8em;
  margin-bottom: 1em;
  line-height: 150%;
}

.blog-post p {
  margin-bottom: 1em;
}

.blog-post .date {
  margin-bottom: 2em;
}

ul {
  margin-left: 1em;
  margin-bottom: 1em;
}

.blog-post ol {
  margin-left: 1em;
  margin-bottom: 1em;
}

.blog-post ul ul {
  margin-left: 1em;
}

li{
  line-height: 150%;
  margin-bottom: 0.25em;
}

.blog-post .img-caption {
  border-color: rgb(100, 100, 100);
  border-width: 0.0625em;
  border-style: solid;
  padding: 0.5em 1em 0.5em 1em;
  margin-bottom: 1em;
}

.blog-post .img-note {
  margin-bottom: 1em;
  text-align: center;
  font-style: italic;
}

.blog-post .img-caption ul {
  margin-left: 0;
  margin-bottom: 0;
}

.blog-post .img-caption li {
  list-style-type: none;
}

.blog-post .quote {
  padding: 0em 2em 0em 2em;
  font-style: italic;
}

.blog-post .note {
  background-color: rgb(255, 251, 193);
  border-color: rgb(200, 196, 160);
  border-width: 0.0625em;
  border-style: solid;
  padding: 0.75em 1em 0.75em 1em;
  margin: 1.5em 0em 1.5em 0em;
}

.blog-post .footer {
  padding-top: 4em;
}

.youtube-embed-container {
  position: relative;
  padding-top: 56.25%;
  margin-bottom: 1em;
}

.youtube-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.img-container {
  position: relative;
  text-align: center;
  font-size: 1.2em;
  color: #00f;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.img-container:hover {
  color: #f00;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
}

.img-container img {
  opacity: 0.75;
  transition: opacity .25s ease-in-out;
  -moz-transition: opacity .25s ease-in-out;
  -webkit-transition: opacity .25s ease-in-out;
}

.img-container img:hover {
  opacity: 1;
}

.img-container .centered {
  z-index: 1;
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.img-container:hover .centered {
  text-decoration: underline;
}

p {
  line-height: 150%;
}

td {
  padding: 0em 1em 0em 0em;
  font-size: 0.95em;
  line-height: 150%;
}

.portrait {
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  width: 12em;
  display: block;
  margin: auto;
}

.project {
  margin-bottom: 1.5em;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  padding: 1em;
}

.project-info .date {
  float: right;
  color: #888;
}

.project img {
  margin-bottom: 1em;
  margin-top: 1em;
}

@media (min-width: 48em) {
  .wrapper {
    display: grid;
    grid-template-columns: 10em 1fr;
    grid-template-rows: 1fr;
    max-width: 54em;
    padding-top: 0;
  }

  .nav {
    padding-top: 1.5em;
    height: 10em;
    line-height: 140%;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
  }

  .nav a {
    display: block;
    margin-right: 0;
    margin-bottom: 0;
  }

  .nav b {
    margin-right: 0;
  }

  .nav .spacer {
    height: 1em;
    display: block;
  }

  .nav .galleries {
    text-align: left;
  }

  .nav .nested {
    margin-left: 1em;
  }

  .content {
    padding-top: 5em;
    padding-left: 1em;
  }

  .post-list, 
  .book-list {
    grid-row-gap: 0.1em;
  }

  .post-list {
    grid-template-columns: 1fr max-content;
  }

  .book-list {
    grid-template-columns: 1fr 0.75fr max-content 70px;
  }

  .book-list .link,
  .book-list .author,
  .post-list .link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .post-list .date,
  .book-list .date {
    padding-right: 0.25em;
    font-variant-numeric: tabular-nums;
  }

  .post-list .date,
  .book-list .rating {
    margin-bottom: 0em;
  }
}
