:root {
    --text: #202124;
    --muted: #687078;
    --line: #e1e4e7;
    --link: #24669c;
    --link-hover: #174c77;
    --width: 980px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--link-hover);
    text-decoration: underline;
}

.page-width {
    width: min(calc(100% - 40px), var(--width));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 8px 12px;
    color: #fff;
    background: #222;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    z-index: 10;
}

.site-header {
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-name {
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
}

.site-name:hover {
    color: var(--text);
    text-decoration: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

nav a {
    color: #444;
    font-size: 13px;
}

.profile {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    padding: 44px 0 38px;
    border-bottom: 1px solid var(--line);
}

.profile-photo {
    width: 190px;
    height: 235px;
    object-fit: cover;
    object-position: 50% 40%;
    border: 1px solid #ccc;
}

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

h1,
h2,
h3 {
    font-family: inherit;
}

h1 {
    margin-bottom: 5px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.position {
    margin-bottom: 18px;
    color: #454545;
    font-size: 16px;
    line-height: 1.45;
}

.profile-text > p:not(.position):not(.contact-links):not(.address) {
    max-width: 700px;
}

.contact-links {
    margin: 18px 0 5px;
}

.contact-links span {
    padding: 0 4px;
    color: #999;
}

.contact-links .email-text {
    padding: 0;
    color: inherit;
}

.address {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

.section {
    padding: 30px 0 32px;
    border-bottom: 1px solid var(--line);
}

.section h2 {
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 600;
}

.section h3 {
    font-size: 16px;
}

.section > p {
    max-width: 840px;
}

.news-list,
.compact-list,
.publication-list {
    margin: 0;
}

.news-list {
    padding: 0;
    list-style: none;
}

.news-list li {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    margin: 7px 0;
}

.news-list time {
    color: var(--muted);
    font-size: 13px;
}

.compact-list {
    max-width: 860px;
    padding-left: 20px;
}

.compact-list li {
    margin: 5px 0;
}

.section-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #aaa;
}

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

.section-title-row span {
    color: var(--muted);
    font-size: 12px;
}

.year-group {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0 6px;
}

.year-group + .year-group {
    border-top: 1px solid #eee;
}

.year-group > h3 {
    margin: 2px 0 0;
    color: var(--muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
}

.publication-list {
    padding-left: 24px;
}

.publication-list li {
    padding: 0 0 17px 4px;
}

.publication-list p {
    margin-bottom: 2px;
}

.paper-title {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.paper-title a {
    color: #245b87;
}

.authors,
.venue {
    font-size: 13px;
    line-height: 1.45;
}

.authors {
    color: #444;
}

.venue {
    color: var(--muted);
    font-style: italic;
}

.venue a {
    font-style: normal;
}

.scholar-link {
    margin: 12px 0 0 74px;
    font-size: 13px;
}

footer {
    padding: 20px 0 34px;
    color: var(--muted);
    font-size: 12px;
}

footer p {
    margin: 0;
}

@media (max-width: 700px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 14px 0;
    }

    nav {
        gap: 8px 15px;
    }

    .profile {
        grid-template-columns: 125px minmax(0, 1fr);
        gap: 20px;
        padding-top: 32px;
    }

    .profile-photo {
        width: 125px;
        height: 160px;
    }

    h1 {
        font-size: 27px;
    }

    .position {
        font-size: 14px;
    }

    .profile-text > p:not(.position) {
        grid-column: 1 / -1;
    }

}

@media (max-width: 480px) {
    .page-width {
        width: min(calc(100% - 28px), var(--width));
    }

    .profile {
        grid-template-columns: 94px minmax(0, 1fr);
        gap: 15px;
    }

    .profile-photo {
        width: 94px;
        height: 122px;
        grid-row: 1 / span 2;
    }

    .profile-text {
        display: contents;
    }

    .profile h1,
    .profile .position {
        grid-column: 2;
    }

    .profile h1 {
        align-self: end;
    }

    .profile .position {
        align-self: start;
    }

    .profile-text > p:not(.position) {
        grid-column: 1 / -1;
    }

    .news-list li {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 9px;
    }

    .year-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .publication-list {
        padding-left: 21px;
    }

    .scholar-link {
        margin-left: 0;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding-bottom: 8px;
    }
}

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