:root {
    /* Dark Theme - Vim-inspired */
    --bg-primary: #111111;
    --bg-secondary: #171717;
    --bg-tertiary: #1f1f1f;
    --bg-code: #101010;
    --text-primary: #d8d8d8;
    --text-secondary: #b8b8b8;
    --text-muted: #8a8a8a;
    --accent: #019733;
    --accent-hover: #21b14d;
    --border: #2b2b2b;
    --hover: rgba(216, 216, 216, 0.08);
    --emoji: #019733;

    /* Syntax Highlighting Colors */
    --code-keyword: #d7c26b;
    --code-string: #9ecf9a;
    --code-function: #7fbec9;
    --code-comment: #8a8a8a;
    --code-number: #c8d97a;
    --code-operator: #d7c26b;
    --code-variable: #d8d8d8;
    --code-constant: #7fbec9;

    /* Semantic Colors */
    --success: #019733;
    --warning: #d7c26b;
    --error: #d86c6c;
    --info: #7fbec9;
}

[data-theme="light"] {
    /* Light Theme - Vim-inspired */
    --bg-primary: #f2f3ea;
    --bg-secondary: #e8eadf;
    --bg-tertiary: #dde0d2;
    --bg-code: #e3e5d8;
    --text-primary: #1a1d16;
    --text-secondary: #2f352a;
    --text-muted: #5e6558;
    --accent: #017a2a;
    --accent-hover: #019733;
    --border: #c7ccbc;
    --hover: rgba(47, 53, 42, 0.10);

    /* Light Mode Syntax Highlighting */
    --code-keyword: #8a6c0f;
    --code-string: #1f6d2b;
    --code-function: #1d6673;
    --code-comment: #6b7163;
    --code-number: #5f7d1f;
    --code-operator: #8a6c0f;
    --code-variable: #2f352a;
    --code-constant: #1d6673;

    --success: #017a2a;
    --warning: #8a6c0f;
    --error: #a94e4e;
    --info: #1d6673;
}

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

body {
    font-family: 'Iosevka', 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 16px;
    line-height: 1.65;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-wrapper {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
}

.vim {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.hamburger:hover {
    background: var(--hover);
    border-color: var(--accent);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.sidebar {
    width: 280px;
    padding: 24px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-overlay {
    display: block;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.sidebar-header {
    margin-bottom: 32px;
    margin-top: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.potato-icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
    margin: 0 2px;
    flex-shrink: 0;
    transform: translateY(1px);
}

/* GitHub Repository Card */
.repo-card {
    margin-top: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.repo-header {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.repo-content {
    padding: 12px;
}

.repo-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.2s;
}

.repo-name:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.repo-icon {
    flex-shrink: 0;
    color: var(--text-muted);
}

.repo-description {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
    margin-top: 8px;
}

.repo-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
}

.repo-stat-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.repo-stat-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.repo-stat-link svg {
    flex-shrink: 0;
}

.os {
    color: var(--accent);
    font-weight: 700;
}

.sidebar-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.sidebar nav {
    margin-bottom: 24px;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav li {
    margin-bottom: 4px;
}

.sidebar nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
}

.sidebar nav a:hover {
    color: var(--accent);
    background: var(--hover);
    text-decoration: none;
}

.sidebar nav a.active {
    color: var(--accent);
    background: var(--hover);
    font-weight: 500;
}

/* Social Links */
.social-links {
    margin-bottom: 32px;
}

.social-links h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--hover);
    border-color: var(--accent);
    /* transform: translateX(2px); */
    text-decoration: none;
}

.link-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.2s;
}

.social-link:hover .link-icon {
    color: var(--accent);
}

.toc {
    margin-top: 24px;
    margin-bottom: 24px;
}

.toc h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 6px;
    margin-left: 0;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 4px 12px;
    /* border-radius: 6px; */
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.toc a:hover {
    color: var(--accent);
    /* background: var(--hover); */
    border-left-color: var(--accent);
    text-decoration: none;
}

/* Consistent max-width for all pages */
.site-wrapper,
.post-layout {
    max-width: 1480px;
    margin: 0 auto;
}

/* Default two-column layout (sidebar + content) */
.site-wrapper {
    display: flex;
}

.site-wrapper .sidebar {
    width: 280px;
}

.site-wrapper .main-content {
    flex: 1;
    padding: 24px 48px;
    min-width: 0;
    max-width: 900px; /* Consistent width */
}

/* Three-column layout for posts/notes ONLY */
.post-layout {
    display: flex;
    position: relative;
}

.post-layout .sidebar {
    width: 280px;
    flex-shrink: 0;
}

.post-layout .main-content {
    flex: 1;
    padding: 24px 48px;
    min-width: 0;
    max-width: 900px; /* SAME as other pages */
}

/* Right TOC - positioned to the right of main-content */
.right-toc {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    height: fit-content;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 24px 24px 24px 32px;
}

.right-toc::-webkit-scrollbar {
    width: 4px;
}

.right-toc::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.right-toc h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
    border: none;
    padding: 0;
}

.right-toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.right-toc li {
    margin-bottom: 0;
}

.right-toc a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    padding: 6px 0 6px 12px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.right-toc a:hover {
    color: var(--accent);
    border-left-color: var(--accent);
}

.right-toc a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 500;
}

