/* Блог: страница блога (/articles/, рубрики) и страница статьи (/articles/<адрес>/). Поверх site.css; карточки — классы .posts/.post
   с главной. Подключается шаблонами блога плагина (templates/blog.php, templates/post.php). Классы — bl- и art-. */

/* ---------- страница блога ---------- */
.bl-head{background:var(--ink);color:var(--ivory);padding:calc(var(--hdr,96px) + clamp(40px,6vw,88px)) 0 clamp(40px,6vw,72px)}
.bl-head .wrap{display:grid;gap:20px}
.bl-head h1{font-size:clamp(38px,4.6vw,60px);line-height:1.1}
.bl-head .lead{font-size:clamp(18px,1.6vw,22px);line-height:1.55;max-width:52ch;opacity:.9}
.bl-cats{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.bl-cats a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;box-shadow:inset 0 0 0 1px rgba(196,162,102,.5);font-size:15px;text-decoration:none;color:var(--ivory);transition:background-color .25s,color .25s}
.bl-cats a:hover{background:rgba(232,221,198,.08)}
.bl-cats a[aria-current="page"]{background:var(--ivory);color:var(--ink-deep);box-shadow:none}
.bl-list .posts{row-gap:clamp(32px,4vw,48px)}
.bl-empty{font-size:clamp(18px,1.5vw,21px);color:var(--espresso-soft);max-width:52ch}
.bl-pages{display:flex;flex-wrap:wrap;gap:10px;margin-top:clamp(32px,4vw,48px)}
.bl-pages a,.bl-pages span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 14px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--oyster);text-decoration:none}
.bl-pages .current{background:var(--ink);color:var(--ivory);box-shadow:none}

/* ---------- страница статьи ---------- */
.art-head{padding:calc(var(--hdr,96px) + clamp(32px,5vw,64px)) 0 0}
.art-head .wrap{display:grid;gap:18px;max-width:1000px}
.art-meta{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px;letter-spacing:.04em;color:var(--espresso-soft)}
.art-meta a{color:var(--gold-deep);text-decoration:none}
.art-meta a:hover{text-decoration:underline}
.art-head h1{font-size:clamp(34px,4.4vw,56px);line-height:1.12;max-width:22ch}
.art-lead{font-size:clamp(19px,1.7vw,24px);line-height:1.5;color:var(--espresso-soft);max-width:48ch}
.art-cover{margin:clamp(12px,2vw,24px) 0 0;border-radius:16px;overflow:hidden;aspect-ratio:16/9;background:var(--oyster);box-shadow:0 30px 60px -32px rgba(57,42,36,.55)}
.art-cover img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.82) sepia(.08)}

/* текст статьи: строка до 68 знаков, спокойная типографика для длинного чтения */
/* шапка, текст и автор — в одной колонке шириной 1000 px, левый край общий; сама строка текста — до 68 знаков */
.art-body{max-width:1000px;padding-block:clamp(40px,6vw,72px) clamp(24px,4vw,40px);font-size:clamp(18px,1.35vw,20px);line-height:1.75}
.art-body>*{max-width:68ch}
.art-body>*+*{margin-top:1.1em}
.art-body h2{margin-top:1.9em;font-size:clamp(24px,2.3vw,30px);line-height:1.25}
.art-body h3{margin-top:1.6em;font-size:clamp(20px,1.8vw,24px);line-height:1.3}
.art-body a{color:var(--gold-deep)}
.art-body blockquote{margin:1.6em 0;padding-left:clamp(18px,2.6vw,28px);border-left:2px solid var(--gold);font-size:1.18em;line-height:1.55;color:var(--ink)}
.art-body ul,.art-body ol{padding-left:1.2em}
.art-body li+li{margin-top:.4em}
.art-body li::marker{color:var(--gold)}
.art-body img{max-width:100%;height:auto;border-radius:12px}

/* автор */
.art-author{max-width:1000px;display:flex;gap:18px;align-items:center;padding-bottom:clamp(40px,6vw,72px)}
.art-author>div{display:grid;gap:2px;padding-left:18px;border-left:1px solid var(--oyster)}
.art-author b{font-weight:500;font-size:18px}
.art-author span{font-size:15px;color:var(--espresso-soft);line-height:1.45}
.art-author a{font-size:15px;color:var(--gold-deep);margin-top:4px}
.art-ava{flex:none;width:72px;height:72px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 2px var(--gold-light)}
.art-ava img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 22%}

/* еще статьи */
.art-more{background:var(--ivory)}
.art-more-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px 32px;margin-bottom:clamp(24px,3.4vw,40px)}
.art-more-head h2{font-size:clamp(28px,3vw,40px);line-height:1.15}

/* в блоге отрывок карточки — до трех строк и на невысоких ноутбуках (на главной там одна строка — экран статей) */
.bl-list .post p{-webkit-line-clamp:3}
/* на телефоне: в блоге статьи столбиком (на главной и в «Еще статьи» — лента вбок) */
@media (max-width:860px){
  .bl-list .posts{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible;margin-inline:0;padding:0}
  .bl-list .post{display:grid;flex:none}
}
