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

: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%);
  --font-family-serif: "Young Serif", serif;
  --font-family-outfit: "Outfit", sans-serif;
}

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

body {
  font-family: var(--font-family-outfit);
  font-size: 16px;
  background-color: var(--color-stone-100);
  color: var(--color-stone-600);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.recipe-container {
  background-color: var(--color-white);
  max-width: 736px;
  padding: 40px;
  border-radius: 24px;
}

.recipe-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 30px;
}

h1 {
  font-family: var(--font-family-serif);
  color: var(--color-stone-900);
  font-size: 36px;
  line-height: 1;
  margin-bottom: 24px;
}

h2 {
  font-family: var(--font-family-serif);
  color: var(--color-brown-800);
  margin-bottom: 16px;
}

p {
  line-height: 1.5;
  margin-bottom: 24px;
}

.prep-time {
  background-color: var(--color-rose-50);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 32px;
}

.prep-time h3 {
  color: var(--color-rose-800);
  font-size: 20px;
  margin-bottom: 16px;
}

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

li {
  padding-left: 16px;
  margin-bottom: 8px;
  line-height: 1.5;
}

li::marker {
  color: var(--color-brown-800);
  font-weight: bold;
}

hr {
  border: none;
  border-top: 1px solid var(--color-stone-150);
  margin: 32px 0;
}

.nutrition table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.nutrition td {
  padding: 12px 32px;
  border-bottom: 1px solid var(--color-stone-150);
}

.nutrition tr:last-child td {
  border-bottom: none;
}

.stat {
  color: var(--color-brown-800);
}

.footer {
  margin-top: 30px;
  font-size: 14px;
}

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

@media (max-width: 600px) {
  body {
    padding: 0;
  }
  .recipe-container {
    border-radius: 0;
    padding: 20px;
  }
  .recipe-image {
    margin: -20px -20px 30px -20px;
    width: calc(100% + 40px);
    border-radius: 0;
  }
}
