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

/* ========== 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%);
  
  --font-serif: 'Young Serif', serif;
  --font-sans: 'Outfit', sans-serif;
}

/* ========== Base Styles ========== */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--stone-600);
  background-color: var(--stone-100);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* ========== Recipe Container ========== */
.recipe {
  width: 100%;
  max-width: 736px;
  margin: 0 auto;
}

/* ========== Recipe Card ========== */
.recipe-card {
  background-color: var(--white);
  border-radius: 24px;
  overflow: hidden;
  margin: 128px 0 40px;
}

.recipe-card__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 40px 40px 32px;
  max-width: calc(100% - 80px);
}

.recipe-card__content {
  padding: 0 40px 40px;
}

/* ========== Header ========== */
.recipe-card__header {
  margin-bottom: 32px;
}

.recipe-card__title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  color: var(--stone-900);
  margin-bottom: 24px;
}

.recipe-card__description {
  color: var(--stone-600);
  line-height: 1.5;
}

/* ========== Preparation Time ========== */
.preparation-time {
  background-color: var(--rose-50);
  padding: 28px;
  border-radius: 12px;
  margin-bottom: 32px;
}

.preparation-time__title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--rose-800);
  margin-bottom: 16px;
}

.preparation-time__list {
  list-style-position: outside;
  padding-left: 24px;
}

.preparation-time__list li {
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--stone-600);
}

.preparation-time__list li::marker {
  color: var(--rose-800);
  font-size: 12px;
}

.preparation-time__list li:last-child {
  margin-bottom: 0;
}

/* ========== Recipe Sections ========== */
.recipe-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--stone-150);
}

.recipe-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recipe-section__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--brown-800);
  margin-bottom: 24px;
}

.recipe-section__note {
  color: var(--stone-600);
  margin-bottom: 24px;
}

/* Lists */
.recipe-section__list {
  padding-left: 24px;
  list-style-position: outside;
}

.recipe-section__list li {
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--stone-600);
}

.recipe-section__list li::marker {
  color: var(--brown-800);
  font-weight: 600;
}

.recipe-section__list--ordered li::marker {
  font-weight: 700;
}

.recipe-section__list li:last-child {
  margin-bottom: 0;
}

/* ========== Nutrition Table ========== */
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
}

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

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

.nutrition-table td {
  padding: 12px 32px;
  color: var(--stone-600);
}

.nutrition-table td:first-child {
  padding-left: 0;
}

.nutrition-table td:last-child {
  color: var(--brown-800);
  font-weight: 700;
}

/* ========== Footer ========== */
.attribution {
  font-size: 11px;
  text-align: center;
  margin: 20px 0;
  color: var(--stone-600);
}

.attribution a {
  color: var(--brown-800);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.attribution a:hover,
.attribution a:focus {
  color: var(--rose-800);
  text-decoration: underline;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  body {
    padding: 0;
  }
  
  .recipe-card {
    border-radius: 0;
    margin: 0;
  }
  
  .recipe-card__image {
    border-radius: 0;
    margin: 0;
    max-width: 100%;
  }
  
  .recipe-card__content {
    padding: 32px 24px;
  }
  
  .recipe-card__title {
    font-size: 36px;
  }
  
  .preparation-time {
    padding: 24px;
  }
}
