/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

a {
    color: #0366d6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Left Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    padding: 40px 30px;
    background-color: #f9f9f9;
    border-right: 1px solid #e1e4e8;
    overflow-y: auto;
}

.sidebar h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #24292e;
}

.profile-photo {
    width: 100%;
    max-width: 200px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.bio {
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.bio p {
    margin-bottom: 10px;
}

.contact {
    font-size: 12px;
    line-height: 1.8;
}

.contact p {
    margin-bottom: 5px;
}

/* Main Content Area */
.main-content {
    margin-left: 300px;
    padding: 40px 60px;
}

.main-content h2 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 10px;
    color: #24292e;
}

.main-content h2:first-child {
    margin-top: 0;
}

.main-content hr {
    border: none;
    border-top: 1px solid #e1e4e8;
    margin-bottom: 20px;
}

/* Paper Entries */
.paper {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

/* Stacked layout (title / authors / venue — aligned with CV PDF) */
.paper-block .paper-line {
    display: block;
}

.paper-block .paper-line + .paper-line {
    margin-top: 0.35em;
}

.paper-title-row .paper-title {
    font-weight: 600;
}

.paper-authors {
    font-weight: 400;
}

.paper-venue {
    font-weight: 400;
}

.paper .paper-status {
    font-style: italic;
    color: #888;
}

.paper-title {
    color: #0366d6;
    text-decoration: none;
    font-weight: normal;
}

.paper-title:hover {
    text-decoration: underline;
}

.wip-title-text {
    font-weight: 600;
    color: #24292e;
}

/* Teaching */
.teaching {
    margin-bottom: 20px;
}

.teaching p {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e1e4e8;
    }
    
    .main-content {
        margin-left: 0;
        padding: 30px 20px;
    }
    
    .profile-photo {
        max-width: 150px;
    }
}
