/* BLOG: data-driven entries, aligned containers, natural text heights. */
.blog-page, .post-page { padding-top: 3.6rem; }
.blog-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; padding-bottom: 3.5rem; }
.blog-heading h1 { margin-top: 1rem; }
.blog-intro { color: var(--muted); max-width: 29rem; font-size: 1.125rem; border-left: 1px solid var(--accent); padding-left: 1.5rem; }
.blog-index-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.blog-index-heading h2 { font: 400 1.5rem/1.3 var(--font-display); letter-spacing: -.02em; }
.blog-entries { display: flex; flex-direction: column; gap: 1.25rem; }
.blog-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.blog-card.has-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.blog-card-image { width: 100%; height: 100%; min-height: 16rem; object-fit: cover; border-right: 1px solid var(--line); }
.blog-card-copy { min-width: 0; padding: clamp(1.5rem, 3vw, 2.5rem); }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; font-size: .8125rem; color: var(--subtle); }
.example-label { padding: .15rem .55rem; border: 1px solid var(--line); border-radius: 99px; font-size: .6875rem; letter-spacing: .03em; }
.blog-card h3 { font: 400 clamp(1.75rem, 3vw, 2.6rem)/1.2 var(--font-display); letter-spacing: -.025em; margin-top: 1rem; overflow-wrap: anywhere; }
.blog-card h3 a:hover { color: var(--accent-bright); }
.blog-subtitle { color: var(--muted); margin-top: 1rem; max-width: 65ch; overflow-wrap: anywhere; }
.blog-read { margin-top: 1.5rem; font-size: .875rem; }
.blog-empty { border: 1px solid var(--line); border-radius: var(--radius); padding: 3rem; color: var(--muted); }
.post-page { max-width: 56rem; }
.post-back { display: inline-block; color: var(--accent-bright); font-size: .875rem; margin-bottom: 2.5rem; }
.post-heading { padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.post-heading h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-top: 1.25rem; overflow-wrap: anywhere; }
.post-heading .blog-subtitle { font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.post-byline { color: var(--subtle); font-size: .875rem; margin-top: 1.5rem; }
.post-image { margin-top: 2.5rem; }
.post-image img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.post-content { padding-top: 2.5rem; overflow-wrap: anywhere; }
.post-content > * + * { margin-top: 1.3rem; }
.post-content h2, .post-content h3 { color: var(--text); margin-top: 2.5rem; }
.post-content h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.025em; }
.post-content h3 { font-size: 1.35rem; line-height: 1.35; }
.post-content > :first-child { margin-top: 0; }
.post-content h1 { font-size: clamp(2rem, 4vw, 3rem); }
.post-content h4, .post-content h5, .post-content h6 { color: var(--text); font-size: 1.125rem; line-height: 1.4; }
.post-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; text-align: left; font-size: .9375rem; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: .65rem 1rem; }
.post-content th { color: var(--text); background: var(--surface); }
.post-content img { border-radius: var(--radius-small); }
.post-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
.post-content a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.post-content ul, .post-content ol { padding-left: 1.5rem; }
.post-content li + li { margin-top: .5rem; }
.post-content blockquote { border-left: 2px solid var(--accent); padding: .5rem 1.5rem; margin-inline: 0; }
.post-content code { font-size: .875em; background: var(--surface-raised); padding: .15em .35em; border-radius: .25rem; }
.post-content pre { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); overflow-x: auto; }
.post-content pre code { padding: 0; background: none; }
.post-source { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-top: 3rem; }
.post-source .button { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.post-end { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; }
@media (max-width: 760px) {
  .blog-heading { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .blog-card.has-image { grid-template-columns: minmax(0, 1fr); }
  .blog-card-image { height: auto; min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .post-source { flex-direction: column; align-items: flex-start; }
}
