:root {
    --background: #ffffff;
    --text: #24292f;
    --muted: #57606a;
    --accent: #0969da;
    --border: #d8dee4;
    --content-width: 880px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

.container {
    width: min(100% - 2rem, var(--content-width));
    margin-inline: auto;
}

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

a:hover,
a:focus-visible {
    text-decoration: underline;
}

.site-header {
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    gap: 1rem;
}

.site-name {
    color: var(--text);
    font-weight: 650;
}

.nav-links,
.contact-links,
.publication-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
}

.profile {
    display: grid;
    grid-template-columns: 300px 1fr; 
    gap: 2.5rem;
    align-items: start;
    padding-block: 4rem 2.5rem;
}

.profile-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

h1 {
    margin: 0 0 0.25rem;
    font-size: clamp(2rem, 5vw, 2.75rem);
}

h2 {
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.6rem;
}

h3 {
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
}

.role,
.publication-authors,
.publication-venue {
    color: var(--muted);
}

.role {
    margin-top: 0;
}

.section {
    padding-block: 1rem 3rem;
}

.publication {
    margin-block: 2rem;
}

.publication p {
    margin-block: 0.4rem;
}

.publication-links {
    margin-top: 0.6rem;
    font-size: 0.95rem;
}

.site-footer {
    padding-block: 1.5rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 640px) {
    .header-content {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 1rem;
    }

    .profile {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 2.5rem;
    }

    .profile-image {
        width: 200px;
    }
}

.interests-label {
    margin-bottom: 0;
}

.interests-list {
    margin-top: 0.15rem; 
}