/* Nested headings (h3 under h2) */
.right-toc ul ul {
    margin-left: 12px;
    margin-top: 4px;
}

.right-toc ul ul a {
    font-size: 12px;
    color: var(--text-muted);
}

/* Hide sidebar TOC on desktop when right TOC is present */
.post-layout .sidebar .toc {
    display: none;
}

/* Tablet - Remove right TOC, show in sidebar */
@media (max-width: 1280px) {
    .right-toc {
        display: none;
    }

    .post-layout .sidebar .toc {
        display: block;
    }

    .post-layout .main-content {
        max-width: 900px;
        margin: 0 auto;
    }
}

/* Mobile - Stack everything */
@media (max-width: 768px) {
    .site-wrapper,
    .post-layout {
        flex-direction: row;
    }

    .post-layout .sidebar,
    .site-wrapper .sidebar {
        position: fixed;
        transform: translateX(-100%);
    }

    .post-layout .sidebar.active,
    .site-wrapper .sidebar.active {
        transform: translateX(0);
    }

    .post-layout .main-content,
    .site-wrapper .main-content {
        width: 100%;
        padding: 80px 20px 20px 20px;
        max-width: 100%;
    }

    .right-toc {
        display: none;
    }

    .post-layout .sidebar .toc {
        display: block;
    }
}

@media (max-width: 1024px) {
    .post-layout .main-content,
    .site-wrapper .main-content {
        padding: 24px 32px;
    }
}

.theme-toggle {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    width: 100%;
}

.theme-toggle:hover {
    background-color: var(--hover);
    border-color: var(--accent);
}

.main-content {
    flex: 1;
    padding: 24px 48px;
    min-width: 0;
    max-width: 900px;
}

.container {
    max-width: 100%;
}

/* Main Content Typography */
header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 32px;
    margin-bottom: 48px;
    margin-top: 24px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 0px;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.03em;
}

/* Roadmap Banner - Hero Style */
.roadmap-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 48px;
    transition: all 0.3s ease;
}

.roadmap-icon {
    font-size: 64px;
    line-height: 1;
}

.roadmap-content h2 {
    margin: 0 0 8px 0;
    padding: 0;
    border: none;
    font-size: 28px;
    color: var(--text-primary);
}

.roadmap-content p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    font-size: 16px;
}

.roadmap-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px;
}

.roadmap-btn:hover {
    background: var(--accent-hover);
    /* transform: translateX(4px); */
    text-decoration: none;
    color: var(--bg-primary);
}

/* Roadmap Card - Simple Style */
.roadmap-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 40px;
    position: relative;
}

.roadmap-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roadmap-card h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: var(--text-primary);
}

.roadmap-card p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
}

.roadmap-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.roadmap-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .roadmap-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .roadmap-icon {
        font-size: 48px;
    }

    .roadmap-content h2 {
        font-size: 24px;
    }
}

main {
    min-height: 60vh;
}

/* Fix spacing between elements and headings */
p + h2,
ul + h2,
ol + h2,
pre + h2,
blockquote + h2 {
    margin-top: 48px; /* Controlled top margin */
}

p + h3,
ul + h3,
ol + h3,
pre + h3,
blockquote + h3 {
    margin-top: 40px;
}

/* Remove double borders */
h2 + hr,
h3 + hr {
    display: none; /* Hide any redundant hr elements */
}

/* Ensure consistent spacing */
h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px; /* Reduced from your current value if higher */
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px; /* Reduced */
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.4;
    border-bottom: none; /* Remove border from h3 if you don't want it */
}

h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    margin-top: 48px;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.02em;
    padding-bottom: 12px;
    /* border-bottom: 1px solid var(--border); */
}

h1:first-child {
    margin-top: 0;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.4;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

h5 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

h6 {
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

em, i {
    font-style: italic;
}

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

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

/* Lists - FIXED SPACING */
ul, ol {
    margin-bottom: 20px;
    margin-top: 12px;
    padding-left: 28px;
    color: var(--text-secondary);
}

ul li, ol li {
    margin-bottom: 8px;
    line-height: 1.7;
}

ul li::marker {
    color: var(--accent);
}

ol li::marker {
    color: var(--accent);
    font-weight: 600;
}

/* Nested lists */
ul ul, ol ul, ul ol, ol ol {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Task lists */
ul li input[type="checkbox"] {
    margin-right: 8px;
}

/* Blockquotes */
blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--accent);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 0 6px 6px 0;
}

blockquote p {
    margin-bottom: 8px;
}

blockquote p:last-child {
    margin-bottom: 0;
}

/* Code Blocks - ENHANCED WITH SYNTAX HIGHLIGHTING */
pre {
    background: var(--bg-code);
    border: 1px solid var(--border);
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 6px;
    line-height: 1.6;
    position: relative;
}

pre code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
    font-size: 14px;
    color: var(--text-primary);
    display: block;
}

