/* --- CSS Variables for "Command Deck" Theme --- */
:root {
    /* Core Palette: Tactical & Grounded */
    --bg-main: #0f1115;          /* Very dark, almost black slate */
    --bg-surface: #1a1d24;       /* Raised surface for cards */
    --bg-panel: #22262f;         /* Lighter paneling for code/quotes */
    
    /* Typography */
    --text-main: #d1d5db;        /* Crisp, readable off-white */
    --text-muted: #9ca3af;       /* Softer gray for metadata */
    
    /* Accents: High Visibility & Structure */
    --accent-amber: #f59e0b;     /* High-vis tactical amber for links */
    --accent-olive: #4b5563;     /* Muted structural lines */
    --accent-blue: #3b82f6;      /* Clean blue for secondary highlights */
    
    /* UI Elements */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-depth: 0 10px 25px -5px rgba(0, 0, 0, 0.8);
    
    --font-mono: 'JetBrains Mono', Consolas, monospace;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Global Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-size: 16px;
    /* Adds a very subtle grid pattern to the deep background */
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Structural Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: #f3f4f6;
    letter-spacing: -0.01em;
    margin-bottom: 1.2rem;
    border-bottom: var(--border-subtle);
    padding-bottom: 0.5rem;
}

/* The Site Title */
.site-header h1 {
    border-bottom: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.5rem;
}

.site-header h1 a {
    color: var(--text-main);
}

.site-header h1 a span {
    color: var(--accent-amber); /* Makes the ".dev" or your initials pop */
}

a {
    color: var(--accent-amber);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: #fbbf24; /* Brighter amber on hover */
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --- Layout Structure --- */
.container {
    max-width: 800px; /* Kept tight for readability */
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    background-color: var(--bg-main);
    padding: 2rem 0;
    border-bottom: 2px solid var(--accent-olive);
    margin-bottom: 3rem;
}

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

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.site-header nav ul a {
    color: var(--text-muted);
}

.site-header nav ul a:hover {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-amber);
}

/* --- Content Areas & Articles --- */
main.container {
    min-height: 60vh;
}

article {
    margin-bottom: 4rem;
    background: var(--bg-surface);
    padding: 2.5rem;
    border: var(--border-subtle);
    border-left: 4px solid var(--accent-olive); /* Tactical structural element */
    box-shadow: var(--shadow-depth);
}

/* Metadata styling (dates, tags) */
.post-meta {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: block;
}

/* --- Code & Technical Blocks --- */
code, pre {
    font-family: var(--font-mono);
}

code {
    background-color: var(--bg-panel);
    color: var(--accent-blue);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.85em;
}

pre {
    background-color: #000; /* True black for code blocks */
    padding: 1.5rem;
    overflow-x: auto;
    border: 1px solid var(--accent-olive);
    margin: 2rem 0;
}

pre code {
    background-color: transparent;
    color: #e5e7eb;
    padding: 0;
}

/* --- Blockquotes (Good for callouts or compliance notes) --- */
blockquote {
    border-left: 4px solid var(--accent-amber);
    background: var(--bg-panel);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
    color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid var(--accent-olive);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}