* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll;
  height: 100%;
  font: 100%/1.5 sans-serif;
  word-wrap: break-word;
  margin: 0 auto;
  padding: 1.5em;
}

@media (min-width: 768px) {
  html {
    max-width: 42em;
  }
}

h1,
h2,
h3,
h4 {
  margin: 2.5rem 0 1.5rem 0;
  line-height: 1.25;
}

.subtitle {
  font-weight: normal;
  font-size: 0.75em;
}

p {
  margin: 1em 0;
}

a {
  color: #2579ab;
}

a:visited {
  color: #7125ab;
}

.nav-bar {
  font-family: monospace;
  font-size: 120%;
  margin-bottom: 1em;
  border-bottom: #950077 1px solid;
}

.nav-bar a {
  color: #950077;
  text-decoration: none;
}
.nav-bar a:visited {
  color: #950077;
}
.nav-bar a:hover,
a:focus,
a:active {
  text-decoration: underline;
}

ul,
ol {
  margin: 1em;
}

ul.posts {
}

.posts li {
  margin-bottom: 0.2rem;
}

/* the little anchor on our headings */
.zola-anchor {
  text-decoration: none;
  font-size: 1rem;
  vertical-align: middle;
}

.zola-anchor:hover {
    text-decoration: underline;
}

/* recommended styling for zola code blocks */
pre {
  font: monospace;
  padding: 1rem;
  overflow: auto;
}

/* The line numbers already provide some kind of left/right padding */
pre[data-linenos] {
  padding: 1rem 0;
}

pre table td {
  padding: 0;
}

/* The line number cells */
pre table td:nth-of-type(1) {
  text-align: center;
  user-select: none;
}

pre mark {
  /* If you want your highlights to take the full width. */
  display: block;
  /* The default background colour of a mark is bright yellow */
  background-color: rgba(254, 252, 232, 0.9);
}

pre table {
  width: 100%;
  border-collapse: collapse;
}

/* numbered headings
 */

body {
  counter-reset: h2;
}
h2 {
  counter-reset: h3;
}
h3 {
  counter-reset: h4;
}
h4 {
  counter-reset: h5;
}
h5 {
  counter-reset: h6;
}
h2:before {
  counter-increment: h2;
  content: counter(h2) ". ";
}
h3:before {
  counter-increment: h3;
  content: counter(h2) "." counter(h3) ". ";
}
h4:before {
  counter-increment: h4;
  content: counter(h2) "." counter(h3) "." counter(h4) ". ";
}
h5:before {
  counter-increment: h5;
  content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". ";
}
h6:before {
  counter-increment: h6;
  content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "."
    counter(h6) ". ";
}
h2.nocount:before,
h3.nocount:before,
h4.nocount:before,
h5.nocount:before,
h6.nocount:before {
  content: "";
  counter-increment: none;
}
