
:root {
    color-scheme: dark;
    --bg: #05010a;
    --panel: #0e0516;
    --text: #f1e9ff;
    --muted: #a390c4;
    --line: rgba(186, 150, 255, 0.08);
    --accent: #9d46ff;
    --accent-glow: rgba(157, 70, 255, 0.25);
    --code-bg: #1a1a2e; /* Darker bg for code blocks */
    --radius: 16px;
    --mono: "JetBrains Mono", monospace;
    --sans: "Inter", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.8; /* Better readability for long text */
    
    background: 
        radial-gradient(1200px 900px at 15% 10%, rgba(100, 40, 200, 0.12), transparent 65%),
        radial-gradient(1000px 800px at 85% 20%, rgba(70, 20, 140, 0.12), transparent 60%),
        linear-gradient(180deg, #05010a 0%, #090212 40%, #030005 100%);
    background-attachment: fixed;
}

/* Tech Grid Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(180, 150, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 150, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Layout */
.page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

/* Navigation / Header */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.back-btn {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, transform 0.2s;
}

.back-btn:hover {
    color: #fff;
    transform: translateX(-2px);
}

.brand {
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.brand-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

/* Article Styles */
article {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-meta {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #fff;
}

.article-intro {
    font-size: 18px;
    color: var(--muted);
    max-width: 65ch;
    margin: 0 auto;
    line-height: 1.6;
}

/* Content Typography */
.content {
    font-size: 16px;
    color: var(--text);
}

.content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #fff;
    border-left: 3px solid var(--accent);
    padding-left: 15px;
}

.content h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #fff;
}

.content p {
    margin-bottom: 20px;
    color: #d1d5db; /* Slightly lighter than pure muted for readability */
}

.content ul, .content ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #d1d5db;
}

.content li {
    margin-bottom: 8px;
}

/* Code Blocks */
pre {
    background: var(--code-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 30px 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

code {
    font-family: var(--mono);
    font-size: 14px;
    color: #e2e8f0;
}

/* Inline code */
p code {
    background: rgba(157, 70, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
    border: 1px solid rgba(157, 70, 255, 0.2);
}

/* Blockquote */
blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: rgba(157, 70, 255, 0.05);
    border-left: 4px solid var(--accent);
    font-style: italic;
    color: var(--muted);
    border-radius: 0 8px 8px 0;
}

/* Footer */
.post-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-family: var(--mono);
}

