/*
 * Fonts
 *
 */

@font-face {
    font-family: 'SpaceMono';
    src: url(/assets/fonts/SpaceMono-Regular.ttf);
    font-display: swap;
    font-weight: normal;
}

@font-face {
    font-family: 'SpaceMono';
    src: url(/assets/fonts/SpaceMono-Bold.ttf);
    font-display: fallback;
    font-weight: bold;
}

@font-face {
    font-family: 'SpaceMono-Italic';
    src: url(/assets/fonts/SpaceMono-Italic.ttf);
    font-display: fallback;
    font-weight: normal;
}

@font-face {
    font-family: 'SpaceMono-Italic';
    src: url(/assets/fonts/SpaceMono-BoldItalic.ttf);
    font-display: fallback;
    font-weight: bold;
}

@media (max-width: 48em) {
    .content {
        margin: 0 auto;
        width: 90vw;
    }
    
    .header {
        text-align: center;
    }

    .header .name h3 {
        font-size: 1rem;
    }

    .header .name .bottom {
        font-size: 0.6rem;
        margin-bottom: 5%;
    }
}

@media (min-width: 48em) {
    .content {
        margin: 0 auto;
        width: 80vw;
    }

    .header {
        display: flex;
        flex-direction: row;
        margin: 0 auto;
        width: 80vw;
        justify-content: space-between;
        padding-top: 5vh;
        padding-bottom: 5vh;
    }

    .header h1 {
        line-height: 10%;
    }

    .header h4 {
        line-height: 10%;
    }

    .header .headshot {
        display: flex;
        flex-direction: column;
        width: 25vw;
        justify-content: space-evenly;
        text-align: center;
    }

    .header .name {
        width: 55vw;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    body {
        font-size: 20px;
    }
}

/* ---------------------------- */

* {
    font-variant-ligatures: none;
}
  
a {
    color: black;
    text-decoration: none;
}

a:hover,
a:focus {
    font-weight: bold;
    border-radius: 2px;
    background-color: rgba(0, 0, 255, 0.1);
}

body {
    font-family: 'SpaceMono', sans-serif;
}

hr {
    height: 1px;
    background-color: gray;
}

li {
    margin-bottom: 2vh;
}

/* ---------------------------- */

.header a:hover,
.header a:focus {
    border-radius: None;
    background: None;
}

.header .headshot {
    font-size: 0.4rem;
    color: grey;
    font-style: italic;
}

.header .headshot img {
    border: 2px solid black;
    padding: 2px;
}


.read-more-state {
    display: none;
}

.read-more-target {
    opacity: 0;
    max-height: 0;
    font-size: 0;
    font-style: italic;
    transition: .25s ease-in-out;
    margin-top: 0.5em;
    margin-left: 0.5em;
}

.read-more-trigger:hover {
    border-radius: 3px;
    background-color: rgba(0, 0, 255, 0.1);
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

.read-more-state:checked~.read-more-target {
    opacity: 1;
    font-size: inherit;
    max-height: 999em;
    font-size: 0.7em;
}

.read-more-state~.read-more-trigger:before {
    content: '[Abstract]';
}