/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --text-color: #333;
    --text-light: #666;
    --link-color: #2563eb;
    --link-hover: #1d4ed8;
    --bg-color: #fff;
    --max-width: 720px;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: 0 1.5rem;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 0;
}

/* Navigation */
nav {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--link-color);
}

/* Typography */
h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    text-decoration: underline;
}

/* Home page specific */
.intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 600px) {
    .intro {
        grid-template-columns: 140px 1fr;
    }
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
}

.bio p:last-child {
    margin-bottom: 0;
}


/* Publications */
.publication {
    margin-bottom: 2rem;
}

.publication-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.publication-authors {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.publication-venue {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.publication-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.publication-links a {
    font-size: 0.875rem;
}

/* Software */
.software-item {
    margin-bottom: 2rem;
}

.software-item:last-child {
    margin-bottom: 0;
}

.software-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.software-item h3 a {
    color: var(--text-color);
}

.software-item h3 a:hover {
    color: var(--link-color);
}


/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        padding: 0 1rem;
    }

    nav ul {
        gap: 1.25rem;
    }

    h1 {
        font-size: 1.5rem;
    }

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