body {
  --background: #fff;
  --text: #24292e;
  --border-color: #e1e4e8;
  --link-color: #0366d6;
  --code-background: rgba(27, 31, 35, 0.05);
  --highlight-background: #f6f8fa;
  --highlight-comment: #6a737d;
  --highlight-constant: #005cc5;
  --highlight-entity: #6f42c1;
  --highlight-storage-modifier-import: #24292e;
  --highlight-entity-tag: #22863a;
  --highlight-keyword: #d73a49;
  --highlight-string: #032f62;
  --highlight-variable: #e36209;
  --highlight-brackethighlighter-unmatched: #b31d28;
  --highlight-invalid-illegal-text: #fafbfc;
  --highlight-invalid-illegal-bg: #b31d28;
  --highlight-carriage-return-text: #fafbfc;
  --highlight-carriage-return-bg: #d73a49;
  --highlight-string-regexp: #22863a;
  --highlight-markup-list: #735c0f;
  --highlight-markup-heading: #005cc5;
  --highlight-markup-italic: #24292e;
  --highlight-markup-bold: #24292e;
  --highlight-markup-deleted-text: #b31d28;
  --highlight-markup-deleted-bg: #ffeef0;
  --highlight-markup-inserted-text: #22863a;
  --highlight-markup-inserted-bg: #f0fff4;
  --highlight-markup-changed-text: #e36209;
  --highlight-markup-changed-bg: #ffebda;
  --highlight-markup-ignored-text: #f6f8fa;
  --highlight-markup-ignored-bg: #005cc5;
  --highlight-meta-diff-range: #6f42c1;
  --highlight-brackethighlighter-angle: #586069;
  --highlight-sublimelinter-gutter-mark: #959da5;
  --highlight-constant-other-reference-link: #032f62;
}
body.dark {
  --background: #0d1117;
  --text: #c9d1d9;
  --border-color: #30363d;
  --link-color: #58a6ff;
  --code-background: rgba(240, 246, 252, 0.15);
  --highlight-background: #161b22;
  --highlight-comment: #8b949e;
  --highlight-constant: #79c0ff;
  --highlight-entity: #d2a8ff;
  --highlight-storage-modifier-import: #c9d1d9;
  --highlight-entity-tag: #7ee787;
  --highlight-keyword: #ff7b72;
  --highlight-string: #a5d6ff;
  --highlight-variable: #ffa657;
  --highlight-brackethighlighter-unmatched: #f85149;
  --highlight-invalid-illegal-text: #f0f6fc;
  --highlight-invalid-illegal-bg: #8e1519;
  --highlight-carriage-return-text: #f0f6fc;
  --highlight-carriage-return-bg: #b62324;
  --highlight-string-regexp: #7ee787;
  --highlight-markup-list: #f2cc60;
  --highlight-markup-heading: #1f6feb;
  --highlight-markup-italic: #c9d1d9;
  --highlight-markup-bold: #c9d1d9;
  --highlight-markup-deleted-text: #ffdcd7;
  --highlight-markup-deleted-bg: #67060c;
  --highlight-markup-inserted-text: #aff5b4;
  --highlight-markup-inserted-bg: #033a16;
  --highlight-markup-changed-text: #ffdfb6;
  --highlight-markup-changed-bg: #5a1e02;
  --highlight-markup-ignored-text: #c9d1d9;
  --highlight-markup-ignored-bg: #1158c7;
  --highlight-meta-diff-range: #d2a8ff;
  --highlight-brackethighlighter-angle: #8b949e;
  --highlight-sublimelinter-gutter-mark: #484f58;
  --highlight-constant-other-reference-link: #a5d6ff;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  display: flex;
  justify-content: center;
  margin: 10px 10px 20px;
  font-size: 16px;
}

@media only screen and (min-width: 600px) {
  body {
    margin: 40px 10px 60px;
  }
}
main {
  width: min(100vw - 20px, 902px);
  box-sizing: border-box;
}

svg {
  width: 20px;
  fill: var(--text);
}

nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

article {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px 15px 20px;
  word-wrap: break-word;
}

header {
  display: flex;
  justify-content: space-between;
}
header a {
  display: flex;
}
header svg {
  margin: 0 8px;
}

pre code {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
  background: var(--highlight-background);
  border-radius: 6px;
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  display: block;
}

.hljs-comment,
.hljs-quote {
  color: var(--highlight-comment);
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
  color: var(--highlight-keyword);
}

.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
  color: var(--highlight-constant);
}

.hljs-string,
.hljs-doctag {
  color: var(--highlight-string);
}

.hljs-type,
.hljs-class .hljs-title {
  color: #458;
  font-weight: var(--highlight-variable);
}

.hljs-tag,
.hljs-name,
.hljs-attribute {
  color: var(--highlight-variable);
}

.hljs-regexp,
.hljs-link {
  color: var(--highlight-string-regexp);
}

.hljs-symbol,
.hljs-bullet {
  color: var(--highlight-variable);
}

.hljs-built_in,
.hljs-builtin-name {
  color: var(--highlight-variable);
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  src: local("Inter-Regular"), url("/fonts/Inter-Regular.woff2") format("woff2"), url("/fonts/Inter-Regular.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  src: local("Inter-Medium"), url("/fonts/Inter-Medium.woff2") format("woff2"), url("/fonts/Inter-Medium.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  src: local("Inter-Bold"), url("/fonts/Inter-Bold.woff2") format("woff2"), url("/fonts/Inter-Bold.woff") format("woff");
  font-display: swap;
}
.dark-control svg {
  margin: 0 5px 2px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 25px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 25px;
}
#slider:before {
  position: absolute;
  content: "";
  border-radius: 50%;
  height: 17px;
  width: 17px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

body.dark #slider:before {
  transform: translateX(20px);
}

a {
  color: var(--link-color);
  text-decoration: none;
}

h1 {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

.weight-medium {
  font-weight: 600;
}

p,
ul {
  line-height: 1.5;
}
p code,
ul code {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: var(--code-background);
  border-radius: 6px;
}

li + li {
  margin-top: 0.25em;
}