/* Inline code */
code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 14px;
    color: var(--code-keyword);
}

p code, li code, td code {
    background: var(--bg-code);
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-size: 85%;
    color: var(--code-keyword);
}

/* Syntax Highlighting Classes */
.highlight .k,  /* keyword */
.highlight .kd, /* keyword declaration */
.highlight .kn, /* keyword namespace */
.highlight .kr, /* keyword reserved */
.highlight .kt  /* keyword type */
{ color: var(--code-keyword); font-weight: 600; }

.highlight .s,  /* string */
.highlight .s1, /* string single quote */
.highlight .s2, /* string double quote */
.highlight .sh  /* string heredoc */
{ color: var(--code-string); }

.highlight .nf, /* function name */
.highlight .nx  /* function call */
{ color: var(--code-function); font-weight: 500; }

.highlight .c,  /* comment */
.highlight .c1, /* comment single line */
.highlight .cm  /* comment multiline */
{ color: var(--code-comment); font-style: italic; }

.highlight .m,  /* number */
.highlight .mi, /* integer */
.highlight .mf, /* float */
.highlight .mh  /* hex */
{ color: var(--code-number); }

.highlight .o,  /* operator */
.highlight .ow  /* operator word */
{ color: var(--code-operator); }

.highlight .n,  /* name/variable */
.highlight .nv  /* variable */
{ color: var(--code-variable); }

.highlight .kc, /* constant */
.highlight .no  /* constant */
{ color: var(--code-constant); font-weight: 600; }

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

th {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

td {
    border: 1px solid var(--border);
    padding: 12px 16px;
    color: var(--text-secondary);
}

tr:hover {
    background: var(--hover);
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 24px 0;
    border: 1px solid var(--border);
}

/* Post List - FIXED SPACING */
.post-list {
    list-style: none;
    margin-top: 24px;
    margin-bottom: 48px; /* FIXED: Added bottom margin */
    padding-left: 0;
}

.post-item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.post-item:last-child {
    border-bottom: none;
    margin-bottom: 0; /* Remove margin on last item */
    padding-bottom: 0;
}

.post-item:hover {
    /* transform: translateX(4px); */
}

.post-title {
    font-size: 20px;
    margin-bottom: 0px;
    font-weight: 600;
    line-height: 1.4;
}

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

.post-title a:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-family: 'SF Mono', 'Monaco', monospace;
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Post Content */
.post-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.post-content {
    margin-bottom: 64px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 32px 0;
}

/* See More Button */
.see-more-container {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.see-more-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.see-more-btn:hover {
    background: var(--hover);
    border-color: var(--accent);
    color: var(--accent);
    /* transform: translateX(4px); */
    text-decoration: underline;
}

/* Note-specific styling */
.note-tags {
    display: inline-flex;
    gap: 6px;
    margin-left: 12px;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    border: 1px solid var(--border);
}

.related-notes {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.related-notes h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

.related-notes ul {
    list-style: none;
    padding-left: 0;
}

.related-notes li {
    margin-bottom: 12px;
}

.related-notes a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.related-notes a:before {
    content: "→";
    color: var(--accent);
    margin-right: 8px;
    font-weight: bold;
}

.related-notes a:hover {
    color: var(--accent);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 80px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

footer p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

footer a {
    color: var(--text-secondary);
    font-weight: 600;
}

footer a:hover {
    color: var(--accent);
}

/* About Section */
.about-section {
    margin-bottom: 48px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.philosophy {
    margin-top: 40px;
}

/* Alerts/Callouts */
.alert {
    padding: 16px 20px;
    border-radius: 6px;
    margin: 24px 0;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(88, 166, 255, 0.1);
    border-left-color: var(--info);
    color: var(--text-secondary);
}

.alert-success {
    background: rgba(63, 185, 80, 0.1);
    border-left-color: var(--success);
    color: var(--text-secondary);
}

.alert-warning {
    background: rgba(210, 153, 34, 0.1);
    border-left-color: var(--warning);
    color: var(--text-secondary);
}

.alert-error {
    background: rgba(248, 81, 73, 0.1);
    border-left-color: var(--error);
    color: var(--text-secondary);
}

/* Utility */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 6px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        padding: 24px 32px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .site-wrapper {
        flex-direction: row;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-overlay {
        opacity: 0;
    }

    header {
        margin-top: 0;
    }

    .main-content {
        padding: 80px 20px 20px 20px;
        width: 100%;
    }

    .page-title {
        font-size: 28px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    pre {
        padding: 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .main-content {
        padding: 70px 16px 16px 16px;
    }

    .page-title {
        font-size: 24px;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 18px;
    }

    pre {
        padding: 12px;
        margin: 16px -16px;
        border-radius: 0;
    }
}
