:root {
  --bg: #fbf7f1;
  --paper: #ffffff;
  --ink: #2b2521;
  --muted: #8a7e73;
  --line: #eadfd2;
  --accent: #b5462f;
  --accent-soft: #f6e3da;
  --green: #5f7f44;
  --radius: 14px;
  --serif: "Georgia", "PT Serif", "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font: 700 22px/1 var(--serif); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 5px #f4c7b5; }
nav a { text-decoration: none; margin-left: 20px; color: var(--muted); font-size: 15px; }
nav a:hover { color: var(--accent); }

.hero { background: var(--accent-soft); padding: 48px 0; margin-bottom: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero img { border-radius: var(--radius); box-shadow: 0 12px 30px rgba(80, 40, 20, .15); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--accent); margin: 0 0 8px; font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; }
h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 14px; }
h1 a { text-decoration: none; }
.lead { font-size: 19px; color: #54483f; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 11px 22px; border-radius: 999px; font-weight: 600; margin-top: 8px; }
.btn:hover { background: #983823; }

.section-title { font-size: 26px; margin: 40px 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(80, 40, 20, .10); }
.card-body { padding: 16px 20px 20px; }
.card h3 { font-size: 21px; margin: 6px 0 8px; }
.card h3 a { text-decoration: none; }
.card p { margin: 0 0 10px; font-size: 15.5px; color: #54483f; }
.meta { font-size: 14px; color: var(--muted); }
.tag { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; font-size: 13px; margin-right: 6px; }
.facts { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.list { padding-left: 20px; }
.list li { margin: 6px 0; }
.list a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.list a:hover { color: var(--accent); }

.subscribe { background: var(--paper); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 28px; margin: 48px 0; text-align: center; }
.subscribe h2 { margin: 0 0 6px; }
.subscribe p { margin: 0; color: var(--muted); }

.recipe { max-width: 860px; padding-top: 28px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--accent); text-decoration: none; }
.recipe-img { width: 100%; border-radius: var(--radius); margin: 20px 0; }
.recipe-facts { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.recipe-facts div { padding: 14px; border-left: 1px solid var(--line); }
.recipe-facts div:first-child { border-left: 0; }
.recipe-facts b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.recipe-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 36px; margin-top: 12px; }
.ingredients { list-style: none; padding: 0; }
.ingredients li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ingredients input { accent-color: var(--green); margin-right: 8px; }
.steps { padding-left: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; margin-bottom: 18px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.tip { background: #eef3e6; border-left: 4px solid var(--green); padding: 14px 18px; border-radius: 8px; }
.pager { display: flex; justify-content: space-between; gap: 20px; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.pager a { color: var(--accent); text-decoration: none; }
.pager .right { margin-left: auto; text-align: right; }

.about { max-width: 720px; padding-top: 28px; }
.notfound { text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: 96px; color: var(--accent); margin: 0; }

.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 28px 0; font-size: 14px; background: var(--paper); }
.site-footer p { margin: 4px 0; }

@media (max-width: 760px) {
  .hero-grid, .split, .recipe-grid { grid-template-columns: 1fr; }
  .hero { padding: 28px 0; }
  nav a { margin: 0 14px 0 0; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
}

/* разделы, архив */
.tag { text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.chip { text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 14px; }
.chip span { color: var(--muted); margin-left: 4px; }
.chip:hover, .chip.active { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.more { text-align: center; margin: 32px 0 0; }
.archive-page { max-width: 860px; padding-top: 28px; }
.archive-month { font-size: 22px; margin: 36px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.archive { list-style: none; padding: 0; margin: 0; }
.archive li { display: flex; align-items: baseline; gap: 14px; padding: 7px 0; }
.archive time { color: var(--muted); font-size: 14px; min-width: 22px; text-align: right; }
.archive li > a:not(.tag) { flex: 1; text-decoration: none; }
.archive li > a:not(.tag):hover { color: var(--accent); }
.footer-cats a { color: var(--muted); text-decoration: none; }
.footer-cats a:hover { color: var(--accent); }
