:root {
    --site-width: clamp(300px, 96vw, 1200px);
    --site-padding: calc(calc(100vw - var(--site-width))/2);
    --content-height: clamp(300px, calc(1200px - 55vw), 520px);

    --main-colour: #273C2C;
    --secondary-colour: #1b98a8;
    --third-colour: #3a3a3a;
    --minor-colour: rgb(255, 255, 255);
    
    --main-font: Roboto;
    --secondary-font: "Expletus Sans";
}
html {
    scrollbar-gutter: stable;
}
main {
    width: var(--site-width);
    padding: 0 var(--site-padding);
    margin: calc(100px + 6vw) auto 0 auto;
}
#first-h1 {
    margin: auto;
    padding: 0 0 45px 0;
    text-align: center;
    font-size: 3rem;
}
#articles-header {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr;
    column-gap: 3vw;
}
@media only screen and (max-width: 1100px) {
    #articles-header {
        grid-template-rows: auto auto;
        grid-template-columns: 1fr;
    }
    #recent-articles h2 {
        margin-left: 22px;
    }
    
}
a {
    text-decoration: none;
    color: black;
}
#articles-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 20px;

    h1 {
        font-size: 3rem;
        margin: 0;
    }
    h2 {
        color: var(--secondary-colour);
        font-size: 2rem;
        margin: 20px 20px 10px 0;
    }
    p {
        font-size: 1.4rem;
    }
    img {
        width: 100%;
        height: 60%;
        object-fit: cover;
        overflow: hidden;
    }
}
@media only screen and (max-width: 1100px) {
    #articles-text {
        margin: auto;
        width: clamp(250px, 80%, 80%);
        img {
            width: 100%;
            object-fit: cover;
        }
    }
    #recent-articles, #all-articles {
        ul {
            width: 80%;
            margin: auto;
        }
    }
}
main ul {
    padding: 0;
    margin-top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    h2 {
        font-size: 2.1rem;
        margin-top: 10px;
    }
}
main li {
    list-style: none;
    padding-top: 20px;
    display: flex;
}
h3:first-of-type {
    color: var(--secondary-colour);
    font-size: 1.6rem;
    padding: 0;
    margin: 0 0 10px 0 ;
}
h3 {
    margin: 0;
    font-size: 2rem;
}
#recent-articles {
    overflow: hidden;
    flex: 1;

    img {
        padding: 0 40px 20px 20px;
    }
    .post-divider:not(:last-of-type) {
        background-color: rgb(180,180,180);
        padding: 0;
        height: 2px;
        width: 100%;
    }
}
@media only screen and (min-width: 651px) {
    #recent-articles, #all-articles {
        img {
            max-height: 150px;
        }
    }
    #all-articles ul {
        grid-template-columns: 1fr;
        transform: translateY(-20px);
    }
}
@media only screen and (max-width: 650px) {
    #recent-articles, #all-articles {
        /* transform: translateY(-100vw); */
        .post-divider {
            display: none;
        }
        ul li {
            flex-direction: column;
            width: clamp(250px, 84%, 84%);
            margin: auto;
            img {
                object-fit: cover;
                padding-left: 0;
                margin-left: 0;
            }
        }
    }
}
#all-articles {
    display: flex;
    margin-bottom: 30px;
    margin-top: 20px;
    a {
        width: 100%;
    }
    img {
        margin: 0 40px 20px 20px;
    }
}
@media only screen and (min-width: 1100px) {
    #all-articles ul {
        margin-top: 0px;
        width: 960%;
        display: grid;
        grid-template-columns: auto auto;
        grid-auto-flow: row;
        justify-items: space-between;
        .post-divider {
            display: none;
        }
    }
}
@media only screen and (max-width: 1099px) {
    #recent-articles {
        .post-divider:last-of-type {
            display: none;
        }
    }
    .post-divider {
        background-color: none;
    }
    #all-articles {
        ul {
            width: clamp(250px, 80%, 80%);
        }
        .post-divider {
            background-color: rgb(180,180,180);
            padding: 0;
            height: 2px;
            width: 100%;
        }
    }
}