article { line-height: 1.6; word-wrap: break-word; }

article h1, article h2, article h3,
article h4, article h5, article h6 {
  margin: 1.5rem 0 .5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--emphasized);
}

article h1 { font-size: 2em; border-bottom: 1px solid var(--highlight); padding-bottom: .3em; }
article h2 { font-size: 1.5em; border-bottom: 1px solid var(--highlight); padding-bottom: .3em; }
article h3 { font-size: 1.25em; }
article h4 { font-size: 1em; }

article p { margin: 0 0 1rem; }

article a { color: var(--blue); text-decoration: none; }
article a:hover { text-decoration: underline; text-underline-offset: .2rem; }

article strong, article b { font-weight: 600; }
article em, article i { font-style: italic; }

article ul, article ol { margin: 0 0 1rem; padding-left: 2rem; }
article li { margin: .25rem 0; }
article li > p { margin-top: .25rem; }

article blockquote {
  margin: 0 0 1rem;
  padding: 0 1em;
  color: var(--secondary);
  border-left: .25em solid var(--highlight);
}
article blockquote > :first-child { margin-top: 0; }
article blockquote > :last-child { margin-bottom: 0; }

article hr {
  height: .25em;
  margin: 1.5rem 0;
  padding: 0;
  border: 0;
  background-color: var(--highlight);
}

article img { max-width: 100%; box-sizing: content-box; }

article code {
  font-family: var(--font-mono);
  padding: .2em .4em;
  background-color: var(--highlight);
  border-radius: 4px;
  white-space: break-spaces;
}

article pre {
  font-family: var(--font-mono);
  line-height: 1.45;
  padding: 1rem;
  margin: 0 0 1rem;
  overflow-x: auto;
  min-width: 0;
  background-color: var(--highlight);
  border-radius: 6px;
}

article pre code {
  font-size: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
  white-space: pre;
}

article table {
  border-spacing: 0;
  border-collapse: collapse;
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 1rem;
}

article table th {
  font-weight: 600;
}

article table th,
article table td {
  padding: 6px 13px;
  border: 1px solid var(--highlight);
}

article table tr { border-top: 1px solid var(--highlight); }
article table tr:nth-child(2n) { background-color: var(--highlight); }
