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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    font-size: 18px;
    padding: 2rem;
}

/* Layout Wrapper */
.layout-wrapper {
    display: flex;
    justify-content: center;
    max-width: 960px;
    margin: 0 auto;
    gap: 2rem;
}

/* Sidebar Navigation */
.sidebar-nav {
    width: 120px;
    padding-top: 4rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    padding-right: 2rem;
}

/* Central Container */
.container {
    max-width: 650px;
    padding-top: 4rem;
    flex-grow: 1;
}

/* Header & Nav */
header {
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
}

.sidebar-nav a {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    width: fit-content;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: #000;
    border-bottom: 1px solid #000;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

/* Links in text */
p a,
.project-title,
.list-clean a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
}

p a:hover,
.project-title:hover,
.list-clean a:hover {
    background-color: #f0f0f0;
    border-bottom: 1px solid #000;
}

/* Clean Lists (Projects/Thoughts) */
.list-clean {
    list-style: none;
}

.list-clean li {
    margin-bottom: 1rem;
}

.date {
    display: inline-block;
    min-width: 60px;
    color: #999;
    font-variant-numeric: tabular-nums;
    /* Aligns numbers nicely */
    font-size: 0.9rem;
}

.description {
    color: #666;
}

/* Divider */
hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 3rem 0;
}

/* Footer */
footer {
    margin-top: 4rem;
    font-size: 0.85rem;
    color: #999;
}

footer a {
    color: #666;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    body {
        padding: 1.5rem;
    }

    .layout-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .sidebar-nav {
        width: 100%;
        padding-top: 0;
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .sidebar-nav a {
        margin-right: 15px;
        margin-bottom: 5px;
    }

    .container {
        padding-top: 1rem;
    }

    .date {
        display: block;
        /* Moves date above title on small screens */
        margin-bottom: 0.2rem;
    }
}