html {
  overflow-y: scroll;
}
:root {
  --bgcolor: #eee;
  --bgcolor-accent: rgb(230, 230, 220);
  --fontcolor: #333;
  --linkcolor: rgb(167, 62, 62);
  --precolor: #fff;
  --prebgcolor: #000;
  --font-main: Karla, sans-serif;
  --font-alt: Neuton, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bgcolor: #121110;
    --bgcolor-accent: rgb(34, 29, 21);
    --fontcolor: rgb(225, 224, 224);
    --linkcolor: #f9c3c3;
    --precolor: #fff;
    --prebgcolor: #383838;
  }
}

body {
  max-width: 800px;
  margin: 0px auto;
  padding: 0 2rem;
  font: 18px/1.4 var(--font-main);
  font-weight: 250;
  color: var(--fontcolor);
  background: var(--bgcolor);
  display: flex;
  height: 100vh;
  flex-direction: column;

  background-size: 4rem 4rem;
  background-image:
    linear-gradient(to right, var(--bgcolor-accent) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bgcolor-accent) 1px, transparent 1px);
}

a {
  color: var(--linkcolor);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

a:hover {
  opacity: 0.7;
  border-color: currentColor;
  transition:
    opacity 0.5s ease,
    border-color 0.5s ease;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-family: var(--font-alt);
  font-weight: 300;
}
p > code {
  color: var(--precolor);
  background: var(--prebgcolor);
  padding: 2px;
}
code {
  color: var(--precolor);
  background: var(--prebgcolor);
  padding: 2px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
}
pre {
  color: var(--precolor);
  background: var(--prebgcolor);
  padding: 24px;
  overflow-x: auto;
}
article {
  padding-bottom: 2rem;
}
figcaption {
  color: #888;
  font: 12px/1.5 monospace;
  text-align: center;
}
figure {
  margin: auto;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: auto;
}
blockquote {
  font-style: italic;
}
ul {
  list-style-type: square;
}

header {
  margin: 2rem 0;
  text-align: center;
}
main {
  flex-grow: 1;
}
footer {
  text-align: center;
}
.site-title {
  margin: 0.5rem 0;
  font-size: 2rem;
  font-family: var(--font-alt);
}
.site-subtitle {
  margin: 0 auto;
  opacity: 0.7;
  font-size: 0.8rem;
  font-style: italic;
  width: 80%;
}
.site-header-navigation {
  margin: 1rem 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  font-variant-caps: all-small-caps;
  font-style: italic;
}
.post-title {
  margin: 0;
  font-style: italic;
}
.post-timestamp {
  opacity: 0.7;
  font-size: 0.9rem;
  font-style: italic;
  font-weight: lighter;
}
.post-body > :first-child:first-letter {
  /* Drop cap */
  font-size: 1.8rem;
  font-family: var(--font-alt);
}
.tag {
  opacity: 0.7;
  font-size: 0.8rem;
}
.pagination {
  text-align: center;
}
.posts-list {
  padding-inline-start: 0;
  list-style-type: none;
}
.posts-list-item-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 8fr;
  justify-items: start;
  align-items: center;
  gap: 1rem;
  > .post-timestamp {
    text-align: end;
    min-width: 5rem;
  }
}
/* .list-item-tag {
  text-transform: lowercase;
} */
