* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--off-white);
}

main {
    margin: 0 auto;
    min-width: 310px;
    padding: 6% 16px;
    width: 100%;

    display: flex;
    flex-wrap: wrap;
}

nav {
    width: 100%;
    padding-bottom: 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


li > a {
    font-size: 0.83em;
}

.hero--image {
    display: block;
    width: 100%;
    margin-bottom: 24px;
}

.hero--heading {
    font-size: 2.22em;
    font-weight: 800;
    line-height: 42px;
    margin-bottom: 16px;
    color: var(--very-dark-blue);
}

aside p,
.hero--info p {
    font-size: 0.83em;
    line-height: 26px;
    color: var(--dark-grayish-blue);
    margin-bottom: 24px;
}

aside p {
    color: var(--grayish-blue);
}

.hero {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 84px;
}

.hero--info-button {
    background-color: var(--soft-red);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 185px;
    height: 48px;

    transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
}

.hero--info-button a {
    font-size: 0.77em;
    font-weight: 800;
    letter-spacing: 4.38px;
    color: var(--off-white);
}

aside {
    padding: 32px 24px;
    background-color: var(--very-dark-blue);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.aside--heading {
    font-size: 1.78em;
    color: var(--soft-orange);
    margin-bottom: 32px;
}

.aside--article > h3 {
    color: var(--off-white);
    margin-bottom: 8px;
}

.aside--article{
    margin-bottom: 32px;
    border-bottom: 1px solid var(--dark-grayish-blue); 
}

.aside--article:last-of-type {
    border: none;
    margin-bottom: 0;
}

.blog {
    margin-top: 35px;
    width: 100%;

    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.blog--section {

    display: flex;
    justify-content: space-between;
}

.blog--section:last-of-type {
    margin-bottom: 0;
}

.blog--image {
    width: 100px;
    margin-right: 6%;
}

.blog--heading {
    font-size: 1.78em;
    color: var(--grayish-blue);
}

.blog--title {
    font-size: 1em;
    color: var(--very-dark-blue);
}

.blog--titles {
    max-width: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.blog--paragraph {
    font-size: 0.83em;
    line-height: 26px;
    color: var(--dark-grayish-blue);
}


@media only screen and (max-width: 1270px) {
    

    main {
        max-width: 768px;
        
    }
    nav .logo {
        width: 46px;
    }

    .backdrop.dimmed { /* [black background] */
        inset: 0;
        position: fixed;
        background: rgba(0,0,0,0.5); 
        transition: all 0.4s ease-in-out;
        -webkit-transition: all 0.4s ease-in-out;
        z-index: 1;
      }

    /* [Nav Menu] */

    .nav--hamburger {
        position: relative;
        cursor: pointer;
        z-index: 3;
    }

    .nav--menu {
        position: fixed;
        height: 100vh;
        top: 0;
        right: -100%;
        padding: 0 5%;
        background-color: var(--off-white);

        display: flex;
        flex-direction: column;
        
        transition: all 0.3s ease-in-out;
        -webkit-transition: all 0.3s ease-in-out;  
    }

    .nav--menu.active {
        right: 0;
        width: 60%;
        z-index: 2;
    }

    .list {
        margin-top: 144px;
    }

    nav .list > li {
        margin-bottom: 24px;
    }

    nav .list > li:last-of-type {
        margin-bottom: 0;
    }

    li > a {
        color: var(--very-dark-blue);
        font-size: 1em;
    }

    .hamburger--line {
        width: 40px;
        height: 3px;
        background-color: var(--very-dark-blue);
        margin-bottom: 4px;

        transition: all 0.2s ease-in-out;
        -webkit-transition: all 0.2s ease-in-out;
    }

    .hamburger--line:last-of-type {
        margin-bottom: 0;
    }

    .hamburger--line.active:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger--line.active:nth-child(2) {
        opacity: 0;
    }

    .hamburger--line.active:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ------------------------- */


    
    @media only screen and (min-width: 700px) { /* Tablet Version */
        
        nav .logo {
            width: 54px;
        }

        .hero--heading {
            max-width: 300px;
            font-size: 3.11em;
            line-height: 56px;
        }

        .hero--info {
            max-width: 350px;
        }

        .nav--menu.active {
            width: 40%;
        }

        li > a {
            color: var(--very-dark-blue);
            font-size: 1.2em;
        }

        .hero {
            display: flex;
            justify-content: space-between;
        }

        .aside--heading {
            font-size: 2.22em;
        }
    }
}




@media only screen and (min-width: 1271px) {  /* [Desktop Version] */
   
    .nav--hamburger {
        display: none;
    }

    main {
        margin: 0 auto;
        max-width: 1270px;
        padding: 90px 80px;
    }

    nav {
        margin-bottom: 25px;
    }

    nav li {
        display: inline;
        margin-right: 40px;
    }
    
    nav li:last-of-type {
        margin-right: 0;
    }

    li > a {
        color: var(--dark-grayish-blue);

        transition: all 0.1s ease-in-out;
        -webkit-transition: all 0.1s ease-in-out;
    }

    .hero {
        width: 730px;
    }

    .hero--heading {
        font-size: 3.11em;
        line-height: 56px;
        max-width: 350px;
    }

    .hero--info {
        max-width: 350px;
    }

    aside {
        max-width: 350px;
        margin-left: 30px;
        max-height: 511px;
    }


    .blog {
        margin-top: 0;
    }

    /* [Hover objects */

    li > a:hover {
        color: var(--soft-red);

        transition: all 0.2s ease-in-out;
        -webkit-transition: all 0.2s ease-in-out;
    }  

    .hero--info-button:hover {
        cursor: pointer;
        background-color: var(--very-dark-blue);

        transition: all 0.2s ease-in-out;
        -webkit-transition: all 0.2s ease-in-out;
    }

    .aside--article > h3:hover {
        cursor: pointer;
        color: var(--soft-orange);

        transition: all 0.2s ease-in-out;
        -webkit-transition: all 0.2s ease-in-out;
    }

    .blog--title:hover {
        cursor: pointer;
        color: var(--soft-red);

        transition: all 0.2s ease-in-out;
        -webkit-transition: all 0.2s ease-in-out;
    }

}