body {
    background-color: #1b1f23;
    color: #f4f4f4;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    overflow-y: auto;
    scrollbar-width: auto;
}

html, body {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
}

main {
    scroll-behavior: smooth;
}

.logo-img {
    height: 2rem;
    width: 2rem;
    object-fit: contain;
    vertical-align: middle;
}

.active-heading {
    color: #f4f4f4;
    font-weight: 600;
}

#projectList, #projectListMobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
}

#projectList li, #projectListMobile li {
    text-align: left;
    width: 100%;
}

#projectList a, #projectListMobile a {
    display: block;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 550;
    color: #9ca3af !important; /* Secondary text for project links */
    padding: 0.3rem 0;
}

#projectList a:hover, #projectListMobile a:hover {
    color: #f4f4f4 !important; /* Primary text on hover */
}

#headingsNav, #headingsNavMobile {
    padding: 0.5rem;
}

#headingsNav a, #headingsNavMobile a {
    font-size: 0.95rem;
    color: #9ca3af !important; /* Secondary text for headings nav */
    transition: color 0.2s ease;
}

#headingsNav a:hover, #headingsNavMobile a:hover {
    color: #f4f4f4 !important; /* Primary text on hover */
}

#markdownContent {
    width: 100%;
    padding: 0.5rem 1rem;
    min-height: calc(100vh - 80px - 3rem);
    padding-bottom: 14rem;
}

.next-project-link {
    margin-top: 2rem;
    text-align: right;
}

.next-project-link .next-project-label {
    font-size: 0.85rem;
    color: #f4f4f4; /* Primary text for label */
}

.next-project-link .project-name {
    font-size: 1.1rem;
    color: #f4f4f4; /* Primary text for project name */
    font-weight: 600;
    text-decoration: none;
    display: block;
}

.next-project-link .project-name:hover {
    color: #d1d5db; /* Slightly lighter gray for hover */
}

.sub-nav {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Fixed typo from 'set' to 'center' */
    background-color: #15191c; /* Darker slate for sub-nav */
}

#projectMenu.show {
    transform: translateX(0);
}

#headingsMenu.show {
    transform: translateX(0);
}

#projectToggle i, #headingsToggle i {
    transition: transform 0.3s ease;
}

#projectToggle.active i, #headingsToggle.active i {
    transform: rotate(180deg);
}

.navbar {
    padding: 0rem 3rem !important;
    background-color: #15191c; /* Darker slate for navbar */
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        padding: 0.75rem 1rem !important;
        background-color: #15191c; /* Darker slate for navbar */
    }

    #mobileMenu {
        flex-direction: column;
        align-items: center;
        z-index: 50;
        display: none; /* Initial state */
        background-color: #1b1f23; /* Main background for mobile menu */
    }

    #mobileMenu.show {
        display: flex !important; /* Override Tailwind's hidden class */
    }

    #projectMenu, #headingsMenu {
        width: 80%;
        max-width: 250px;
        background-color: #1b1f23; /* Main background for mobile menus */
    }

    #markdownContent {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 1rem 0rem;
        padding-bottom: 5rem;
    }

    .next-project-link {
        text-align: center;
        margin-bottom: 2rem;
    }
}

@media (min-width: 769px) {
    #projectMenu, #headingsMenu, .sub-nav {
        display: none;
    }

    #projectList {
        justify-content: center;
        align-items: center;
        height: 100%;
        background-color: #1b1f23; /* Main background for project list */
    }

    #projectList li {
        width: 80%;
    }
}

.prose {
    max-width: 70ch;
    padding: 0rem 1.5rem;
    line-height: 1.75;
}

.prose h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #f4f4f4; /* Primary text for h1 */
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #f4f4f4; /* Primary text for h2 */
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #f4f4f4; /* Primary text for h3 */
}

.prose p {
    margin-bottom: 1rem;
    color: #f4f4f4; /* Primary text for paragraphs */
}

.prose a {
    color: #f4f4f4; /* Primary text for links */
    text-decoration: underline;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #d1d5db; /* Slightly lighter gray for hover */
}

.prose code {
    font-family: 'IBM Plex Sans', 'Menlo', 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.875rem;
    background-color: #2c2c2c; /* Darker slate for code background */
    padding: 0.5rem 0.4rem;
    border-radius: 0.25rem;
    color: #f4f4f4; /* Primary text for code */
}

.prose pre {
    background-color: #2c2c2c; /* Darker slate for pre background */
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.prose hr {
    border: none;
    border-top: 1px solid #9ca3af; /* Secondary text for hr */
    margin: 2rem 0;
}

.prose ul,
.prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
    color: #f4f4f4; /* Primary text for list items */
}

.prose blockquote {
    border-left: 4px solid #9ca3af; /* Secondary text for blockquote border */
    padding-left: 1rem;
    margin-bottom: 1rem;
    color: #9ca3af; /* Secondary text for blockquote */
    font-style: italic;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.prose th,
.prose td {
    border: 1px solid #9ca3af; /* Secondary text for table borders */
    padding: 0.5rem;
    text-align: left;
}

.prose th {
    background-color: #2c2c2c; /* Darker slate for table header */
    font-weight: 600;
    color: #f4f4f4; /* Primary text for table header */
}