/* ============================================================
   v6-blog.css — индекс блога (page-blog) и страницы статей (page-article)
   Подключается на шаблонах page-blog и page-article (см. functions.php).
   Токены из v6.css (--orchid / --amber / --ink).
   ============================================================ */

/* — общие helpers — */
/* Индекс 1:1 с живым goandstudy.com/blog (Tilda t-feed, zoom=1, замеры computed):
   серый фон #EFEFEF, hero 52/700 КАПС (2-я строка #B15ECC), sub 24/400/36,
   пилюли-фильтры 16/500 r30 (active #B15ECC), карточки 360 r30 (фото 1.3 +
   бейдж rgba(0,0,0,.5), дата/бейдж 10/600 ls1, title 20/700/27, excerpt 14/400),
   кнопка «Загрузить еще» #B15ECC r44 16/600 hover #ce7fe8. */
.blog-page { --blog-line: #ECE7F0; background: #EFEFEF; }
.blog-page .breadcrumb { margin: 0; font-size: 14px; color: #6E6E73; }
.blog-page .breadcrumb a { color: #6E6E73; text-decoration: none; }
.blog-page .breadcrumb a:hover { color: var(--orchid); }
.blog-page .breadcrumb span { margin: 0 8px; opacity: 0.5; }
.blog-crumbs-band { background: #fff; padding: 24px 0 28px; }

/* — HERO индекса — */
.blog-hero { padding: 72px 0 8px; background: transparent; text-align: center; }
.blog-hero__title {
  font-family: 'ArtegraSans', Arial, sans-serif; font-weight: 700;
  font-size: 52px; line-height: 60px; letter-spacing: 0; text-transform: uppercase;
  margin: 0 0 26px; color: #333333;
}
.blog-hero__l2 { color: #B15ECC; }
.blog-hero__lead { font-size: 24px; font-weight: 400; line-height: 36px; color: #333333; margin: 0 auto; }

/* — фильтр категорий — */
.blog-filter { display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center; margin: 48px auto 8px; max-width: 1160px; }
.blog-filter__pill {
  font-family: 'ArtegraSans', Arial, sans-serif; font-size: 16px; font-weight: 500;
  color: #333333; background: #fff; border: 0; border-radius: 30px;
  padding: 7px 18px; min-height: 36px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.blog-filter__pill:hover { background: #f3e5f9; }
.blog-filter__pill.is-active { background: #B15ECC; color: #fff; }

/* — список статей — */
.blog-list { padding: 56px 0 80px; }
.blog-list .container { max-width: 1200px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 360px); gap: 40px; justify-content: center; }
.blog-card {
  display: flex; flex-direction: column;
  background: #FFFFFF; border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  text-decoration: none; overflow: hidden;
}
.blog-card.is-hidden { display: none; }
.blog-card__img {
  aspect-ratio: 1.3; border-radius: 30px 30px 0 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  position: relative;
}
.blog-card__cat {
  position: absolute; top: 16px; left: 16px;
  background: rgba(0, 0, 0, 0.5); border-radius: 3px; padding: 7px 8px;
  font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: #fff;
}
.blog-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 30px; }
.blog-card__date { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: rgba(0, 0, 0, 0.5); }
.blog-card__title { font-family: 'ArtegraSans', Arial, sans-serif; font-size: 20px; font-weight: 700; line-height: 27px; margin: 0; color: #333333; }
.blog-card__excerpt { font-size: 14px; font-weight: 400; line-height: 1.55; color: #333333; margin: 0; }

/* — «Загрузить еще» — */
.blog-more-wrap { display: flex; justify-content: center; margin: 56px 0 0; }
.blog-more {
  font-family: 'ArtegraSans', Arial, sans-serif; font-size: 16px; font-weight: 600;
  color: #fff; background: #B15ECC; border: 0; border-radius: 44px;
  padding: 18px 46px; cursor: pointer; transition: background 0.2s ease-in-out;
}
.blog-more:hover { background: #ce7fe8; }

@media (max-width: 1220px) { .blog-grid { grid-template-columns: repeat(2, 360px); } }
@media (max-width: 820px) {
  .blog-grid { grid-template-columns: minmax(0, 400px); }
  .blog-hero__title { font-size: 30px; line-height: 36px; }
  .blog-hero__lead { font-size: 17px; line-height: 26px; }
  .blog-hero__lead br { display: none; }
  .blog-filter { gap: 8px 10px; }
}

/* ============================================================
   Страница статьи (page-article / .blog-article)
   Тело — Gutenberg-блоки из inc/blog-articles/{slug}.html.
   ============================================================ */
.blog-article {
  max-width: 760px; margin: 0 auto; padding: 28px 20px 80px;
}
.blog-article__crumb { font-size: 14px; color: #6E6E73; margin-bottom: 24px; }
.blog-article__crumb a { color: #6E6E73; text-decoration: none; }
.blog-article__crumb a:hover { color: var(--orchid); }
.blog-article__crumb span { margin: 0 8px; opacity: 0.5; }

.blog-article > .wp-block-post-title,
.blog-article > h1 {
  font-family: 'ArtegraSans', Arial, sans-serif; font-weight: 800;
  font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 28px; color: var(--ink);
}
.blog-article .wp-block-post-content > * { margin-top: 0; margin-bottom: 20px; }
.blog-article h2 {
  font-size: clamp(24px, 3.5vw, 34px); line-height: 1.2; letter-spacing: -0.01em;
  margin: 44px 0 16px; color: var(--ink);
}
.blog-article h3 {
  font-size: 20px; line-height: 1.3; margin: 32px 0 12px; color: var(--ink);
}
.blog-article p { font-size: 17px; line-height: 1.7; color: #2E2E33; margin: 0 0 20px; }
.blog-article ul, .blog-article ol { font-size: 17px; line-height: 1.7; color: #2E2E33; padding-left: 24px; margin: 0 0 22px; }
.blog-article li { margin-bottom: 10px; }
.blog-article li::marker { color: var(--orchid); }
.blog-article a { color: var(--orchid); text-decoration: underline; text-underline-offset: 2px; }
.blog-article strong { color: var(--ink); }
.blog-article blockquote {
  margin: 28px 0; padding: 16px 22px; border-left: 3px solid var(--orchid);
  background: #FBF9FD; border-radius: 0 12px 12px 0;
}
.blog-article blockquote p { margin: 0; font-size: 17px; }
.blog-article .wp-block-table { margin: 24px 0; overflow-x: auto; }
.blog-article table { width: 100%; border-collapse: collapse; font-size: 15px; }
.blog-article th, .blog-article td { border: 1px solid var(--blog-line); padding: 10px 14px; text-align: left; }
.blog-article th { background: #FBF9FD; font-weight: 700; }
.blog-article .wp-block-buttons { margin: 28px 0; }
.blog-article__back { margin-top: 48px; }
.blog-article__back a { color: var(--orchid); text-decoration: none; font-weight: 500; /* 600 = ложный курсив */ }
.blog-article__back a:hover { text-decoration: underline; }
