:root {
    --bg: #0f172a;
    --surface: #1e293b;
    --border: #334155;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --tag-bg: #1e3a5f;
    --tag-text: #7dd3fc;
    --code-bg: #0d1117;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}
.container { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* Accessibility: skip link + visible focus */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #00131f;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    z-index: 200;
}
.skip-link:focus { left: 0; }
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

nav {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
nav a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}
nav a:hover { text-decoration: underline; }
article { padding: 40px 0 60px; }
article h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
article h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: #fff;
}
article h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 24px 0 8px;
    color: var(--accent);
}
article p { margin-bottom: 16px; color: var(--text); }
article ul, article ol {
    margin: 0 0 16px 24px;
    color: var(--text);
}
article li { margin-bottom: 6px; }
pre {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 0.85rem;
    line-height: 1.5;
}
code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
    color: #e6db74;
}
p code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
th, td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
    font-size: 0.9rem;
}
th { background: var(--surface); color: var(--accent); font-weight: 600; }
td { color: var(--text); }
strong { color: #fff; }
footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}
@media (max-width: 640px) {
    article h1 { font-size: 1.4rem; }
    pre { font-size: 0.78rem; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
