@font-face {
    font-family: 'Young Serif';
    src: url('/fonts/young-serif-latin-400-normal.woff2') format('woff2'),
         url('/fonts/young-serif-latin-400-normal.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Courier Prime';
    src: url('/fonts/courier-prime-latin-400-normal.woff2') format('woff2'),
         url('/fonts/courier-prime-latin-400-normal.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Courier Prime';
    src: url('/fonts/courier-prime-latin-400-italic.woff2') format('woff2'),
         url('/fonts/courier-prime-latin-400-italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Courier Prime';
    src: url('/fonts/courier-prime-latin-700-normal.woff2') format('woff2'),
         url('/fonts/courier-prime-latin-700-normal.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Courier Prime';
    src: url('/fonts/courier-prime-latin-700-italic.woff2') format('woff2'),
         url('/fonts/courier-prime-latin-700-italic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'Courier Prime', monospace;
    margin: 0;
    display: flex;
    min-height: 100vh;
    background-color: #282828;
    color: #98971a;
}

.sidebar {
    width: 200px;
    padding: 20px;
    border-right: 2px solid #98971a;
}

.main-content {
    flex: 1;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Young Serif', serif;
}

h1 {
    border-bottom: 2px solid #98971a;
}

.sidebar a {
    font-family: 'Young Serif', serif;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section h3 {
    margin-bottom: 5px;
}

.nav-section ul {
    list-style: none;
    padding-left: 10px;
}

a {
    text-decoration: none;
    color: #98971a;
}

a:hover {
    text-decoration: underline;
}

a.active {
    background-color: #98971a;
    color: #282828;
    padding: 2px 4px;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    overflow-x: visible;
    padding: 15px;
    background-color: #1d1d1d;
    border: 1px solid #98971a;
}

code {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 30px;
    height: 24px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #98971a;
    transition: all 0.3s ease;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 998;
    cursor: pointer;
    pointer-events: none;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .menu-button {
        display: flex;
        top: auto;
        bottom: 20px;
        left: auto;
        right: 20px;
        z-index: 9999;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 200px;
        height: 100vh;
        padding: 20px;
        background-color: #282828;
        border-right: none;
        z-index: 1;
        overflow-y: auto;
    }

    .main-content {
        padding: 15px;
        width: 100%;
        position: relative;
        z-index: 2;
        background-color: #282828;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .menu-toggle:checked ~ .main-content {
        transform: translateX(240px);
        opacity: 0.3;
        border-left: 2px solid #98971a;
    }

    .menu-toggle:checked ~ .menu-overlay {
        display: block;
        pointer-events: auto;
        left: 240px;
        width: calc(100% - 240px);
    }

    .menu-toggle:checked ~ .menu-button {
        transform: translateX(240px);
    }

    .menu-toggle:checked ~ .menu-button span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle:checked ~ .menu-button span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .menu-button span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .menu-button {
        transition: transform 0.3s ease;
    }

    body {
        font-size: 14px;
    }
}
