:root {
    --bg-color: #fff;
    --text-color: #333;
    --link-color: #ff9800;
    --secondary-text-color: #666;
    --border-color: #eee;
    --heading-color: #000;
    --card-bg: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --link-color: #64b5f6;
        --secondary-text-color: #a0a0a0;
        --border-color: #333;
        --heading-color: #fff;
        --card-bg: #2d2d2d;
        --shadow-color: rgba(0, 0, 0, 0.3);
    }
}

body {
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
    font-size: 14px;
    /* Smaller font size */
    line-height: 1.4;
    /* Tighter line height */
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
}

header {
    margin-bottom: 30px;
    /* Reduced margin */
}

h1 {
    font-size: 2.0em;
    /* Smaller heading */
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--heading-color);
}

h2 {
    font-size: 1.3em;
    /* Smaller heading */
    margin-top: 30px;
    /* Reduced margin */
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    color: var(--heading-color);
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    /* Reduced gap */
    margin-bottom: 30px;
}

.profile-info {
    flex: 1;
}

.profile-pic {
    width: 180px;
    /* Slightly smaller */
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    margin-right: 12px;
    font-weight: bold;
}

.bio-snippet {
    /* gap: 5px; */
    padding: 0;
    margin: 0;
}

.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    margin-bottom: 8px;
    /* Tighter spacing */
    display: flex;
}

.news-date {
    min-width: 90px;
    font-weight: bold;
    color: var(--secondary-text-color);
    font-size: 0.95em;
}

.publication-list {
    list-style: none;
    padding: 0;
}

.publication-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    /* Reduced margin */
}

.pub-thumbnail {
    width: 160px;
    height: 100px;
    background-color: var(--border-color);
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.pub-details {
    flex: 1;
}

.pub-title {
    font-weight: bold;
    font-size: 1.05em;
    /* Slightly smaller */
    margin-bottom: 3px;
    display: block;
    color: var(--heading-color);
}

.pub-authors {
    color: var(--secondary-text-color);
    margin-bottom: 3px;
    font-size: 0.95em;
}

.pub-venue {
    font-style: italic;
    color: var(--secondary-text-color);
    margin-bottom: 3px;
    font-size: 0.95em;
}

.pub-links a {
    margin-right: 10px;
    font-size: 0.85em;
    /* Smaller link text */
    text-transform: uppercase;
    font-weight: bold;
}

footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85em;
    color: var(--secondary-text-color);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .profile-section {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .profile-pic {
        width: 140px;
        height: 140px;
    }

    .publication-item {
        flex-direction: column;
    }

    .pub-thumbnail {
        width: 100%;
        height: auto;
        max-width: 200px;
    }
}