:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-code: #1a1f2b;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --accent: #58a6ff;
    --accent-green: #3fb950;
    --accent-red: #f85149;
    --accent-amber: #d29922;
    --border: #30363d;
    --border-light: #21262d;
}

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

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Logo bar */
.logo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.logo-bar img {
    height: 85px;
    opacity: 0.9;
}

.logo-disclaimer {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

/* Title area */
h1 {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.byline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.last-updated {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

/* Section headings */
h2 {
    font-size: 1.45rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

/* Paragraphs */
p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.4rem;
}

/* Code */
code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    background: var(--bg-tertiary);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--accent);
}

pre {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.55;
}

pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: var(--text-primary);
    font-size: inherit;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

th {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

td {
    border: 1px solid var(--border);
    padding: 0.6rem 0.8rem;
    color: var(--text-secondary);
}

tr:nth-child(even) {
    background: var(--bg-secondary);
}

/* Callout boxes */
.callout {
    border-left: 3px solid var(--accent);
    background: var(--bg-secondary);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 0 6px 6px 0;
}

.callout p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

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

.callout-warn {
    border-left-color: var(--accent-amber);
}

.callout-danger {
    border-left-color: var(--accent-red);
}

.callout-success {
    border-left-color: var(--accent-green);
}

/* Dependency chain visualization */
.dep-chain {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    white-space: pre;
    overflow-x: auto;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem 1rem 3rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    pre {
        font-size: 0.78rem;
    }
    table {
        font-size: 0.8rem;
    }
    th, td {
        padding: 0.4rem 0.5rem;
    }
}
