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

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

:root {
  /* ========== Colors  ==========*/
  --White: hsl(0, 0%, 100%);

  --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%);

  /* ========== Fonts  ==========*/
  --f-normal: 1rem;
  --f-med: 1.8rem;
  --f-large: 2.5rem;
  --f-w-normal: 400;
  --f-w-med: 600;
  --f-w-large: 700;
}

/* ========== Base  ==========*/

body {
  background: var(--Stone-100);
  display: grid;
  place-items: center;
  font-family: "Outfit", sans-serif;
  font-weight: var(--f-w-normal);
  color: var(--Stone-600);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Young Serif", sans-serif;
  font-weight: var(--f-w-normal);
  font-size: var(--f-large);
  color: var(--Stone-900);
}

h2 {
  font-weight: var(--f-w-normal);
  font-size: var(--f-med);
  color: var(--Brown-800);
}

hr {
  color: var(--Stone-100);
  background: var(--Stone-100);
  margin: 1rem;
  margin-top: 1rem;
  height: 1px;
  border: none;
}

strong {
  font-weight: var(--f-w-large);
}

.subtitle {
  font-weight: var(--f-w-med);
}

main {
  max-width: 50rem;
  background: var(--White);
  margin: 5rem 2rem;
  padding: 2.5rem;
  border-radius: 20px;
  align-items: center;
  @media (max-width: 375px) {
    margin: 0;
    border-radius: 0;
    --f-normal: 0.7rem;
    --f-med: 1.5rem;
    --f-large: 2rem;
  }
}

.flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ========== Hero  ==========*/
#hero img {
  width: 100%;
  margin-bottom: 1rem;
  object-fit: cover;
  border-radius: 10px;
}

#hero h3 {
  font-family: "Outfit", sans-serif;
  font-weight: var(--f-w-med);
  font-size: 1.3rem;
  color: var(--Rose-800);
}

.hero-prep {
  background-color: var(--Rose-50);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  line-height: 2rem;
}

.list-item li {
  padding-left: 1rem;
}

.hero-prep li::marker {
  color: var(--Rose-800);
}

.list-item {
  padding-top: 0.5rem;
  padding-left: 1.5rem;
}

/* ========== Ingredients  ==========*/

#ingredients {
  width: 100%;
}

#ingredients li::marker {
  color: var(--Brown-800);
}

/* ========== Instructions  ==========*/

#instructions li::marker {
  color: var(--Brown-800);
}

.space li {
  margin: 0.4rem;
}

/* ========== nutrition  ==========*/

#nutrition {
  width: 100%;
}

table {
  margin: 1rem;
  vertical-align: center;
  width: 90%;
  border-collapse: collapse;
}

table tr:not(:last-child) td {
  border-bottom: 1px solid var(--Stone-150);
}

td {
  padding: 3px;
}
td:last-child {
  color: var(--Brown-800);
  font-weight: var(--f-w-large);
}

/* ========== Footer  ==========*/
.attribution {
  font-size: 11px;
  text-align: center;
}

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