
html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;

    color: #222;
    background-color: white;

    font-size: 16px;
    line-height: 1.6;
}


.container {
    max-width: 900px;

    margin: 0 auto;
    padding: 45px 30px 70px 30px;
}


/* HEADER */

header {
    margin-bottom: 40px;
}


header h1 {
    margin: 0 0 5px 0;

    font-size: 34px;
    font-weight: 600;
}


.position {
    margin: 0 0 18px 0;

    color: #444;
}


/* TOP NAVIGATION */

nav {
    display: flex;

    gap: 28px;

    padding-bottom: 10px;

    border-bottom: 1px solid #ddd;
}


nav a {
    color: #555;

    font-size: 16px;
    font-weight: 500;

    text-decoration: none;

    transition: color 0.15s ease;
}


nav a:hover {
    color: #111;
}


/* PROFILE */

.intro {
    display: flex;

    align-items: flex-start;

    gap: 35px;

    margin-bottom: 65px;
}


/* PHOTO FRAME */

.photo-frame {
    width: 240px;
    height: 260px;

    flex: 0 0 240px;

    border-radius: 50%;
    overflow: hidden;
}


/* PHOTO ZOOM */

.photo-frame img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    transform: scale(1.15);
    transform-origin: center center;
}


.intro-text {
    flex: 1;
    min-width: 0;
}


.intro p {
    margin-top: 0;
    margin-bottom: 14px;
}


/* SECTIONS */

section {
    margin-bottom: 65px;
}


#research,
#teaching {
    scroll-margin-top: 30px;
}


/* SECTION HEADINGS */

.section-heading {
    margin-top: 42px;
    margin-bottom: 19px;

    padding: 0;

    border: none;

    font-size: 22px;
    font-weight: 600;

    color: #222;
}


.research-section > .section-heading:first-child,
#teaching > .section-heading:first-child {
    margin-top: 0;
}


/* PAPERS */

.paper {
    margin-bottom: 30px;
}


.paper p {
    margin-top: 0;
}


.paper-title {
    margin-bottom: 2px;

    font-size: 16.5px;
    font-weight: 600;
}


/* CLICKABLE PAPER TITLES */

.paper-title a {
    color: #222;

    text-decoration: none;

    transition: color 0.15s ease;
}


.paper-title a:hover {
    color: #0066cc;
}


.no-link {
    color: #222;
}


/* COAUTHORS */

.coauthors,
.paper-note,
.publication-info {
    margin-top: 0;
    margin-bottom: 4px;

    font-size: 15px;
    font-weight: 400;

    color: #555;
}


.publication-info {
    margin-top: -1px;
}


/* ABSTRACT */

.paper-links {
    display: flex;

    align-items: center;

    margin-top: 5px;
}


.abstract-button {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin: 0;
    padding: 2px 0;

    border: none;
    background: none;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    color: #666;

    cursor: pointer;

    transition: color 0.15s ease;
}


.abstract-button:hover {
    color: #0066cc;
}


.toggle-symbol {
    display: inline-block;

    font-size: 18px;
    font-weight: 300;

    line-height: 1;
}


.abstract-text {
    display: none;

    max-width: 780px;

    margin-top: 13px;
    margin-bottom: 8px;

    padding-left: 15px;

    border-left: 2px solid #e5e5e5;

    color: #444;
}


.abstract-text.show {
    display: block;
}


.abstract-text p {
    margin: 0;

    font-size: 15px;
    line-height: 1.65;
}


/* TEACHING */

.teaching-item {
    margin-bottom: 21px;
}


.teaching-line {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;
}


.date {
    white-space: nowrap;

    color: #555;
}


.evaluation {
    margin-top: 5px;
    margin-bottom: 0;

    margin-left: 15px;

    font-size: 15px;
    font-style: italic;

    color: #666;
}


/* MOBILE */

@media (max-width: 650px) {

    .container {
        padding: 30px 20px 50px 20px;
    }


    nav {
        gap: 22px;
    }


    .intro {
        flex-direction: column;

        gap: 25px;

        margin-bottom: 50px;
    }


    .photo-frame {
        width: 180px;
        height: 195px;

        flex: 0 0 auto;
    }


    .intro-text {
        width: 100%;
    }


    .section-heading {
        font-size: 21px;
    }


    .teaching-line {
        flex-direction: column;

        gap: 2px;
    }

}

