body {
  overflow-y: scroll;
  display: grid;
  justify-items: center;
}

.container {
  display: grid;
  justify-items: center;
  width: min(90%, 1024px);
}

article {
  display: grid;
  justify-items: center;
  width: 100%;
}

article.episodes,
article.search-results {
  display: block;
}

article p {
  width: 100%;
}

.header {
  width: 100%;
  display: grid;
  align-items: center;
  grid-template-columns: 200px 1fr;
}

.header .masthead {
  justify-self: start;
  font-size: 2em;
  cursor: pointer;
}

.masthead a {
  text-decoration: none;
}

.masthead a:hover {
  text-decoration: none;
  color: #000;
  background-color: #fff;
}

.header .menu {
  justify-self: end;
}

.menu a {
  font-family: 'Surana', sans-serif;
  background-color: transparent;
  text-decoration: none;
  border: none;
  padding: 0.4em;
  font-size: 1.5em;
}

.menu a:focus {
  outline: 0;
}

.menu a:hover,
.menu a.selected {
  text-decoration: underline;
  background-color: transparent;
  color: #000;
  cursor: pointer;
}

.menu a.search:hover {
  text-decoration: none;
}

#toc * {
  list-style-type: "‧  ";
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Surana', sans-serif;
  font-weight: normal;
  text-align: center;
  line-height: 1em;
}

h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  text-decoration: none;
}

h1 {
  font-size: 160px;
}

div#publish-date {
  color: #ccc;
  justify-self: flex-start;
}

h2 {
  font-size: 55px;
}

h3 {
  font-size: 40px;
}

h4 {
  font-size: 28px;
  font-weight: bold;
}

article > p,
p.masthead,
blockquote > p,
article > ol,
article > ul,
.post-image p,
#publish-date {
  font-family: 'Sorts Mill Goudy', sans-serif;
  line-height: 1.4em;
  font-size: 28px;
}

article > p,
article > a,
article > ul,
article > ol,
article > li {
  justify-self: start;
}

article.post > p:first-of-type:first-letter {
  float: left;
  font-size: 4.8rem;
  line-height: 0.65;
  margin: 0.30em 0.05em 0 0;
}

.search-results a,
.episodes h2 a {
  background-color: transparent;
  border: none;
  text-decoration: none;
  display: grid;
  width: 100%;
}

article.episode > audio {
  width: 100%;
}

.code {
  color: #000;
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 3px;
  font-size: 0.85em;
}

span.code {
  font-family: monospace;
  border: 1px solid black;
  padding: 0em 0.2em 0em 0.2em;
}

blockquote,
shader-canvas,
.post-image:not(.no-border) img,
.post-image:not(.no-border) video,
.post-image:not(.no-border) audio,
.episode audio {
  border: 1px solid #000;
  box-shadow: -5px 5px #000;
  border-radius: 0px;
  margin: 1em;
}

blockquote {
  padding: 1em;
}

blockquote p, pre {
  margin: 0em;
  font-size: 1.5em;
}

a,
a:visited {
  color: #000;
  text-decoration: underline;
  cursor: pointer;
}

a:hover {
  text-decoration: none;
  color: #fff;
  background-color: #000;
}

.search-results h2 a:hover,
article.episodes h2 a:hover {
  text-decoration: none;
  background-color: #000;
  color: #fff;
}

#search-box {
  margin-left: 0.5em;
  line-height: 2em;
  padding: 0em 0.2em;
  border: 1px solid #999;
}

.search-closed {
  width: 0px;
  transition: width .3s ease-out, opacity .2s;
  opacity: 0%;
  background: white;
}

.search-open {
  width: 120px;
  transition: width .3s ease-out;
  opacity: 100%;
}

.item {
  display: flex;
  flex-direction: row;

  border: 1px solid #000;
  box-shadow: -5px 5px #000;
  border-radius: 0px;
  margin: 1em;
  border: 1px solid #000;
  align-items: stretch;
}

.item .left {
  padding: 1em;
  width: 100%;
}

.item .left * {
  font-family: 'Sorts Mill Goudy', sans-serif;
  font-size: 1em;
  justify-self: start;
  text-align: start;
  margin: 0em;
  padding: 0.1em;
}

.item .left h3 {
  font-family: 'Sorts Mill Goudy', sans-serif;
  font-size: 1.3em;
  font-weight: bold;
}

.item .left .year-tags {
  display: flex;
  align-items: center;
}

.item .left .year {
  font-size: 1.2em;
  flex-shrink: 2;
}

.item .left .tags {
  font-size: 0.8em;
  margin-left: auto;
}

.item .left * > .tags {
  text-align: right;
}


.item .left .tags .tag {
  border: 1px solid #ddd;
  border-bottom: 1px solid #000;
  padding: 0.3em 0.3em 0.1em 0.3em;
  margin: 0.2em;

  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
}

.item .right {
  display: grid;
  align-items: center;
  margin-left: auto;
  background-color: #000;;
}

.item .right audio {
  background-color: #fff;
}

.item .right a {
  display: inline-block;
}

.post-image {
  display: grid;
  justify-items: center;
  margin-left: 4em;
  margin-right: 4em;
}

.post-image p {
  font-size: 1.4em;
}

.post-image > a:hover {
  background-color:#fff;
}

.post-image img,
.post-image video {
  max-width: 100%;
  max-height: 600px;
  width: auto;
}

.post-image audio,
.episode audio {
  width: 100%;
}

.post-image audio::-webkit-media-controls-panel,
.episode audio::-webkit-media-controls-panel,
.item .right audio::-webkit-media-controls-panel {
  background-color: #fff;
  color: #000;
}

.post-image > p {
  text-align: center;
}

shader-canvas {
  padding: 0em;
}

shader-canvas div {
  align-items: flex-end;
}

.ace_editor {
  width: 100%;
  height: 100%;
}

shader-canvas .successfail {
  margin: 0em;
  padding: 0.0em;
  background-color: #000;
  width: 0;
  margin-left: -1.5em;
  margin-bottom: 0.25em;
  z-index: 1000;
}

shader-canvas canvas,
shader-canvas .placeholder
{
  margin-left: 1.5em;
}
