/* ---------------------------------
   GLOBAL
---------------------------------- */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background: #ffffff;
    color: #222222;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;

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


.container {
    width: 90%;
    max-width: 920px;

    margin-left: auto;
    margin-right: auto;
}



/* ---------------------------------
   LINKS
---------------------------------- */

a {
    color: #2457a7;
    text-decoration: none;
}


a:hover {
    text-decoration: underline;
}



/* ---------------------------------
   HEADER
---------------------------------- */

.site-header {
    display: flex;

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

    gap: 35px;

    padding-top: 55px;
    padding-bottom: 35px;

    border-bottom: 1px solid #dddddd;
}


.identity {
    flex: 1;
}


h1 {
    margin: 0;

    font-size: 2.1rem;
    font-weight: 650;

    letter-spacing: -0.03em;
}


.subtitle {
    margin-top: 7px;
    margin-bottom: 0;

    color: #555555;

    font-size: 0.98rem;
}


nav {
    display: flex;
    flex-wrap: nowrap;

    justify-content: flex-end;

    gap: 19px;

    padding-top: 8px;

    white-space: nowrap;

    font-size: 0.94rem;
}



/* ---------------------------------
   MAIN
---------------------------------- */

main {
    padding-top: 45px;
}


section {
    margin-bottom: 60px;
}



/* ---------------------------------
   INTRODUCTION
---------------------------------- */

.intro {
    margin-top: 0;
}


.intro-grid {
    display: grid;

    grid-template-columns: 180px 1fr;

    gap: 38px;

    align-items: start;
}


.intro-photo img {
    display: block;

    width: 180px;
    height: 210px;

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

    border-radius: 4px;
}


.intro-text {
    max-width: 650px;
}


.lead {
    margin-top: 0;
    margin-bottom: 20px;

    color: #111111;

    font-size: 1.22rem;
    line-height: 1.55;
}


.intro-text p:not(.lead) {
    color: #444444;
}


.links {
    margin-top: 22px;

    font-size: 0.96rem;
}



/* ---------------------------------
   SECTION HEADINGS
---------------------------------- */

h2 {
    margin-top: 0;
    margin-bottom: 25px;

    padding-bottom: 8px;

    border-bottom: 1px solid #dddddd;

    font-size: 1.35rem;
    font-weight: 650;

    letter-spacing: -0.01em;
}


h3 {
    margin-top: 0;
    margin-bottom: 5px;

    font-size: 1.05rem;
    font-weight: 650;
}



/* ---------------------------------
   RESEARCH
---------------------------------- */

.research-item {
    margin-bottom: 30px;
}


.research-item p {
    margin-top: 6px;
    margin-bottom: 0;

    color: #444444;
}



/* ---------------------------------
   PUBLICATIONS
---------------------------------- */

.publication {
    margin-bottom: 30px;
}


.publication p {
    color: #444444;
}


.publication-status {
    margin-top: 0;
    margin-bottom: 5px;

    color: #777777 !important;

    font-size: 0.84rem;
    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}



/* ---------------------------------
   PROJECTS
---------------------------------- */

.project {
    margin-bottom: 32px;
}


.project p {
    margin-top: 6px;
    margin-bottom: 0;

    color: #444444;
}


.project-links {
    margin-top: 9px !important;

    font-size: 0.92rem;
}



/* ---------------------------------
   ABOUT
---------------------------------- */

#about p {
    color: #444444;
}



/* ---------------------------------
   CONTACT
---------------------------------- */

.contact-links {
    font-size: 0.96rem;
}



/* ---------------------------------
   FOOTER
---------------------------------- */

footer {
    margin-top: 20px;

    padding-top: 28px;
    padding-bottom: 45px;

    border-top: 1px solid #dddddd;

    color: #777777;

    font-size: 0.85rem;
}



/* ---------------------------------
   MOBILE
---------------------------------- */

@media (max-width: 760px) {

    .container {
        width: 88%;
    }


    .site-header {
        flex-direction: column;

        gap: 18px;

        padding-top: 35px;
        padding-bottom: 25px;
    }


    nav {
        flex-wrap: wrap;

        justify-content: flex-start;

        gap: 15px;

        padding-top: 0;
    }


    h1 {
        font-size: 1.8rem;
    }


    .subtitle {
        font-size: 0.94rem;
    }


    main {
        padding-top: 35px;
    }


    .intro-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .intro-photo img {
        width: 140px;
        height: 165px;
    }


    .lead {
        font-size: 1.12rem;
    }


    section {
        margin-bottom: 50px;
    }

}



/* ---------------------------------
   SMALL PHONE
---------------------------------- */

@media (max-width: 480px) {

    body {
        font-size: 15px;
    }


    nav {
        gap: 12px;
    }


    h1 {
        font-size: 1.65rem;
    }


    h2 {
        font-size: 1.25rem;
    }


    .intro-photo img {
        width: 125px;
        height: 148px;
    }

}
