:root {

/* comment */
    /* Spacing */

    --space-100: 8px;
    --space-300: 24px;
    --space-400: 32px;
    --space-500: 40px;
    --space-800: 64px;
    --space-1100: 88px;

    /* Colors */

    --white: #FFFFFF;
    --black: #000000;
    --grey-200: #D8D8D8;
    --grey-300: #C5C6CE;
    --navy-600: #5E607A;
    --navy-950: #00001A;
    --gold-400: #E9AA52;
    --red-500: #F15D51;


}

*, *::before, *::after {
    box-sizing: border-box;
}



.inter-alia {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100 900;
  font-style: normal;
}

body {
    font-family: "Inter", sans-serif;
    margin: 0;
}

#container {
    margin: 1rem 1rem 4rem;
}

main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1100px;
}

header {
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}

#menu, #menu-close {
    cursor: pointer;
}

#head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    grid-area: hero;
}

#head-content, #head-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}



#read-more {
    text-decoration: none;
    letter-spacing: 4px;
    font-size: .9rem;
    background-color: var(--red-500);
    color: var(--navy-950);
    font-weight: 600;
    padding: 1rem 1.75rem;
    width: fit-content;
}

#read-more:hover {
    background-color: var(--navy-950);
    color: white;
}

#new {
    background-color: var(--navy-950);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    grid-area: new;
}



.article:not(:last-child) {
    border-bottom: 1px solid var(--navy-600);
    padding-bottom: 1.25rem;
}

#etc {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    grid-area: etc;
}

.etc-item {
    display: flex;
    gap: 1.5rem;
}

.etc-text {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

#sidenav {
    z-index: 1;
    height: 100%;
    width: 0px;
    position: fixed;
    top: 0; 
    right: 0;
    bottom: 0;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    display: flex;
    
    flex-direction: row-reverse;
    justify-content: space-between;
    transition: 0.5s;
    overflow: hidden;
}



#sidenav ul {
    padding-top: 20vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

nav li {
    list-style-type: none;
}

#desktop-menu ul {
    display: flex;
    gap: 2.5rem;
    padding: 0;
}

#desktop-menu {
    display: none;
}

/* Images */

img {
    max-width: 100%;
}

#logo {
    width: 50px;
}

#menu-close {
    align-self: flex-start;
    padding: 1rem;
}

.thumb {
    width: 90px;
}


nav a {
    text-decoration: none;
    color: var(--navy-950);
}

nav a:hover {
    color: var(--red-500);
}

/* Typography */

h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin: 0;
}

#head p {
    color: var(--navy-600);
}

#head-text p {
    line-height: 1.6;
}

#new h2 {
    color: var(--gold-400);
    font-size: 2.5rem;
    margin: 0;
}

#new h3 {
    
    margin: 0;
}

#new p {
    color: var(--grey-300);
    line-height: 1.6;
}

.article a {
    text-decoration: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.article a:hover {
    color: var(--gold-400);
}

.etc-text h4, .etc-text p {
    margin: 0;
}

.etc-text h4 {
    font-size: 2rem;
    color: var(--red-500);
}

.etc-text a {
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--navy-950);
}

.etc-text a:hover {
    color: var(--red-500);
}



.gray {
    color: var(--navy-600);
    line-height: 1.6;
}

#desktop-menu a {
    color: var(--navy-600);
    font-size: .9rem;
}



@media (min-width: 1250px) {

    h1 {
        font-size: 3.5rem;
    }
    
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #container {
        padding: 2rem;
    }

    header {
        margin-bottom: 1rem;
    }

    main {
        display: grid;
        grid-template-areas: 
        "hero hero new"
        "hero hero new"
        "hero hero new"
        "etc etc etc";
        row-gap: 4rem;
    }

    #etc {
        flex-direction: row;
    }

    #head-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    #menu {
        display: none;
    }

    #desktop-menu {
        display: block;
    }

    #logo {
        width: 65px;
    }

}