:root { --max: 980px; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; line-height:1.55; color:#111; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.site-header { border-bottom: 1px solid #eee; padding: 14px 0; background:#fff; position: sticky; top:0; }
.site-header .wrap { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand { text-decoration:none; color:inherit; }
.brand-title { font-weight:800; letter-spacing:.2px; }
.nav a { color:inherit; text-decoration:none; margin-left:14px; opacity:.85; }
.nav a:hover { opacity:1; text-decoration:underline; }
.site-footer { border-top: 1px solid #eee; margin-top: 40px; padding: 20px 0; color:#555; }

h1,h2,h3 { line-height:1.2; }
.small { font-size: 13px; }

.hero { margin: 18px 0 22px; }
.hero p { margin: 8px 0 0; color:#444; }

.search { margin: 18px 0 20px; }
.search input { width:100%; padding: 12px 14px; border:1px solid #ddd; border-radius: 12px; font-size: 16px; }

.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { display:block; border: 1px solid #e7e7e7; border-radius: 14px; padding: 14px; text-decoration:none; color:inherit; background:#fff; }
.card:hover { border-color:#cfcfcf; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.card img { width:100%; height:160px; object-fit:cover; border-radius: 10px; margin-bottom: 10px; background:#f4f4f4; }
.card h3 { margin: 6px 0 8px; font-size: 18px; }
.badge { display:inline-block; border: 1px solid #ddd; padding: 4px 10px; border-radius: 999px; font-size: 13px; color:#333; background:#fafafa; }

.recipe-hero { width:100%; max-height: 380px; object-fit: cover; border-radius: 14px; margin-top: 12px; border: 1px solid #eee; background:#f4f4f4; }
.recipe-actions { margin-top: 10px; }
.btn { border: 1px solid #ddd; background:#fff; padding: 8px 12px; border-radius: 10px; cursor:pointer; }
.btn:hover { border-color:#cfcfcf; }

@media print {
  .site-header, .site-footer, .recipe-actions, .nav { display:none !important; }
  body { color:#000; }
  a { text-decoration:none; color:#000; }
  .recipe-hero { max-height: none; }
}
