@font-face {
  font-family: "Go Mono";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/go/Go-Mono.ttf") format("truetype");
}

@font-face {
  font-family: "Go Mono";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/go/Go-Mono-Italic.ttf") format("truetype");
}

@font-face {
  font-family: "Go Mono";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/go/Go-Mono-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Go Mono";
  font-style: italic;
  font-weight: 700;
  src: url("../fonts/go/Go-Mono-Bold-Italic.ttf") format("truetype");
}

:root {
  --mono-font: "Go Mono", monospace;
}

html,
body,
button,
input,
select,
textarea,
.content,
.sidebar,
.menu-title {
  font-family: "Libertinus Serif", Georgia, "Times New Roman", serif;
}

code,
pre,
.hljs,
.ace_editor,
.ace_editor * {
  font-family: var(--mono-font);
}

.content main {
  max-width: 940px;
}

.content p,
.content li {
  line-height: 1.62;
}

.content h2 {
  margin-top: 2.2em;
}

.content h3 {
  margin-top: 1.7em;
}

.content table {
  font-size: 0.93em;
}

.content th {
  white-space: nowrap;
}

.content blockquote {
  border-left: 0.25em solid var(--quote-border);
  color: var(--fg);
  padding: 0.1em 1em;
}

.sidebar .chapter li.part-title {
  margin-top: 1.35em;
}

.sidebar .chapter li.chapter-item {
  line-height: 1.35;
}

.sidebar .chapter li a.active {
  background: var(--theme-hover);
  border-inline-start: 3px solid var(--sidebar-active);
  border-radius: 4px;
  color: var(--sidebar-active);
  display: block;
  flex: 1;
  font-weight: 700;
  margin-inline-start: -0.55em;
  padding: 0.18em 0.45em 0.18em calc(0.55em - 3px);
}

.sidebar .chapter li .chapter-link-wrapper:has(> a.active) {
  background: var(--theme-hover);
  border-radius: 4px;
}
