:root {
    --background-color: #ffffff;
    --border: #e0e3e6;
    --code-background: #f6f8fa;
    --code-blue: #005cc5;
    --code-foreground: #24292e;
    --code-green: #2dba4e;
    --code-indigo: #6f42c1;
    --code-red: #d73a49;
    --line: #e0e3e6;
    --table-background-primary: transparent;
    --table-background-secondary: #f6f8fa;
    --text-body: #24292e;
    --text-header: #1b1f23;
    --text-link: #0366d6;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #23262e;
        --border: #4a4a4a;
        --code-background: #27292b;
        --code-blue: #79c0ff;
        --code-foreground: #c9d1d9;
        --code-green: #2dba4e;
        --code-indigo: #d2a8ff;
        --code-red: #ff7b72;
        --line: #4a4a4a;
        --table-background-primary: transparent;
        --table-background-secondary: #2f323a;
        --text-body: #dedede;
        --text-header: #ffffff;
        --text-link: #58a6ff;
    }
}

body {
    background-color: var(--background-color);
    color: var(--text-body);
    font-family: -apple-system, Helvetica, Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 720px;
    padding: 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-header);
    line-height: 1.25;
    margin: 0;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-top: 2.8rem;
    margin-bottom: 0.7rem;
}

h2 {
    font-size: 2rem;
    line-height: 1.25;
    margin-top: 2.1rem;
    margin-bottom: 0.7rem;
}

h3 {
    font-size: 1.6666666667rem;
    line-height: 1.3;
    margin-top: 2.1rem;
    margin-bottom: 0.7rem;
}

h4 {
    font-size: 1.1666666667rem;
    margin-top: 1.4rem;
    margin-bottom: 0.35rem;
}

h5 {
    font-size: 1rem;
    margin-top: 1.4rem;
    margin-bottom: 0.35rem;
}

h6 {
    font-size: 0.8333333333rem;
    margin-top: 1.4rem;
    margin-bottom: 0.35rem;
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

ol ol,
ul ol {
    list-style-type: lower-roman;
}

ol ol ol,
ol ul ol,
ul ol ol,
ul ul ol {
    list-style-type: lower-alpha;
}

blockquote {
    border-left: 0.2rem solid var(--line);
    margin: 0;
    padding: 0 1rem;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
    margin-top: 2.1rem;
    width: 100%;
}

table td,
table th {
    border: 1px solid var(--border);
    padding: 6px 13px;
}

table tr {
    background-color: var(--table-background-primary);
}

table tr:nth-child(2n) {
    background-color: var(--table-background-secondary);
}

input:focus,
textarea:focus {
    outline: none;
}

code {
    background-color: var(--code-background);
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 85%;
    padding: 0.2rem 0.4rem;
}

pre {
    background-color: var(--code-background);
    padding: 1rem;
    overflow: auto;
}

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

.footnotes {
    font-size: 1.0rem;
}

div.sourceCode {
    background-color: var(--code-background);
    position: relative;
}

pre.sourceCode {
    margin: 0;
}

code span {
    color: var(--code-foreground);
}

code span.al {
    color: var(--red);
    font-weight: bold;
}

code span.an {
    color: var(--code-foreground);
    font-weight: bold;
    font-style: italic;
}

code span.at {
    color: var(--code-blue);
}

code span.bn {
    color: var(--code-foreground);
}

code span.bu {
}

code span.cf {
    color: var(--code-foreground);
    font-weight: bold;
}

code span.ch {
    color: var(--code-foreground);
}

code span.cn {
    color: var(--code-blue);
}

code span.co {
    color: var(--code-foreground);
    font-style: italic;
}

code span.cv {
    color: var(--code-foreground);
    font-weight: bold;
    font-style: italic;
}

code span.do {
    color: var(--code-foreground);
    font-style: italic;
}

code span.dt {
    color: var(--code-indigo);
}

code span.dv {
    color: var(--code-foreground);
}

code span.er {
    color: var(--code-foreground);
    font-weight: bold;
}

code span.ex {
}

code span.fl {
    color: var(--code-foreground);
}

code span.fu {
    color: var(--code-foreground);
}

code span.im {
}

code span.in {
    color: var(--code-foreground);
    font-weight: bold;
    font-style: italic;
}

code span.kw {
    color: var(--code-red);
    font-weight: bold;
}

code span.op {
    color: var(--code-foreground);
}

code span.ot {
    color: var(--code-foreground);
}

code span.pp {
    color: var(--code-foreground);
}

code span.sc {
    color: var(--code-foreground);
}

code span.ss {
    color: var(--code-foreground);
}

code span.st {
    color: var(--code-green);
}

code span.va {
    color: var(--code-foreground);
}

code span.vs {
    color: var(--code-foreground);
}

code span.wa {
    color: var(--code-foreground);
    font-weight: bold;
    font-style: italic;
}

.footnote-ref > sup:before {
    content:  "[";
}

.footnote-ref > sup:after {
    content:  "]";
}
