
/* Modern High-End Developer/Tech Architecture Design System */
:root {
    --hue: 260;
    --primary: hsl(var(--hue), 85%, 55%);
    --primary-hover: hsl(var(--hue), 85%, 45%);
    --accent: hsl(calc(var(--hue) + 40), 90%, 50%);
    --bg-base: #0a0d14;
    --bg-surface: #111622;
    --bg-surface-elevated: #182030;
    --border: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.16);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px -10px hsl(var(--hue), 85%, 55%, 0.25);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Glowing Ambient Background */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, hsl(var(--hue), 80%, 50%, 0.07) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); margin-top: 2rem; margin-bottom: 0.85rem; color: #fff; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.25rem; color: #d1d5db; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Header & Nav */
header.site-header {
    background: rgba(17, 22, 34, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo span {
    color: var(--primary);
}

nav.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

nav.main-nav a:hover {
    color: #fff;
}

/* Main Container Layout */
.page-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem 1.5rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Article Card & Content Box */
.content-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 600px) {
    .content-card {
        padding: 1.5rem;
    }
}

.meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.meta-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Code & Highlight Elements */
pre, code {
    font-family: var(--font-mono);
}

code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent);
}

blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: #e5e7eb;
    font-style: italic;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

ul, ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #d1d5db;
}

li {
    margin-bottom: 0.5rem;
}

/* Sidebar Widgets */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.widget {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.widget-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Author Card in Sidebar */
.author-card {
    text-align: center;
}

.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 0.75rem auto;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.author-bio {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Spoke Links Widget */
.spoke-list {
    list-style: none;
    margin: 0;
}

.spoke-list li {
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spoke-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.spoke-list a {
    font-size: 0.9rem;
    color: #e5e7eb;
    display: block;
    line-height: 1.4;
}

.spoke-list a:hover {
    color: var(--primary);
}

/* Footer */
footer.site-footer {
    background: #07090f;
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
}
