article {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
  font-variant-numeric: oldstyle-nums;

  & > * + * {
    margin-block-start: 1.5rem;
  }
}

@media (min-width: 55rem) {
  article.sidenotes {
    max-width: none;
    margin: 0;
    padding: 0;

/*     & > * + * { */
/*       margin-block-start: 0; */
/*     } */

    p, blockquote, hr, pre, ol, ul {
      max-width: 42rem;
    }

    p, blockquote {
      text-align: justify;
      /* text-wrap: pretty; */
      hyphens: auto;
    }

    hr {
      margin-left: 0;
      margin-right: auto;
    }

    aside {
      font-size: var(--font-size-sidenote);
      float: right;
      width: 20%;
      margin-top: -5rem;
      border: none;
      background-color: unset;
    }
  }
}

h1 {
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 0;
}

code {
  display: inline-block;
}

pre.code, code.block {
  background-color: lightgray;
  border-radius: 2px;
  padding: .5rem;
  font-size: .9rem;
}

table {
  margin: 0 auto;


  th:first-child, td:first-child {
    text-align: left;
  }
}

figure {
  margin: 5% 0;
  text-align: center;

  figcaption {
    margin: .5rem 0;
    color: gray;

    a {
      color: gray;
    }
  }
}

blockquote {
  font-size: var(--font-size-blockquote);
  padding: 0 1.25rem;

  p + p {
    margin-block-start: 1rem;
  }
}

/* blockquote { */
/*   background: #f9f9f9; */
/*   border-left: 5px solid #ccc; */
/*   padding: 1em 10px; */
/*   quotes: "\201C""\201D""\2018""\2019"; */

/*   & p:first-child { */
/*     margin-top: 0px; */
/*   } */

/*   & p:last-child { */
/*     margin-bottom: 0px; */
/*   } */
/* } */

/* blockquote:before { */
/*   color: #ccc; */
/*   font-size: 4em; */
/*   line-height: 0.1em; */
/*   margin-right: 0.25em; */
/*   vertical-align: -0.4em; */
/* } */

.author {
  color: #498FE6;
}

.pubdate {
  margin-top: 5px;
  color: #498FE6;
}

.book-title, .postscript {
  font-style: italic;
}

aside {
  border: 2px dashed var(--blue-accent);
  background-color: rgba(73, 143, 230, .1);
  padding: .5rem;

  h2 {
    color: black;
  }
}

cite.article {
  font-style: normal;

  &:before {
    content: '“'
  }

  &:after {
    content: '”'
  }
}

.blog-end {
  display: block;
  margin: 2rem auto;
}

ol.emphasis {
  counter-reset: foobar;
  list-style: none;

  li::before {
    counter-increment: foobar;
    content: counter(foobar);
    font-family: "concourse_index";
    font-size: 1.10rem;
    position: absolute;
    margin-left: -2.5rem;
  }

  li {
    margin-block-end: 1rem;
  }
}
