@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Special+Elite&family=Mrs+Saint+Delafield&display=swap');

html {
    scroll-behavior: smooth;
}

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

section#page {
    display: block;
    position: relative;

    width: 800px;
    margin: 0 auto;
    padding: 0 1vw;

    /* border-style: solid;
    border-width: 0 1px 0 1px;
    border-color: black; */
}

section#header {
    position: fixed;
    display: block;
    width: 800px;
    padding-top: 1em;
    padding-bottom: 1em;
    border-bottom: 1pt rgb(211, 211, 211) solid;
    background-color: white;
    top: 0;
    z-index: 10;
}

section#large_caption {
    padding-top: 0.1em;
    font-family: 'Special Elite', sans-serif;
    font-size: 450%;
}

section#header a {
    padding: 10pt 14pt 10pt 0;
}

section#header a:last-child {
    padding-right: 0;
}

section#main_content {
    margin-top: 125pt;
}

section.content_block {
    display: grid;
    grid-template-columns: 30% 70%;
}

section.content_block,
section.single-column-content_block {
    margin-bottom: 30pt;
    line-height: 150%;
    scroll-margin-top: 11em;
}

section.single-column-content_block {
    display: grid;
    grid-template-columns: 100%;
}

section.content_block:nth-child(2n) {
    grid-template-columns: 70% 30%;
}

section.subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 170%;
    font-weight: 200;

    margin-bottom: 10pt;

    text-align: left;
}

section.content {
    font-family: 'Raleway', sans-serif;
    text-align: justify;
}

section.content p:first-child {
    margin-top: 0;
}

section.column {
    display: inline-block;
    text-align: justify;
}

section.column:nth-child(2n+1) {
    padding-right: 0.75vw;
    border-right: 1pt rgb(211, 211, 211) solid;
}

section.column:nth-child(2n) {
    padding-left: 0.75vw;
}

section.column img {
    max-width: 100%;
    border-radius: 3px;
}

section#name {
    font-size: 130%;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
}

section#about-me {
        text-align: left;
        margin-top: 45pt;
}

section.block-right {
    display: block;
    width: fit-content;
    margin-left: auto;
}

section.subgrid {
    display: grid; 
    grid-template-columns: 50% 50%;
}

section.subcolumns {
    display: inline-block;
    text-align: left;
}

section.welcome {
    padding: 1em 0 0 0;
    top: -1.5em;
    position: relative;
}

/* ---- */

a {
    text-decoration: none;
    color: rgb(82, 82, 82);
}

a:hover {
    color: black;
}

ul, ol {
    text-align: justify;
}

ul {
    list-style: none;
    margin-left: 2.2em;
    padding-left: 0;
}

ul {
    list-style-type: "\025AB";
}

/* ul li::marker {
    content: "\025AB";
    padding-left: -1em;
} */

ul li {
    padding-left: 0.4em;
}

span.it,
section.subtitle {
    color: darkolivegreen;
}

span.it {
    font-style: italic;
}

section.scroll-up {
    grid-column: span 2;
    font-size: 150%;
    padding: 0.3em;
    width: fit-content;
    border-radius: 3px;
    cursor: pointer;
    margin: auto;
    filter: contrast(0.1);
    margin-bottom: 15pt;
}

section.scroll-up:hover {
    filter: contrast(1.0);
}

section.content p:last-child {
    margin-bottom: 0;
}

/* ---- */

@media only screen and (max-width: 700px) {
    section#page {
        width: 94vw;
    }

    section.content_block {
        display: block;
    }

    section.column {
        width: 100%;
    }

    section.column img.column {
        position: relative;
        top: 90%;
        z-index: -10;
        mask-image: linear-gradient(rgba(0,0,0,1) 0, rgba(0,0,0,0) 15vw);
        clip-path: rect(0, 0, 10%, 0);
        object-fit: cover;
        /* filter: contrast(20%) brightness(200%); */
    }

    section.column:nth-child(2n+1) {
        border: none;

        overflow: hidden;
        max-height: 15vw;

        padding: 0;
    }

    section.column:nth-child(2n) {
        position: relative;
        top: -5vw;

        padding: 0;
    }

    section.column#column-about-me {
        margin-bottom: 2em;
        max-height: unset !important;
    }

    section#about-me {
        margin-top: 0;
    }

    section#header {
        width: 100vw;
        position: fixed;
        left: 0;

        background-color: #ffffffd0;
        backdrop-filter: blur(5px);
    }

    section#header a {
        display: inline-block;
        padding-bottom: 0.5em;
    }

    section#main_content {
        margin-top: 60pt;
    }

    section.content_block,
    section.single-column-content_block {
        margin-bottom: 10pt;
        scroll-margin-top: 5em;
    }

    ul {
        list-style-type: "\025A1";
    }

    img#portrait {
        width: 50vw;
    }

    section.subgrid {
        grid-template-columns: unset;
    }

    section.subcolumns {
        margin-bottom: 0.8em;
    }

    section#large_caption {
        display: inline-block;
        font-size: 200%;
        margin-left: 0.5em;
    }

    section#header a {
        display: block;
    }

    section#menu-button {
        position: absolute;
        top: 12pt;
        right: 1em;
        width: fit-content;
    }

    section#top_menu {
        padding-left: 1em;
        overflow: clip;
        transition: ease-in 0.2s;
    }

    section#top_menu[collapsed="true"] {
        max-height: 0;
    }

    section#top_menu[collapsed="false"] {
        max-height: 100vh;
    }

    section.welcome {
        top: -0.5em;
    }
}