:root {
    color-scheme: light dark;
    --fg: #1a1a1a;
    --bg: #fdfdfd;
    --muted: #666;
    --link: #0366d6;
    --code-bg: #f6f8fa;
    --border: #d0d7de;
}

@media (prefers-color-scheme: dark) {
    :root {
        --fg: #e6e6e6;
        --bg: #1a1a1a;
        --muted: #aaa;
        --link: #58a6ff;
        --code-bg: #161b22;
        --border: #30363d;
    }
}

html,
body {
    background: var(--bg);
    color: var(--fg);
}

body {
    font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 760px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    margin-top: 1.5em;
}

h1 {
    border-bottom: 1px solid var(--border);
    padding-bottom: .3em;
}

a {
    color: var(--link);
}

pre,
code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

pre {
    background: var(--code-bg);
    padding: 1em;
    border-radius: 6px;
    overflow-x: auto;
}

code {
    background: var(--code-bg);
    padding: .15em .35em;
    border-radius: 3px;
    font-size: 90%;
}

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

blockquote {
    border-left: 4px solid var(--border);
    margin: 0;
    padding: 0 1em;
    color: var(--muted);
}

table {
    border-collapse: collapse;
}

th, td {
    border: 1px solid var(--border);
    padding: .4em .8em;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
}
