@font-face {
    font-family: "Work Sans Reference";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://static.parastorage.com/tag-bundler/api/v1/fonts-cache/googlefont/woff2/s/worksans/v3/z9rX03Xuz9ZNHTMg1_ghGRUOjZSKWg4xBWp_C_qQx0o.woff2") format("woff2");
}

@font-face {
    font-family: "Work Sans Reference";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("https://static.parastorage.com/tag-bundler/api/v1/fonts-cache/googlefont/woff2/s/worksans/v3/4udXuXg54JlPEP5iKO5AmRUOjZSKWg4xBWp_C_qQx0o.woff2") format("woff2");
}

@font-face {
    font-family: "Avenir Reference";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://static.parastorage.com/fonts/v2/af36905f-3c92-4ef9-b0c1-f91432f16ac1/v1/avenir-lt-w01_35-light1475496.woff2") format("woff2");
}

:root {
    --site-width: 980px;
    --paper: #fffdfc;
    --blush: #f5ecea;
    --ink: #293239;
    --muted-ink: #596268;
    --line: rgba(41, 50, 57, 0.20);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Avenir Reference", Avenir, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

.site-width {
    width: var(--site-width);
    max-width: calc(100% - 40px);
    margin-inline: auto;
}

/* Header */

.topbar {
    height: 76px;
    padding: 0 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--paper);
    color: var(--ink);
}

.logo {
    font-family: "Work Sans Reference", "Work Sans", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

nav a {
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
}

nav span {
    width: 1px;
    height: 23px;
    display: block;
    background: var(--ink);
}

/* Hero */

.hero {
    padding-top: 36px;
    padding-bottom: 54px;
    display: grid;
    grid-template-columns: 480px 1fr;
    column-gap: 30px;
    align-items: start;
}

.portrait {
    width: 480px;
    height: 480px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero-right {
    padding-top: 26px;
}

h1 {
    margin: 0;
    font-family: "Work Sans Reference", "Work Sans", Arial, sans-serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -2px;
}

.hero-menu {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hero-menu a {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(41, 50, 57, 0.55);
    font-family: "Work Sans Reference", "Work Sans", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.hero-menu a:hover,
.hero-menu a:focus-visible {
    background: var(--blush);
    border-color: var(--ink);
    color: var(--ink);
}

.bio {
    grid-column: 1 / -1;
    width: 946px;
    max-width: 100%;
    margin: 30px auto 0;
    font-size: 18px;
    line-height: 1.65;
    text-align: left;
}

/* Section backgrounds */

.band {
    width: 100%;
}

.band.white {
    background: var(--paper);
    color: var(--ink);
}

.band.gray {
    background: var(--blush);
    color: var(--ink);
}

.section-content {
    padding-top: 58px;
    padding-bottom: 62px;
}

/* Headings */

h2 {
    margin: 0 0 32px;
    font-family: "Work Sans Reference", "Work Sans", Arial, sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

h3 {
    margin: 0 0 36px;
    font-family: "Work Sans Reference", "Work Sans", Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

h4 {
    font-family: "Work Sans Reference", "Work Sans", Arial, sans-serif;
}

.section-intro {
    width: 930px;
    max-width: 100%;
    margin: 0 0 42px;
    font-size: 18px;
    line-height: 1.65;
    text-align: left;
}

/* Research and projects */

.detail-list article,
.experience-list article {
    display: grid;
    grid-template-columns: 210px 1fr;
    column-gap: 28px;
    margin-bottom: 32px;
}

.detail-list h4,
.experience-list h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.detail-list p,
.experience-list article > p {
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    text-align: left;
}

.detail-list article:last-child,
.experience-list article:last-child {
    margin-bottom: 0;
}

/* Project and paper links */

.article-link {
    grid-column: 2;
    justify-self: start;
    display: inline-block;
    margin-top: 10px;
    padding-bottom: 2px;
    color: var(--ink);
    font-family: "Avenir Reference", Avenir, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.article-link:hover {
    opacity: 0.6;
}

/* Experience */

.experience-list article {
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.experience-list article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.experience-list .role {
    margin: 5px 0 0;
    font-size: 16px;
    line-height: 1.45;
}

.experience-list .date {
    margin: 3px 0 0;
    color: var(--muted-ink);
    font-size: 14px;
    line-height: 1.45;
}

/* Speaking and awards */

.plain-list {
    margin: 0;
    padding-left: 25px;
}

.plain-list li {
    padding: 5px 0;
    font-size: 18px;
    line-height: 1.6;
}

/* Contact */

.contact p {
    width: 930px;
    max-width: 100%;
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.65;
}

/* Tablet */

@media (max-width: 1020px) {
    .topbar {
        padding: 0 24px;
    }

    nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr 1fr;
        column-gap: 24px;
    }

    .portrait {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    h1 {
        font-size: clamp(54px, 7vw, 68px);
    }

    .hero-menu {
        margin-top: 34px;
        gap: 10px;
    }
}

/* Mobile */

@media (max-width: 700px) {
    body {
        font-size: 17px;
    }

    .topbar {
        height: 68px;
        padding: 0 20px;
    }

    .logo {
        font-size: 18px;
    }

    .hero {
        padding-top: 20px;
        grid-template-columns: 1fr;
    }

    .portrait {
        max-width: 480px;
        margin: auto;
    }

    .hero-right {
        padding-top: 28px;
    }

    h1 {
        font-size: 50px;
        line-height: 1.05;
        letter-spacing: -1.5px;
    }

    h1 br {
        display: none;
    }

    .hero-menu {
        margin-top: 26px;
        grid-template-columns: repeat(2, 1fr);
    }

    .bio {
        margin-top: 30px;
        font-size: 17px;
    }

    .section-content {
        padding-top: 46px;
        padding-bottom: 50px;
    }

    h2 {
        margin-bottom: 25px;
        font-size: 32px;
    }

    h3 {
        margin-bottom: 28px;
        font-size: 22px;
    }

    .section-intro {
        margin-bottom: 34px;
        font-size: 17px;
    }

    .detail-list article,
    .experience-list article {
        grid-template-columns: 1fr;
        row-gap: 9px;
        margin-bottom: 28px;
    }

    .detail-list h4,
    .experience-list h4 {
        font-size: 17px;
    }

    .detail-list p,
    .experience-list article > p,
    .plain-list li,
    .contact p {
        font-size: 17px;
    }

    .article-link {
        grid-column: 1;
        font-size: 15px;
    }
}

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

    .hero-menu a {
        transition: none;
    }
}