[data-theme="chalkboard"] {
    --bg: #1a1815;
    --bg-secondary: #24211d;
    --bg-tertiary: #302c26;
    --text: #e8e0d0;
    --text-secondary: #a89880;
    --text-muted: #706050;
    --border: #4a4035;
    --border-light: #353028;
    --accent: #5599ff;
    --accent-hover: #77aaff;
    --accent-light: #1a2040;

    --font-sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
    --font-heading: "Caveat", "Source Sans 3", system-ui, sans-serif;
    --font-body: var(--font-sans);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 3px 6px rgba(0,0,0,0.25);
}

[data-theme="chalkboard"] .article-content {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.005em;
}

[data-theme="chalkboard"] .article-content p:not(:has(img, video, figure)),
[data-theme="chalkboard"] .article-content li {
    line-height: 1.8;
    background-image: repeating-linear-gradient(
        transparent 0em,
        transparent 1.75em,
        rgba(200, 190, 170, 0.1) 1.75em,
        rgba(200, 190, 170, 0.1) 1.8em
    );
    background-attachment: local;
}

[data-theme="chalkboard"] .editor-preview {
    font-family: var(--font-body);
    line-height: 1.8;
    font-size: 1rem;
    letter-spacing: 0.005em;
}

[data-theme="chalkboard"] .article-content h1,
[data-theme="chalkboard"] .article-content h2,
[data-theme="chalkboard"] .article-content h3,
[data-theme="chalkboard"] .article-header h1,
[data-theme="chalkboard"] .editor-preview h1,
[data-theme="chalkboard"] .editor-preview h2,
[data-theme="chalkboard"] .editor-preview h3,
[data-theme="chalkboard"] .list-page h1,
[data-theme="chalkboard"] .feed-top-bar h2,
[data-theme="chalkboard"] .article-slice-title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: #f0e8d8;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    text-decoration-color: var(--accent);
}

[data-theme="chalkboard"] .article-content h1 {
    font-size: 2rem;
}

[data-theme="chalkboard"] .article-content h2 {
    font-size: 1.5rem;
}

[data-theme="chalkboard"] .article-content h3 {
    font-size: 1.2rem;
}

[data-theme="chalkboard"] .article-content p {
    margin: 0 0 0 0;
    text-indent: 1.5em;
}

[data-theme="chalkboard"] .article-content p:first-of-type {
    text-indent: 0;
}

[data-theme="chalkboard"] a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

[data-theme="chalkboard"] a:hover {
    color: var(--accent-hover);
}

[data-theme="chalkboard"] .article-content ul {
    list-style: none;
    padding-left: 1.5rem;
}

[data-theme="chalkboard"] .article-content ul li {
    position: relative;
    margin-bottom: 0;
}

[data-theme="chalkboard"] .article-content ul li::before {
    content: "\2610";
    position: absolute;
    left: -1.4rem;
    top: 0.02rem;
    color: var(--accent);
    font-size: 0.85rem;
}

[data-theme="chalkboard"] .article-content ol li::marker {
    color: var(--accent);
    font-weight: 700;
}

[data-theme="chalkboard"] blockquote {
    margin: 0;
    padding: 0.5rem 0 0.5rem 1.2rem;
    border-left: 2px solid var(--accent);
    color: var(--text-secondary);
    background: var(--bg-secondary);
    font-style: italic;
    line-height: 1.8;
}

[data-theme="chalkboard"] code,
[data-theme="chalkboard"] pre {
    font-family: var(--font-mono);
    background: #2a2620;
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 0.88em;
}

[data-theme="chalkboard"] code {
    padding: 0.1rem 0.25rem;
    color: #d48060;
}

[data-theme="chalkboard"] pre {
    padding: 0.8rem;
    overflow-x: auto;
}

[data-theme="chalkboard"] table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
}

[data-theme="chalkboard"] th {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--accent);
}

[data-theme="chalkboard"] th,
[data-theme="chalkboard"] td {
    border: 1px solid var(--border);
    padding: 0.6rem 0.8rem;
}

[data-theme="chalkboard"] hr {
    border: 0;
    border-top: 2px dashed var(--text-muted);
    margin: 2rem 0;
}

[data-theme="chalkboard"] ::selection {
    background: #2a3a5a;
    color: #e0e0d0;
}
