::-moz-selection {
  color: var(--link-color);
  background: var(--background-color);
}

::selection {
  color: var(--link-color);
  background: var(--background-color-3);
}
a:link {
  color: var(--link-color);
}
a:visited {
  color: var(--link-color-visited);
}
a:hover {
  color: var(--link-color-hover);
  text-decoration: none;
}
a:active {
  color: var(--link-color-hover);
}

html {
  font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji,
    Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

html,
body {
  padding: 0;
  margin: 0;
  min-height: 100vh;
  /* display: flex;
  flex-direction: column; */
  font-size: 18px;
}
body {
  color: var(--text-color);
}
h1 {
  font-size: 2rem;
  line-height: 2rem;
}
h2 {
  font-size: 1.75rem;
  line-height: 2rem;
  margin-top: 1.5rem;
}
h3 {
  font-size: 1.5rem;
  line-height: 2rem;
  margin-top: 1.5rem;
}
h4 {
  font-size: 1.25rem;
  line-height: 1.5rem;
}
h5 {
  font-size: 1.75rem;
  line-height: 2rem;
}
h6 {
  font-size: 1.5rem;
  line-height: 1.75rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 8px;
  font-weight: 600;
}
hr {
  border: none;
  border-bottom: 1px solid var(--background-color-3);
  width: 100%;
}
hr.spacer {
  border: none;
}
p {
  font-size: 1rem;
  line-height: 1.5rem;
  margin-top: 16px;
  margin-bottom: 32px;
  color: var(--text-color-2);
  margin-bottom: 32px;
}
pre {
  font-size: 1rem;
  line-height: 1.5rem;
  background: var(--background-color);
  margin: 2rem auto;
  border: 2px solid var(--background-color-1);
  border-radius: 0.75rem;
  margin-bottom: 32px;
}
pre code {
  text-shadow: none;
  font-family: monospace;
  display: block;
  overflow-x: auto;
  white-space: pre;
  border-radius: 0.75rem;
  -webkit-overflow-scrolling: touch;
}
pre code a {
  border-bottom: 1px dotted var(--text-color);
}
ul {
  list-style: none;
  padding-inline-start: 1rem;
}
li {
  font-size: 1rem;
  color: var(--text-color-2);
  margin-bottom: 16px;
}
p code,
li code {
  font-family: monospace;
  font-weight: bold;
  background: var(--background-color-1);
  padding: 2px 8px;
  border-radius: 0.5rem;
}
p code a,
li code a {
  font-weight: normal;
}
li p {
  margin: 0;
}
p code a,
li code a {
  border-bottom: 1px dotted var(--text-color);
}
section {
  margin-bottom: 64px;
}
img.small {
  width: 32px;
}
img.medium {
  width: 64px;
}
img.large {
  width: 128px;
}
img.rounded {
  border-radius: 50%;
}
blockquote p {
  padding: 16px;
  display: block;
  border-left: 0.75rem solid var(--background-color-3);
  border-radius: 0.75rem;
  background: var(--background-color-1);
}

.selection-off {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.bg {
  display: block;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 0;
  top: 0;
  right: 0;
  background: radial-gradient(
    circle at top right,
    var(--primary-color-200) 1%,
    var(--white-color) 40%
  );
}

.content {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

@media (prefers-color-scheme: dark) {
  html,
  body {
    background: var(--footer-background-color);
  }
  .bg {
    background: radial-gradient(
      circle at top right,
      var(--primary-color-900) 1%,
      var(--footer-background-color) 40%
    );
  }
}
