/* layout */

html {
  /* Allow pushing to the footer to the bottom
   * even when content is short.*/
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-footer,
.page-header {
  flex: 0;
}

[role=main] {
  flex: 1;
}

[role=main] :first-child {
  margin-top: 0;
}

.page-header,
[role=main],
.page-footer-content {
  margin: 0 auto;
  min-width: 280px;
  overflow-wrap: break-word;
  width: 640px;
}

@media all and (max-width: 740px) {
.page-header,
[role=main],
.page-footer-content {
    margin: 0 20px;
    width: auto;
  }
}

/* content */

html {
  border-top: 5px solid #086788;
  color: #323232;
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.75;
  box-sizing: border-box;
}

h1 {
  font-family: "HelveticaNeue-CondensedBlack", "Tahoma", "Arial Black", sans-serif;
}

h1, h2, h3 {
  color: #404040;
  margin-bottom: 10px;
  line-height: 1.2;
}

h2, h3 {
  font-weight: 400;
}

h1 a, h2 a, h3 a{
  text-decoration: none;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
}

@media all and (max-width: 740px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }
}

.post-metadata {
  color: #6b6a6a;
}

p, ul, ol, blockquote {
  line-height: 1.6;
  margin: 0 0 30px 0;
}

small {
  display: inline-block;
  line-height: 1.2;
}

hr {
  border: 0;
  border-top: 1px solid lightgray;
  height: 0;
}

a:link,
a:visited {
  color: #02809d;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:active {
  color: #e33030;
  text-decoration: underline;
}

code {
  border-radius: 2px;
  font-family: Consolas, Menlo, Monaco, Andale Mono, Courier New, monospace;
  font-size: 15px;
  margin: 0 2px;
  padding: 3px 4px;
  background-color: #E5E7E9;
}

blockquote {
  border-left: 4px solid #DDD;
  color: #777;
  margin: 0;
  padding: 0 15px;
}

@media all and (max-width: 740px) {
  code {
    font-size: 15px;
  }
}

.highlight {
  border-radius: 2px;
}

pre.highlight {
  margin-left: 0;
  margin-right: 0;
  overflow-x: auto;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.highlight code {
  margin: 0;
  padding: 0;
  background: none;
}

@media all and (max-width: 740px) {
  pre.highlight {
    width: auto;
    border-radius: 0;
    margin-left: -20px;
    margin-right: -20px;
    padding: 20px;
  }

  .highlight code {
    font-size: 12px;
  }
}

img,
figure svg {
  border: 1px solid lightgray;
  max-width: 100%;
}

figure {
  margin-left: 0;
  margin-right: 0;
}

figure img,
figure svg {
  height: auto;
}

figcaption {
  text-align: center;
}

/* index page */

@media all and (min-width: 480px) {
  .home-columns {
    display: flex;
    flex-wrap: wrap;
  }

  .home-column {
    flex: 1 1 auto;
    margin: 0;
    max-width: 33%;
  }

  .home-column h2 {
    margin-top: 0;
  }

  .home-column ul {
    margin-bottom: 0;
  }
}

.index-post-date {
  white-space: nowrap;
}

.index-list {
  padding-left: 0;
  list-style: none;
}

.index-list li {
  margin: 20px 0;
}

.index-list-meta {
  font-size: 90%;
  display: block;
}

/* page header */

.page-header {
  font-size: 29px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid lightgray;
  position: relative;
}

.page-titles {
  display: inline-block;
}

.page-title a, .page-title a:link, .page-title a:visited {
  color: #404040;
}

.avatar {
  border-radius: 2px;
  vertical-align: sub;
  margin-right: 10px;
}

.page-subtitle {
  color: #6b6a6a;
}

.page-language {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 18px;
}

@media all and (min-width: 740px) {
  .page-header p {
    display: inline;
  }

  .page-subtitle:before {
    content: ' | '
  }
}

@media all and (max-width: 740px) {
  .page-header {
    font-size: 26px;
  }

  .avatar {
    vertical-align: top;
    margin-top: 7px;
  }

  .page-subtitle {
    font-size: 19px;
  }

  .page-header p {
    margin: 0;
  }

  .page-language {
    top: auto;
    bottom: 25px;
  }

}

.article-footer {
  font-size: 18px;
  font-style: italic;
  border-top: 1px solid lightgray;
  padding-top: 40px;
  margin: 40px 0;
}

/* page footer */

.page-footer {
  background: #086788;
  color: #6b6a6a;
  font-size: 18px;
  padding: 30px 0;
  text-align: center;
}

.page-footer,
.page-footer a,
.page-footer a:visited {
  color: #f2f2f2;
}

.page-footer ul {
  padding: 0;
}

.page-footer li {
  display: inline;
}

.page-footer li:after {
  content: ' | ';
}

.page-footer li:last-child:after {
  content: '';
}

@media all and (max-width: 740px) {
  .page-footer li:first-child {
    display: block;
  }

  .page-footer li:first-child:after {
    content: '';
  }

  .page-footer {
    font-size: 15px;
  }
}
