:root {
    --softOrange: hsl(35, 77%, 62%);
    --softRed: hsl(5, 85%, 63%);
    --Off-white: hsl(36, 100%, 99%);
    --grayishBlue: hsl(233, 8%, 79%);
    --darkGrayishBlue: hsl(236, 13%, 42%);
    --veryDarkBlue: hsl(240, 100%, 5%);
}

@font-face {
    font-family: 'Inter';
    src: url(assets/fonts/static/Inter-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: 'Inter';
    src: url(assets/fonts/static/Inter-Bold.ttf);
    font-weight: 700;
}

@font-face {
    font-family: 'Inter';
    src: url(assets/fonts/static/Inter-ExtraBold.ttf);
    font-weight: 800;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background-color: var(--Off-white);
    padding: clamp(1.25rem, 1.256vw + 0.999rem, 2.5rem);
}

.wrapper {
    max-width: 82rem;
    height: fit-content;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-block-end: clamp(1.5rem, 1.508vw + 1.198rem, 3rem);
}

nav {
    background-color: transparent;
}

.navigation-categories {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 1.005vw + 0.799rem, 2rem);
    list-style: none;
}

.navigation-categories a {
    font-size: clamp(0.938rem, 0.346vw + 0.848rem, 1.125rem);
    color: var(--darkGrayishBlue);
    text-decoration: none;
    transition: color 250ms ease-out;
}

.navigation-categories a:hover {
    color: var(--softOrange);
    transition: color 250ms ease;
}

main {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: repeat(3, 1fr);
    row-gap: clamp(1.5rem, 1.508vw + 1.198rem, 3rem);
    column-gap: clamp(1rem, 1.005vw + 0.799rem, 2rem);
}

.main-article {
    grid-row: 1;
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    row-gap: clamp(1rem, 1.005vw + 0.799rem, 2rem);
    column-gap: clamp(1rem, 1.005vw + 0.799rem, 2rem);
}

.main-article-img {
    grid-column: 1 / 3;
}

.main-article-img img {
    width: 100%;
}

.main-article-title h1 {
    font-size: clamp(3.375rem, 1.155vw + 3.076rem, 4rem);
    font-weight: 800;
    line-height: 1;
}

.main-article-description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-article-description p {
    font-size: clamp(0.938rem, 0.346vw + 0.848rem, 1.125rem);    
    line-height: clamp(1.406rem, 0.104vw + 1.379rem, 1.463rem);
    color: var(--darkGrayishBlue);
}

.read-more-btn {
    background-color: var(--softRed);
    border: none;
    padding: clamp(0.75rem, 0.251vw + 0.7rem, 1rem) clamp(1.5rem, 0.503vw + 1.399rem, 2rem);
    color: var(--veryDarkBlue);
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.938rem, 0.346vw + 0.848rem, 1.125rem);
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    cursor: pointer;
    transition: all 250ms ease-out;
    width: fit-content;
}

.read-more-btn:hover {
    background-color: var(--veryDarkBlue);
    color: var(--Off-white);
    transition: all 250ms ease;
}

.new-articles {
    grid-row: 1;
    grid-column: 3;
    background-color: var(--veryDarkBlue);
    padding: clamp(0.75rem, 0.754vw + 0.599rem, 1.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1rem, 1.005vw + 0.799rem, 2rem);
}

.new-articles h2 {
    font-size: clamp(2.063rem, 0.44vw + 1.975rem, 2.5rem);
    color: var(--softOrange);
}

.new-articles article h3 {
    font-size: clamp(1rem, 0.188vw + 0.962rem, 1.188rem);
    margin-block-end: clamp(0.5rem, 0.503vw + 0.399rem, 1rem);
}

.new-articles article h3 a {
    color: var(--Off-white);
    text-decoration: none;
}

.new-articles article h3 a {
    color: var(--Off-white);
    text-decoration: none;
    transition: color 250ms ease-out;
}

.new-articles article h3 a:hover {
    color: var(--softOrange);
    transition: color 250ms ease;
}

.new-articles article p {
    color: var(--grayishBlue);
    font-size: clamp(0.938rem, 0.346vw + 0.848rem, 1.125rem);
    line-height: clamp(1.406rem, 0.104vw + 1.379rem, 1.463rem);
}

.new-articles article:not(:last-child) {
    padding-bottom: clamp(1rem, 1.005vw + 0.799rem, 2rem);
    border-bottom: solid 1px var(--darkGrayishBlue);
}

.other-article {
    display: flex;
    flex-direction: row;
    gap: clamp(0.75rem, 0.754vw + 0.599rem, 1.5rem);
    height: 8rem;
}

.other-article img {
    height: 100%;
}

.other-article ul {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    list-style: none;
}

.article-number {
    font-size: clamp(1.875rem, 0.377vw + 1.8rem, 2.25rem);
    font-weight: 700;
    color: var(--softRed);
}

.other-article-title a {
    font-size: clamp(1rem, 0.188vw + 0.962rem, 1.188rem);
    font-weight: 700;
    color: var(--veryDarkBlue);
    text-decoration: none;
    transition: color 250ms ease-out;
}

.other-article-title a:hover {
    color: var(--softRed);
    transition: color 250ms ease;
}

.other-article-paragraph {
    font-size: clamp(0.938rem, 0.346vw + 0.848rem, 1.125rem);
    line-height: clamp(1.406rem, 0.104vw + 1.379rem, 1.463rem);
    color: var(--darkGrayishBlue);
}

@media only screen and (max-width: 66.2rem) {
    main {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, auto);
    }

    .new-articles {
        grid-row: 2 / 5;
        grid-column: 1;
    }

    .other-article {
        grid-column: 2;
        height: 8rem;
    } 

}

@media only screen and (max-width: 43.8rem) {
    main {
        display: flex;
        flex-direction: column;
    }

    .main-article {
        grid-row: 1;
    }

    .new-articles {
        grid-row: 2;
    }

    .other-article {
        grid-column: 1;
    }

    .main-article {
        display: flex;
        flex-direction: column;
    }

    .main-article-description {
        display: flex;
        flex-direction: column;
        gap: clamp(1.5rem, 1.508vw + 1.198rem, 3rem);
    }
}

@media only screen and (max-width: 29.5rem) {
    .overlay {
        display: block;
        z-index: -1;
        height: 100vh;
        width: 100vw;
        top: 0;
        right: 0;
        opacity: 0;
        position: fixed;
        background-color: var(--veryDarkBlue);
        transition: all 250ms ease-out;
    }

    .overlay.enabled {
        opacity: 0.5;
        transition: all 250ms ease;
        z-index: 1;
    }

    nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        transform: translateX(100%);
        top: 0;
        right: 0;
        height: 100vh;
        width: 75%;
        background: var(--Off-white);
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
        padding: clamp(1.25rem, 1.256vw + 0.999rem, 2.5rem);
        z-index: 1; 
    }

    nav.closed {
        transition: all 250ms ease-out;
    }

    nav.open {
        transform: translateX(0%);
        transition: all 250ms ease;
    }

    .nav-menu-open {
        display: flex;
        border: none;
        background: none;
        cursor: pointer;
        z-index: 1;
    }

    .nav-menu-close {
        margin-inline-start: auto;
        display: flex;
        border: none;
        background: none;
        cursor: pointer; 
        z-index: 2;
    }

    .navigation-categories {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2rem;
        height: 80vh;
    }

    .navigation-categories a {
        font-size: clamp(1.25rem, 2.632vw + 0.724rem, 1.5rem);
        color: var(--veryDarkBlue);
        text-decoration: none;
        transition: color 250ms ease-out;
    }
}