:root {
    --bg: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

.container {
    width: min(100% - 40px, 980px);
    margin: 0 auto;
}

.topbar {
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.96);
}

.topbar-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -0.03em;
    color: #111827;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--muted);
}

.nav a {
    transition: color .15s ease;
}

.nav a.active {
    color: var(--text);
    font-weight: 650;
}

.hero {
    padding: 72px 0 34px;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1 {
    max-width: 760px;
    margin: 0;
    color: #111827;
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.lead {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.meta {
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
}

.content {
    max-width: 780px;
    padding: 12px 0 84px;
}

section {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

section:first-child {
    border-top: 0;
}

h2 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

h3 {
    margin: 26px 0 10px;
    color: #111827;
    font-size: 17px;
    line-height: 1.4;
}

p {
    margin: 0 0 14px;
}

ol, ul {
    margin: 0 0 16px;
    padding-left: 24px;
}

li {
    margin: 7px 0;
}

.info {
    margin: 18px 0;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}

.info p:last-child {
    margin-bottom: 0;
}

.definition-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.definition-list li {
    margin: 12px 0;
}

.definition-list strong {
    color: #111827;
}

.footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.footer-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 30px, 980px);
    }

    .topbar-inner {
        padding: 16px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .nav {
        justify-content: flex-start;
        gap: 12px 16px;
    }

    .hero {
        padding-top: 48px;
    }

    .content {
        padding-bottom: 56px;
    }
}
.content > h2 { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.content > h2:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.content a, .footer a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.content { overflow-wrap: anywhere; }
code { overflow-wrap: anywhere; }