/* Minimal theme */

:root {
    --sidebar-width: 240px;
    --page-padding: 40px;
    --content-max-width: 720px;
}

.light {
    --bg: #ffffff;
    --fg: #24292f;
    --sidebar-bg: #ffffff;
    --sidebar-fg: #57606a;
    --sidebar-active: #24292f;
    --sidebar-spacer: #eaeef2;
    --links: #24292f;
    --inline-code-color: #24292f;
    --theme-popup-bg: #ffffff;
    --theme-popup-border: #eaeef2;
    --quote-bg: transparent;
    --quote-border: #d0d7de;
    --table-border-color: #d0d7de;
    --table-header-bg: #f6f8fa;
    --searchbar-border-color: #d0d7de;
    --searchbar-bg: #f6f8fa;
}

/* Typography - clean, lightweight */
html {
    font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    font-size: 15px;
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 var(--page-padding);
    line-height: 1.75;
    letter-spacing: 0.01em;
}

/* Headings - minimal, no borders */
.content h1 {
    font-size: 1.75em;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.content h2 {
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.content h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 8px;
}

/* Paragraphs */
.content p {
    margin-top: 0;
    margin-bottom: 16px;
}

/* Links - subtle */
.content a {
    color: var(--links);
    text-decoration: underline;
    text-decoration-color: #d0d7de;
    text-underline-offset: 2px;
}

.content a:hover {
    text-decoration-color: var(--fg);
}

/* Inline code */
.content code:not(.hljs) {
    padding: 0.15em 0.35em;
    font-size: 85%;
    background-color: #f6f8fa;
    border-radius: 4px;
    font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
}

/* Code blocks */
.content pre {
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.5;
    background-color: #f6f8fa;
    border-radius: 8px;
    border: 1px solid #eaeef2;
    margin-bottom: 16px;
}

.content pre code {
    background: none;
    padding: 0;
    font-size: 100%;
    border-radius: 0;
}

/* Blockquotes - minimal */
.content blockquote {
    padding: 0 0 0 1.25em;
    color: #57606a;
    border-left: 2px solid #d0d7de;
    margin: 0 0 16px 0;
    font-style: italic;
}

.content blockquote p {
    margin-bottom: 0;
}

/* Lists */
.content ul, .content ol {
    padding-left: 1.5em;
    margin-bottom: 16px;
}

.content li {
    margin-top: 0.25em;
}

/* Tables */
.content table {
    border-spacing: 0;
    border-collapse: collapse;
    margin-bottom: 16px;
    width: 100%;
    font-size: 14px;
}

.content table th {
    font-weight: 600;
    padding: 8px 12px;
    border-bottom: 2px solid #d0d7de;
    text-align: left;
}

.content table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eaeef2;
}

.content table tr:last-child td {
    border-bottom: none;
}

/* Strong */
.content strong {
    font-weight: 600;
}

/* Horizontal rules */
.content hr {
    height: 1px;
    padding: 0;
    margin: 32px 0;
    background-color: #eaeef2;
    border: 0;
}

/* Sidebar - clean */
.sidebar {
    background-color: var(--sidebar-bg);
    font-size: 13px;
    border-right: 1px solid #eaeef2;
}

.sidebar .sidebar-scrollbox {
    padding: 16px 20px;
}

.sidebar ol.chapter li a {
    color: var(--sidebar-fg);
    padding: 4px 0;
}

.sidebar ol.chapter li a:hover {
    color: var(--sidebar-active);
}

.sidebar ol.chapter li a.active {
    color: var(--sidebar-active);
    font-weight: 600;
}

/* Navigation */
.nav-chapters {
    font-size: 13px;
    opacity: 0.4;
}

.nav-chapters:hover {
    opacity: 1;
}

/* Menu bar - minimal */
#menu-bar {
    border-bottom: 1px solid #eaeef2;
    background-color: var(--bg);
}

/* Search */
#searchbar {
    border: 1px solid #eaeef2;
    border-radius: 6px;
    background-color: #f6f8fa;
}

/* Hide theme picker */
#theme-list {
    display: none;
}

/* First h1 on page - less top margin */
.content > :first-child {
    margin-top: 0;
}
