: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-800: hsl(14, 45%, 36%);
--rose-800: hsl(332, 51%, 32%);
--rose-50: hsl(330, 100%, 98%);
/* Font families */
--font-family-base: 'Young Serif', serif; /* per titoli */
--font-family-second: 'Outfit', sans-serif; /* per testi */
/* Font weight */
--font-weight-regular: 400;
--font-weight-semibold: 600;
--font-weight-bold: 700;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-second);
  font-weight: var(--font-weight-regular);
  background-color: var(--stone-100);
  color: var(--stone-900);
  min-height: 100vh;
  /* centrare l'intera card */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card {
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  margin: 70px 0;
  padding: 36px;
  text-align: left;
  width: 100%;
  max-width: 720px; /* larghezza massima della card su desktop */
  min-width: 325px;
  border-radius: 16px;
}

.card h1 {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-regular);
  color: var(--stone-900);
  font-size: 40px;
}
.card p {
  font-family: var(--font-family-second);
  font-weight: var(--font-weight-regular);
}

.simple_omelette { 
  width: 100%;
  max-width: 650px;
  padding-top: 2px;
  border-radius: 12px;
  height: auto;
}

/* -----preparation time----- */
.preparation {
  background-color: var(--rose-50);
  border-radius: 8px;
  padding: 8px;
}

.preparation h3 {
  color: var(--rose-800);
  padding-left: 16px;
}

.preparation span {
  font-weight: var(--font-weight-semibold);
}

.preparation ul li {
  margin-bottom: 12px;
  padding-left: 14px;
}

/* -----ingredients----- */
.ingredients {
  font-family: var(--font-family-base);
  color: var(--brown-800);
}

.ingredients ul li {
  font-family: var(--font-family-second);
  font-weight: var(--font-weight-regular);
  color: var(--stone-600);
  margin-bottom: 12px;
  padding-left: 14px;
}

/* -----instructions----- */
.instructions {
  font-family: var(--font-family-base);
  color: var(--brown-800);
}

.instructions ol li {
  font-family: var(--font-family-second);
  font-weight: var(--font-weight-regular);
  color: var(--stone-600);
  margin-bottom: 12px;
  padding-left: 14px;
}

.instructions span {
  font-weight: var(--font-weight-semibold);
}

/* -----nutrition----- */
.nutrition {
  margin-bottom: 12px;
  font-family: var(--font-family-base);
  color: var(--brown-800);
}

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

.nutrition-table {
  width: 100%;
  border-collapse: collapse; 
  /* unisce i bordi delle celle adiacenti in un unico bordo continuo */
}

.nutrition-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--stone-100);
  color: var(--stone-600);
}

.nutrition-table .value {
  color: var(--brown-800);
}

.nutrition-table tr:last-child td {
  border-bottom: none; /* niente linea sull’ultima riga */
}

.label {
  font-family: var(--font-family-second);
  font-weight: var(--font-weight-regular);
  flex: 1;
}

.value {
  font-family: var(--font-family-second);
  font-weight: var(--font-weight-semibold);
  text-align: left;
  flex: 1;
}

/* -----attribution----- */
.attribution { 
  font-size: 11px; 
  text-align: center; 
  width: 100%;
  margin-top: 14px;
}

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


