@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
}

html {
    font-family: sans-serif;
    font-size: 1rem;
    scrollbar-gutter: stable;
}

@media (min-width: 48em) {
    html {
        font-size: 1rem;
    }
}


body {
    color: #2C3A49;
    display: flex;
    flex-direction: column;
}


@media (min-width: 64rem) {
    body {
        flex-direction: row;
        background-image: url("background.svg");
        background-repeat: no-repeat;
        background-position: bottom right;
        background-size: min(calc(30vw), 40rem);
        background-attachment: fixed;
    }
}

/* Sidebar */

.sidebar {
    text-align: center;
    background-color: #F7BE20;
    font-size: 1rem;
}

@media (min-width: 64rem) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: calc((100% - 40rem) / 2);
        min-width: 14rem;
        text-align: right;

    }
}

@media (min-width: 80rem) {
    .sidebar {
        #font-size: 1.333rem;
        font-size: 1.25rem;
    }
}

a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

a:hover {
    text-decoration-color: #49B7C3;
}

h2 a {
    text-decoration: none;
}

h2 a:hover {
    text-decoration: underline;
    text-decoration-color: #49B7C3;
    text-underline-offset: 4px;
}

.sidebar a {
    color: #2C3A49;

}

.sidebar h1 a {
    text-decoration: none;
}

.sidebar a:hover {
    color: #fff;
    text-decoration-color: #fff;
    transition: 0.3s;
}

.sidebar-about {
    margin-bottom: .5rem;
}

@media (min-width: 80rem) {

    .sidebar-about {
        margin-bottom: 1.5rem;
    }
}

/* Sidebar nav */
.sidebar-nav {
    padding-left: 0;
    padding-bottom: 1rem;
    list-style: none;

}

.sidebar-nav-item {
    display: block;
}

a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
    color: #49B7C3;
    text-decoration: none;
}

.sidebar-nav-item.active {
    font-weight: bold;
}

/* Sticky sidebar
 *
 * Add the `sidebar-sticky` class to the sidebar's container to affix it the
 * contents to the bottom of the sidebar in tablets and up.
 */

.container {
    max-width: 100%;
}

@media (min-width: 64em) {
    .sidebar-sticky {
        position: absolute;
        width: fit-content;
        right: 1.5rem;
        bottom: 1rem;
        text-align: right;
    }
}

@media (min-width: 64em) {
    .sidebar-sticky {
        right: 2.5rem;

    }
}

main {
    max-width: 70ch;
    margin: 0 auto;
    padding: 1rem 1rem 1rem;
}

@media (min-width: 64rem) {
    main {
        width: 44rem;
        max-width: 70ch;
        margin-left: calc((100% - 38rem) / 2);
        padding-left: 1.5rem;
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
}

@media (min-width: 80rem) {
    main {
        width: 60rem;
        margin-left: calc((100% - 40rem) / 2);
        max-width: 60rem;
        padding-left: 2.5rem;
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: .5rem;
}

h1 {
    margin-top: 1rem;
    font-size: 1.802rem;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

h2 {
    margin-top: 1.5rem;
    font-size: 1.602rem;
}

h3, h4, h5, h6 {
    margin-top: 1rem;
    font-size: 1.424rem;
}

@media (min-width: 80rem) {
    h1 {
        margin-top: 1rem;
        #font-size: 4.209rem;
        font-size: 3.052rem;

    }

    h2 {
        margin-top: 1.5rem;
        #font-size: 3.157rem;
        font-size: 2.441rem;
    }

    h3, h4, h5, h6 {
        margin-top: 1rem;
        #font-size: 2.369rem;
        font-size: 1.953rem;
    }
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #2C3A49;
    font-weight: 600;
}

.logo {
    margin-left: auto;
    margin-right: auto;
    width: 128px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    
}

@media (min-width: 64rem) {
    .logo {
        min-width: 100%;
    }
}

@media (min-width: 80rem) {
    .logo {

        min-width: 100%;
    }
}

.ribbon {
    font-size: 1rem;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.callout a {
    text-decoration: none;
}

.logo:hover {
    fill: #49B7C3;
    transition: 0.3s;
}

.series {
    display: flex;
    padding: 2rem;
    background-color: #3C4A59;
    color: #fff;
    border-radius: 0.5rem;
    max-width: 65ch;
    margin-top: 2rem;
}

.blog ul li {
    background:
            linear-gradient(#e5e7eb 0 0) bottom left/ 60% 1px no-repeat;
}