body{
    font-family: "Open Sans", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #000;
    
    /* Variables */
    --primary: #ffd600;
    --dark: #000;
    --mid: #000;
    --light: rgba(166, 166, 168, 1);    
    --lighter: rgb(232, 232, 232);
    --link:rgba(40, 150, 174, 1);

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;

}


a:link, a:visited{    
    text-decoration: none;
    color:var(--dark);
}

a:hover, a:active{    
    color:var(--link);
}

section>h4{
    margin-top: 50px;
}

h4{
    font-size:14px;
    line-height:36px;
    text-align:center;
    color:var(--light);
    text-transform: uppercase;
    font-weight: normal;
    letter-spacing: 1px;
    margin: 20px 0;
}


/* Utitlity Clases */
.limitedWidth{    
    max-width: 840px;
    padding:0 30px;
    margin: 0 auto;
}

.nav-wrapper{
    background-color:var(--primary);
    width: 100%;
    padding-top: 20px;
}

nav{
    display: flex;
    justify-content: flex-start;
    padding: 20px;
}

nav .logo{
    background: url("../img/logo.png") 0 0 no-repeat;
    background-size: contain;
    display: block;    
    padding-left: 64px;
    line-height: 48px;
    font-weight: bold;
    font-size: 22px;
    height: 48px;
}

nav input[type=checkbox] {
    display: none;
}

nav input[type=checkbox]:checked~.menu {
    display: block;
}

nav .burger{
    display: none;
    margin: 13px 0 0 auto;
    font-weight: bold;
    cursor: pointer;
}

nav .menu{    
    margin-left: auto;
}

nav ul{
    display: flex;
    width: 230px;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0;
}

nav ul li{
    list-style: none;
    font-weight: bold;
}

nav ul li a:hover{
    border-bottom: 2px solid var(--link);
}

/* Mobile Navigation */
@media (max-width: 680px) {
    nav .burger{
        display: block;
    }

    nav .menu{
        display: none;
    }

    nav ul{
        position: absolute;
        top: 84px;
        left: 0;
        flex-direction: column;
        text-align: center;
        width: 100%;
        background-color: var(--dark);
        padding: 20px 0;
        margin: 0;
        z-index: 3;
    }

    nav ul li{
        padding: 20px 0;
    }

    nav ul li a{
        padding: 20px 0;
    }
    

    nav ul li a:link, nav ul li a:visited {
        color: var(--primary);        
    }

    nav ul li a:hover, nav ul li a:active {
        color: var(--lighter);
        border: none;        
    }


}


/* HEADER section */

main header {
    overflow: hidden;
    background-color: var(--primary);
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    padding: 100px 0 150px;
}

main header h1{
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 50px;
    margin: 10px 0 10px 0;
}

main header p{
    max-width: 70ch;
    margin: 0 auto;
    padding: 0 30px;
}


/* LIST OF POSTS */

.post{
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.postWrapper{
    display: flex;
    flex-wrap: wrap;
}

.postContent{
    order: 3;
    flex-basis: 100%;
}
.hasThumbnail .postContent{
    flex-basis: 70%;
}

.post h2.postTitle{
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0 0 0px 0;
    order: 2;
}    

.postExcerpt{
    max-width: 82ch;
    margin:0;
    font-size: 14px;
    line-height: 22px;    
}

.postThumb{
    width: 110px;
    order: 3;
}


.postThumb img{
    border-radius: 6px;
    max-width: 120px;
    margin-bottom: 30px;
}

.singlePost .postThumb img{
    border-radius: 6px;
    max-width: 500px;
}

.singlePost .postThumb {
    margin: 20px 0;
    text-align: center;
    width: 100%;
}

.tagged{
    position: relative;
    padding: 0;
    order: 1;
    margin: 5px 0 10px 0;
    flex-basis: 100%;
}

.tagged a.tag{
    color:var(--light);
    font-size: 11px;
}

.tagged a.tag:first-of-type{
    font-size: 12px;
    background-color: var(--primary);
    display: inline-block;
    position: relative;
    height: 20px;
    line-height: 20px;
    padding: 1px 6px;
    color: var(--dark);
}

    .tagged a.tag:first-of-type:after{
        content: '';
        position: absolute;
        right: -9px;
        height: 0;
        width: 0;
        border-top: 11px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 10px solid var(--primary);
    }

    .tagged a.tag{
        margin-right: 10px;
    }

.postDate{
    font-size: 11px;
    color: #999;
    margin: 0 0 40px 0;
    line-height: 20px;
}    

p.seeMore{
    text-align: center;
}

.seeMore a{
    border: 2px solid var(--lighter);
    padding: 10px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: normal;
    color: var(--light);
}

    .seeMore a:hover{
        border: 2px solid var(--link);
        color: var(--link);
    }

/* SPECIAL FORMAT FOR FIRST POST  */
.home .post:first-of-type h2{
    font-size: 32px;
}


.home .post:first-of-type .postExcerpt{
    font-size: 15px;
    line-height: 24px;
}

.home .post:first-of-type .postDate{
    margin-bottom: 0;
}
.home .post:first-of-type{
    border-bottom: 1px solid var(--lighter);
    padding-bottom: 30px;
    margin-bottom: 30px;
}



/* SINGLE POST */
article.singlePost{
    margin: 50px auto;
    font-size: 15px;
    line-height: 24px;
}

article.singlePost img{
    max-width: 80vw;
}

section.allPosts{
    padding-top: 50px;
}



footer small a:link{
    color: aliceblue;
}

footer{
    background: url('../img/wave-footer.svg') 0 0 no-repeat;
    background-size: cover;
    padding: 120px 0 60px;
    text-align: center;
    color: var(--lighter);
    font-size: 12px;
    margin-top: auto;
}
    footer a:link, footer a:visited{
        color: var(--primary);
    }

    @media (min-width: 1100px) {
        footer{padding-top: 200px;}
    }

    