:root {
    --ink: #20252b;
    --muted: #5d6670;
    --blue: #174f83;
    --blue-dark: #103b64;
    --rule: #d8dde2;
    --soft-rule: #e9ecef;
    --paper: #ffffff;
    --wash: #f6f7f8;
    --serif: "Source Serif 4", Georgia, serif;
    --sans: "Libre Franklin", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(1080px, calc(100% - 3rem));
    margin-inline: auto;
}

a {
    color: var(--blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

a:hover {
    color: var(--blue-dark);
}

a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 20;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: var(--paper);
    background: var(--blue-dark);
    font-family: var(--sans);
    font-size: 0.8rem;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    padding: 2.5rem 0 2rem;
    border-top: 4px solid var(--blue-dark);
    background: var(--paper);
}

.identity {
    display: grid;
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
}

h1 {
    margin: 0 0 0.3rem;
    color: #18222c;
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1;
}

.position {
    margin: 0 0 0.65rem;
    color: var(--blue-dark);
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
}

.affiliation {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.identity-links {
    display: flex;
    padding-bottom: 0.1rem;
    align-items: flex-end;
    flex-direction: column;
    gap: 0.2rem;
    font-family: var(--sans);
    font-size: 0.78rem;
}

.identity-links a {
    text-decoration: none;
}

.identity-links span {
    margin-top: 0.35rem;
    color: var(--muted);
}

.site-nav {
    border-block: 1px solid var(--rule);
    background: var(--wash);
}

.site-nav .container {
    display: flex;
    gap: 2.25rem;
}

.site-nav a {
    padding: 0.65rem 0;
    color: #384550;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--blue);
}

main > section {
    padding: 2.75rem 0;
    border-bottom: 1px solid var(--rule);
    scroll-margin-top: 1rem;
}

main > section:last-child {
    border-bottom: 0;
}

h2 {
    margin: 0 0 1.4rem;
    color: #18222c;
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.035em;
}

h2::after {
    display: block;
    width: 42px;
    height: 2px;
    margin-top: 0.45rem;
    background: var(--blue);
    content: "";
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 3rem;
}

.summary p {
    margin: 0;
    color: #293846;
    font-size: 1.18rem;
    line-height: 1.42;
}

.about-grid > div:last-child {
    color: #3f4851;
}

.about-grid > div:last-child p {
    margin-block: 0 0.7rem;
}

.about-grid p:first-child {
    margin-top: 0;
}

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

.research-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--rule);
}

.research-list li {
    padding: 1rem 1.5rem 1rem 0;
    border-bottom: 1px solid var(--rule);
}

.research-list li:nth-child(odd) {
    padding-right: 1.5rem;
    border-right: 1px solid var(--rule);
}

.research-list li:nth-child(even) {
    padding-left: 1.5rem;
}

.research-list strong {
    display: block;
    margin-bottom: 0.2rem;
    color: #253442;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
}

.research-list span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.section-title-row {
    display: flex;
    margin-bottom: 1.4rem;
    align-items: start;
    justify-content: space-between;
    gap: 2rem;
}

.section-title-row h2 {
    margin-bottom: 0;
}

.section-title-row > p {
    margin: 0.1rem 0 0;
    font-family: var(--sans);
    font-size: 0.75rem;
}

.publications {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
}

.publications li {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--soft-rule);
}

.publications p {
    margin: 0;
}

.paper-title {
    margin-bottom: 0.15rem !important;
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.35;
}

.paper-title a {
    color: #183f65;
    text-decoration: none;
}

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

.authors,
.citation {
    color: #4e5861;
    font-size: 0.78rem;
    line-height: 1.42;
}

.authors strong {
    color: var(--ink);
    font-weight: 600;
}

.citation cite {
    font-style: italic;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 2rem;
}

.contact-grid > div {
    padding-top: 0.8rem;
    border-top: 2px solid var(--rule);
}

.contact-grid h3 {
    margin: 0 0 0.55rem;
    color: #2c3945;
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
}

.contact-grid p,
.contact-grid address {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-style: normal;
    line-height: 1.65;
}

.contact-grid .contact-note {
    margin-bottom: 0.25rem;
}

.contact-grid .contact-detail {
    color: #394b5b;
    overflow-wrap: anywhere;
}

footer {
    padding: 1rem 0;
    color: #717a82;
    border-top: 1px solid var(--rule);
    background: var(--wash);
    font-family: var(--sans);
    font-size: 0.72rem;
}

footer p {
    margin: 0;
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 2rem, 1080px);
    }

    .site-header {
        padding: 2rem 0 1.5rem;
    }

    .identity,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .identity {
        gap: 2rem;
    }

    .identity-links {
        align-items: flex-start;
    }

    .site-nav .container {
        overflow-x: auto;
        gap: 1.4rem;
    }

    .site-nav a {
        white-space: nowrap;
    }

    main > section {
        padding: 2.5rem 0;
    }

    .about-grid {
        gap: 2rem;
    }

    .research-list {
        grid-template-columns: 1fr;
    }

    .research-list li,
    .research-list li:nth-child(odd),
    .research-list li:nth-child(even) {
        padding: 1.25rem 0;
        border-right: 0;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .contact-grid {
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
