:root {
    --primary-bg: #f9f9f9;
    --primary-text: #222;
    --secondary-text: #555;
    --accent: #333;
    --border-radius: 8px;
    --max-width: 1200px;
    --font-serif: 'DM Serif Text', serif;
    --font-sans: 'Lexend Deca', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
    background: var(--primary-bg);
    color: var(--primary-text);
    font-family: var(--font-sans);
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    position: relative;
    margin-top: 4px;
    font-family: var(--font-serif);
    font-size: 2rem;
    text-align: center;
    color: var(--accent);
}

article {
    margin: 1rem 0;
    padding: 1rem;
    width: 100%;
    max-width: var(--max-width);
    box-sizing: border-box;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

time {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-bottom: 0.5rem;
}

h1 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
    line-height: 1.2;
}

hr {
    height: 1px;
    width: 100%;
    border: none;
    background-color: var(--accent);
    margin: 1rem 0;
}

h2 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-text);
    line-height: 1.3;
}

img, iframe {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    display: block;
}

p {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 300;
    color: var(--primary-text);
    line-height: 1.6;
}

blockquote {
    font-size: 1rem;
    margin: 1rem 0;
    padding: 0.75rem 1.25rem;
    line-height: 1.5;
    background-color: #f3f3f3;
    border-left: 4px solid var(--accent);
    color: var(--secondary-text);
}

ol, ul {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-text);
    line-height: 1.5;
    padding-left: 1rem;
}

code, pre {
    font-family: var(--font-mono);
    background: #f5f5f5;
    color: #444;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-size: 0.95em;
    word-break: break-word;
}

glassmorphic-navbar {
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    display: block;
}

@media (min-width: 601px) {
    glassmorphic-navbar {
        width: 100%;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0.5rem;
        padding-top: 0;
    }
    article {
        padding: 0.5rem;
        margin: 0.5rem 0;
        box-shadow: none;
    }
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1rem;
    }
    p, ol, ul, blockquote, time {
        font-size: 0.95rem;
    }
    img, iframe {
        margin: 0.5rem 0;
    }
    blockquote {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    article {
        max-width: 98vw;
        padding: 1rem;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.1rem;
    }
    p, ol, ul, blockquote, time {
        font-size: 1rem;
    }
}

@media (min-width: 1025px) {
    body {
        padding: 2rem 0;
    }
    article {
        margin: 2rem 0;
        padding: 2rem;
        box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    }
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    p, ol, ul, blockquote, time {
        font-size: 1.15rem;
    }
    blockquote {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
}

/* Dark mode styles */
[data-theme="dark"] body {
    background: #181a1b;
    color: #e0e0e0;
}

[data-theme="dark"] article {
    background: #232526;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

[data-theme="dark"] .header,
[data-theme="dark"] h1,
[data-theme="dark"] h2 {
    color: #e0e0e0;
}

[data-theme="dark"] hr {
    background-color: #444;
}

[data-theme="dark"] blockquote {
    background-color: #222;
    border-left: 4px solid #888;
    color: #bbb;
}

[data-theme="dark"] time,
[data-theme="dark"] ol,
[data-theme="dark"] ul,
[data-theme="dark"] p {
    color: #ccc;
}

[data-theme="dark"] code, [data-theme="dark"] pre {
    background: #222;
    color: #eee;
}

/* Navbar and sidebar dark mode (unchanged from previous) */
[data-theme="dark"] nav {
    background-color: #232526;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .nav-brand {
    color: #e0e0e0;
}
[data-theme="dark"] .nav-links a {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .hamburger {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .hamburger span {
    background: #e0e0e0;
}
[data-theme="dark"] .sidebar {
    backdrop-filter: brightness(0.8);
    border-left-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .sidebar-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .sidebar-title,
[data-theme="dark"] .theme-label {
    color: #e0e0e0;
}
[data-theme="dark"] .close-sidebar {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}
[data-theme="dark"] .close-sidebar:hover {
    background: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .section-title {
    color: #999;
}
[data-theme="dark"] .blog-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}
[data-theme="dark"] .blog-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .blog-date,
[data-theme="dark"] .no-posts {
    color: #999;
}
[data-theme="dark"] .sidebar-section {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}