:root {
    /* --- CONFIGURATION: FONTS --- */
    --font-body: 'Gilda Display', serif;
    --font-header: 'DM Sans', sans-serif;
    --font-code: 'IBM Plex Mono', monospace;

    /* --- CONFIGURATION: COLORS (Light Mode) --- */
    --bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #2E4057; /* Link color */
    --code-bg: #f4f4f4;
    --border-color: #eaeaea5b;
    --header-color: #000000;
}

[data-theme="dark"] {
    /* --- CONFIGURATION: COLORS (Dark Mode) --- */
    --bg-color: #000000;
    --text-color: #e0e0e0;
    --accent-color: #5d85b9;
    --code-bg: #000000;
    --border-color: #333333;
    --header-color: #ffffff;
}

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

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

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-header);
    color: var(--header-color);
    margin-bottom: 1rem;
    line-height: 1.25;
}

/* h1, h2, h3, h4 {
    border-bottom: 2px solid var(--header-color);
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
} */

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit; /* Takes the color of the header */
    text-decoration: none; /* Removes underline, optional */
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    color: inherit;
    text-decoration: underline; /* Optional: adds underline on hover */
}

a { color: var(--accent-color); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.logo { font-size: 1.5rem; font-weight: bold; margin-bottom: 0; }

nav a { margin-left: 1.5rem; color: var(--text-color); font-family: var(--font-header); font-weight: 500;}

/* Buttons */
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 1rem;
    padding: 0.2rem;
    color: var(--header-color);
    font-weight: bolder
}

/* Posts */
.post { margin-bottom: 4rem; }
.post-header { margin-bottom: 2rem; }
.meta { color: #888; font-size: 0.9rem; font-family: var(--font-header); margin-top: 0.5rem; }

/* Code Blocks */
pre {
    background: var(--code-bg);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

code { font-family: var(--font-code); font-size: 0.9em; }

/* Inline Code */
p code {
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

p {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: left;
    font-size: 0.9rem;
    color: #888;
    font-family: var(--font-header);
}
