
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --text: #2A2520;
  --muted: #6B6259;
  --line: #E6DFD4;
  --accent: #B85C38;
  --accent-soft: #F4E4D6;
}
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.site-header {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
}
.site-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.site-header h1 a { color: var(--text); }
.site-header h1 a:hover { text-decoration: none; color: var(--accent); }
.site-header .tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  font-style: italic;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.recipe-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: var(--accent);
  text-decoration: none;
}
.recipe-card .thumb {
  aspect-ratio: 4/3;
  background: var(--accent-soft);
  overflow: hidden;
}
.recipe-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe-card .thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  color: var(--accent);
  font-style: italic;
}
.recipe-card .body {
  padding: 1.1rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.recipe-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  color: var(--text);
  line-height: 1.25;
}
.recipe-card .summary {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.recipe-card .meta {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Recipe page */
article.recipe {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
article.recipe .back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
article.recipe h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
article.recipe .pub-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
  font-style: italic;
}
article.recipe .hero {
  margin: 0 -1.5rem 2rem;
  border-radius: 0;
}
@media (min-width: 720px) {
  article.recipe .hero { margin: 0 0 2.5rem; border-radius: 12px; overflow: hidden; }
}
article.recipe .hero img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
article.recipe h2, article.recipe h3 {
  font-family: 'Playfair Display', Georgia, serif;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}
article.recipe ul, article.recipe ol {
  padding-left: 1.5rem;
}
article.recipe li { margin-bottom: 0.4rem; }
article.recipe p { margin: 0 0 1.2rem; }
article.recipe figure { margin: 2rem 0; }
article.recipe figure img { border-radius: 10px; }
article.recipe .video {
  position: relative;
  margin: 2rem 0;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 10px;
  overflow: hidden;
}
article.recipe .video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

footer.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
footer.site-footer a { color: var(--muted); }
footer.site-footer a:hover { color: var(--accent); }
