/**
 * Minimal overrides to base elements, especially for markdown-generated HTML.
 *
 * Rarely use layout/positioning in here, should all be done by tachyons.
 */

body {
  -webkit-font-smoothings: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  max-width: 900px;
}

code {
  padding: 2px 4px;
  font-size: 90%;
  background-color: #eeeeee;
}

pre {
  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  line-height: 1.4;
  word-break: break-all;
  word-wrap: break-word;
  border: 1px solid #ccc;
  border-radius: 4px;
}

pre,
code {
  font-family: monocode, monospace;
}

hr {
  border: 0;
  height: 1px;
  margin: 2em 0;
  background-color: #ccc;
}

a,
a:visited {
  color: #007FFF;
  text-decoration: none;
}

a.dark {
  color: #333;
}

img.img-cover {
  object-fit: cover;
}

.summary figure,
.summary img {
  display: none;
}

article figure img {
  max-height: 260px;
}

article figure {
  margin: 16px;
  display: inline-block;
}

.mermaid {
  display: none;
  text-align: center;
}

.mermaid[data-processed] {
  display: block;
}
