/* ==========================================================================
   Blog — /blog/ and /blog/<slug>/ (admin/js/render.js: blog, post; js/blog.js).
   The standard blog layout approved on 2026-11-28: the site's tokens and parts
   (page title, lead, topic chips, card arrow, review avatar, share bar, footer),
   no shadows, purple as the one accent, square boxes and pictures.
   ========================================================================== */
/* parts the pages show or hide with js/blog.js: the hidden attribute wins over their display */
.bl [hidden], .ba [hidden] { display: none !important; }
.bl { padding: 168px var(--gutter) calc(var(--panel-radius) + 110px); }
.bl-wrap { max-width: var(--container-max); margin-inline: auto; }
.bl-cat { font-size: 12px; font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); }
/* page head */
.bl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px 60px; }
.bl-head .pf__title { max-width: 14ch; }
.bl-head .nf__lead { margin: 22px 0 0; max-width: 46ch; }
.bl-search { display: flex; align-items: center; gap: 12px; width: 340px; height: 56px; padding: 0 22px; border: 1px solid rgba(var(--c-navy-rgb), .2); border-radius: 0; font-size: 16px; color: var(--c-muted); transition: border-color var(--dur-fast); }
.bl-search:focus-within { border-color: var(--c-navy); }
.bl-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; color: var(--c-navy); outline: none; }
.bl-search input::placeholder { color: var(--c-muted); opacity: 1; }
.bl-search svg { flex: none; width: 20px; height: 20px; color: var(--c-navy); }
/* featured */
/* the newest article: one large picture card (design 1, 2026-11-30), curved like every other card, the portfolio card's top
   line and shades; "Latest" is a purple pill label */
