/* Recipe Styles */

.recipe, .recipe-index {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

/* ── Recipe content page ── */
.recipe-content {
  line-height: 1.75;
}

.recipe-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.recipe-content h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.recipe-content h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.recipe-content h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.recipe-content p {
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  color: var(--text);
}

.recipe-content ul, .recipe-content ol {
  margin-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.recipe-content li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.recipe-content strong {
  font-weight: 600;
}

.recipe-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transition: text-decoration-color 0.15s;
}

.recipe-content a:hover {
  text-decoration-color: var(--text);
}

/* ── Recipe index page ── */
.recipe-index h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ── Recipe grid ── */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
}

.recipe-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.recipe-card a {
  text-decoration: none;
  color: var(--text);
}

.recipe-card h3 {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  transition: color 0.15s;
}

.recipe-card:hover h3 {
  color: var(--muted);
}

.recipe-card p {
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ── Back link ── */
.back-link {
  margin-top: 3rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }
}
