h1, h2 {
    margin-top: 1.25rem;
    margin-bottom: 0.7rem;
}

html {
    font-size: 62.5%;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

p {
    margin: 1.12rem 0;
}

a {
    color: dodgerblue;
}

img {
    max-width: 100%;
    height: auto;
}

ol, ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

body {
    min-height: 100vh;
    position: relative;
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
}

body::after {
    content: '';
    display: block;
    height: 7rem;
}

main {
    margin: 0 2rem;
    padding-top: 1rem;
    font-size: 1.5rem;
}

.about-me {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    hyphens: auto;
}

.portrait {
    border-radius: 10px;
    max-width: 20rem;
}

.socials {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.publications {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

footer {
    position: absolute;
    bottom: 0;
    min-height: 4rem;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;

    font-size: 1rem;
}

@media only screen and (min-width: 481px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    main {
        font-size: 2rem;
    }

    footer {
        font-size: 1.5rem;
    }
}

@media (min-width: 600px) {
    .about-me {
        flex-direction: row-reverse;
        gap: 3rem;
    }
}

@media only screen and (min-width: 1025px) {
    .socials svg {
        width: 5rem;
        height: 5rem;
    }

    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 4rem;
    }

    main {
        font-size: 3rem;
    }

    footer {
        font-size: 2rem;
    }

    .portrait {
        max-width: 35rem;
    }
}

@media only screen and (min-width: 1281px) {
    .socials {
        gap: 2rem;
    }

    .socials svg {
        width: 10rem;
        height: 10rem;
    }

    .portrait {
        max-width: 45rem;
    }

    h1 {
        font-size: 6rem;
    }

    h2 {
        font-size: 5rem;
    }

    main {
        font-size: 4rem;
    }

    footer {
        font-size: 3rem;
    }

    p {
        margin: 2rem 0;
    }

    .publications {
        gap: 2rem;
    }
}

@media only screen and (min-width: 1500px) {
    main {
        max-width: 80vw;
        margin: 0 auto;
    }

    h1 {
        font-size: 8rem;
    }

    h2 {
        font-size: 7rem;
    }

    main {
        font-size: 4rem;
    }

    .publications {
        gap: 3rem;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        color: #eee;
        background: #121212;
    }

    a {
        color: #809fff;
    }
}
