/* FastML-inspired Minimalist Theme with Dark Mode */
:root {
    /* Light Mode (Default) - FastML Style */
    --bg-body: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --link-color: #0066cc; /* Classic Web Blue */
    --link-hover: #003366;
    --border-color: #dddddd;
    --code-bg: #f5f5f5;
    
    --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Georgia', 'Times New Roman', serif; /* Serif for reading */
}

[data-theme="dark"] {
    /* Dark Mode */
    --bg-body: #1a1a1a;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --link-color: #66b2ff; /* Lighter blue for dark mode */
    --link-hover: #99ccff;
    --border-color: #444444;
    --code-bg: #2a2a2a;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 18px; /* Readable size */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Layout */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.subtitle {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background-color: var(--code-bg);
}

/* Content */
h2, h3 {
    font-family: var(--font-heading);
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

a:hover {
    border-bottom-color: var(--link-color);
}

/* Blog List */
.blog-list {
    list-style: none;
}

.blog-item {
    margin-bottom: 2.5rem;
}

.blog-date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--link-color); /* Title is the link */
    font-weight: 700;
}

.blog-title:hover {
    color: var(--link-hover);
    text-decoration: none; /* Handled by specific style above if wanted, but FastML titles are just links */
}

.blog-excerpt {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.social-links a {
    margin: 0 10px;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--link-color);
}
