:root {
    --bg-color: #ffffff;
    --text-primary: #292929;
    --text-secondary: #757575;
    --accent-color: #1a8917;
    /* Medium Green */
    --accent-light: #e8f3e8;
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(0, 0, 0, 0.05);
    --card-bg: #ffffff;
    --font-serif: 'Charter', 'Georgia', 'Cambria', 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --article-width: 720px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.domain-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    padding: 5rem 0 3rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -3px;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-primary);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 800px;
}

.blog-card {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2rem;
    cursor: pointer;
    align-items: center;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

    /* Modal / Article View */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #ffffff;
        z-index: 2000;
        display: none;
        overflow-y: auto;
    }

    .modal-overlay.active {
        display: block;
    }

    .article-container {
        max-width: var(--article-width);
        margin: 0 auto;
        padding: 5rem 2rem;
    }

    .close-modal {
        position: fixed;
        top: 2rem;
        right: 2rem;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-secondary);
        z-index: 2100;
    }

    /* Medium Typography */
    .article-header h1 {
        font-family: var(--font-serif);
        font-size: 3.5rem;
        /* Even larger for impact */
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 2rem;
        letter-spacing: -1.5px;
    }

    .author-meta {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #eee;
    }

    .author-info {
        font-size: 0.9rem;
    }

    .author-name {
        font-weight: 600;
    }

    .read-time {
        color: var(--text-secondary);
    }

    .img-caption {
        text-align: center;
        font-size: 0.85rem;
        color: var(--text-secondary);
        margin-top: 1rem;
    }

    .content-body {
        font-family: var(--font-serif);
        font-size: 1.3rem;
        line-height: 1.8;
        color: var(--text-primary);
    }

    .content-body p {
        margin-bottom: 2rem;
    }

    .content-body h2 {
        font-family: var(--font-sans);
        font-size: 1.8rem;
        margin: 3rem 0 1.5rem;
        font-weight: 700;
    }

    .content-body blockquote {
        font-style: italic;
        font-size: 1.5rem;
        border-left: 3px solid var(--text-primary);
        padding-left: 1.5rem;
        margin: 2.5rem 0;
        color: var(--text-secondary);
    }

    /* Formulas */
    .formula {
        font-style: italic;
        text-align: center;
        background: #f9f9f9;
        padding: 2rem;
        margin: 2.5rem 0;
        border-radius: 8px;
        font-family: 'Times New Roman', serif;
        font-size: 1.5rem;
    }

    /* Tables */
    .content-body table {
        width: 100%;
        border-collapse: collapse;
        margin: 3rem 0;
        font-family: var(--font-sans);
        font-size: 1rem;
    }

    .content-body th {
        border-bottom: 1px solid #eee;
        padding: 1rem;
        text-align: left;
        color: var(--text-secondary);
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }

    .content-body td {
        border-bottom: 1px solid #eee;
        padding: 1rem;
    }

    /* Code Snippets */
    .content-body pre {
        background: #f2f2f2;
        padding: 2rem;
        border-radius: 4px;
        overflow-x: auto;
        margin: 2.5rem 0;
    }

    .content-body code {
        font-family: var(--font-mono);
        font-size: 0.9rem;
    }

    /* Graphs / Diagrams (SVG based) */
    .diagram-container {
        background: #f9f9f9;
        padding: 2rem;
        border-radius: 12px;
        margin: 3rem 0;
    }

    .references {
        border-top: 1px solid #eee;
        padding-top: 3rem;
        margin-top: 5rem;
        font-size: 1rem;
        color: var(--text-secondary);
    }

    .references h4 {
        color: var(--text-primary);
        margin-bottom: 1.5rem;
    }

    .references ol {
        padding-left: 1.5rem;
    }

    .references li {
        margin-bottom: 1rem;
    }

    @media (max-width: 900px) {
        .hero-title {
            font-size: 3rem;
        }

        .hero {
            padding: 3rem 0 2rem;
        }
    }

.footer {
    padding: 5rem 0 3rem;
    margin-top: 8rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}