/* Blog: index cards and article pages in the uix look.
   Index loads uix.css + blog.css. Articles load site.css + uix.css + uix-inner.css + blog.css,
   like the project pages, with a narrower reading column. */

/* index: numbered text cards on the grey band */
.blog-page .posts { align-items: stretch; }
.blog-page .post { height: 100%; border-color: #EBEBEB; box-shadow: 0 5px 25px rgba(35, 35, 50, 0.1); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.blog-page .post:hover { box-shadow: 0 1px 8px rgba(35, 35, 50, 0.1); transform: translateY(-2px); }
.blog-page .post-body { flex: 1; }
.post-num { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--cyan); }
.post-num::after { content: ""; display: block; width: 35px; height: 1px; margin-top: 18px; background: var(--cyan); }
.blog-page .post h2 { margin-top: 18px; font-family: var(--serif); font-size: 28px; line-height: 1.2; font-weight: 400; text-wrap: balance; }
.blog-page .post h2 a { transition: color .3s var(--ease); }
.blog-page .post h2 a:hover { color: var(--teal); }
.blog-page .post-body p { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.blog-page .blog-head p { max-width: 640px; margin-inline: auto; font-size: 16px; letter-spacing: 0; line-height: 1.6; text-wrap: pretty; }

/* article pages */
.article .crumbs ol { display: block; text-align: center; }
.article .crumbs li { display: inline; }
.article main:has(> .story) > .page-head h1 { max-width: 900px; margin-inline: auto; font-size: 56px; text-wrap: balance; }
.article .story { max-width: 760px; padding-top: 64px; }
.article .story section { margin-top: 48px; }
.article .story > section:first-child { margin-top: 0; }
.article .story section > h2, .article .story section > p { max-width: none; }
.article .story h2 { font-size: 34px; }
.article .story p { margin-top: 14px; font-size: 17px; line-height: 1.7; }
.article .story section > p:first-of-type { margin-top: 14px; }
.article .story p a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--cyan); transition: color .3s var(--ease); }
.article .story p a:hover { color: var(--accent); }
.article .reading { margin-top: 64px; padding: 28px 30px; background: var(--surface); border: 1px solid var(--line); }
.article .reading h2 { font-size: 26px; }
.article .reading h2::before { display: none; }
.article .reading ul { margin: 14px 0 0; padding: 0; list-style: none; }
.article .reading li { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.article .reading li a { color: var(--text); border-bottom: 1px solid var(--cyan); transition: color .3s var(--ease); }
.article .reading li a:hover { color: var(--accent); }
.article .reading .ext { font-size: 12px; color: var(--muted); }
.article .project-pager { margin-top: 64px; }
.article .project-pager b { font-size: 24px; }

@media (max-width: 767px) {
  .article main:has(> .story) > .page-head h1 { font-size: 40px; }
  .article .story { padding-top: 44px; }
  .article .story h2 { font-size: 28px; }
  .article .story p { font-size: 16px; }
  .article .reading { padding: 22px 20px; }
  .blog-page .post h2 { font-size: 26px; }
}
