/* ===== Academic homepage styles ===== */

:root {
    --color-text: #1a1a1a;
    --color-text-muted: #555;
    --color-link: #1a1a1a;
    --color-link-hover: #333;
    --color-bg: #ffffff;
    --color-border: #e0e0e0;
    --max-width: 1000px;
    --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 1.75;
    color: var(--color-text);
    background: var(--color-bg);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* ===== Header: photo left, text right ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.header-content {
    flex: 1;
}

.header h1 {
    font-size: 2.8rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.header .subtitle {
    font-size: 1.25rem;
    color: var(--color-text);
    margin: 0 0 0.4rem 0;
}

.header .affiliation {
    font-size: 1.1rem;
    color: var(--color-text);
    margin: 0 0 0.25rem 0;
    line-height: 1.6;
}

.header .contact {
    font-size: 1.1rem;
    color: var(--color-text);
    margin: 0 0 1rem 0;
}

.profile-photo {
    width: 300px;
    height: 230px;
    max-width: 300px;
    max-height: 230px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
    margin-top: 1.5rem;
}

.social-links {
    font-size: 1.1rem;
}

.social-links a {
    color: var(--color-link);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.social-links a:hover {
    border-bottom-color: var(--color-text);
}

.social-links a::after {
    content: " | ";
    color: var(--color-border);
    border: none;
}

.social-links a:last-child::after {
    display: none;
}

/* ===== Main content sections ===== */
section {
    margin-bottom: 2rem;
}

section h2 {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    color: var(--color-text);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-text);
    letter-spacing: 0.02em;
}

section h2 small {
    font-size: 1.05rem;
    font-weight: normal;
    color: var(--color-text-muted);
}

section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem 0;
    color: var(--color-text);
}

section h3:first-of-type {
    margin-top: 0;
}

section p, section li {
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
}

section ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: square;
}

/* ===== News list ===== */
.news-list {
    list-style-type: square;
    padding-left: 1.5rem;
}

.news-list li {
    margin-bottom: 0.6rem;
}

.news-list .date {
    color: var(--color-text);
}

/* ===== Conferences list ===== */
.conf-list {
    list-style-type: square;
    padding-left: 1.5rem;
}

.conf-list li {
    margin-bottom: 1.25rem;
}

/* ===== Publications list ===== */
.pub-list {
    list-style-type: square;
    padding-left: 1.5rem;
}

.pub-list li {
    margin-bottom: 1.25rem;
}

.pub-list a {
    color: var(--color-link);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.pub-list a:hover {
    border-bottom-color: var(--color-text);
}

.pub-list .authors {
    font-size: 1.1rem;
    color: var(--color-text);
}

.pub-list .venue {
    font-size: 1.1rem;
    color: var(--color-text);
}

.pub-list .links {
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.pub-list .links a {
    font-weight: 500;
}

/* ===== Footer ===== */
footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .social-links a::after {
        display: none;
    }
}
