:root {
  --main-bg-color: #f8f8f8;
  --neutral-color: #aaa;
  --text-color: #222;
  --text-weak-color: #444;
  --text-bold-color: #000;
  --border-color: #eee;
  --darkest-background-color: #ddd;
  --darkest-border-color: #ccc;
  --link-color: #555;
  --link-underline-color: #bbb;
  --link-hover-color: #000;
  --link-hover-underline-color: dodgerblue;
  --lighter-background-color: #eee;
  --lighter-border-color: #ddd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --main-bg-color: #1D1F1F;
    --neutral-color: #777;
    --text-color: #eee;
    --text-weak-color: #bbb;
    --text-bold-color: #fff;
    --border-color: #444;
    --darkest-background-color: rgb(24, 24, 24);
    --darkest-border-color: #000;
    --link-color: #ddd;
    --link-underline-color: #ccc;
    --link-hover-color: #fff;
    --link-hover-underline-color: dodgerblue;
    --lighter-background-color: #222;
    --lighter-border-color: #111;
  }
  article figure img {
    opacity: .75;
    transition: opacity .5s ease-in-out;
  }
  article figure img:hover {
    opacity: 1;
  }
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-content: space-between;
  margin: 0;
  padding: 0;
  background: var(--main-bg-color);
  color: var(--text-color);
  font-family: "IBM Plex Serif", Georgia, Serif;
}

main {
  margin: 0 auto;
  padding: 0;
}

main h1 {
  text-align: center;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-color: var(--link-underline-color);
  text-decoration-thickness: 2px;
}
a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
  text-decoration-color: dodgerblue;
  text-decoration-thickness: 3px;
}

/*
---------------------
Header
---------------------
*/
.site-header {
  background-color: var(--darkest-background-color);
  border-bottom: 2px solid var(--darkest-border-color);
  padding: 1rem 1rem 0.5rem;
}
header .site-header-content {
  max-width: 1366px;
  margin: 0 auto;
}
.site-header h1,
.site-header ul.nav {
  font-family: 'New Tegomin';
  text-transform: uppercase;
  padding: 0;
  margin: 0;
  line-height: 1rem;
}
.site-header h1 {
  float: left;
  font-size: 1rem;
}
.site-header h1 a {
  font-size: 1.1rem;
  padding: 0;
  margin: 0;
}
.site-header img,
.site-header a {
  vertical-align: top;
}
.site-header ul.nav {
  list-style-type: none;
  float: right;
  padding-top: 3px;
}
.site-header .nav li {
  display: inline;
}
.site-header .nav a {
  font-size: 0.9rem;
}
.site-header .nav a:hover {
  text-decoration: underline;
  color: var(--link-hover-color);
}
.site-header .nav li:not(:first-child)::before {
  content: " ·";
}
section.posts {
  margin: 0 auto;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Coustard", Georgia, Serif;
}

/* Footer
--------------------- */
.site-footer-container {
  width: 100%;
  margin-top: auto;
  align-self: end;
  padding: 1rem 0;
  background: var(--lighter-background-color);
  border-top: 1px solid var(--lighter-border-color);
}
footer.site-footer,
footer.site-footer p {
  text-align: center;
  font-size: smaller;

}
/*
---------------------
Article
---------------------
*/

article {
  width: 100%;
  margin: 1rem auto;
  padding: 2rem 0;
  overflow: hidden;
  border-bottom: 3px dashed var(--border-color);
}
main p,
article p,
article h1,
article h2,
article h3
article h4,
article h5,
article h6,
article time,
article footer .content,
header.page-header,
article header hr,
footer p {
  display: block;
  max-width: 580px;
  line-height: 1.4rem;
  margin: 1rem auto;
  text-align: left;
  padding: 0 1rem;
}
article footer,
article header {
  line-height: 1.4rem;
  margin: 1rem auto;
  padding: 1rem;
}

