/* Blog list and article pages. Uses the tokens from styles.css. */
.blog, .article { padding: 56px 16px 96px; }
.blog { max-width: 1120px; margin: 0 auto; }
.blog__head { max-width: 680px; }
.blog__title, .article__title { margin: 8px 0 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
.blog__lead, .article__lead { margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: var(--body); }
.blog__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.blog__cat { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--body); text-decoration: none; }
.blog__cat:hover { color: var(--ink); border-color: var(--ink); }
.blog__cat[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.blog__empty { margin-top: 48px; color: var(--body); }
.blog__pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; }
.blog__pager-info { font-size: 14px; color: var(--body); }

.post-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); transition: border-color .2s; }
.post-card:hover { border-color: var(--line-strong); }
.post-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.post-card__media { aspect-ratio: 16 / 9; background: var(--orange-tint); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__placeholder { display: block; width: 100%; height: 100%; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.post-card__cat { margin: 0; font-size: 13px; font-weight: 600; color: var(--orange-text); }
.post-card__title { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.post-card__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.post-card__meta { margin: auto 0 0; padding-top: 8px; font-size: 13px; color: var(--body); }

.article { max-width: 760px; margin: 0 auto; }
.article__preview { margin: 0 0 24px; padding: 10px 14px; border: 1px dashed var(--orange-border); border-radius: 10px; background: var(--orange-tint); font-size: 14px; color: var(--orange-text); }
.article__crumbs { display: flex; gap: 8px; font-size: 14px; }
.article__crumbs a { color: var(--orange-text); text-decoration: none; font-weight: 600; }
.article__crumbs span { color: var(--body); }
.article__byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.article__byline p { display: flex; flex-direction: column; margin: 0; font-size: 14px; color: var(--body); }
.article__byline b { color: var(--ink); font-weight: 600; }
.article__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.article__avatar--lg { width: 56px; height: 56px; }
.article__cover { display: block; width: 100%; margin-top: 32px; border-radius: 12px; }
.article__body { margin-top: 40px; font-size: 18px; line-height: 1.75; color: var(--ink); }
.article__body > * { margin: 0 0 20px; }
.article__body h2 { margin-top: 44px; font-size: 28px; line-height: 1.25; letter-spacing: -0.01em; }
.article__body h3 { margin-top: 32px; font-size: 22px; line-height: 1.3; }
.article__body a { color: var(--orange-text); }
.article__body ul, .article__body ol { padding-left: 24px; }
.article__body li + li { margin-top: 8px; }
.article__body blockquote { padding-left: 20px; border-left: 3px solid var(--orange); color: var(--body); }
.article__body img { max-width: 100%; height: auto; border-radius: 10px; }
.article__body code { padding: 2px 6px; border-radius: 6px; background: #F4F4F2; font-size: .9em; }
.article__body hr { border: 0; border-top: 1px solid var(--line); }
.article__author { display: flex; gap: 16px; margin-top: 48px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.article__author-name { margin: 0; font-weight: 700; color: var(--ink); }
.article__author-name span { margin-left: 8px; font-weight: 500; color: var(--body); font-size: 14px; }
.article__author-bio { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.article__cta { margin-top: 48px; padding: 32px; border-radius: 16px; background: var(--orange-tint); text-align: center; }
.article__cta h2 { margin: 0; font-size: 24px; line-height: 1.3; color: var(--ink); }
.article__cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.article__related { margin-top: 64px; }
.article__related-title { margin: 0; font-size: 24px; color: var(--ink); }
.article__related .blog__grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 20px; }

@media (max-width: 960px) { .blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .blog__grid { grid-template-columns: 1fr; }
  .article__body { font-size: 17px; }
  .article__author { flex-direction: column; }
}

/* Author pages */
.author { display: flex; gap: 24px; align-items: flex-start; margin-top: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.author__photo { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author__photo--empty { display: grid; place-items: center; background: var(--orange-tint); color: var(--orange-text); font-size: 36px; font-weight: 700; }
.author__name { margin: 0; font-size: clamp(30px, 4.5vw, 40px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.author__role { margin: 6px 0 0; font-size: 16px; font-weight: 600; color: var(--orange-text); }
.author__bio { max-width: 640px; margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--body); }
.author__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.author__links a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.author__links a:hover { border-color: var(--ink); }
.author__heading { margin: 40px 0 0; font-size: 22px; color: var(--ink); }
.article__author-link, .article__author-name a { color: inherit; text-decoration: none; }
.article__author-link:hover, .article__author-name a:hover { color: var(--orange-text); }
@media (max-width: 640px) { .author { flex-direction: column; } }
