[data-theme="notebook"] {
    --bg: #f5edd5;
    --bg-secondary: #efe3c8;
    --bg-tertiary: #e3d5b5;
    --text: #1e180e;
    --text-secondary: #5a4c38;
    --text-muted: #8a7a62;
    --border: #c8b590;
    --border-light: #dcccba;
    --accent: #2266cc;
    --accent-hover: #1a52a8;
    --accent-light: #d4e4f8;

    --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.03);
    --shadow: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 3px 6px rgba(0,0,0,0.04);
}

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

[data-theme="notebook"] .article-content p:not(:has(img, video, figure)),
[data-theme="notebook"] .article-content li {
    line-height: 1.8;
    background-image: repeating-linear-gradient(
        transparent 0em,
        transparent 1.75em,
        rgba(180, 160, 130, 0.25) 1.75em,
        rgba(180, 160, 130, 0.25) 1.8em
    );
    background-attachment: local;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

[data-theme="notebook"] 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="notebook"] code,
[data-theme="notebook"] pre {
    font-family: var(--font-mono);
    background: #ede6d3;
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 0.88em;
}

[data-theme="notebook"] code {
    padding: 0.1rem 0.25rem;
    color: #7a3e2a;
}

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

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

[data-theme="notebook"] 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="notebook"] th,
[data-theme="notebook"] td {
    border: 1px solid var(--border);
    padding: 0.6rem 0.8rem;
}

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

[data-theme="notebook"] ::selection {
    background: #d4cfbc;
    color: #2c2416;
}
