body,div,ul,li,h1,h2,h3,h4,input,textarea,p,blockquote,th,td {
  margin: 0;
  padding: 0;
}

html {
  font: 13px/1.4 sans-serif;
  font-size-adjust: 0.55;
}

body {
  margin: 0 auto;
  width: 68%;
  min-width: 970px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > header {
  font: 1.72rem Georgia, serif;
  text-transform: uppercase;
  padding: 1.6rem 0 1.1rem 0;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAAAeAQMAAADNS8RPAAAABlBMVEX///8AAABVwtN+AAAAOElEQVQoz2NgGPpA/gMKl4lKIuxoIvY/+BsIi8gfsMEQqUMTsX/wn7DIw//z4SL8B8gSOf+fIhEAWLpM6Xc3+/kAAAAASUVORK5CYII=') no-repeat bottom right;
}

body > header h1 {
  font-size: 4rem;
  line-height: 0.65;
  letter-spacing: 0.07em;
}

body > header .headertext {
  display: inline-block;
  text-align-last: justify;
}

body > header .headertext p {
  padding-right: 0.1em;
}

nav {
  font: bold 1.2rem/1.5 Georgia, serif;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.15em;
  background-color: #222;
}

nav ul {
  list-style: none;
}

nav li, nav a, nav a:visited, nav a:hover {
  display: inline-block;
  margin: 0 5%;
  color: #eee;
  border: none;
}

#container {
  flex: 1;
  display: flex;
  flex-direction: row;
  padding: 0 1rem;
}

main {
  border-right: 1px dashed #bbb;
  flex: 7.5;
  padding: 0 1em 2em 0;
  margin-right: 1em;
}

main p, main ul, #sidebar p {
  margin-bottom: 1.2em;
  hyphens: auto;
}

#sidebar {
  text-align: right;
  flex: 2.5;
}

#sidebar .sticky-sidebar {
  position: sticky;
  top: 1em;
}

body > footer {
  font: 0.9rem/2 Georgia, serif;
  text-align: center;
  background-color: #222;
  color: #eee;
}

article header {
  display: flex;
}

article > div > p:first-child:first-line,
article .postpic + p:first-line {
  font-variant: small-caps;
}

h1, h2, h3, h4 {
  font-weight: normal;
  font-family: Georgia, serif;
  font-size-adjust: initial;
}

h2 {
  font-size: 2.1rem;
  line-height: 1.5;
  letter-spacing: -0.03em;
  margin: 0.4em 0 0.2em 0;
  color: #143;
  flex: 1;
}

h3 {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.07em;
  font-variant: small-caps;
  text-transform: lowercase;
  margin: 1em 0 0.2em 0;
  color: #143;
}

h4 {
  font-size: 1.3rem;
  margin-top: 0.5em;
}

h2 a, h2 a:visited {
  color: #143;
  border: none;
}

h2 a:hover {
  border-bottom: 1px dashed #bbb;
}

a {
  color: #034;
  text-decoration: none;
  border-bottom: 1px dashed #bbb;
}

a:hover {
  color: #143;
}

ul {
  margin-left: 1em;
  list-style: disc inside;
}

.month {
  margin-left: 1em;
}

ul.month {
  margin-left: 2em;
}

.meta {
  font: italic small-caps 1em Georgia, serif;
  letter-spacing: 0.1em;
  margin: 1.6em 0 0 1em;
  color: #666;
  text-align: right;
}

.meta time {
  display: block;
}

.meta a {
  color: #479;
  border: none;
}

.meta a:hover {
  color: #035;
}

.meta a[rel=next] {
  margin-left: 1.5em;
}

hr {
  margin: 0.3em 0;
  border: none;
  border-bottom: 1px dashed #bbb;
  clear: both;
}

hr.decorative {
  border: none;
  text-align: center;
  line-height: 1em;
  margin: 1.4em;
}

hr.decorative:before {
  content: '❧';
  font-size: 3em;
  color: #000;
}

blockquote, q {
  quotes: '\201C' '\201D' '\201C' '\201D';
}

blockquote, pre code {
  border-left: 1px dashed #bbb;
  background-color: #f8f4f4;
  padding: 0 1em 1em 1.5em;
  line-height: 1.3;
  margin: 0 1em 1em 2em;
}

blockquote:before, pre code:before {
  color: #899;
  font-weight: bold;
  line-height: 0;
  vertical-align: bottom;
}

blockquote {
  padding-bottom: 0.2em;
  margin: 1em 1.2em 1em 2em;
}

blockquote:before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 3rem;
  margin-left: -3rem;
}

kbd {
  background-color: #eee;
  border-radius: 3px;
  border: 1px solid #b4b4b4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
  color: #333;
  display: inline-block;
  font-size: .85em;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  white-space: nowrap;
}

code {
  font-size: 0.9rem;
  hyphens: none;
}

pre code {
  white-space: pre-wrap;
  display: block;
}

pre code:before {
  content: '\03BB';
  font-size: 2.1rem;
  margin-left: -1.4em;
}

a.filename, a.filename:visited {
  float: left;
  border: none;
}

.fileinfo {
  text-align: right;
  font-size: 0.75em;
  margin-bottom: 0.2em;
}

.fileinfo a, .fileinfo a:visited {
  border: none;
}


@media print {
  body {
    width: 100%;
    min-width: inherit;
    display: block;
  }

  body > header {
    margin-left: 0.6em;
  }

  #container {
    display: block;
  }

  nav, #sidebar, body > footer {
    display: none;
  }

  main {
    border: none;
  }

  #disqus_thread {
    display: none;
  }
}


@media screen and (max-width: 970px) {
  body > header {
    padding-left: 1rem;
  }

  nav li {
    margin: 0 3%;
  }

  body {
    width: 100%;
    min-width: inherit;
  }

  #container {
    flex-direction: column;
    align-content: flex-start;
  }

  main {
    float: inherit;
    border-right: none;
    width: auto;
    flex-grow: 0;
  }

  #sidebar {
    text-align: left;
    border-top: 1px dashed #bbb;
    flex-grow: 0;
  }

  #sidebar .sticky-sidebar {
    position: initial;
    top: unset;
  }

  article header {
    flex-direction: column;
  }

  article header .meta {
    margin: 0 0 0.8em 0;
  }

  article header .meta time {
    display: inline;
    float: left;
  }

  h2 {
    font-size: 2rem;
  }
}


@media screen and (max-width: 520px) {
  body > header {
    font-size: 1rem;
    padding: 1rem 0 0.6rem 0.7rem;
  }

  body > header h1 {
    font-size: 2.6rem;
  }

  nav {
    font-size: 0.9rem;
  }

  nav li {
    margin: 0.1em 0.6em;
  }

  #container {
    padding: 0 0.7rem;
  }

  body p {
    font-size: 1.1rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  article header .meta {
    text-align: left;
  }

  article header .meta time {
    display: block;
    float: unset;
  }
}
