:root {
  --main-bg-color: #fcfcfc;
  --main-fg-color: #222;
  --date-fg-color: #c0c0c0;
  --border-color: #111;
  --table-border-color: #ddd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --main-bg-color: #26292f;
    --main-fg-color: #eee;
    --date-fg-color: #888;
    --border-color: #eee;
    --table-border-color: #444;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--main-fg-color);
  background-color: var(--main-bg-color);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  line-height: 165%;
}

a {
  color: var(--main-fg-color);
}

.wrapper {
  margin: 0 auto;
  padding: 2em 0;
  width: 50em;
  max-width: 90%;
}

.mf-top {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.mf-top h1 {
  font-size: 1.5rem;
  margin: 0;
  display: inline;
  line-height: 100%;
}

.mf-top h1 a {
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  margin-right: 4px;
}

.mf-top-by-line {
  color: var(--main-fg-color);
  font-size: 0.85em;
}

.mf-top-by {
  font-style: italic;
}

.mf-header-nav-links a {
  text-decoration: none;
  color: var(--main-fg-color);
  margin-right: 1rem;
}

.mf-header-nav-links {
  margin-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

@media screen and (min-width: 38em) {
  /* Desktop */
  .mf-top h1 {
    font-size: 1.3rem;
  }

  .mf-header-nav-links {
    margin-top: 0;
    float: right;
    border-bottom: none;
  }
}

.mf-post-subtitle {
  opacity: 0.6;
  font-weight: normal;
  font-size: 1.33rem;
  line-height: 150%;
  margin: 0.5rem 0;
}

.mf-post-title-date {
  font-size: 1.1rem;
  line-height: 200%;
  color: var(--date-fg-color);
  font-weight: bold;
}

.mf-post-title-date:hover,
.mf-list-date:hover {
  color: var(--main-fg-color);
}

.mf-post-title,
.mf-post-title a {
  margin: 0;
  text-decoration: none;
  line-height: normal;
}

blockquote {
  margin-left: 0;
  padding-left: 2rem;
  border-left: 10px solid var(--border-color);
  color: var(--main-fg-color);
  overflow: auto;
}

blockquote *:first-child {
  margin-top: 0;
}

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

table {
  border-collapse: collapse;
}

table td,
table th {
  padding: 0.5rem;
  border: 1px solid var(--table-border-color);
}

pre {
  font-size: 13px;
  padding: 20px;
  line-height: 130%;
  tab-size: 4;
  border-radius: 3px;
  overflow: auto;
}

p code,
li code {
  font-size: 0.85em;
}

/*sup {
  vertical-align: super;
  font-size: smaller;
}*/

.mf-post strong {
  font-weight: 700;
}

.mf-post img {
  max-width: 100%;
}

.mf-next-read-section {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  margin-top: 2rem;
}

.mf-next-read {
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0;
  margin: 0;
  font-style: italic;
  text-decoration: none;
  color: var(--main-fg-color);
}

.mf-next-read-section .mf-list-item {
  margin: 15px 0;
}

.mf-article-separator {
  margin: 4rem auto;
}

.mf-list-item {
  margin: 1rem 0;
}

.mf-list-link {
  font-size: 1.2rem;
  line-height: 1.33;
}

.mf-list-link a {
  text-decoration: none;
}

.mf-list-date {
  float: right;
  color: var(--date-fg-color);
}

hr {
  border: none;
  display: block;
  margin: 2em auto;
  background-color: var(--main-fg-color);
  opacity: 0.3;
  height: 1px;
  width: 80%;
}

.mf-portrait {
  width: 100px;
  border-radius: 100%;
  float: left;
  margin-right: 1em;
}

.mf-footer-copyright {
  clear: both;
  text-align: center;
}

.mf-post-taxonomies {
  margin-top: 1rem;
  font-size: 1rem;
}

.mf-post-categories,
.mf-post-tags {
  margin-bottom: 0.5rem;
  display: inline;
}

.mf-taxonomy {
  margin-right: 5px;
}

.mf-category {
  background-color: var(--main-fg-color);
  color: var(--main-bg-color);
  opacity: 0.5;
  display: inline-block;
  padding: 0px 6px;
  text-decoration: none;
  border-radius: 10px;
  transition: opacity 0.1s ease;
}

.mf-category:hover {
  opacity: 1;
}

.mf-tag::before {
  content: "#";
}
