@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Young+Serif&display=swap");

:root {
  --font-header: "Young Serif", serif;
  --font-text: "Outfit", sans-serif;
  --font-size-paragraph: 16px;

  --stone-100: hsl(30, 54%, 90%);
  --stone-150: hsl(30, 18%, 87%);
  --stone-600: hsl(30, 10%, 34%);
  --stone-900: hsl(24, 5%, 18%);
  --brown-800: hsl(14, 45%, 36%);
  --rose-800: hsl(332, 51%, 32%);
  --rose-50: hsl(330, 100%, 98%);
}

/* reset */
*,
::before,
::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
span {
  overflow-wrap: break-word;
}

/* **** */
body {
  background-color: var(--stone-100);
}

main {
  background-color: #fff;
}

.header-text,
section {
  padding-right: 2.25rem;
  padding-left: 2.25rem;
}

h1,
h2 {
  font-family: var(--font-header);
  font-weight: 400;
}

h1 {
  color: var(--stone-900);
  font-size: 2.25rem;
  line-height: 2.25rem;
}

h2 {
  color: var(--brown-800);
  font-size: 2rem;
}

p,
li {
  font-family: var(--font-text);
  color: var(--stone-600);
  font-weight: 400;
}

.bold {
  font-weight: 600;
}

hr {
  border-top: 1px solid lightgrey;
  margin: 0 2rem;
}

section.preparation,
section.ingredients,
section.instructions,
section.nutrition {
  padding: 1.5rem;
}

section.preparation li,
section.ingredients li,
section.instructions li {
  margin: 0.25rem 3rem;
  padding: 0.35rem;
}

/* header */
.header-text {
  padding-top: 2rem;
}

.header-text p {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  line-height: 24px;
}

section.preparation {
  background-color: var(--rose-50);
  border-radius: 10px;
  width: 85%;
  margin: 0 auto;
}

.small-header {
  color: var(--rose-800);
  font-weight: 700;
  font-size: 1.25rem;
}

section.instructions li::marker {
  font-weight: 700;
  color: var(--brown-800);
}

section.nutrition p {
  padding-top: 1rem;
  padding-bottom: 1rem;
  line-height: 24px;
}

section.nutrition table {
  display: table;
  border-spacing: 2px;
  border-collapse: collapse;
  box-sizing: border-box;
  text-indent: 0;
  font-family: var(--font-text);
  text-align: center;
  margin: 0 auto;
  width: 85%;
}

section.nutrition table tr td {
  border-bottom: 1px solid lightgrey;
  font-family: var(--font-text);
  color: var(--stone-600);
  font-weight: 400;
  padding: 1rem 2rem;
}

section.nutrition table tr td:last-of-type {
  font-weight: 700;
  color: var(--brown-800);
}

.attribution {
  font-size: 11px;
  font-family: var(--font-text);
  margin-top: 1rem;
  padding-bottom: 2rem;
  text-align: center;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

@media screen and (min-width: 1440px) {
  body {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
  }

  main {
    width: 50%;
    border-radius: 20px;
  }

  header img {
    width: 85%;
    margin: 2.5rem auto;
    border-radius: 20px;
  }

  .header-text {
    padding-top: 0;
  }

  .header-text,
  section {
    padding-right: 3rem;
    padding-left: 3rem;
  }

  section.preparation,
  section.ingredients,
  section.instructions,
  section.nutrition {
    padding: 2rem;
  }
}
