:root {
    color-scheme: light dark;
    --paper: #ffffff;
    --ink: #192c38;
    --muted: #536572;
    --rule: #dce3e7;
    --accent: #20516b;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: none; text-underline-offset: .25em; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.site-shell { max-width: 1120px; padding: 0 48px; margin: 0 auto; }
.skip-link { position: absolute; top: 8px; left: 8px; padding: 10px 16px; background: var(--paper); transform: translateY(-180%); z-index: 1; }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 25px 0 21px; border-bottom: 1px solid var(--rule); }
.site-name { color: var(--ink); font: 400 1.4375rem/1.3 Georgia, "Times New Roman", serif; white-space: nowrap; }
.site-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 0; border-bottom: 1px solid transparent; font-size: .875rem; color: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
main { padding: 60px 0 64px; }
main > h1 { margin-bottom: 24px; font-size: 2.75rem; line-height: 1.15; letter-spacing: -.09rem; }
.profile-container { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: start; gap: 48px; min-height: 434px; }
.profile-title { margin-bottom: 22px; font-size: 4.1875rem; line-height: 1.05; letter-spacing: -.16rem; }
.profile-subtitle { margin-bottom: 29px; color: var(--muted); font-size: .9375rem; }
.research-statement { max-width: 34em; font-size: 1.25rem; line-height: 1.7; letter-spacing: -.0125rem; }
.profile-portrait { padding-top: 4px; }
.profile-portrait img { display: block; width: 100%; height: auto; border-radius: 2px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap; padding: 21px 0 25px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .8125rem; }
.profile-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.profile-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); }
.publication-sections { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0 0 26px; margin-bottom: 32px; border-bottom: 1px solid var(--rule); }
.publication-sections a { display: inline-flex; align-items: center; min-height: 44px; padding: 3px 0; font-size: .875rem; }
.publications-page main > section { margin-bottom: 48px; }
.publications-page main > section:last-child { margin-bottom: 0; }
.publications-page h2 { margin-bottom: 24px; font-size: 1.6875rem; line-height: 1.3; letter-spacing: -.03125rem; }
.publication-list { list-style: none; padding: 0; margin: 0; }
.publication-entry { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 22px; padding: 23px 0; border-bottom: 1px solid var(--rule); }
.publication-entry:first-child { padding-top: 0; }
.publication-year { padding-top: 3px; color: var(--muted); font-size: .875rem; }
.publication-title { font-size: 1.375rem; line-height: 1.32; letter-spacing: -.016rem; }
.publication-authors { margin-top: 10px; color: var(--muted); font-size: .875rem; line-height: 1.65; overflow-wrap: anywhere; }
.publication-authors strong { color: var(--ink); font-weight: 500; }
.publication-venue { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.team-page main > section { margin-bottom: 38px; }
.team-page main > section:last-child { margin-bottom: 0; }
.team-page h2 { margin-bottom: 18px; font-size: 1.6875rem; line-height: 1.3; }
.team-page table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 1rem; }
.team-page caption { text-align: left; padding-bottom: 16px; color: var(--muted); font-size: .875rem; }
.team-page th { text-align: left; padding: 0 10px 10px 0; font-size: .875rem; font-weight: 400; color: var(--muted); }
.team-page td { padding: 12px 10px 12px 0; border-top: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
.team-page th:first-child, .team-page td:first-child { width: 40%; }
.team-page th:last-child, .team-page td:last-child { padding-right: 0; }
.software-page main > p { max-width: 38em; margin-bottom: 34px; color: var(--muted); }
.software-page main > section { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px 28px; padding: 25px 0; border-top: 1px solid var(--rule); }
.software-page h2 { grid-column: 1; grid-row: 1 / span 2; font-size: 1.6875rem; line-height: 1.3; overflow-wrap: anywhere; }
.software-page h3 { grid-column: 2; font-size: 1.375rem; line-height: 1.3; }
.software-page section p { grid-column: 2; font-size: 1rem; }
.software-page section p + p { color: var(--muted); font-size: .875rem; }
@media (prefers-color-scheme: dark) {
    :root { --paper: #13191e; --ink: #e9eff3; --muted: #aab9c3; --rule: #34434d; --accent: #9ac9e1; }
}
@media (max-width: 720px) {
    .site-shell { padding: 0 26px; }
    .site-header { flex-direction: column; align-items: flex-start; gap: 14px; }
    .site-nav { gap: 22px; }
    main { padding-top: 34px; }
    .profile-container { grid-template-columns: minmax(0, 1fr) 140px; gap: 26px; }
    .profile-title { font-size: 3.25rem; letter-spacing: -.1125rem; }
    .research-statement { font-size: 1.125rem; }
    .publication-entry { grid-template-columns: 1fr; gap: 6px; }
    .software-page main > section { grid-template-columns: 1fr; }
    .software-page h2 { grid-column: 1; grid-row: auto; }
    .software-page h3, .software-page section p { grid-column: 1; }
}
@media (max-width: 500px) {
    .site-nav { gap: 18px; }
    .profile-container { grid-template-columns: 1fr; }
    .profile-portrait { grid-row: 1; width: 116px; }
    .profile-title { font-size: 2.9375rem; }
    main > h1 { font-size: 2.375rem; }
    .site-footer { gap: 18px; }
    .team-page th:first-child, .team-page td:first-child { width: 46%; }
}
@media (pointer: coarse) {
    .profile-links a { min-height: 44px; }
}
