/* ============================================================
   Block: Siatka przepisów (.recipes)
   Dulce de Leche Design System
   ============================================================ */

.recipes {
  background: var(--paper);
  padding: var(--section-y) 0;
}

.recipes .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Header ---- */
.recipes-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--space-4);
  margin-bottom: clamp(48px, 6vw, 80px);
}

.recipes-title {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 144;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.recipes-title em {
  font-style: italic;
  color: var(--karmel);
  font-weight: 300;
}

.recipes-link {
  justify-self: end;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--karmel);
  padding-bottom: 4px;
  align-self: end;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.recipes-link:hover {
  color: var(--karmel);
}

/* ---- Grid ---- */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 40px);
}

/* ---- Recipe card ---- */
.recipe {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}

.recipe .recipe-link {
  display: block;
  text-decoration: none;
}

.recipe .photo {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out-expo);
}

.recipe:hover .photo {
  transform: scale(1.02);
}

.recipe .meta {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-family: var(--body);
  font-size: var(--text-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--karmel);
}

.recipe h4 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(26px, 2.6vw, 34px);
  margin: 10px 0 12px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.recipe h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.recipe h4 a:hover {
  color: var(--karmel);
}

.recipe .author {
  font-family: var(--body);
  font-size: var(--text-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso);
  margin: 0;
}

.recipe .author b {
  font-weight: 600;
  color: var(--ink);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recipes-head {
    grid-template-columns: 1fr;
  }

  .recipes-link {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .recipes-grid {
    grid-template-columns: 1fr;
  }
}
