:root {
  /* Colors */
  --rose-800: hsl(332, 51%, 32%);
  --rose-50: hsl(330, 100%, 98%);
  --stone-900: hsl(24, 5%, 18%);
  --stone-600: hsl(30, 10%, 34%);
  --stone-150: hsl(30, 18%, 87%);
  --stone-100: hsl(30, 54%, 90%);
  --brown-800: hsl(14, 45%, 36%);
  --white: hsl(0, 0%, 100%);

  /* Typography (families & weights) */
  --ff-serif: "Young Serif", serif;
  --ff-sans: "Outfit", sans-serif;
  --fw-400: 400;
  --fw-600: 600;
  --fw-700: 700;

  /* Text Presets */
  --fs-1: 2.5rem;
  --fs-2: 1.75rem;
  --fs-3: 1.25rem; /* fix */
  --fs-4: 1rem;
  --fs-5: 1rem;
  --lh-1: 1;
  --lh-2: 1.5;
  --ls-default: 0;

  /* Spacing (375 → 1440, min floor = 8px) */
  --vw-min: 375px;
  --vw-max: 1440px;

  --space-1600: clamp(
    8px,
    calc(
      8px + (128px - 8px) *
        ((100vw - var(--vw-min)) / (var(--vw-max) - var(--vw-min)))
    ),
    128px
  );
  --space-600: clamp(
    8px,
    calc(
      8px + (48px - 8px) *
        ((100vw - var(--vw-min)) / (var(--vw-max) - var(--vw-min)))
    ),
    48px
  );
  --space-500: clamp(
    8px,
    calc(
      8px + (40px - 8px) *
        ((100vw - var(--vw-min)) / (var(--vw-max) - var(--vw-min)))
    ),
    40px
  );
  --space-400: clamp(
    8px,
    calc(
      8px + (32px - 8px) *
        ((100vw - var(--vw-min)) / (var(--vw-max) - var(--vw-min)))
    ),
    32px
  );
  --space-300: clamp(
    8px,
    calc(
      8px + (24px - 8px) *
        ((100vw - var(--vw-min)) / (var(--vw-max) - var(--vw-min)))
    ),
    24px
  );
  --space-200: clamp(
    8px,
    calc(
      8px + (16px - 8px) *
        ((100vw - var(--vw-min)) / (var(--vw-max) - var(--vw-min)))
    ),
    16px
  );
  --space-150: clamp(
    8px,
    calc(
      8px + (12px - 8px) *
        ((100vw - var(--vw-min)) / (var(--vw-max) - var(--vw-min)))
    ),
    12px
  );
  --space-100: 0.5rem; /* 8px sabit */

  /* Radius */
  --radius-24: 1.5rem;
  --radius-12: 0.75rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100dvh; 
  display: grid;
  place-items: start center;   
  background: var(--stone-100);
  padding: clamp(1.5rem, 4vw, 3rem);;
}
main {
  background: var(--white);
  border-radius: var(--radius-24);
  padding: clamp(1rem, 3vw, 2.5rem);;
  width: min(100%, 46rem);
}
.card {
  max-width: 46rem;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-400);
}
.top-image img{
  width: 100%;
  height: clamp(11.25rem, 22vw, 18.75rem);  /* 375≈180px → 1440≈300px */
  object-fit: cover;
  border-radius: var(--radius-12);
  display: block;
}
.text-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-300);
}

.text-content h1 {
  font-family: var(--ff-serif);
  font-size:clamp(var(--fs-2),3vw,var(--fs-1));
  line-height: var(--lh-1);
  letter-spacing: var(--ls-default);
  color: var(--stone-900);
}

.text-content p {
  font-family: var(--ff-sans);
  font-size: var(--fs-4);
  line-height: var(--lh-2);
  letter-spacing: var(--ls-default);
  color: var(--stone-600);
}
.preparation {
  padding: var(--space-300);
  background-color: var(--rose-50);
  border-radius: var(--radius-12);
}
.preparation h2{
  font-family: var(--ff-sans);
  font-size: var(--fs-3);
  line-height: var(--lh-1);
  font-weight: 700;
  color: var(--rose-800);
}
.preparation ul {
  margin: var(--space-100);
}
.preparation ul li {
  padding: var(--space-100);
  font-family: var(--ff-sans);
  color: var(--stone-600);
  font-size: var(--fs-4);
  line-height: var(--lh-2);
  letter-spacing: var(--ls-default);
}

.ingredients {
  display: flex;
  flex-direction: column;
  gap: var(--space-300);
   padding-block-end: var(--space-200);
  border-bottom: 1px solid var(--stone-150);
 
}
.ingredients h2{
  font-family: var(--ff-serif);
  font-size: var(--fs-2);
  font-weight: 400;
  color: var(--rose-800);
}

.ingredients ul {
  display: flex;
  flex-direction: column;   
}
.ingredients ul li{
  margin: var(--space-100);
  font-family: var(--ff-sans);
  color: var(--stone-600);
  font-size: var(--fs-4);
  line-height: var(--lh-2);
  letter-spacing: var(--ls-default);
}

.instructions {
  display: flex;
  flex-direction: column;
  gap: var(--space-300);
    padding-block-end: var(--space-300);
  border-bottom: 1px solid var(--stone-150);
}
.instructions h2{
  font-family: var(--ff-serif);
  font-size: var(--fs-2);
  font-weight: 400;
  color: var(--rose-800);
}
.instructions ol {
  display: flex;
  flex-direction: column;
  gap: var(--space-100);
   padding-inline-start: var(--space-500);
}
.instructions ol li{
  padding-inline-start: var(--space-200);
  margin-inline-start: var(--space-300);
  font-family: var(--ff-sans);
  color: var(--stone-600);
  font-size: var(--fs-4);
  line-height: var(--lh-2);
  letter-spacing: var(--ls-default);
}

.nutrition {
  display: flex;
  flex-direction: column;
  gap: var(--space-300);
}
.nutrition h2{
  font-family: var(--ff-serif);
  font-size: var(--fs-2);
  font-weight: 400;
  color: var(--rose-800);
}
.nutrition p {
  font-family: var(--ff-sans);
  font-size: var(--fs-4);
  line-height: var(--lh-2);
  letter-spacing: var(--ls-default);
  color: var(--stone-600);
}

.sr-only{
  position: absolute;
  inline-size: 1px;      /* width */
  block-size: 1px;       /* height */
  padding: 0;
  margin: 0;             
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.nutrition-table th,
.nutrition-table td {
  padding: var(--space-200) 0;
  font-family: var(--ff-sans);
  font-size: var(--fs-4);
  line-height: var(--lh-2);
}

.nutrition-table th {
  text-align: start;
  color: var(--stone-600);
  font-weight: var(--fw-400);
}

.nutrition-table td {
  text-align: start;
  color: var(--brown-800);
  font-weight: var(--fw-700);
  font-variant-numeric: tabular-nums;
}

.nutrition-table tr:not(:last-child) th,
.nutrition-table tr:not(:last-child) td {
  border-block-end: 1px solid var(--stone-150);
}
