/*******************************************************************************
CUSTOM STYLES

Add your custom CSS styles here to override or extend the default styles.
*******************************************************************************/

@font-face {
    font-family: 'Linux Libertine O';
    src: url('fonts/LinLibertine_R.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Linux Libertine O';
    src: url('fonts/LinLibertine_RI.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Linux Libertine O';
    src: url('fonts/LinLibertine_RZ.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Linux Libertine O';
    src: url('fonts/LinLibertine_RZI.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
}
@font-face {
    font-family: 'Linux Libertine O';
    src: url('fonts/LinLibertine_RB.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Linux Libertine O';
    src: url('fonts/LinLibertine_RBI.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

body {
    font-family: 'Linux Libertine O', Palatino, Georgia, serif;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    align-items: center;
}

.site-nav a {
    font-weight: 600;
    letter-spacing: 0;
}

.profile-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 31%);
    align-items: end;
    gap: 2.4rem;
    margin: 0.3rem 0 1.6rem;
}

.profile-copy h1 {
    margin-top: 0;
}

.profile-copy p:first-of-type {
    margin-top: 0.2rem;
}

.profile-photo {
    width: min(100%, 275px) !important;
    height: 350px;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 8px;
    justify-self: end;
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.18);
}

.research-summary {
    width: 100%;
    margin: 0 0 1.8rem;
    font-size: 1.4rem;
    line-height: 2.2rem;
    text-align: justify;
    text-justify: inter-ideograph;
}

.research-hero-image {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem 0 2rem !important;
    box-shadow: 0 16px 42px rgba(17, 24, 39, 0.18);
}

article section p {
    hyphens: auto;
}

article section > ul {
    padding-left: 1.25rem;
}

article section li {
    margin-bottom: 0.35rem;
}

.pub-author {
    color: #7A2E14 !important;
    font-weight: 900;
    text-decoration: none !important;
}

html[data-theme="dark"] .pub-author,
html:not([data-theme]) .pub-author {
    color: #f0a17d !important;
}

@media (prefers-color-scheme: light) {
    html:not([data-theme]) .pub-author {
        color: #7A2E14 !important;
    }
}

@media (max-width: 760px) {
    article section a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .profile-home {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .profile-photo {
        width: min(100%, 360px) !important;
        height: 460px;
        justify-self: start;
    }

    .research-hero-image {
        max-height: 260px;
        border-radius: 6px;
    }
}
