:root {
    --text: #202124;
    --link: #245b85;
	--metadata-link: #465f72;
    --link-hover: #143b5a;
    --separator: #c8cdd2;
    --panel: #f8f9fa;
}

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

html {
    color-scheme: light;
}

body {
    max-width: 1035px;
    margin: 0 auto;
    padding: 24px 32px 40px;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

img {
    display: block;
}

h1 {
    margin: 0 0 20px;
    line-height: 1.2;
}

h2 {
    margin: 30px 0 20px;
    line-height: 1.25;
}

.intro {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 10px 0;
}

.profile-picture {
    flex: none;
    width: 300px;
    max-width: 100%;
    height: auto;
}

.text-block,
.paper-description {
    border-radius: 6px;
    background: var(--panel);
}

.text-block {
    flex: 1;
    min-width: 0;
    padding: 14px 20px;
}

.text-block p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

.text-block p:last-of-type {
    margin-bottom: 0;
}

.contact-details {
    margin-top: 18px;
}

.contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.contact-links a + a {
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid var(--separator);
}

.paper {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 28px;
}

.thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 130px;
    min-height: 135px;
}

.thumbnail img {
    width: auto;
    height: auto;
    max-width: 105px;
    max-height: 125px;
    object-fit: contain;
    transform: translateY(var(--thumbnail-offset, 0));
}

.paper-entry {
    min-width: 0;
}

.paper-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.35;
}

.paper-authors {
    margin: 2px 0 0;
}


.paper-links {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    color: #9aa1a7;
    gap: 0 9px;
    margin-top: 3px;
    font-size: 0.95rem;
}

.paper-links a + a::before {
    content: "·";
    display: inline-block;
    margin-right: 9px;
    color: #9aa1a7;
    text-decoration: none;
}

.paper-venue,
.errata {
    margin: 6px 0 0;
}

.paper-description {
    margin: 12px 0 0;
    padding: 8px 14px;
}

.paper-description summary {
    cursor: pointer;
    font-weight: 500;
}

.paper-description[open] summary {
    margin-bottom: 10px;
}

.paper-description p {
    margin: 0;
    text-wrap: pretty;
}

a {
    text-decoration: none;
}

a:link,
a:visited {
    color: var(--link);
}

.paper-title a:link,
.paper-title a:visited {
    color: var(--text);
}

.paper-links a:link,
.paper-links a:visited {
    color: var(--metadata-link);
}

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

.paper-title a:hover,
.paper-title a:focus {
    color: var(--link);
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

a:active {
    color: #0d2f49;
}

@media (max-width: 700px) {
    .thumbnail {
        display: none;
    }

    body {
        padding: 18px;
    }

    .intro {
        flex-direction: column;
        align-items: center;
	}

    .profile-picture {
        width: min(230px, 70vw);
        height: auto;
    }

    .text-block {
        width: 100%;
		text-align: left;
    }

    .paper {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 34px;
    }

    .paper-links {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 14px;
    }

    .paper-links a + a::before {
        content: none;
    }
}
