:root {
    --primary-blue: #2876eb;
    --med-blue: #8ab9ff;
    --light-blue: #f2f7ff;
    --light: #FFF;
    --dark: #1c1c1c;
    --radSmall: 8px;
}
*,*::before,*::after {
    box-sizing: border-box;
}
body {
    font-family: sans-serif;
}
.wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 1rem;
}
h1,h2,h3,h4,h5,h6 {
    font-weight: 400;
}
.post-content h3 {
    font-size: 1.25rem;
}
.post-content ol {
    margin-bottom: 3rem;
    padding-left: 2rem;
}
.post-content ol li {
    margin-bottom: .5rem;
}
p {
    font-size: 1.1rem;
    font-weight: 300;
    line-height:  1.7rem;
}
.pfp {
    border-radius: 100%;
    width: 50px;
    box-shadow: none;
}

/* HEADER STYLES */
header {
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--primary-blue);
}
header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.75rem 1rem;
}
header h1 a {
    text-decoration: none;
    color:  var(--dark);
    font-size: 1.25rem;
}
header nav {
    visibility: hidden;
    opacity: 0;
    height: 0;
    width: 100%;
    border: 1px solid var(--primary-blue);
    transition: .3s ease;
}
header nav.active {
    visibility: visible;
    opacity: 1;
    height: 163px;
}
header nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
header nav ul li {
    width: 100%;
    text-align: center;
}
header nav ul li a {
    padding: .5rem;
    display: block;
    color: var(--dark);
    font-size: 1.5rem;
    text-decoration: none;
}
header nav ul li:not(:last-child) a {
    border-bottom: 1px solid var(--primary-blue);
}
.single header {
    margin-bottom: 0;
}

/* POST LIST */
.blogpost {
    display: flex;
    margin-bottom: 3rem;
    flex-direction: column;
    align-items: center;
}
.blogpost img {
    border-radius: var(--radSmall);
    margin-right: 1.5rem;
    max-width: 250px;
    box-shadow: 3px 3px 8px 1px rgba(29, 33, 51, 0.15);
}
.blogpost figcaption {
    display: flex;
    flex-direction:  column;
    justify-content:  space-between;
}
.blogpost a {
    color: var(--dark);
    text-decoration:  none;
}
.blogpost .content p {
    margin-bottom: 1rem;
}
.blogpost .pfp {
    border-radius: 100%;
    margin: 0 .5rem 0 0;
}
.blogpost .meta {
    display: flex;
    align-items: center;
    margin-bottom: .5rem;
}
.blogpost .meta p {
    font-size: .8rem;
    margin-bottom: 0;
}
.blogpost .meta small {
    font-size: .65rem;
    color: #4b4b4b;
}
.blogpost h2 {
    font-size: 1.75rem;
    margin-bottom:  .75rem;
    text-align: center;
}
.blogpost .readmore {
    color: var(--primary-blue);
    font-size: 1.1rem;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radSmall);
    width: 150px;
    text-align: center;
    padding: .5rem 0;
    transition: .3s ease;
    margin: 0 auto;
}
.blogpost .readmore:hover,
.blogpost .readmore:focus,
.blogpost .readmore:active {
    background: var(--primary-blue);
    color: var(--light);
}

/* SINGLE POST */
.post-hero {
    background: #2876EB;
    background: linear-gradient(45deg, rgba(40, 118, 235, 1) 0%, rgba(4, 78, 189, 1) 100%);
    color: var(--light);
}
.post-hero .breadcrumbs {
    display: flex;
    align-items: center;
    list-style: none;
    font-size: .85rem;
    margin-bottom: 1rem;
}
.post-hero .breadcrumbs li {
    margin-right: 1rem;
    color: var(--med-blue);
}
.post-hero .breadcrumbs li:not(:first-child) {
    margin-left: 1rem;
}
.post-hero h2 {
    font-size: 3.5rem;
}
.post-hero .meta {
    display: flex;
    margin: 1.5rem 0 1rem 0;
    align-items: center;
}
.post-hero .meta .pfp {
    margin-right: 1rem;
}
.post-hero .meta p,
.post-hero .meta small {
    font-size: .85rem;
}
.post-hero .meta small {
    color: var(--med-blue);
}
.post-content p {
    margin-bottom: 3rem;
}

@media screen and ( min-width: 650px ) {
    .fas.fa-bars {
        display: none;
    }
    header .wrapper {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    header nav {
        display: flex;
        width: initial;
        border: none;
        visibility: visible;
        opacity: 1;
        height: initial;
        transition: none;
    }
    header nav.active {
        height: initial;
    }
     .fas.fa-bars {
        font-size: 1.75rem;
    }
    header nav ul {
        flex-direction: row;
        justify-content: space-between;
    }
    header nav ul li {
        margin-left: 1rem;
        width: unset;
    }
    header nav ul li a {
        color: var(--dark);
        font-size: 1rem;
        text-decoration: none;
        padding: 0;
    }
    header nav ul li:not(:last-child) a {
        border-bottom: none;
    }
    .blogpost {
        flex-direction: row;
        justify-content: flex-start;
    }
    .blogpost h2 {
        text-align: left;
    }
    .blogpost .readmore {
        margin: 0;
    }
}
@media screen and (min-width: 500px) {
    header .wrapper {
        padding: 1.75rem 3rem;
    }
    .wrapper {
        padding: 3rem;
    }
}