main.post {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  padding: 1em;
  font-size: 1.2em;
  font-family: var(--font-family-serif);

  --padding: 2rem;
  --line-height: 1.5;
}

.post-meta {
  margin-top: 0.5em;
  padding-top: 0.5em;
  border-top: 1px solid var(--rule-color);
  border-bottom: 1px solid var(--rule-color);

  display: flex;
  flex-flow: column nowrap;

  /* font-size: 0.9em; */
}

/*=======================*\
||       Typography      ||
\*=======================*/

header {
  margin: calc(var(--line-height) * 0.5em) 0 calc(var(--line-height) * 1em) 0;
}

header h1.post-title {
  padding: 0;
  font-weight: 900;
  line-height: 1.2;
  color: var(--accent-color);
  letter-spacing: -0.03em;
  font-size: 1.8em;
}

h2,
h3,
h4,
h5 {
  font-weight: 700;
  margin: calc(var(--line-height) * 1em) 0 calc(var(--line-height) * 0.5em) 0;
}

p {
  margin: 0 0 calc(var(--line-height) * 1em) 0;
  font-size: 1em;
  line-height: var(--line-height);
}

ul,
ol {
  display: block;
  margin: 0 0 calc(var(--line-height) * 1em) 0;
  padding: 0;
  list-style-position: outside;
}

ul ul,
ul ol,
ol ol,
ol ul {
  padding-left: 0.5em;
  list-style-position: inside;
  margin-bottom: 0;
}

blockquote {
  padding: 0.4em 1em;
  margin-bottom: calc(var(--line-height) * 1em);
  font-style: normal;
  border-left: 4px solid var(--accent-color);
  background-color: var(--blockquote-color);
}

blockquote p {
  margin: 0 0 0.5em 0;
  text-indent: 0;
  hanging-punctuation: first;
}

blockquote p:last-child {
  margin-bottom: 0;
}

.post-tags a {
  color: var(--tag-color);
}

/*=======================*\
||         Code          ||
\*=======================*/

code {
  font-family: "Fira Mono", "Menlo", "Consolas", "Inconsolata", "Monaco",
    monospace;
  display: inline-block;
  padding: 0 0.2em;
  font-size: 0.9em;
  border-radius: 3px;
  background-color: var(--code-background-color);
}

pre {
  font-size: 1em;
  /* font-size: 1rem; */
  margin: 0 0 calc(var(--line-height) * 1em) 0;
  padding: 0.5em 0.75em;
  border-radius: 4px;
  line-height: var(--line-height);
  overflow-x: auto;
  background-color: var(--code-block-background-color);
  color: var(--code-block-text-color);
}

pre code {
  padding: 0;
  border-radius: 0;
  background-color: transparent;
  border: none;
}

.post-meta {
  padding-bottom: 0.5em;
}

@media (min-width: 700px) {
  .post-meta {
    padding-bottom: 0.5em;
    flex-flow: row nowrap;
    justify-content: space-between;
  }

  main {
    font-size: 1.2em;
    max-width: 800px;
    --padding: 2rem;
  }

  header {
    margin-top: 3em;
  }

  header h1.post-title {
    font-size: 2.4em;
  }

  pre {
    margin: 0 -30px calc(var(--line-height) * 1em) -30px;
    padding: 1em 30px;
  }
}

/*=======================*\
||         Tables        ||
\*=======================*/

table {
  border-collapse: collapse;
  border: 1px solid var(--code-border-color);
}

table td,
table th {
  padding: 0.25em 0.75em;
  border-bottom: 1px solid var(--code-border-color);
}

thead {
  font-weight: bold;
  border-bottom: 1px solid var(--code-border-color);
}

table tr:nth-child(even) {
  background-color: var(--code-background-color);
}

/*=======================*\
||    Other Weirdness    ||
\*=======================*/

kbd {
  background-color: #fff;
  color: #333;
  border: 1px solid #787878;
  box-shadow: 0 2px #787878;
  padding: 0em 0.3em;
  border-radius: 4px;
  font-family: "Fira Mono", "Menlo", "Consolas", "Inconsolata", "Monaco",
    monospace;
  font-size: 13px;
  transform: translateY(-0.2em);
  display: inline-block;
}

hr {
  display: block;
  height: 1px;
  background-color: var(--rule-color);
  width: 100%;
  margin: calc(var(--line-height) * 1em) 0;
}

footer {
  padding-top: calc(var(--line-height) * 1em);
  padding-bottom: calc(var(--line-height) * 1em);

  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
  justify-content: space-between;

  border-top: 1px solid var(--rule-color);
}

.footer-link {
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 1.4em;
}

.footer-link.-newer {
  align-items: flex-start;
}

.footer-link.-older {
  align-items: flex-end;
}

@media (min-width: 800px) {
  footer {
    flex-flow: row nowrap;
  }
}
