@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@400;500;600&display=swap');

body {
    font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
    max-width: 760px;
    margin: 0 auto;
    padding: 44px 24px;
    line-height: 1.6;
    color: #222;
    background: #fff;
    font-size: 15px;
}

h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    margin: 32px 0 12px 0;
    color: #222;
}

p {
    margin-bottom: 13px;
}

/* Navigation */
.nav {
    margin: 16px 0 28px 0;
}

.nav a {
    color: #333;
    text-decoration: none;
    margin-right: 20px;
    font-size: 14px;
}

.nav a:hover {
    text-decoration: underline;
}

.nav a.current {
    font-weight: 600;
}

/* Two-column header */
.header-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.header-row .bio {
    flex: 1;
}

.sidebar {
    flex-shrink: 0;
    width: 180px;
    padding-top: 0;
}

.sidebar .profile-img {
    width: 180px;
    height: 220px;
    border-radius: 8px;
    margin: 0 0 16px 0;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.sidebar-links a {
    color: #555;
    text-decoration: none;
}

.sidebar-links a:hover {
    text-decoration: underline;
    color: #222;
}

/* Lists */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 10px;
}

ul li:before {
    content: "–";
    margin-right: 8px;
    color: #999;
}

/* Links */
a {
    color: #222;
    text-decoration: underline;
    text-decoration-color: #bbb;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-color: #222;
}

/* Profile (fallback for non-header usage) */
.profile-img {
    width: 88px;
    height: 88px;
    border-radius: 8px;
    margin: 0 0 24px 0;
    display: block;
    object-fit: cover;
}

.subtitle {
    color: #777;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 14px;
}

.post-meta {
    color: #888;
    margin-bottom: 20px;
    font-size: 13px;
}

/* Papers */
.paper {
    margin-bottom: 28px;
}

.paper-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 15px;
    line-height: 1.4;
}

.paper-title a {
    color: #222;
    text-decoration-color: #bbb;
}

.paper-title a:hover {
    text-decoration-color: #222;
}

.paper-authors {
    color: #666;
    margin: 3px 0;
    font-size: 13px;
}

.paper-meta {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

.paper-abstract {
    font-size: 13px;
    color: #555;
    margin: 8px 0 4px 0;
    line-height: 1.55;
}

.interests {
    color: #777;
    font-size: 13px;
}

/* Footer */
.site-footer {
    margin-top: 60px;
    padding-top: 14px;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #aaa;
}

.site-footer a {
    color: #aaa;
    text-decoration: none;
}

.site-footer a:hover {
    color: #666;
}

/* Mobile */
@media (max-width: 600px) {
    .header-row {
        flex-direction: column-reverse;
        gap: 20px;
    }
    .sidebar {
        width: auto;
    }
    .sidebar .profile-img {
        width: 140px;
        height: 170px;
    }
}
