/* Estilo provisional y neutro: el diseño definitivo vendrá después. */
:root {
  --bg: #fbfaf8; --surface: #fff; --text: #222; --muted: #6b6560; --line: #e8e4de; --accent: #b4532a;
  --radius: 12px; --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #171514; --surface: #211f1d; --text: #eee9e3; --muted: #a39b93; --line: #36322e; --accent: #e07a4f; }
}
* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
main { max-width: var(--max); margin: 0 auto; padding: 0 16px 64px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.2; }

.site-header { max-width: var(--max); margin: 0 auto; padding: 20px 16px 0; border-bottom: 1px solid var(--line); }
.site-header .brand { display: inline-block; margin-bottom: 14px; }
.cat-nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; font-size: 14px; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; text-decoration: none; color: var(--muted); padding-bottom: 12px; border-bottom: 2px solid transparent; }
.cat-nav a:hover, .cat-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.brand { font: 600 22px Georgia, serif; text-decoration: none; }
.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 32px 16px; border-top: 1px solid var(--line); }

.hero { padding: 40px 0 16px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); margin: 0 0 6px; }
.hero p { color: var(--muted); margin: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 28px; }
.tag { font-size: 13px; text-decoration: none; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.tag:hover, .tag.active { border-color: var(--accent); color: var(--accent); }

.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 14px 16px 18px; }
.card h2 { font-size: 20px; margin: 0 0 4px; }
.kicker { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 4px; }
.meta { color: var(--muted); font-size: 14px; margin: 0; }
.empty { color: var(--muted); padding: 48px 0; }

.recipe { max-width: 880px; margin: 0 auto; }
.back { display: inline-block; margin: 0 0 8px; color: var(--muted); font-size: 14px; text-decoration: none; }
.breadcrumb { display: flex; gap: 8px; margin: 24px 0 8px; color: var(--muted); font-size: 14px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.recipe-header h1 { font-size: clamp(30px, 5vw, 46px); margin: 8px 0 10px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 20px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.facts li { font-weight: 600; }
.facts span { display: block; font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.recipe-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.recipe-body { display: grid; grid-template-columns: 280px 1fr; gap: 40px; margin-top: 32px; }
@media (max-width: 760px) { .recipe-body { grid-template-columns: 1fr; gap: 16px; } }
.recipe-body h2 { font-size: 22px; margin: 0 0 12px; }
.ingredients ul { list-style: none; padding: 0; margin: 0; }
.ingredients li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ingredients .qty { font-weight: 600; }
.ingredients small, .steps h3 small { color: var(--muted); font-weight: 400; font-family: system-ui, sans-serif; font-size: 13px; }
.steps ol { padding-left: 22px; margin: 0; }
.steps li { margin-bottom: 20px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.steps h3 { font-size: 18px; margin: 0 0 4px; }
.steps p { margin: 0; }
.tips { margin-top: 28px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tips ul { margin: 0; padding-left: 18px; }
