html {
  font-size: 62.5%;
  margin: 0;
}

body {
  font-family: "Outfit", serif;
  font-size: 1.6rem;
  margin: 0;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

  --stone100: hsl(30, 54%, 90%);
  --stone150: hsl(30, 18%, 87%);
  --stone600: hsl(30, 10%, 34%);
  --stone900: hsl(24, 5%, 18%);

  --brown: hsl(14, 45%, 36%);
  --soft-beige: hsl(30, 54%, 90%);

  --rose800: hsl(332, 51%, 32%);
  --rose50: hsl(330, 100%, 98%);
}

/* Typography */
h1 {
  color: var(--stone900);
  font-family: "Young Serif", serif;
  font-size: 3.2rem;
  font-weight: 400;
}

h2 {
  color: var(--rose800);
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  color: var(--brown);
  font-family: "Young Serif", serif;
  font-size: 2.4rem;
  font-weight: 400;
}

p,
li {
  color: var(--stone600);
  font-weight: 400;
  line-height: 1.6;
}

strong {
  font-weight: 700;
}

/* Layout */
.card {
  max-width: 50rem;
  overflow: hidden;
  margin: 0 auto;
}

.picture {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

section {
  border-bottom: 1px solid var(--stone150);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

section:first-of-type,
section:last-of-type {
  border-bottom: none;
}

.preparation {
  background-color: var(--rose50);
  padding: 1rem;
  border-radius: 1rem;
}

.preparation ul ::marker {
  color: var(--rose800);
}

ul,
ol {
  padding-left: 2rem;
  list-style-position: outside;
}

ul li,
ol li {
  padding-left: 1rem;
}

.instructions ol ::marker,
.ingredients ul ::marker {
  color: var(--brown);
}

.nutrition table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.nutrition tr {
  border-bottom: 1px solid var(--stone150);
}

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

.nutrition th {
  text-align: center;
  font-weight: 400;
  color: var(--stone600);
  padding: 0.8rem 0;
}

.nutrition td {
  text-align: left;
  color: var(--brown);
  font-weight: 700;
  padding: 0.8rem 0;
}

@media (min-width: 768px) {
  .picture {
    max-height: 40rem;
    margin: 0 auto;
    border-radius: 1rem;
  }

  .card {
    width: 100%;
    max-width: 60rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  body {
    background-color: var(--soft-beige);
    padding: 2rem;
  }
}
