:root, [data-theme="light"] {
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border: #dee2e6;
    --border-light: #e9ecef;
    --accent: #0d6efd;
    --accent-hover: #0b5ed7;
    --accent-light: #e7f1ff;
    --error: #dc3545;
    --success: #198754;
    --warning: #ffc107;

    --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Source Serif 4", Charter, Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", "Fira Mono", "Cascadia Code", monospace;
    --font-heading: "Source Serif 4", Charter, Georgia, "Times New Roman", serif;
    --font-body: var(--font-sans);

    --radius: 6px;
    --radius-sm: 4px;
    --radius-big: 999px;
    --sidebar-w: 280px;
    --writer-sidebar-w: 260px;
    --max-content-w: 780px;
    --header-h: 48px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --transition: 150ms ease;
}

[data-theme="light"] .article-content,
[data-theme="light"] .editor-preview {
    line-height: 1.75;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

[data-theme="light"] .article-content h1,
[data-theme="light"] .article-content h2,
[data-theme="light"] .article-content h3,
[data-theme="light"] .article-header h1,
[data-theme="light"] .editor-preview h1,
[data-theme="light"] .editor-preview h2,
[data-theme="light"] .editor-preview h3,
[data-theme="light"] .list-page h1,
[data-theme="light"] .feed-top-bar h2,
[data-theme="light"] .article-slice-title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

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

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

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

[data-theme="light"] .article-content p {
    margin-bottom: 1.2em;
}

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

[data-theme="light"] a:hover {
    color: var(--accent-hover);
    text-decoration-style: wavy;
}

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

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

[data-theme="light"] .article-content ul li::before {
    content: "–";
    position: absolute;
    left: -1rem;
    color: var(--accent);
    font-weight: 700;
}

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

[data-theme="light"] blockquote {
    margin: 1.5rem 0;
    padding: 0.6rem 1.2rem;
    border-left: 3px solid var(--accent);
    color: var(--text-secondary);
    font-style: italic;
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

[data-theme="light"] code,
[data-theme="light"] pre {
    font-family: var(--font-mono);
    background: #f1f3f5;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

[data-theme="light"] code {
    padding: 0.1rem 0.3rem;
    color: #d63384;
    font-size: 0.88em;
}

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

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

[data-theme="light"] th {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
    background: var(--bg-tertiary);
}

[data-theme="light"] th,
[data-theme="light"] td {
    border: 1px solid var(--border);
    padding: 0.7rem 0.9rem;
}

[data-theme="light"] hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

[data-theme="light"] ::selection {
    background: #b3d4fc;
    color: var(--text);
}
