/* young-serif-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/young-serif-v2-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* outfit-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/outfit-v11-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  src: url("./assets/fonts/outfit-v11-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  src: url("./assets/fonts/outfit-v11-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
: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%);
  --brown800: hsl(14, 45%, 36%);
  --rose800: hsl(332, 51%, 32%);
  --rose50: hsl(330, 100%, 98%);
  --color-border: rgba(0, 0, 0, 0.2);

  --margin-32px: 2rem;
  --margin-24px: 1.5rem;

  --font-young: "Young Serif", "Times New Roman", Times, serif;
  --font-outfit: "Outfit", Arial, Helvetica, sans-serif;
  --min-width: 320px; /* Minimum width for the body */
  --max-width: 1440px; /* Maximum width for the body */
}

body {
  margin: 0;

  @media (width >= 1024px) {
    background-color: var(--stone100);
  }
}

h1,
h2,
p {
  margin: 0;
}

.container {
  width: 100%;

  @media (width >= 64rem) {
    max-width: clamp(23.4275rem, 100%, 43.75rem);
    margin: 100px auto;
    background-color: var(--white);
    border-radius: 1.4rem;
  }
}

.header {
  width: 100%;

  @media (width >= 64rem) {
    padding: var(--margin-32px) var(--margin-32px) 0;
  }
}

.header-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;

  @media (width >= 64rem) {
    border-radius: 1rem;
  }
}

.main {
  padding: var(--margin-32px);
}

.main-title {
  font-family: var(--font-young);
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: 150%;
  color: var(--stone900);
  margin-bottom: var(--margin-32px);
}

.description {
  font-family: var(--font-outfit);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 150%;
  color: var(--stone600);
  margin-bottom: var(--margin-32px);
}

.preparation {
  background-color: var(--rose50);
  padding: var(--margin-24px);
  border-radius: 0.75rem;
}

.preparation-title {
  font-family: var(--font-outfit);
  font-size: 1.1rem;
  line-height: 1.2;
  letter-spacing: 150%;
  color: var(--rose800);
}
.preparation-ul {
  padding-inline-start: 1.4rem;
  margin-block-end: 0;
}

.items {
  color: var(--stone600);
  font-family: var(--font-outfit);
  padding-inline-start: 1rem;
  margin-block-end: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 150%;
}

.items::marker {
  color: var(--rose800);
  font-size: 0.8rem;
}

.section {
  margin: 0 var(--margin-32px);
}

.title {
  font-family: var(--font-young);
  font-size: 1.5rem;
  letter-spacing: 150%;
  color: var(--brown800);
}

.ingredients-ul,
.instructions-ol {
  color: var(--stone600);
  margin-block-start: 1.2rem;
  padding-inline-start: 1.4rem;
  margin-block-end: 0;
}

.ol-number::marker {
  font-size: 1rem;
  font-weight: 600;
}

.margin {
  margin: var(--margin-24px) 0;
}

.hr {
  border: none;
  border-bottom: 1px solid var(--color-border);
  margin: var(--margin-32px) 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--stone600);
}

.table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-outfit);
}

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

.table td:first-child {
  padding-left: 2.5rem;
}

.table td:last-child {
  color: var(--brown800);
}

.p-32 {
  padding-bottom: var(--margin-32px);
}

.attribution {
  font-size: 11px;
  text-align: center;
  display: none;
}

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