:root {
    color-scheme: light;
    --ink: #232b32;
    --muted: #626c75;
    --link: #285c83;
    --line: #e4e7e9;
    --paper: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }

a {
    color: var(--link);
    text-decoration: none;
    text-underline-offset: 4px;
}

a:hover { text-decoration: underline; }

a:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 5px;
    border-radius: 1px;
}

::selection {
    color: #183b56;
    background: #dceaf4;
}

.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
}

.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 8px 14px;
    color: var(--paper);
    background: var(--link);
    transform: translateY(-180%);
}

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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0 20px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.site-name {
    color: var(--ink);
    font-weight: 600;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
}

nav a { color: var(--muted); }
nav a:hover { color: var(--link); }
main:focus { outline: none; }

section {
    margin-top: 40px;
    scroll-margin-top: 24px;
}

h1, h2, h3, h4, p { margin: 0; }

h1, h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

h1 {
    margin-bottom: 8px;
    font-size: 44px;
    line-height: 1.2;
    letter-spacing: -1.2px;
}

h2 {
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: -0.4px;
}

h3, h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.55;
}

strong { font-weight: 600; }

.profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    align-items: start;
    column-gap: 52px;
    margin-top: 46px;
}

.affiliation {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

.profile-text > p + p { margin-top: 12px; }

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    margin-top: 18px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.portrait {
    display: block;
    width: 160px;
    height: 216px;
    margin-top: 6px;
    border-radius: 2px;
    object-fit: cover;
    object-position: 58% center;
}

.anchor-target { scroll-margin-top: 24px; }

.group-heading {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.publication-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.publication {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 20px;
}

.publication + .publication { margin-top: 26px; }

.publication-venue {
    padding-top: 2px;
    color: var(--link);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.publication-venue span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.entry-meta {
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
}

.publication-summary {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.7;
}

.manuscript-heading { margin-top: 28px; }
.under-review { color: var(--muted); }
.entry + .entry { margin-top: 24px; }

.entry-heading, .honor {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
}

.entry-date {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 13px;
}

.entry-date span { white-space: nowrap; }

.entry > p:last-child:not(.entry-meta) {
    margin-top: 8px;
    font-size: 14px;
}

.honor { font-size: 14px; }

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding: 20px 0 32px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.site-footer a { color: var(--muted); }

@media (max-width: 700px) {
    .page { padding: 0 24px; }
    .profile {
        grid-template-columns: minmax(0, 1fr) 120px;
        column-gap: 28px;
    }
    h1 { font-size: 38px; }
    .portrait { width: 120px; height: 162px; }
    .entry-heading { flex-direction: column; gap: 3px; }
}

@media (max-width: 480px) {
    .page { padding: 0 22px; }
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-top: 20px;
        padding-bottom: 16px;
    }
    nav { gap: 8px 16px; }
    .profile {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-top: 30px;
    }
    .portrait {
        order: -1;
        width: 100px;
        height: 135px;
        margin: 0;
    }
    h1 { font-size: 36px; }
    h2 { font-size: 25px; }
    .publication { grid-template-columns: minmax(0, 1fr); gap: 7px; }
    .publication-venue span { display: inline; margin-left: 5px; }
    .honor { align-items: flex-start; }
    .site-footer { flex-wrap: wrap; }
}

@media (max-width: 360px) {
    h2 { font-size: 22px; }
    nav {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        gap: 4px 28px;
    }
}

@media print {
    :root { font-size: 11pt; }
    .page { max-width: none; padding: 0; }
    .site-header, .skip-link, .site-footer { display: none; }
    .profile { margin-top: 0; }
    section { margin-top: 24px; }
    h2 { break-after: avoid; }
    .publication, .entry, .honor { break-inside: avoid; }
}
