html {
    height: 100%;
    --max-content-width: 80ch;
}

body.texGyro {
    font-family: "TeXGyrePagella", Libertinus, Georgia, Cambria, Times New Roman, Times, serif;
}

h1 {
    font-size: 1.7rem;
    line-height: 2rem;
    margin-top: 2rem
}

h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem
}

* {
    line-height: 1.4;
}

h1:first-child {
    text-align: left;
}

body {
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

@media screen and (width >=1300px) {
    .wrapper {
        display: grid;
        gap: 0 3rem;
        width: 100%;
        flex-grow: 1;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: min-content auto min-content;
    }

    #about h2:first-child {
        margin-top: 0;
    }

    header {
        grid-row: 1;
        grid-column: 2;
    }

    .sidebar {
        max-width: calc(var(--max-content-width) / 2);
        padding-top: 1em;
        grid-column: 1;
        grid-row: 2;
        justify-self: right;

        display: flex;
        flex-direction: column;
        width: fit-content;
    }

    .profile-pic img {
        display: block;
        max-width: 100%;
        min-width: 0;
    }

    .contact-info {
        padding-left: 0.5rem;
        max-width: fit-content;
    }

    .contact-info address {
        margin-block: 0.5em;
    }

    main {
        grid-column: 2;
        grid-row: 2;
    }

    footer {
        grid-column: 2;
    }
}

@media screen and (width < 1300px) {
    .wrapper {
        display: flex;
        flex-direction: column;
        margin-inline: auto;
        max-width: var(--max-content-width);
    }

    .sidebar {
        display: flex;
        gap: 1.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .profile-pic {
        max-width: 35ch;
        min-width: 25ch;
        flex-basis: 25ch;
        flex: 1;
    }

    .contact-info h3:first-of-type {
        margin-top: 0.5rem;
    }
}

@media screen and (width < 600px) {
    .sidebar {
        grid-auto-flow: row;
    }
}

.profile-pic {
    border-radius: 5px;
    overflow: hidden;
}

.contact-info address {
    font-style: normal;
}


header hr {
    margin-bottom: 1.5rem;
}

main {
    flex-grow: 1;
    max-width: var(--max-content-width);
}

footer {
    text-align: right;
}

.w3w-logo {
    display: inline-block;
    height: 1em;
    width: 1em;
    vertical-align: text-bottom;
    transform: translateY(-2px);
    background-color: var(--link-visited);
    -webkit-mask: url(w3w.svg) no-repeat center;
    mask: url(w3w.svg) no-repeat center;
}

hr {
    color: var(--body-color);
    border-style: solid;
    border-radius: 100vw;
}


