@font-face {
  font-family: "Outfit";
  src: url(./assets/fonts/outfit/Outfit-VariableFont_wght.ttf)
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Young Serif";
  src: url(./assets/fonts/young-serif/YoungSerif-Regular.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

: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: hsl(14, 45%, 36%);
  --rose-800: hsl(332, 51%, 32%);
  --rose-50: hsl(330, 100%, 98%);

  /* Typography */
  --font-family-outfit: "Outfit", sans-serif;
  --font-family-young: "Young Serif", serif;

  --font-weight-reg: 400;
  --font-weight-semi: 600;
  --font-weight-bold: 700;

  --font-size-16: 1rem;
  --font-size-20: 1.25rem;
  --font-size-28: 1.75rem;
  --font-size-36: 2.25rem;
  --font-size-40: 2.5rem;

  --text-preset-1-desktop: var(--font-weight-reg) var(--font-size-40)/1
    var(--font-family-young);
  --text-preset-1-mobile: var(--font-weight-reg) var(--font-size-36)/1
    var(--font-family-young);
  --text-preset-2: var(--font-weight-reg) var(--font-size-28)/1
    var(--font-family-young);
  --text-preset-3: var(--font-weight-semi) var(--font-size-20)/1
    var(--font-family-outfit);
  --text-preset-4: var(--font-weight-reg) var(--font-size-16)/1.5
    var(--font-family-outfit);
  --text-preset-4-bold: var(--font-weight-bold) var(--font-size-16)/1.5
    var(--font-family-outfit);

  /* Spacing */
  --space-100: 8px;
  --space-150: 12px;
  --space-200: 16px;
  --space-300: 24px;
  --space-400: 32px;
  --space-500: 40px;
  --space-600: 48px;
  --space-1600: 128px;
}

main {
  margin: 0 auto;
  background-color: var(--white);
}

article {
  display: flex;
  flex-direction: column;
  gap: var(--space-400);
  padding: var(--space-500) var(--space-400);
}

.list-styles {
  color: var(--stone-600);
  font: var(--text-preset-4);
}

.recipe-title {
  margin-bottom: var(--space-300);
  color: var(--stone-900);
  font: var(--text-preset-1-mobile);
}

.recipe-info {
  color: var(--stone-600);
  font: var(--text-preset-4);
}

.prep-time {
  padding: var(--space-300);
  color: var(--rose-800);
  background-color: var(--rose-50);
  border-radius: var(--space-150);
}

.prep-title {
  margin-bottom: var(--space-200);
  color: var(--rose-800);
  font: var(--text-preset-3);
}

ul,
ol {
  margin-left: var(--space-100);
  padding-left: var(--space-200);
}

li {
  padding-left: var(--space-200);
  margin: var(--space-100) 0;
}

li:first-child {
  margin: 0;
}

li:last-child {
  margin-bottom: 0;
}

.section-titles {
  margin-bottom: var(--space-300);
  color: var(--brown);
  font: var(--text-preset-2);
}

.border-bottom {
  width: 100%;
  border-bottom: 1px solid var(--stone-150);
}

.ingredients {
  color: var(--brown);
}

.instructions {
  color: var(--brown);
  font: var(--text-preset-4-bold);
}

.nutrition {
  color: var(--stone-600);
  font: var(--text-preset-4);
}

.nutrition-cal {
  color: var(--brown);
  font: var(--text-preset-4-bold);
}

table {
  width: 100%;
  margin-top: var(--space-300);
  border-collapse: collapse;
}

tr {
  border-bottom: 1px solid var(--stone-150);
}

tr:last-child {
  border: none;
}

th {
  width: 50%;
  font-weight: inherit;
  text-align: inherit;
  padding: var(--space-100) 0 var(--space-100) var(--space-400);
}

td {
  padding: var(--space-100) 0;
}

tr:first-child th,
tr:first-child td {
  padding-top: 0;
}

/* Footer */

.attribution {
  text-align: center;
  font-family: var(--font-family-outfit);
  font-size: 0.6875rem;
  color: var(--stone-900);
}
.attribution a {
  text-decoration: none;
  color: var(--brown);
}

.attribution a:hover,
.attribution a:focus-visible {
  color: var(--stone-600);
}

/* Media Queries */

/* Tablet */
@media (min-width: 500px) {
  body {
    margin: var(--space-1600) var(--space-600);
    background-color: var(--stone-100);
  }
  main {
    max-width: 616px;
    padding: var(--space-500);
    border-radius: var(--space-300);
  }

  .hero-img {
    margin: 0 auto;
    margin-bottom: var(--space-500);
    border-radius: var(--space-150);
  }

  article {
    padding: 0;
  }

  .recipe-title {
    font: var(--text-preset-1-desktop);
  }
}

/* Desktop */
@media (min-width: 1280px) {
  main {
    max-width: 736px;
  }
}
