/* static/style.css */
:root {
    color-scheme: dark;
}

html,
body {
    margin: 0;
    background: #0b0b0b;
    /* site background */
    color: #e6e6e6;
    /* default text */
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: #8ab4f8;
}

a:visited {
    color: #c58af9;
}

a:hover {
    text-decoration: underline;
}

.content {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.toolbar {
    background: #111;
    border-bottom: 1px solid #333;
    padding: 0.5rem 1rem;
}

.toolbar label {
    color: #bbb;
}

#article-select,
select,
input,
button {
    background: #111;
    color: #e6e6e6;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
}

option {
    background: #111;
    color: #e6e6e6;
}

pre,
code,
.hljs {
    background: #0f0f0f;
    /* code blocks */
    color: #e6e6e6;
}

pre {
    padding: 1rem;
    overflow: auto;
    border: 1px solid #333;
    border-radius: 8px;
}

code {
    padding: 0.1em 0.3em;
    border-radius: 4px;
}

blockquote {
    border-left: 4px solid #333;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    color: #ccc;
    background: #0f0f0f;
}

hr {
    border: 0;
    border-top: 1px solid #333;
}

/* Tables (if any) */
table {
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #333;
    padding: 0.5rem 0.75rem;
}

thead th {
    background: #121212;
}

/* Images: do NOT invert; respect originals */
img {
    filter: none;
}

.invert-if-dark {
    filter: invert(1) hue-rotate(180deg);
}

/* MathJax inherits color automatically */