article header {
  padding: 0;
  /* font-size: 12px; */
  margin: 0 auto;
  color:var(--text-weak-color);
}
article header time {
  color: var(--text-weak-color);
  font-family: 'Aboreto';
}
header h1 {
  font-family: 'New Tegomin', 'Georgia';
  margin-bottom: 0.3rem;
  margin-top: 2rem;
  padding-bottom: 0.3rem;
  line-height: 2.3rem;
  font-size: 2rem;
}

article header hr {
  border: none;
  border-top: 3px double var(--neutral-color);
  color: var(--text-weak-color);
  margin-top: 3rem;
  margin-bottom: 2.5rem;
  overflow: visible;
  text-align: center;
  height: 5px;
}

article .article-border-top,
article .article-border-bottom {
  border-top: 1px solid var(--neutral-color);
  border-bottom: 1px solid var(--neutral-color);
  height: 1px;
  margin: 0 auto;
  margin-bottom: 2rem;
  max-width: 600px;
}
article .article-border-top {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}
article .article-border-bottom {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

article header .article-border-top img {
  width: 30px;
  height: 30px;
  display: block;
  margin: 0 auto;
  margin-top: -15px;
  background: var(--main-bg-color);
  border-left: 5px solid var(--main-bg-color);
  border-right: 5px solid var(--main-bg-color);
}

article footer .content {
  border-top: 1px solid var(--border-color);
  padding: 1rem 0;
}
article footer p {
  padding: 0;
  margin: 0 auto;
}
hr.post-end {
  border: none;
  border-top: 3px double var(--border-color);
  color: var(--text-weak-color);
  margin-top: 3rem;
  margin-bottom: 2rem;
  overflow: visible;
  text-align: center;
  height: 5px;
  max-width: 610px;
}

figure {
  width: 100%;
  margin: 2rem 0;
  padding: 0;
  text-align: center;
}
article figcaption {
  font-family: 'IBM Plex Sans', sans-serif;
  text-align: center;
  padding: 0 1rem;
}
article figure img {
  max-width: 100%;
}
article figure figcaption {
  color: var(--text-weak-color);
}
article header p.subhead {
  margin-top: -1rem;
}
article.image-only {
  padding-bottom: 4rem;
}
article.image-only header {
  text-align: center;
  padding-top: 0.5rem;
}
article.image-only header p.subhead {
  display: inline;
  text-align: center;
  margin: 0;
  padding: 0;
}
figcaption {
  font-size: 95%;
  color: var(--text-bold-color);
  max-width: 620px;
  margin: 0 auto;
}
article.image-only header h1,
article.image-only header h1 a {
  display: inline;
  font-size: 13px;
  padding: inherit;
  margin: 0;
  text-align: center;
}

article pre {
  max-width: 720px!important;
  margin: 1rem auto!important;
  outline: 1px solid var(--text-weak-color);
}
article ul,
article ol {
  margin: 0 auto;
  max-width: 620px;
}
.tmpl-post article,
.tmpl-page article {
  border-bottom: none;
}


.tmpl-post header,
.tmpl-post header h1,
.tmpl-post header .post-date {
  font-size: 1.5rem;
  line-height: 3rem;
  text-align: center;

}
.tmpl-post header h1 {
  font-family: 'New Tegomin', 'Georgia';
  font-size: 3rem;
  color: var(--text-weak-color);
  /* text-transform: uppercase; */
}
.tmpl-post header .post-date,
.tmpl-page header .post-date {
  font-family: 'Aboreto';
  font-size: 1rem;
  color: var(--text-weak-color);
}

nav.pagination {
  padding: 1rem 0;
  text-align: center;
}
nav.pagination p {
  padding: inherit 1rem;
}
nav.pagination a {
  text-decoration: none;
  color: var(--text-bold-color);
}
nav.pagination a:hover {
  color: DodgerBlue;
}
nav.pagination a span.arrow {
  font-size: 1.4rem;
  vertical-align: middle;
}
