*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

body {
    color: #455;
    line-height: 1.5;
    font-family: "Muli", sans-serif;
    background-color: #f6f3f2;
    counter-reset: i;
}

a {
    color: #0d5f85;
    text-decoration: none;
}

a:hover {
    color: #106e99;
}

article a {
    background: wheat;
    padding: 0 0.3em;
}

.homepage a,
.listing a {
    background: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    margin: 0 0 20px;
}

h1 {
    text-transform: uppercase;
    font-size: 1.8em;
    color: #333;
}

h1 > span {
    color: orangered;
}

ul,
ol {
    margin: 0 0 30px;
}

ul,
ol {
    padding-left: 40px;
}

li {
    margin: 0 0 10px;
}

p {
    margin: 0 0 20px;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/*****************************/
/* STYLING HEADER AND FOOTER */
/*****************************/
header,
footer {
}

header {
    height: 70px;
    line-height: 70px;
    background: #fff;
    box-shadow: 0 1px 5px 0px rgba(3, 3, 3, 0.2);
}

footer {
    color: #fff;
    padding: 27px 0;
    background: orangered;
}

.sitelogo {
    color: #555;
    font-weight: 800;
    font-size: 30px;
    line-height: 70px;
    text-transform: uppercase;
    display: inline-block;
    margin-right: 20px;
}

.sitelogo > span {
    color: orangered;
}

.sitelogo:hover {
    color: orangered;
}

.header-menu,
.header-menu ul,
.header-menu li,
.header-menu li a {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 70px;
    vertical-align: top;
}

.header-menu li {
    margin-right: 10px;
}

.header-menu li a:hover {
    color: aqua;
}

.wrapper {
    width: 100%;
    max-width: 1300px;
    padding: 0 10px;
    margin: auto;
}

/*******************************/
/* STYLING THE ASIDE (SIDEBAR) */
/*******************************/
aside {
    padding: 20px;
}

aside ul {
    padding-left: 15px;
}

aside nav > ul {
    list-style: none;
    padding: 0;
}

main .wrapper {
    padding: 30px 10px 0;
    display: flex;
}

.wrapper article {
    padding: 0 20px 0 0;
    margin-bottom: 30px;
}

.wrapper aside {
    background-color: #e9e1de;
    align-self: flex-start;
    flex: 0 0 365px;
}

@media (max-width: 999px) {
    main .wrapper {
        flex-flow: column;
    }

    .wrapper article {
        order: 2;
        padding: 0;
    }

    .wrapper aside {
        order: 1;
        margin-bottom: 30px;
        align-self: auto;
        flex: 0;
    }
}

/******************************/
/* STYLING THE FEATURED IMAGE */
/******************************/
.image.featured,
.image.featured > img {
    display: block;
    width: 100%;
    padding: 0;
}

.image.featured {
    height: 0;
    padding-top: 63%;
    position: relative;
    overflow: hidden;
}

.image.featured > img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    object-fit: cover;
}

/*********************************/
/* STYLING THE TITLE ON LISTINGS */
/*********************************/
article .title {
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 10px;
    font-size: 17px;
    font-weight: 100;
}

article .title > a {
    padding: 0;
}

.homepage,
.listing {
    width: 100%;
}

/***********************************************************/
/* STYLING THE LISTING ITEM ON LISTING PAGES AND HOME PAGE */
/***********************************************************/
.wrapper .homepage article,
.wrapper .listing article {
    background: #fff;
    padding: 0;
    box-shadow: 0 1px 10px rgba(3, 3, 3, 0.3);
}

.articles article,
article.articles {
    box-shadow: inset 0 9px 0 tomato;
}

.pages vegetarian,
article.vegetarian {
    box-shadow: inset 0 9px 0 seagreen;
}

.products article,
article.products {
    box-shadow: inset 0 9px 0 orange;
}

.recipes article,
article.recipes {
    box-shadow: inset 0 9px 0 yellowgreen;
}

code {
    padding: 0.2em;
    margin: 0;
    font-size: 101%;
    background-color: powderblue;
    border-radius: 3px;
}

.meta-date {
    background: #e9e1de;
    padding: 0.1em;
    margin-right: 5px;
}

.image-wrap {
    display: inline-block;
    margin: 20px 0;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(3, 3, 3, 0.5);
    transition: box-shadow 0.2s;
}

.image-wrap:hover {
    box-shadow: 0 2px 20px rgba(3, 3, 3, 0.5);
}

.image-wrap img {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

pre {
    background-color: #fff;
    color: #333;
    white-space: pre;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    position: relative;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

pre code {
    display: block;
    padding: 1.5em;
    font-size: 0.875rem;
    line-height: 2;
    overflow-x: auto;
    border-radius: 0;
}

.block-quote {
    padding: 1em;
    border-left: 7px solid;
    background-color: #e8e0dd;
    margin-bottom: 30px;
}

.block-quote p:last-of-type,
.block-quote ul:last-of-type {
    margin: 0;
}

.readmore {
    margin-top: 10px;
}
.readmore a {
    padding: 0;
}

/*********************************************************/
/* STYLING THE ARTICLES IN LISTING TEMPLATE (LIST PAGES) */
/*********************************************************/
.listingWrap,
.homepage {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.listingWrap article,
.homepage article {
    width: 32%;
}

@media (max-width: 999px) {
    .listingWrap article,
    .homepage article {
        width: 49%;
    }
}

@media (max-width: 699px) {
    .listingWrap article,
    .homepage article {
        width: 100%;
    }
}

/***************************************************************/
/* STYLING THE (PREPARATION STEPS) LISTINGS OF SINGLE TEMPLATE */
/***************************************************************/
article ul:last-child {
    list-style: none;
    padding-left: 15px;
}

article ul:last-child li:before {
    content: counter(i);
    counter-increment: i;
    background: #58a930;
    width: 30px;
    color: white;
    display: inline-block;
    text-align: center;
    margin-right: 10px;
}
