@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* Jost loads online. No local font files or fonts folder are needed. */
:root {
    --site-font: "Jost", "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: #ffffff;
    color: #272727;

    font-family: var(--site-font);

    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;

    letter-spacing: -0.004em;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.nav {
    max-width: 920px;

    margin: 0 auto;
    padding: 26px 24px;

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

.site-name {
    color: #181818;

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

    letter-spacing: -0.02em;

    text-decoration: none;
}

.site-name:hover {
    color: #181818;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 30px;
}

.nav-links a {
    color: #666666;

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

    padding: 8px 0;

    text-decoration: none;

    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: #111111;
}

.nav-links .active {
    color: #111111;
}

/* ==========================================
           REFERENCES
========================================== */

        .references {
            margin-top: 56px;
        }

        .ref-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 32px;
            line-height: 1.6;
        }

        @media (max-width: 768px) {
            .ref-grid {
                grid-template-columns: 1fr;
                gap: 24px;
            }
        }


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 650px) {

    .nav {
        padding: 20px;
    }

    .site-name {
        font-size: 18px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 14px;
    }
}

/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.container {
    max-width: 870px;

    margin: 0 auto;
    padding: 80px 24px 50px;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3 {
    margin-top: 0;

    font-family: var(--site-font);

    color: #181818;
}

h1 {
    margin-bottom: 12px;

    font-size: 42px;
    font-weight: 600;
    line-height: 1.15;

    letter-spacing: -0.035em;
}

h2 {
    margin-bottom: 24px;

    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: -0.02em;
}

h3 {
    margin-bottom: 8px;

    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;

    letter-spacing: -0.012em;
}

p {
    margin-top: 0;

    font-family: var(--site-font);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 70px;

    margin-bottom: 80px;
}

.hero-content {
    max-width: 610px;
}

.position {
    margin: 0;

    font-family: var(--site-font);

    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;

    color: #333333;
}

.affiliation {
    margin-top: 3px;

    font-family: var(--site-font);

    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;

    color: #555555;
}

.bio {
    max-width: 620px;

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

    font-family: var(--site-font);

    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;

    letter-spacing: -0.004em;
}


/* =========================================================
   PROFILE PHOTO
   ========================================================= */

.profile-photo {
    width: 185px;
    height: 220px;

    object-fit: cover;

    border-radius: 3px;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
    color: #174a7e;
}

.primary-links {
    display: flex;
    gap: 24px;

    margin-top: 30px;

    font-family: var(--site-font);

    font-size: 14px;
    font-weight: 500;
}

.primary-links a {
    color: #174a7e;

    text-decoration: none;

    border-bottom: 1px solid #b8cadb;

    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}

.primary-links a:hover {
    color: #103b67;

    border-bottom-color: #174a7e;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    margin-top: 65px;
}

.research-interests {
    font-family: var(--site-font);

    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;

    letter-spacing: -0.004em;
}


/* =========================================================
   EDUCATION
   ========================================================= */

.education-entry {
    display: flex;

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

    gap: 30px;

    margin-bottom: 24px;

    font-family: var(--site-font);

    font-size: 17px;
    line-height: 1.55;
}

/* =========================================================
   Results summary 
  ========================================================= */
.result-toggle summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;

    padding: 6px 14px;
    border: 1px solid #1f4e79;
    border-radius: 999px;
    background: #ffffff;
    color: #1f4e79;

    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.02em;

    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.result-toggle summary::-webkit-details-marker {
    display: none;
}

/* arrow */
.result-toggle summary::before {
    content: "\25B8";
    display: inline-block;
    font-size: 0.9em;
    transition: transform 0.2s ease;
}

.result-toggle[open] summary::before {
    transform: rotate(90deg);
}

/* hover and focus */
.result-toggle summary:hover,
.result-toggle summary:focus-visible {
    background: #1f4e79;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(31, 78, 121, 0.25);
    outline: none;
}

.result-toggle[open] summary {
    margin-bottom: 0.9em;
}

.institution {
    font-family: var(--site-font);

    font-weight: 600;

    color: #242424;
}

.degree {
    font-family: var(--site-font);

    font-weight: 400;

    color: #555555;
}

.date {
    white-space: nowrap;

    font-family: var(--site-font);

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

    color: #666666;
}


/* =========================================================
   RESEARCH PAGE
   ========================================================= */

.paper {
    margin-bottom: 50px;

    font-family: var(--site-font);
}

.paper-title {
    margin-top: 0;
    margin-bottom: 7px;

    font-family: var(--site-font);

    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;

    letter-spacing: -0.012em;

    color: #181818;
}

.paper-links {
    margin: 0 0 15px;

    font-family: var(--site-font);

    font-size: 14px;
    font-weight: 500;
}

.paper-links a {
    color: #174a7e;

    text-decoration: none;
}

.paper-links a:hover {
    text-decoration: underline;
}

/* =========================================================
   FORCE JUSTIFIED ABSTRACT
   ========================================================= */

.abstract {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    background: #f5f5f3;
    border: 1px solid #e4e4e0;
    border-radius: 6px;
    padding: 18px 22px;
    margin: 1em 0;

    text-align: justify !important;
    text-align-last: left;

    hyphens: none !important;
    -webkit-hyphens: none !important;

    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
}


/* =========================================================
   EMPHASIS
   ========================================================= */

em,
i,
strong,
b {
    font-family: inherit;
}

strong,
b {
    font-weight: 600;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    max-width: 870px;

    margin: 30px auto 0;
    padding: 0 24px 30px;
}

.footer-content {
    padding-top: 25px;

    border-top: 1px solid #eeeeee;

    color: #999999;

    font-family: var(--site-font);

    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}


/* =========================================================
   FONT SAFETY OVERRIDE
   ========================================================= */

body,
button,
input,
textarea,
select,
p,
span,
li,
a,
.bio,
.position,
.affiliation,
.research-interests,
.education-entry,
.education-entry span,
.institution,
.degree,
.date,
.paper,
.paper-title,
.paper-links,
.paper .abstract,
.abstract,
.primary-links,
footer,
.footer-content {
    font-family: var(--site-font);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

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

    .nav {
        padding: 20px 20px;
    }

    .site-name {
        font-size: 17px;
    }

    .nav-links {
        gap: 22px;
    }

    .nav-links a {
        font-size: 13px;
    }

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

    .hero {
        flex-direction: column-reverse;
        align-items: flex-start;

        gap: 35px;

        margin-bottom: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    h1 {
        font-size: 34px;
        line-height: 1.15;

        letter-spacing: -0.03em;
    }

    h2 {
        font-size: 21px;
    }

    h3,
    .paper-title {
        font-size: 18px;
    }

    .position {
        font-size: 17px;
    }

    .bio,
    .affiliation,
    .research-interests,
    .abstract,
    .education-entry {
        font-size: 16px;
    }

    .profile-photo {
        width: 145px;
        height: 175px;
    }

    .education-entry {
        display: block;
    }

    .date {
        margin-top: 4px;

        font-size: 15px;
    }

    .section {
        margin-top: 55px;
    }

    .paper {
        margin-bottom: 42px;
    }

    .abstract,
    .bio,
    .research-interests {
        line-height: 1.6;
    }

    footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

