@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
    --bg: #0f1117;
    --bg-surface: #161922;
    --bg-elevated: #1c1f2b;
    --bg-hover: #222636;
    --border: #2a2e3d;
    --border-light: #353a4d;
    --text: #b0b8cd;
    --text-muted: #6b7394;
    --text-heading: #d1d7e5;
    --text-bright: #e8ecf4;
    --accent: #5b8def;
    --accent-dim: #4a73c7;
    --accent-muted: rgba(91, 141, 239, 0.12);
    --green: #6ec87a;
    --yellow: #e5c07b;
    --red: #e06c75;
    --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Header ─── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

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

.logo {
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    letter-spacing: -0.01em;
}

.logo .logo-dim {
    color: var(--text-muted);
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.nav-link.active {
    color: var(--text-heading);
    background: var(--bg-elevated);
}

/* ─── Footer ─── */
.footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: 60px;
}

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

.footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.15s;
}

.footer a:hover {
    color: var(--text);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 8px;
    }

    .footer .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
