/* Blog list + article page (bento style) and the shared `.prose` typography used by the article
   page and the admin editor preview (Markdown rendered by assets/js/lib/markdown.js). */

/* ---------- prose ---------- */
.prose { font-size: 17px; line-height: 1.95; color: #24262C; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; line-height: 1.4; margin-top: 1.6em; color: var(--ink); }
.prose h3 { font-size: 21px; line-height: 1.45; margin-top: 1.4em; color: var(--ink); }
.prose h4 { font-size: 18px; margin-top: 1.2em; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--green); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--green); }
.prose blockquote { border-inline-start: 4px solid var(--mint); background: var(--green-2); border-radius: 14px; border-start-start-radius: 0; border-end-start-radius: 0; padding: 14px 18px; color: #1E3B33; }
.prose blockquote > * + * { margin-top: .6em; }
.prose code { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--canvas-2); border-radius: 6px; padding: 1px 6px; }
.prose hr { margin: 2em 0; border-top: 1px dashed var(--line-2); }

/* ---------- blog list ---------- */
.blog-head { padding: 40px 0 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.blog-head h1 { font-size: 52px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.blog-head p { color: var(--muted); font-size: 18px; font-weight: 300; margin-top: 8px; max-width: 620px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-grid > .skel-card { min-height: 282px; } /* same height as an article card */
.blog-grid > .empty { grid-column: 1 / -1; }
.acard { position: relative; background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; min-width: 0; }
.acard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.acard .cv { aspect-ratio: 16 / 9; background: var(--grad-green); display: grid; place-items: center; overflow: hidden; }
.acard .cv img { width: 100%; height: 100%; object-fit: cover; }
.acard .cv .ph { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .7); color: var(--green); }
.acard .cv .ph svg.i { width: 28px; height: 28px; }
.acard .bd { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.acard h2 { font-size: 19px; line-height: 1.45; font-weight: 600; }
.acard h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.acard p { font-size: 14.5px; color: var(--muted); }
.acard .meta { margin-top: auto; padding-top: 8px; display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.acard .meta span { display: inline-flex; align-items: center; gap: 5px; }
.acard .meta svg.i { width: 15px; height: 15px; }
/* featured (first) article */
.acard.feat { grid-column: span 3; flex-direction: row; background: var(--grad-dark); color: #fff; border: 0; min-height: 300px; }
.acard.feat .cv { flex: 1.1; aspect-ratio: auto; background: rgba(255, 255, 255, .06); order: 2; }
.acard.feat .cv .ph { background: rgba(255, 255, 255, .1); color: var(--mint); }
.acard.feat .bd { flex: 1; padding: 34px; justify-content: center; gap: 12px; }
.acard.feat h2 { font-size: 30px; line-height: 1.35; }
.acard.feat p { color: var(--on-dark-muted); font-size: 16px; }
.acard.feat .meta { color: var(--on-dark-muted); margin-top: 8px; }
.acard.feat .eyebrow { background: rgba(98, 214, 178, .14); color: var(--mint); width: fit-content; }
.acard.feat .eyebrow .dot { background: var(--mint); }

/* ---------- article page ---------- */
.art { max-width: 820px; margin: 0 auto; }
.art-head { padding: 12px 0 24px; }
.art-head h1 { font-size: 44px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; margin-top: 14px; }
.art-head .lede { font-size: 19px; color: var(--muted); font-weight: 300; margin-top: 12px; }
.art-meta { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 20px; font-size: 14px; color: var(--muted); }
.art-meta b { color: var(--ink); font-weight: 500; }
.art-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.art-cover { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-bottom: 28px; background: var(--canvas-2); }
.art-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.art-body { background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); padding: 40px 48px; }
.art-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.tile.art-cta { flex-direction: row; margin-top: 36px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px 28px; }
.art-cta h2 { font-size: 22px; } .art-cta p { color: var(--on-dark-muted); font-size: 15px; margin-top: 4px; }
.art-cta-acts { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acard.feat { grid-column: span 2; }
}
@media (max-width: 640px) {
  .blog-head { padding: 22px 0 18px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .blog-head h1 { font-size: 34px; }
  .blog-head p { font-size: 16px; }
  .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .acard.feat { grid-column: auto; flex-direction: column; min-height: 0; }
  .acard.feat .cv { order: 0; aspect-ratio: 16 / 9; flex: none; }
  .acard.feat .bd { padding: 20px; }
  .acard.feat h2 { font-size: 22px; }
  .acard { border-radius: 20px; }
  .art-head h1 { font-size: 30px; }
  .art-head .lede { font-size: 17px; }
  .art-body { padding: 22px 18px; border-radius: 20px; }
  .prose { font-size: 16px; line-height: 1.9; }
  .prose h2 { font-size: 22px; }
  .art-cover { border-radius: 20px; }
}
