:root {
    overscroll-behavior: none;
}

:target {
    scroll-margin-top: 33vh;
}

html {
    font-family: "DM Sans", serif;
    font-weight: 200;
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overscroll-behavior: none;
}

section {
    max-width: calc(100dvh);
    margin-left: auto;
    margin-right: auto;
}

article a {
    color: #91c3ff;
}

a {
    color: #1565c0;
}

h1 {
    font-size: 48pt;
    line-height: 48pt;
    height: 48pt;
}

h2 {
    font-size: 25pt;
    line-height: 25pt;
    height: 25pt;
}

main {
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.invisible-scrollbar {
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none; /* Firefox, Safari 18.2+, Chromium 121+ */
}

.invisible-scrollbar::-webkit-scrollbar {
    display: none; /* Older Safari and Chromium */
}

div.color-scheme-switcher {
    position: fixed;
    top: 0;
    right: 0;
    margin-top: 8px;
    margin-right: 8px;
    height: 32px;
    min-width: 32px;
    z-index: 1;
}
div.color-scheme-switcher .svg-icon {
    width: 32px;
    height: 32px;
    mask-size: 24px 24px;
}


div.page {
    height: 100dvh;
    box-sizing: border-box;
    overflow-y: hidden;
    padding: 10px;
    scroll-snap-align: center;
}
div.page:target {
    outline: none;
}

.page#landing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
}


.page#landing p {
    font-family: "DM Sans", serif;
    font-size: 12pt;
    font-weight: 300;
    font-stretch: extra-condensed;
    text-align: justify;
    hyphens: auto;
}


.scroll-teaser {
    display: flex;
    height: 48px;
    position: absolute;
    bottom: 10px;
    left: calc(50% - 24px);
}

.scroll-teaser .icon {
    width: 48px;
    height: 48px;
    mask-size: 48px;
}

.footer {
    max-width: calc(100dvh);
    margin: auto;
    min-height: 100px;
    text-align: center;
}


.card {
    width: auto;
    border-radius: 0;
    margin-bottom: 24px;
    min-height: 2rem;
}

article.about-author {
    display: flex;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    border: none;
    margin-top: 0;
}

h1.author-name {
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 10px 10px 10px 0;
    font-family: "DM Sans";
    font-weight: 900;
    font-size: min(80pt, min(27vw, 14vh));
    line-height: min(60pt, 12vh);
    border-bottom: 1.2pt solid;
}

span.outline {
    -webkit-text-stroke: 1pt currentColor;
    -webkit-text-fill-color: color-mix(in srgb, currentColor, transparent 75%);;
}

article.about-author div.headshot {
    padding: 1rem 0 1rem 1rem;
    aspect-ratio: 0.69;
    flex-basis: 40px;
    object-fit: contain;
    flex-grow: 1;
    overflow: hidden;
}

article.about-author div.headshot img {
    max-width: 100%;
    height: auto;
}

article.about-author div.about-me {
    min-width: 0;
    padding: 0 1rem 1rem;
    flex-basis: 60%;
    flex-grow: 1;
}

div.contact {
    justify-content: center;
    margin-bottom: 5px;
    font-weight: 400;
    font-size: 16px;
    font-family: "IBM Plex Mono", monospace;
    display: flex;
    flex-wrap: wrap;
}
div.contact a {
    margin-left: 10px;
    margin-right: 10px;
    text-decoration-thickness: 1pt;
    white-space: nowrap;
}

div.contact a span.icon {
    margin-right: 3px;
}

.flex-column-splitter {
    flex-basis: 100%;
    min-width: 100%;
    height: 0;
}


.page#publications {
    overflow-y: scroll;
    position: relative;
}


.section {
    height: auto;
    border-bottom: none;
    padding-bottom: 2px;
    font-family: "DM Sans", sans-serif;
    font-weight: 900;
    margin: 24px 0 8px;
}

h2.section.subsection {
    margin-left: -70pt;
    padding-top: 10px;
    margin-bottom: calc(-30pt);
    border-top: 1.2pt solid;
    font-family: "DM Sans", sans-serif;
    font-weight: 200;
}

h1.publications {
    font-size: min(48pt, 16vw);
}

@media screen and (max-aspect-ratio: 1.2),screen and (max-width: 500px) and (orientation: portrait), screen and (max-height: 500px) and (orientation: landscape) {
    h2.section.subsection {
        margin-left: 0;
        margin-bottom: 10px;
        border-top: none;
        border-bottom: 1.2pt solid;
    }
}

article.paper-card {
    min-height: 2rem;
    display: grid;
    grid-template-columns: 24pt auto;
    padding: 0;
}

article.paper-card:last-child {
    margin-bottom: 10px;
}

article.paper-card .venue {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 24pt;
    line-height: 24pt;

    padding-bottom: 10px;
    padding-top: 10px;
    text-align: center;
    font-size: 15pt;
    font-weight: 800;
    writing-mode: vertical-lr;
    font-family: "DM Sans", sans-serif;
}

article.paper-card .about {
    grid-column: 2;
    grid-row: 1;
    padding: 10px;
    text-align: justify;
    hyphens: auto;
    place-content: space-between;
    -webkit-hyphens: auto;
}

article.paper-card .paper-title {
    display: block;
    font-size: 15pt;
    line-height: 15pt;
    text-transform: uppercase;
    font-family: "DM Sans", sans-serif;
    font-style: italic;
    font-weight: 400;
    font-stretch: extra-condensed;
    margin: 0;
    padding: 0;
}

ul.paper-authors {
    padding: 0;
    margin: 0;
}

ul.paper-authors li {
    font-size: 11pt;
    font-family: "DM Sans", sans-serif;
    font-weight: 50;
    font-stretch: extra-condensed;
    display: inline;
}

ul.paper-authors li .firstname {
    font-weight: 200;
}

ul.paper-authors li .lastname {
    font-weight: 500;
    font-stretch: expanded;
    text-transform: uppercase;
}

ul.paper-authors li:not(:last-child):not(:nth-last-child(2))::after {
    font-stretch: expanded;
    content: ', ';
    font-weight: 500;
}

ul.paper-authors li:nth-last-child(2)::after {
    font-stretch: expanded;
    content: ', and ';
    font-weight: 500;
}


article.paper-card .chips {
    grid-column: 2;
    grid-row: 2;
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 10px 10px 0;
}

a.chip {
    flex-grow: 0;
    color: inherit;
    background: inherit;
    margin-left: 10px;
    margin-top: 10px;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    height: 24px;
}

a.chip div.icon {
    width: 24px;
    font-size: 10pt;
    min-width: 24px;
    text-align: center;
    line-height: 24px;
    display: flex;
    flex-grow: 0;
    height: 24px;
}
a.chip div.icon span {
    margin: auto;
    font-size: 16px;
    flex-grow: 0;
    height: 24px;
}

a.chip span.label {
    font-size: 10pt;
    line-height: 24px;
    height: 24px;
    text-decoration: underline;
    text-decoration-thickness: 0.75pt;
    font-weight: 400;
    font-family: "DM Sans";
    padding-left: 8px;
    padding-right: 8px;
}

@media screen and (max-width: 500px) and (orientation: portrait), screen and (max-height: 500px) and (orientation: landscape) {
    section {
        max-width: calc(100vw - 20px);
    }

    .about-author div.headshot {
        flex-basis: unset;
        display: none;
    }

    .scroll-teaser {
        left: unset;
    }
}

@media screen and (max-width: 300px) and (orientation: portrait), screen and (max-height: 300px) and (orientation: landscape) {
    .about-author {
        flex-direction: column;
    }

}