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

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root {
  --color-white: hsl(0, 0%, 100%);

  --color-stone-100: hsl(30, 54%, 90%);
  --color-stone-150: hsl(30, 18%, 87%);
  --color-stone-600: hsl(30, 10%, 34%);
  --color-stone-900: hsl(24, 5%, 18%);

  --color-brown-800: hsl(14, 45%, 36%);

  --color-rose-800: hsl(332, 51%, 32%);
  --color-rose-50: hsl(330, 100%, 98%);
}

body {
  width: 100vw;
  min-height: 100vh;

  background-color: var(--color-white);
  color: var(--color-stone-600);
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

img {
  width: 100%;
  height: auto;
}

main {
  padding: 32px;
}

section:not(:last-child) {
  margin-bottom: 28px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-brown-800);
  font-family: "Young Serif", serif;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 24px;
}

h1 {
  color: var(--color-stone-900);
  font-size: 32px;
}

h2 {
  font-size: 28px;
}

ul,
ol {
  margin: 0 8px;
}

li {
  display: flex;
  align-items: center;
}

li:not(:last-child) {
  margin-bottom: 8px;
}

ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-rose-800);
  margin-right: 24px;
  flex-shrink: 0;
}

span {
  font-weight: 600;
}

hr {
  border: none;
  border-bottom: 1px solid var(--color-stone-100);
  margin-bottom: 28px;
}

/* Preparation Callout */
.callout {
  background-color: var(--color-rose-50);
  border-radius: 12px;
  padding: 24px;
}

.callout h2 {
  color: var(--color-rose-800);
  font-family: Outfit, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

/* Instructions Section */
ol {
  counter-reset: item;
}

ol li {
  align-items: flex-start;
}

ol li::before {
  content: counter(item) ".";
  counter-increment: item;
  width: 2em;
  margin-right: 24px;

  color: var(--color-brown-800);
  font-weight: 600;
}

/* Nutrition Table */
table {
  width: 100%;
}

td {
  padding: 16px 24px;
}

tr:not(:last-child) td {
  border-bottom: 1px solid var(--color-stone-100);
}

td:last-child {
  color: var(--color-brown-800);
  font-weight: 700;
}

footer {
  text-align: center;
  padding: 8px;
}

footer a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-brown-800);
}

@media screen and (min-width: 500px) {
  body {
    max-width: 900px;
    margin: 32px auto 0;
    padding: 0 5%;
  }

  main {
    padding: 0;
    margin-bottom: 32px;
  }

  img {
    border-radius: 24px;
    margin: 32px 0;
  }
}
