html {
  color: #eee;
  background: rgb(43, 43, 49);
  scroll-behavior: smooth;
  scroll-padding: 50px 0;
}

body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  border-bottom: 1px solid #eee;
  position: relative;
}

.heading-link {
  position: absolute;
  right: 100%;
  top: 0;
  width: 2rem;
  opacity: 0;
}

.heading-link:before {
  position: absolute;
  left: -50%;
  right: -50%;
  top: -50%;
  bottom: -50%;
  content: " ";
}

h1:hover .heading-link,
h2:hover .heading-link,
h3:hover .heading-link,
h4:hover .heading-link,
h5:hover .heading-link,
h6:hover .heading-link {
  opacity: 1;
}

a {
  color: rgb(0, 225, 255);
}

pre {
  background: rgb(0, 0, 0);
  page-break-inside: avoid;
}

pre code {
  background: transparent;
  padding: 0;
}

code {
  background: rgb(29, 28, 28);
  padding: 0.2rem;
}

li {
  margin-bottom: 0.75rem;
}

li ul {
  margin-top: 0.75rem;
}

ul,
ol {
  page-break-inside: avoid;
}

h1 {
  page-break-before: right;
}
h2,
h1 {
  page-break-after: avoid;
}
