:root {
    /* Gruvbox Dark Soft Palette */
    --bg: #32302f;
    --fg: #ebdbb2;
    --heading: #fbf1c7;
    --accent: #b8bb26;       /* Gruvbox Bright Green */
    --accent-hover: #fabd2f; /* Gruvbox Bright Yellow */
    --border: #504945;       /* Gruvbox Gray */
    --code-bg: #282828;      /* Slightly darker for code contrast */
    --muted: #a89984;        /* Gruvbox Light Gray for dates/footer */
}

body {
    background-color: var(--bg);
    /* RGB 50, 48, 47 matches the #32302f background to tint the mesh image correctly */
    background-image: linear-gradient(rgba(50, 48, 47, 0.92), rgba(50, 48, 47, 0.92)), url('image_8b53e2.jpg');
    background-repeat: repeat;
    color: var(--fg);
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1, h2, h3, h4 {
    color: var(--heading);
    font-weight: normal;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.3rem;
}

h1::before { content: "# "; color: var(--accent); }
h2::before { content: "## "; color: var(--accent); }
h3::before { content: "### "; color: var(--accent); }

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

nav {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border);
}

/* nav a { margin-right: 1.5rem; font-weight: bold; } */
nav a { margin-right: 1rem; font-weight: bold; white-space: nowrap; }

pre {
    background: var(--code-bg);
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid var(--border);
}

code {
    font-family: inherit;
    background: var(--code-bg);
    color: #83a598; /* Gruvbox Blue for inline code emphasis */
    padding: 0.1rem 0.3rem;
}

pre code { 
    padding: 0; 
    background: transparent; 
    color: var(--fg); /* Reset for multiline blocks */
}

ul { list-style-type: square; }

.muted { color: var(--muted); }

footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    font-size: 0.85rem;
    color: var(--muted);
}
