/* Stylesheet for comic/zine/sketchbook pages, aka. _layouts/book.html */

main {
  max-width: 600px;
  margin: auto;
  margin-top: var(--space-xs);
  padding: var(--space-sm);
}

header {
  text-align: center;
}

nav ul {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin-top: 0;
  border: 2px solid;
  border-radius: var(--space-xxs);
  max-width: 600px;
  margin: auto;
}

nav ul li {
  width: 100%;
}

nav ul li a {
  text-decoration: none;
}

nav ul li a, nav ul li {
  width: 100%;
  display: block;
  text-align: center;
  border-right: 1px solid var(--txt);
}

nav ul li a:last-of-type, nav ul li:last-of-type  {
  border-right: none;
}

summary {
  border-bottom: 2px dotted;
}

.post {
  border: 2px solid;
  border-radius: var(--rounded);
  margin-bottom: var(--space-md);
}

.post-header, .post-content {
  padding: var(--space-xs) var(--space-sm);
}

.post-header {
  border-bottom: 2px dotted;
}

.post-permalink {
  float: right;
}

.post-read-more {
  display: block;
  text-align: right;
  padding: 0 var(--space-sm);
  padding-bottom: var(--space-xs);
}

.excerpt {
  background: linear-gradient(to bottom, 
   var(--txt) 60%, 
   transparent);
  color: transparent;
  background-clip: text;
}

/* mobile/tablet view */
@media (max-width: 600px) {
  img {
    border-radius: 0;
  }

  div, nav, header {
    padding: 0 var(--space-sm);
  }

  main h2:first-of-type {
    margin-top: 0;
  }
}