/* @import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;500;700&display=swap'); */

@font-face {
    font-family: 'Coolvetica Italic';
    src: url('./coolvetica/coolvetica\ rg\ it.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Glacial';
    src: url('./glacial/glacial-indifference.regular.otf') format('opentype');
    font-weight: normal;
}

html {
    /* font-family: 'Hind', sans-serif; */
    font-family: 'Glacial', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #333;
}
body {
    margin: 0;
}
main {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

main > *:not(.sidebar) {
    margin: 0 auto;
    max-width: 65ch;
}

section {
    margin-bottom: 2rem;
}

footer a {
    display: block;
    margin-bottom: .5em;
}
aside {
    height: auto;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.sidebar {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}
.article-nav {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 1rem;
}
.article-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/**
* Content
*/
h1, h2 {
    font-family: 'Coolvetica Italic', sans-serif;
    letter-spacing: 0.02em;
}
h1 {
    margin-bottom: 0;
}
h1 + p {
    margin-top: 0;
    font-size: 1.125em;
    margin-bottom: 2em;
}
strong {
    font-weight: 600;
}

.font-heading {
    font-family: 'Coolvetica Italic', sans-serif;
    letter-spacing: 0.02em;
}

.intro strong {
    font-style: italic;
}
aside img {
    position: absolute;
    width: 100%;
    object-fit: cover;
    object-position: center;
    height: auto;
}

.text-center {
    text-align: center;
}

ul {
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    grid-auto-rows: auto;
    justify-content: start;
    gap: .25rem 1rem;
}
ul.style,
.article-body ul {
    list-style-type: disc;
    list-style-position: outside;
    display: block;
    padding-left: 1rem;
}

ul li {
    font-size: 14px;
}

ul.style li {
    line-height: 1.5;
    font-size: 1rem;
    margin-bottom: 1em;
}

a {
    text-decoration: underline;
    color: rgb(74, 74, 74);
}

.intro {
    padding: 2rem 0 0;
}

.no-underline {
    text-decoration: none;
}
.underline {
    text-decoration: underline;
}

a:focus,
a:visited,
a:active {
    color: rgb(74, 74, 74);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.article-body {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/**
* Helpers
*/
.row {
    display: flex;
    flex-flow: row nowrap;
}

.row.justify-between {
    justify-content: space-between;
}

.row.gap-s,
.col.gap-s {
    gap: 1rem;
}

.row.gap-m,
.col.gap-m {
    gap: 2rem;
}
/**
* Media Queries
*/
@media screen and (max-width: 989px) {
    main {
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        position: relative;
        z-index: 2;
        background: rgb(255,255,255);
        box-shadow: 10px 30px 19px rgba(18, 85, 106, 0.1);
    }
    aside {
        z-index: 1;
        transform: translateY(-2rem);
    }
}

@media screen and (min-width: 640px){ 
    .intro {
        padding: 2rem 0 0rem;
        display: flex;
        flex-flow: row nowrap;
        gap: 2rem;
        margin-bottom: 1.5rem;
    }
}

@media screen and (min-width: 990px){

    /**
    * Blocks
    */
    body {
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-items: stretch;
        gap:0rem;
        max-width: 100%;
        margin: 0 auto;
    }

    body.article-page {
        flex-flow: column nowrap;
    }

    main, aside {
        flex: 1;
    }
    main:not(.article-grid) {
        z-index: 2;
        max-width: 50%;
        border-top-right-radius: .75rem;
        border-bottom-right-radius: .75rem;
        transform: translateX(2rem);
        background: white;
        box-shadow: 30px 10px 19px rgba(18, 85, 106, 0.1);
    }

    main.article-grid {
        display: grid;
        grid-template-columns: minmax(250px, 300px) minmax(600px, 1fr);
        grid-auto-rows: auto;
        gap: 1rem;
        padding: 0;
        width: 100%;

        min-height: 100vh;
    }

    aside {
        margin-top: 0;
        max-width: 100%;
    }

    /**
    * Content
    */
    aside img {
        position: sticky;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        height: 100vh;
        object-fit: cover;
    }

}

@media screen and (min-width: 1280px){
    /**
    * Blocks
    */
    main > *:not(article) {
        margin-left: calc((100% - 65ch) / 2 - 1rem);
    }

}