html {
    scroll-behavior: smooth;
}

/* Text Styles */

.title-xl {
    font-family: "Averia Serif Libre", serif;
    font-size: 48px;
    font-weight: 700;
}

.title-l {
    font-family: "Averia Serif Libre", serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 135%;
}

.title-m {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 145%;
}

.title-s {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 145%;
}

.paragraph-m-m {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
}

.paragraph-m-s {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
}

.paragraph-m-xs {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 145%;
}

.paragraph-m-xxs {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
}

.paragraph-r-s {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 150%;
}

.paragraph-r-xs {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 145%;
}

.paragraph-r-xxs {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
}

/* Color Styles */

.light-grey {
    color: #a8a9a9;
}

.medium-grey {
    color: #63635E;
}

.dark-grey {
    color: #454540;
}

.blue {
    color: #0048F9;
}

/* Body */

body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    background-color: #FDFDFC;
    color: #222222;
}

/* Navbar */

header {
    padding: 24px 0px;
    width: 100%;
}

.check {
    display: none;
}

#mobile-navbar {
    display: none;
}

#navbar {
    width: 90vw;
    max-width: 1168px;
    margin: 0px auto;
    padding: 12px 24px;
    justify-content: space-between;
    display: flex;
    align-items: center;
}

#logo {
    font-family: "Averia Serif Libre", serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #222222;
    transition: all 0.3s ease-in-out;
}

#logo:hover {
    color: #0048F9;
}

nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.navlink {
    display: inline-flex;
    font-weight: 400;
    font-size: 16px;
    color: #222222;
    transition: all 0.3s ease-in-out;
}

.navlink-current {
    display: inline-flex;
    font-weight: 400;
    font-size: 16px;
    color: #0048F9;
}

.navlink-current:hover {
    color: #0048F9;
}

.navlink:hover {
    color: #0048F9;
}

#contact-button-mobile {
    display: none;
}

.desktop {
    display: block;
}

.mobile {
    display: none;
}

/* Post Cover */

#post-cover-wrapper {
    width: 90vw;
    max-width: 680px;
    margin: 40px auto 0 auto;
}

#post-cover {
    width: 100%;
}

#post-cover-wrapper figcaption {
    text-align: center;
    margin-top: 8px;
}

/* Post Header */

#post-header {
    width: 90vw;
    max-width: 680px;
    margin: 48px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.back-link {
    transition: color 0.3s ease-in-out;
}

.back-link:hover {
    color: #0048F9;
}


#post-header h1 {
    font-size: 32px;
}

/* Post Content */

#post-content {
    width: 90vw;
    max-width: 680px;
    margin: 48px auto 0 auto;
    color: #555555;
}

.post-section {
    margin-bottom: 48px;
}

.post-section h2 {
    margin-bottom: 16px;
    font-weight: 500;
}

.post-section h3 {
    margin-bottom: 12px;
    margin-top: 32px;
}

.post-section p {
    margin-bottom: 16px;
}

.post-section ul,
.post-section ol {
    margin-bottom: 16px;
    margin-left: 24px;
}

.post-section li {
    margin-bottom: 8px;
    line-height: 150%;
}

.post-section img {
    width: 100%;
    margin: 32px 0;
}

.post-section figure {
    margin: 32px 0;
}

.post-section figure img {
    margin: 0 0 8px 0;
}

.post-section figcaption {
    text-align: center;
}

.post-section blockquote {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 22px;
    font-weight: 400;
    line-height: 145%;
    color: #222222;
    margin: 32px 0;
    text-align: center;
}

/* Footer */
footer {
    width: 90vw;
    max-width: 1168px;
    margin: 152px auto 24px auto;
    display: flex;
    flex-direction: column;
    padding: 0px 24px;
    gap: 152px;
}

.copyright {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.copyright a {
    transition: all 0.3s ease-in-out;
}

.copyright a:hover {
    color: #0048F9;
}

/* Responsive Design */

@media (max-width: 767px) {

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Text Styles */

    .title-l {
        font-size: 32px;
        font-weight: 500;
        line-height: 135%;
    }

    .title-m {
        font-size: 18px;
        font-weight: 400;
        line-height: auto;
    }

    .title-s {
        font-size: 16px;
        font-weight: 300;
        line-height: auto;
    }

    .paragraph-m-m {
        font-weight: 500;
        font-size: 16px;
        line-height: auto;
    }

    .paragraph-m-s {
        font-size: 16px;
        line-height: 24px;
    }

    .paragraph-r-s {
        font-weight: 300;
        font-size: 14px;
        line-height: 150%;
    }

    .paragraph-r-xs {
        font-weight: 400;
        font-size: 12px;
        line-height: 145%;
    }

    /* Mobile Styles */

    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }

    /* Navbar */

    #mobile-navbar {
        background-color: #FDFDFC;
        width: 100vw;
        height: 100vh;
        padding: 35vh 32px 32px 32px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 40px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1500;
        -webkit-user-select: none;
        user-select: none;
        transform: none;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

    .check {
        display: block;
        position: absolute;
        top: 32px;
        right: 24px;
        opacity: 0;
        z-index: 2000;
        -webkit-touch-callout: none;
    }

    .check:checked~#mobile-navbar {
        opacity: 1;
        pointer-events: auto;
    }

    .navlink-mobile {
        color: #222222;
        font-size: 32px;
    }

    #contact-button-close {
        display: block;
        background-color: transparent;
        color: #222222;
        width: 48px;
        height: 48px;
        font-size: 40px;
        font-family: "Inter", sans-serif;
        font-weight: 200;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 1600;
        -webkit-touch-callout: none;
    }

    #navbar {
        width: calc(100vw - 60px);
        padding: 12px 12px 12px 16px;
        border-radius: 20px;
    }

    #logo {
        font-size: 18px;
    }

    .navlink {
        display: none;
    }

    .navlink-current {
        display: none;
    }

    #contact-button-mobile {
        display: block;
        background: transparent;
        color: #222222;
        padding: 12px 0px;
        font-size: 16px;
    }

    /* Post Cover */

    #post-cover {
        max-height: 280px;
    }

    /* Post Header */

    #post-header {
        width: calc(100vw - 64px);
        margin: 32px auto 0 auto;
    }

    #post-header time {
        margin-top: 16px;
    }

    /* Post Content */

    #post-content {
        width: calc(100vw - 64px);
        margin: 32px auto 0 auto;
    }

    .post-section {
        margin-bottom: 32px;
    }

    .post-section img {
        margin: 24px 0;
    }

    .post-section blockquote {
        font-size: 18px;
        margin: 24px 0;
        padding-left: 16px;
    }

    /* Footer */

    footer {
        margin: 72px auto 24px auto;
        gap: 72px;
    }
}
