/* --- Variables & Reset --- */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f9f9f9;
    --accent-color: #2563eb; /* A nice blue */
    --border-color: #e5e5e5;
    --font-serif: 'Lora', serif;
    --font-sans: 'Inter', sans-serif;
    --container-width: 800px;
}

/* Dark Mode Theme */
[data-theme="dark"] {
    --bg-color: #111111;
    --text-color: #e0e0e0;
    --card-bg: #1a1a1a;
    --accent-color: #60a5fa;
    --border-color: #333333;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--accent-color); }

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

/* --- Header --- */
.site-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

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

.logo {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu { display: flex; gap: 1.5rem; align-items: center; }
.nav-menu a { font-size: 0.95rem; font-weight: 500; }

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
}
.icon { width: 20px; height: 20px; }

/* --- Hero Section --- */
.hero { margin-bottom: 4rem; text-align: left; }
.hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-subtitle { color: #777; font-size: 1.1rem; }
[data-theme="dark"] .hero-subtitle { color: #aaa; }

/* --- Article Grid --- */
.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.grid-layout {
    display: grid;
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.card:hover { transform: translateY(-3px); }

.card-date { font-size: 0.85rem; color: #888; display: block; margin-bottom: 0.5rem; }
.card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.card-excerpt { margin-bottom: 1.5rem; color: var(--text-color); opacity: 0.9; }
.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* --- Footer --- */
.site-footer {
    margin-top: 5rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}
.social-links { margin-top: 1rem; display: flex; gap: 1rem; justify-content: center; }

/* --- Mobile Responsive --- */
@media (max-width: 600px) {
    .hero-title { font-size: 2rem; }
    .card { padding: 1.5rem; }
}