/* CSS Variables */
:root {
  --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%);
}

/* Typography Classes */
.young-serif {
  font-family: 'Young Serif', serif;
  font-weight: 400;
  font-style: normal;
}

.outfit-sans {
  font-family: 'Outfit', sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* Base Elements */
body,
html {
  background-color: var(--stone-100);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
}

p {
  margin: 0;
}

h1 {
  color: var(--stone-900);
}

h2 {
  color: var(--brown-800);
  font-family: 'Outfit', sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
}

/* Layout and Containers */
.main {
  background-color: var(--white);
  width: 50vw;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  padding: 40px 35px;
  margin: 10vh 0;
  box-shadow: 0px 2px 4px var(--stone-900);
}

.image-cover {
  width: 100%;
  align-self: center;
  border-radius: 10px;
}

/* Preparation Time Section */
.preparation-time {
  background-color: var(--rose-50);
  padding: 20px;
  margin-top: 16px;
  border-radius: 10px;
}

.preparation-time h3 {
  color: var(--rose-800);
  margin: 0;
}

/* Lists Styling */
ul {
  padding-left: 20px;
}

li {
  color: var(--stone-600);
  padding-left: 10px;
  padding-bottom: 12px;
}

ul li:last-child,
.preparation-time-list li:last-child {
  padding-bottom: 0;
}

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

/* Horizontal Rule */
hr {
  border: none;
  height: 0.5px;
  background-color: var(--stone-600);
  margin: 20px 0;
}

/* Table Styling */
table {
  border-collapse: collapse;
  width: 100%;
  height: fit-content;
  margin-top: 12px;
}

tr {
  border-bottom: 1px solid var(--stone-600);
}
tr:last-child {
  border-bottom: none;
}
td {
  padding: 12px 24px;
}

tr td:last-child {
  color: var(--brown-800);
  font-weight: 600;
}

@media screen and (max-width: 480px) {
  body,
  html {
    font-size: 12px;
  }
  .main {
    width: 70vw;
    margin: 4vh 0;
    padding: 35px;
  }
  ol {
    padding-left: 12px;
  }
  hr {
    margin: 7px 0;
  }
  .preparation-time {
    padding: 12px;
  }
  ul {
    margin-bottom: 5px;
  }
}