.bl-hero { position: relative; display: block; margin-top: 72px; aspect-ratio: 1380 / 660; overflow: hidden; border-radius: 24px; background: var(--c-navy-2); color: var(--c-white); isolation: isolate; }
.bl-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bl-hero:hover .bl-hero__img { transform: scale(1.03); }
.bl-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(var(--c-black-rgb), .88) 0%, rgba(var(--c-black-rgb), .66) 30%, rgba(var(--c-black-rgb), .1) 62%, rgba(var(--c-black-rgb), 0) 75%), var(--overlay-top); }
.bl-hero .project-card__top { z-index: 1; padding: 30px 36px; }
.bl-hero:hover .project-card__arrow { transform: translate(3px, -3px); }
.bl-hero__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 0 48px 44px; }
.bl-hero__badge { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--c-accent); font-size: 12px; font-weight: var(--fw-bold); letter-spacing: .08em; text-transform: uppercase; }
.bl-hero__title { margin-top: 18px; max-width: 18ch; font-size: clamp(2.5rem, 4.6vw, 4.5rem); font-weight: var(--fw-light); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.bl-hero__desc { display: block; margin-top: 16px; max-width: 54ch; font-size: 19px; line-height: 1.55; color: rgba(var(--c-white-rgb), .78); }
/* topic tabs */
.bl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 96px; }   /* no line under it (2026-11-30) */
.bl-bar h2 { font-size: var(--fs-h2); font-weight: var(--fw-regular); line-height: 1.2; }
.bl-bar .pj__chips a { height: 38px; padding: 0 16px; font-size: 14px; }
/* cards: the portfolio card as it is (components.css .project-card), in the portfolio page's shape and spacing */
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 44px; }
.bl-grid .project-card { aspect-ratio: 440 / 360; }
.bl-more { display: flex; justify-content: center; margin-top: 72px; }
.bl-more .rv-cta { font: inherit; font-size: var(--fs-nav); cursor: pointer; }
.bl-empty { margin-top: 44px; font-size: 18px; color: rgba(var(--c-navy-rgb), .7); }
.bl-empty button { padding: 0; border: 0; background: none; font: inherit; color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* article: the project page's layout (design B, chosen 2026-11-29). The head, the grid, the side column, its meta
   rows, views, share and previous / next are project.css as they are; only what the article adds is here. */
.ba { padding: 160px var(--gutter) 0; }
.ba-head { max-width: var(--container-max); margin-inline: auto; }   /* from the left edge, in line with the logo */
.ba-toc { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(var(--c-navy-rgb), .16); }
.ba-toc p { font-size: 12px; font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.ba-toc ol { margin-top: 8px; }
.ba-toc a { display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 8px 0; font-size: 14px; line-height: 1.4; color: rgba(var(--c-navy-rgb), .62); transition: color var(--dur-fast); }
.ba-toc a b { padding-top: 1px; font-size: 12px; font-weight: var(--fw-medium); color: var(--c-muted); font-variant-numeric: tabular-nums; }
.ba-toc a:hover, .ba-toc a.is-on { color: var(--c-navy); }
.ba-toc a.is-on { font-weight: var(--fw-medium); }
.ba-toc a.is-on b { color: var(--c-accent); }
/* the text sits in the project page's body box (.pj__body, 30px inside the column) under the cover, so it has the
   project page's width; an article without a cover starts its text level with the side column */
.ba .pj__main > .pj__body:first-child { padding-top: 0; }
.ba-body > * + * { margin-top: 24px; }
.ba-body > p { font-size: var(--fs-body-lg); line-height: 1.7; }
.ba-body h2, .ba-body h3 { scroll-margin-top: calc(var(--header-h) + 24px); }
.ba-body h2 { margin-top: 64px; font-size: var(--fs-h2); font-weight: var(--fw-regular); line-height: 1.25; letter-spacing: -.01em; }
.ba-body h3 { margin-top: 48px; font-size: var(--fs-h4); font-weight: var(--fw-medium); line-height: 1.3; }
.ba-body h2 + *, .ba-body h3 + * { margin-top: 18px; }
.ba-body > :first-child { margin-top: 0; }
.ba-body p a, .ba-list a, .ba-take a, .post-fig figcaption a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.ba-body .post-fig { margin-top: 48px; }
.ba-body .post-fig img { display: block; width: 100%; height: auto; }
.post-fig figcaption { margin-top: 14px; font-size: 14px; line-height: 1.4; color: var(--c-muted); }
.ba-quote { margin-top: 48px !important; padding: 6px 0 6px 28px; border-left: 2px solid var(--c-accent); }
.ba-quote p { font-size: 28px; font-weight: var(--fw-light); line-height: 1.4; }
.ba-quote .m { background: linear-gradient(transparent 62%, rgba(var(--c-accent-rgb), .16) 62%) no-repeat; }
.ba-quote cite { display: block; margin-top: 14px; font-size: 14px; font-style: normal; color: var(--c-muted); }
.ba-list { display: grid; gap: 12px; padding-left: 4px; }
.ba-list li { display: flex; gap: 16px; font-size: var(--fs-body-lg); line-height: 1.6; }
.ba-list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .72em; border-radius: 50%; background: var(--c-accent); }
.ba-list--num { counter-reset: n; }
.ba-list--num li { counter-increment: n; }
.ba-list--num li::before { content: counter(n); display: grid; place-items: center; width: 30px; height: 30px; margin-top: 0; border-radius: 50%; background: var(--c-navy); color: var(--c-white); font-size: 13px; font-weight: var(--fw-medium); }
/* key takeaways: a white card, one column per point under a large faint number, like the project page's steps */
.ba-box { margin-top: 48px; padding: 40px 44px; border-radius: 24px; background: var(--c-white); }
.ba-box h3 { margin: 0; font-size: 12px; font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); }
.ba-take { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; margin-top: 22px; counter-reset: n; }
.ba-take li { counter-increment: n; font-size: 17px; line-height: 1.5; }
.ba-take li::before { content: counter(n, decimal-leading-zero); display: block; margin-bottom: 10px; font-size: 44px; font-weight: var(--fw-light); line-height: 1; color: rgba(var(--c-navy-rgb), .16); }
/* the comments and the sign-off under the text are project.css's (.pj__talk, .pj__sign), shared with project pages */
/* the article body in curved corners, as on project pages (his rule, 2026-11-29) */
.ba-body .post-fig img { border-radius: 24px; }
.ba--end { padding-bottom: calc(var(--panel-radius) + 110px); }
.ba-related { padding: 120px var(--gutter) calc(var(--panel-radius) + 110px); }
.ba-related .bl-bar { margin-top: 0; }
@media (max-width: 1024px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
}
@media (max-width: 767px) {
  .bl { padding: 112px var(--gutter) calc(var(--panel-radius) + 70px); }
  .bl-search { width: 100%; }
  .bl-hero { margin-top: 40px; aspect-ratio: 4 / 5; border-radius: 20px; }
  .bl-hero .project-card__top { padding: 22px 24px; }
  .bl-hero__body { padding: 0 24px 26px; }
  .bl-hero__title { font-size: 32px; }
  .bl-hero__desc { font-size: 16px; }
  .bl-bar { margin-top: 64px; }
  .bl-bar .pj__chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .bl-bar .pj__chips li { flex: none; }
  .bl-grid { grid-template-columns: 1fr; }
  .ba { padding-top: 121px; }
  .ba-body > p, .ba-list li { font-size: 18px; }
  .ba-body h2 { margin-top: 52px; font-size: 26px; }
  .ba-quote p { font-size: 23px; }
  .ba-box { padding: 26px 24px; }
  .ba-take { grid-template-columns: 1fr; gap: 22px; }
  .ba--end { padding-bottom: calc(var(--panel-radius) + 70px); }
  .ba-related { padding-top: 90px; }
}
