/* Global settings */

body {
    font-family: 'Helvetica', sans-serif;
    padding: 2rem;
}

main {
    padding: 2rem;
}

p {

    line-height: 2;
}

/* Header and navigation */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: black;
    text-decoration: none;
    padding-bottom: 2px;
}

.nav-links a:hover {
    border-bottom: 2px solid #000;
}

/* Footer */

footer {
    font-size: x-small;
}

/* About page */

.about {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.about-text {
    display: flex;
    flex-direction: column;
}

.about p {
    margin: 1rem 0 0 1rem;
    font-size: large;
}

.profile-image {
    max-width: 200px;
    border-radius: 100%;
}

/* Publications page */

.publications-list {
    line-height: 2;
}

.publications-list li {
    margin-bottom: 1rem;
}


/* Screen size adjustments */

/* Small screens stack vertically */
@media (max-width: 768px) {
    header {
        display: block;
    }

    .nav-links {
        display: block;
    }

    .nav-links li {
        margin-left: 0rem;
        margin-bottom: 1rem;
    }

    .about {
        display: block;
    }
}

/* Large screens limit width */
@media (min-width: 1000px) {
    body {
        max-width: 1000px;
        margin: 0 auto;
    }
}
