﻿.catalog, .recipe-nav {
  --green: #233e31;
  --line: #cfcdb9;
  --paper: #f8f3e8;
}
.catalog h1 { margin-top: 1.75rem; font-size: clamp(2.55rem, 6vw, 4.65rem); }
.catalog h1 em { margin-top: .25em; }
.catalog-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin: 1.6rem 0;
}
.catalog-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .55rem .8rem;
  border: 1px solid var(--green);
  border-radius: .45rem;
  color: var(--green);
  background: var(--paper);
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  font-weight: 650;
}
.catalog-link:hover { background: #e8eadc; }
.catalog-nav .catalog-link[aria-current="page"], .recipe-card .catalog-link {
  color: var(--paper);
  background: var(--green);
}
.recipe-card .catalog-link:hover { background: #365647; }
.catalog-section { margin-top: 1.6rem; }
.catalog-section[hidden] { display: none; }
.category-note { max-width: 65ch; margin-bottom: 1rem; }
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.recipe-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
}
.recipe-card h3 { margin: 0; color: var(--green); font: 500 1.34rem/1.2 var(--serif); }
.recipe-card p { margin: 0; }
.recipe-card .catalog-link { margin-top: auto; }
.recipe-card .photo { width: 100%; max-width: none; aspect-ratio: 1.55; border-radius: .55rem; }
.recipe-card .photo img { object-position: center 56%; }
.photo-placeholder { display: grid; place-items: center; color: #425043; background: #eeeee1; }
.photo-placeholder span { max-width: 16ch; padding: .6rem; font-weight: 600; text-align: center; }
.recipe-footer { max-width: 1060px; margin: -1rem auto 2rem; padding: 0 clamp(1.2rem, 5.5vw, 4.25rem); }
.recipe-nav { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }
.catalog .reading { margin-top: 2rem; }
.catalog .reading a { display: inline-block; min-height: 32px; margin-right: .8rem; }
@media (max-width: 790px) { .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .recipe-footer { margin: 1rem auto; } }
@media (max-width: 520px) { .recipe-grid { grid-template-columns: 1fr; } }
@media print { .recipe-footer { display: none; } }
