/* mcpkit docs site — minimal, readable. */

:root {
    --fg: #111;
    --fg-muted: #4a4a4a;
    --fg-faint: #6a6a6a;
    --bg: #fff;
    --bg-soft: #f7f7f7;
    --bg-code: #f3f3f1;
    --border: #e2e2e0;
    --link: #1f4a8c;
    --link-hover: #0e2c5c;
    --accent: #b75300;
    --mono: ui-monospace, "SF Mono", Menlo, "JetBrains Mono", Consolas, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--sans);
    color: var(--fg);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

code, pre, kbd {
    font-family: var(--mono);
    font-size: 0.9em;
}

code {
    background: var(--bg-code);
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

pre {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.9rem 1rem;
    overflow-x: auto;
    line-height: 1.45;
}

pre code {
    background: transparent;
    padding: 0;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
}

.brand {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--fg);
}

.brand-name { letter-spacing: -0.01em; }

.top-nav {
    display: flex;
    gap: 1.4rem;
}

.top-nav-link {
    color: var(--fg-muted);
    font-size: 0.92rem;
}

.top-nav-link:hover { color: var(--fg); text-decoration: none; }
.top-nav-link.external::after { content: " ↗"; font-size: 0.85em; opacity: 0.7; }

/* Layout */
.page {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.sidebar {
    position: sticky;
    top: 4.2rem;
    align-self: start;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.sidebar-section { margin-bottom: 1.4rem; }
.sidebar-section-title {
    display: block;
    font-weight: 600;
    color: var(--fg);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1px solid var(--border);
}

.sidebar-list li a {
    display: block;
    padding: 0.15rem 0 0.15rem 0.75rem;
    color: var(--fg-muted);
    font-size: 0.92rem;
    border-left: 2px solid transparent;
    margin-left: -1px;
}

.sidebar-list li a:hover {
    color: var(--fg);
    border-left-color: var(--accent);
    text-decoration: none;
}

.main {
    min-width: 0;
}

/* Content */
.content { max-width: 780px; }

.content-header {
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.content-header h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.015em;
}

.content-header .lead {
    color: var(--fg-muted);
    font-size: 1.05rem;
    margin: 0.4rem 0 0 0;
}

.content-header .source-link {
    color: var(--fg-faint);
    font-size: 0.85rem;
    margin: 0.6rem 0 0 0;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.content-body h1 { font-size: 1.7rem; }
.content-body h2 { font-size: 1.35rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
.content-body h3 { font-size: 1.1rem; }

.content-body p { margin: 0.6rem 0; }
.content-body ul, .content-body ol { padding-left: 1.4rem; }
.content-body li { margin: 0.15rem 0; }

.content-body blockquote {
    margin: 1rem 0;
    padding: 0.4rem 1rem;
    border-left: 3px solid var(--accent);
    background: var(--bg-soft);
    color: var(--fg-muted);
}

.content-body table {
    border-collapse: collapse;
    margin: 1rem 0;
    width: 100%;
    font-size: 0.93rem;
}

.content-body th, .content-body td {
    border: 1px solid var(--border);
    padding: 0.45rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.content-body th {
    background: var(--bg-soft);
    font-weight: 600;
}

/* Landing page */
.hero {
    padding: 3rem 0 2rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.hero h1 {
    margin: 0;
    font-size: 2.6rem;
    letter-spacing: -0.02em;
}

.hero-tagline {
    color: var(--fg-muted);
    font-size: 1.15rem;
    margin: 0.5rem 0 1.4rem 0;
    max-width: 640px;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 0.55rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    border: 1px solid var(--border);
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}

.btn-primary:hover { background: var(--link-hover); border-color: var(--link-hover); color: var(--bg); }

.btn-secondary {
    background: var(--bg);
    color: var(--fg);
}

.btn-secondary:hover { background: var(--bg-soft); }

.pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pillar {
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
}

.pillar h3 { margin: 0 0 0.4rem 0; font-size: 1.05rem; }
.pillar p { margin: 0.3rem 0; color: var(--fg-muted); font-size: 0.95rem; }
.pillar p:last-child { margin-top: 0.7rem; }

.why { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.why h2 { margin-top: 0; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    color: var(--fg-faint);
    font-size: 0.85rem;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 1.5rem;
}

.site-footer a { color: var(--fg-muted); }

/* Responsive */
@media (max-width: 800px) {
    .page { grid-template-columns: 1fr; }
    .sidebar { position: static; max-height: none; }
    .pillars { grid-template-columns: 1fr; }
    .top-nav { display: none; }
}
