body {
  background-color: #821717;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='white' fill-opacity='0.3'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: #0f2424;
}

h1 {
  color: #193434;
}

h2,
h3 {
  color: #482323;
}

@font-face {
  font-family: "Caveat Bold";
  src: url("fonts/caveat-bold-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat Regular";
  src: url("fonts/montserrat-regular-webfont.woff2") format("woff2"), url("fonts/montserrat-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
html {
  font-size: 16px;
  font-family: "Montserrat Regular", sans-serif;
  line-height: 1.5em;
}

h1,
h2 {
  font-family: "Caveat Bold", cursive;
  line-height: 1em;
}

.container-main,
footer {
  background-color: #f2f3f3;
  box-shadow: 0 0 3rem black;
}

header {
  padding: 1rem;
}
header h1 {
  font-family: "Caveat Bold", cursive;
  font-size: calc(2rem * var(--type-scale) * var(--type-scale));
  text-align: center;
  margin: 0.5em;
}
header p {
  font-size: calc(1rem * var(--type-scale));
  font-style: italic;
  text-align: center;
  margin: 0;
  color: #482323;
}

nav {
  width: 100%;
  margin: 3rem 0 0;
}
nav ul {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
nav ul li {
  padding: 0.5em 1.5em;
  flex-grow: 1;
}
nav ul li a {
  display: inline-block;
  padding: 0.5em 1.2em;
  background-color: #527a7a;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  color: #d9f2f2;
  text-shadow: 0 0 3px #0d2626;
  width: 100%;
}
nav ul li a:hover, nav ul li a:focus, nav ul li a:active {
  color: #0d2626;
  text-shadow: 0 0 3px #d9f2f2;
  background-color: #ad8585;
}

.container-content {
  padding: 2rem;
}

aside h2 {
  margin: 0;
  font-size: calc(1.3rem * var(--type-scale));
}
aside p {
  color: #2e6b6b;
}

main h2 {
  margin: 0;
  font-size: calc(1.3rem * var(--type-scale) * var(--type-scale));
  color: #193434;
}
main > p {
  font-style: italic;
  color: #482323;
}

.recipe-featured {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}
.recipe-featured img {
  width: 100%;
}
.recipe-featured:hover, .recipe-featured:focus, .recipe-featured:active {
  background-color: white;
}

.container-recipe-list a {
  display: block;
  text-decoration: none;
  color: #482323;
  margin-bottom: 0.5rem;
  padding: 1rem;
}
.container-recipe-list a:nth-child(1n) {
  border-right: 1em solid #f5c6a3;
}
.container-recipe-list a:nth-child(2n) {
  border-right: 1em solid #f5e9a3;
}
.container-recipe-list a:nth-child(3n) {
  border-right: 1em solid #def5a3;
}
.container-recipe-list a:nth-child(4n) {
  border-right: 1em solid #bcf5a3;
}
.container-recipe-list a:nth-child(5n) {
  border-right: 1em solid #a3f5ad;
}
.container-recipe-list a:nth-child(6n) {
  border-right: 1em solid #a3f5d0;
}
.container-recipe-list a:nth-child(7n) {
  border-right: 1em solid #a3f5f3;
}
.container-recipe-list a:nth-child(8n) {
  border-right: 1em solid #a3d4f5;
}
.container-recipe-list a:nth-child(9n) {
  border-right: 1em solid #a3b1f5;
}
.container-recipe-list a:nth-child(10n) {
  border-right: 1em solid #b8a3f5;
}
.container-recipe-list a:hover, .container-recipe-list a:focus, .container-recipe-list a:active {
  background-color: white;
}

.recipe-listing {
  clear: both;
  height: calc(1em * var(--span-width));
}
.recipe-listing img {
  float: left;
  height: 100%;
  width: 10em;
  object-fit: cover;
  margin-right: 1em;
}
.recipe-listing h3 {
  margin: 0;
  padding: 0.5em 0 1em;
}
.recipe-listing p {
  margin-top: 0;
}

.recipe-header {
  position: relative;
}
.recipe-header h2 {
  font-size: calc(1.8rem * var(--type-scale) * var(--type-scale) * var(--type-scale));
  position: absolute;
  bottom: 4rem;
  left: 1rem;
  z-index: 10;
  color: white;
  text-shadow: 0 0 5px black;
}
.recipe-header img {
  width: 100%;
  padding: 0;
}

.ingredients,
.directions {
  margin-top: 2em;
}
.ingredients h3,
.directions h3 {
  padding-bottom: 0.3em;
}
.ingredients ul,
.ingredients ol,
.directions ul,
.directions ol {
  padding-left: 1.5em;
}
.ingredients li,
.directions li {
  margin-bottom: 0.7em;
}

footer {
  text-align: center;
}
footer p {
  display: inline-block;
  margin: 0.5em;
}

html {
  box-sizing: border-box;
  height: 100%;
}

html *,
html *::before,
html *::after {
  box-sizing: inherit;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0 1rem;
}

.container-main {
  max-width: 1000px;
  margin: 0 auto;
}

.container-content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin-bottom: 3rem;
  /* to reveal footer */
}

.container-featured-box {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

/* Mobile Layout */
main {
  grid-column: span var(--main-width, 12);
}

aside {
  grid-column: span calc(12 - var(--main-width, 0));
  padding: var(--padding, 0 0 2rem);
}

.recipe-featured {
  grid-column: span var(--width, 2);
}

footer {
  position: fixed;
  bottom: 0;
  width: calc(100% - (1rem * 2));
  max-width: 1000px;
  z-index: -10;
}

body {
  --type-scale: 1.125;
}

/* Tablet Layout */
@media (hover: none) and (pointer: coarse) and (min-width: 641px) {
  body {
    --type-scale: 1.2;
  }

  .container-content {
    --main-width: 8;
  }

  aside {
    --padding: 0 2rem 0 0;
  }

  .recipe-featured {
    --width: 2;
  }
}
/* Desktop Layout  */
@media (hover: hover) and (pointer: fine) {
  body {
    --type-scale: 1.414;
  }

  .container-content {
    --main-width: 9;
  }

  aside {
    --padding: 0 2rem 0 0;
  }

  .recipe-featured {
    --width: 1;
  }
}
