:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #3a86ff;
    --secondary-color: #8d99ae;
    --spacing-unit: 1rem;
    
    /* Blog-specific variables */
    --blog-text-color: #2e2e2e;
    --blog-heading-color: #1a1a1a;
    --blog-quote-bg: #f8f9fa;
    --blog-quote-border: #e9ecef;
    --blog-link-color: #3a86ff;
    --blog-code-bg: #f5f7f9;
    --blog-code-color: #e63946;
    --blog-text-size: 1.125rem;
    --blog-line-height: 1.75;
    --blog-max-width: 650px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 0 var(--spacing-unit);
}

.content {
    text-align: center;
    padding: calc(var(--spacing-unit) * 3) 0;
}

h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-unit);
}

.bio {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bio a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.bio a:hover {
    color: var(--accent-color);
}

.socials {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 1.5);
}

.socials a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.socials a:hover {
    color: var(--accent-color);
}

.blog-link {
    position: relative;
}

.blog-link::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent-color);
    top: -4px;
    right: -4px;
}

/* Site header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    padding: var(--spacing-unit) 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-logo:hover {
    color: var(--accent-color);
}

.site-nav a {
    color: var(--text-color);
    opacity: 0.8;
    text-decoration: none;
    margin-left: var(--spacing-unit);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* Blog page styles */
.blog-container {
    max-width: 700px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 6) var(--spacing-unit) calc(var(--spacing-unit) * 3);
}

.blog-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-unit);
    display: none; /* Hide the generic blog title */
}

/* Blog content styles for improved readability */
.blog-content {
    font-size: var(--blog-text-size);
    line-height: var(--blog-line-height);
    color: var(--blog-text-color);
    max-width: var(--blog-max-width);
    margin: 0 auto;
}

.blog-content h1, 
.blog-content h2, 
.blog-content h3, 
.blog-content h4, 
.blog-content h5, 
.blog-content h6 {
    color: var(--blog-heading-color);
    font-weight: 600;
    margin-top: calc(var(--spacing-unit) * 2.5);
    margin-bottom: calc(var(--spacing-unit) * 1.25);
    line-height: 1.3;
}

.blog-content h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

.blog-content h2 {
    font-size: 1.75rem;
}

.blog-content h3 {
    font-size: 1.5rem;
}

.blog-content p {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

/* Style links inside blog post content */
.blog-content a:not(.blog-post-link) {
    color: var(--blog-link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.blog-content a:not(.blog-post-link):hover {
    border-bottom-color: var(--blog-link-color);
}

.blog-content blockquote {
    background-color: var(--blog-quote-bg);
    border-left: 4px solid var(--blog-quote-border);
    padding: calc(var(--spacing-unit) * 1.25);
    margin: calc(var(--spacing-unit) * 1.5) 0;
    font-style: italic;
}

.blog-content blockquote p:last-child {
    margin-bottom: 0;
}

.blog-content code {
    font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
    background-color: var(--blog-code-bg);
    color: var(--blog-code-color);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.blog-content pre {
    background-color: var(--blog-code-bg);
    padding: calc(var(--spacing-unit) * 1.25);
    border-radius: 5px;
    overflow-x: auto;
    margin: calc(var(--spacing-unit) * 1.5) 0;
}

.blog-content pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.9rem;
    color: var(--blog-text-color);
    display: block;
}

.blog-content ul, 
.blog-content ol {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    padding-left: calc(var(--spacing-unit) * 2);
}

.blog-content li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: calc(var(--spacing-unit) * 1.5) 0;
}

.blog-content strong {
    font-weight: 600;
    color: var(--blog-heading-color);
}

.blog-content em {
    font-style: italic;
}

.blog-content hr {
    border: none;
    border-top: 1px solid var(--blog-quote-border);
    margin: calc(var(--spacing-unit) * 2.5) 0;
}

/* Blog post list styles */
.blog-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-post-item {
    margin-bottom: calc(var(--spacing-unit) * 3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: calc(var(--spacing-unit) * 3);
}

.blog-post-item:last-child {
    border-bottom: none;
}

.blog-post-link {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s ease;
}

/* Blog post link hover has no background change, only the title changes color */

.blog-post-title {
    font-size: 1.5rem;
    margin-bottom: calc(var(--spacing-unit) * 1);
    color: var(--text-color);
    transition: color 0.2s ease;
}

.blog-post-link:hover .blog-post-title {
    color: var(--accent-color);
}

.blog-post-excerpt {
    color: var(--secondary-color);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.blog-post-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    display: block;
}

/* Blog post list styles - keeping these separate from blog content styles */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .bio {
        font-size: 1rem;
    }
    
    .blog-title {
        font-size: 1.75rem;
    }
    
    .blog-content {
        font-size: 1rem;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-color: #f5f5f5;
        --accent-color: #4d9eff;
        --secondary-color: #a0a9b8;
        
        /* Dark mode blog-specific variables */
        --blog-text-color: #d8d8d8;
        --blog-heading-color: #f5f5f5;
        --blog-quote-bg: #1e1e1e;
        --blog-quote-border: #333333;
        --blog-link-color: #4d9eff;
        --blog-code-bg: #1a1a1a;
        --blog-code-color: #ff6b6b;
    }
    
    .site-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .blog-content strong {
        color: var(--blog-heading-color);
    }
}
