:root {
    --bg: #0a0a0a;
    --fg: #fff;
    --muted: rgba(255, 255, 255, 0.55);
    --hairline: rgba(255, 255, 255, 0.08);
    --code-bg: rgba(255, 255, 255, 0.04);
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 32px 96px;
}

@media (max-width: 600px) {
    .page { padding: 48px 24px 72px; }
}

.hero {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero img {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.hero h1 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.hero .tagline {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 2px;
}

.intro {
    color: var(--muted);
    margin-bottom: 48px;
    font-size: 1rem;
}

.intro code {
    color: var(--fg);
}

nav.toc {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 56px;
    font-family: var(--mono);
    font-size: 0.85rem;
}

nav.toc a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

nav.toc a:hover { color: var(--fg); }

section {
    margin-bottom: 64px;
}

section h2 {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hairline);
    font-family: var(--mono);
}

ul.bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

ul.bullets li {
    padding-left: 18px;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}

ul.bullets li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--muted);
}

ul.bullets li strong {
    color: var(--fg);
    font-weight: 600;
}

code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--code-bg);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--fg);
}

footer {
    margin-top: 96px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

footer a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--hairline);
    transition: color 0.15s ease, border-color 0.15s ease;
}

footer a:hover {
    color: var(--fg);
    border-bottom-color: var(--fg);
}
