/* The blog (blog.html and blog/*.html, written by source/scripts/blog.mjs). Light, under site.css: the essay's reading
   column, a quiet header for each post, and the Sprints page's close as the way to work with us. */
.post, .blog { width: min(100% - 40px, 720px); margin: 0 auto; padding: 56px 0 96px; }
.post-k, .post-meta { margin: 0 0 14px; font-family: var(--s-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #71717a; }
.post-meta a { color: inherit; text-decoration: none; }
.post-meta a:hover { color: var(--s-ink); }
.post-head h1, .blog-head h1 { margin: 0 0 16px; font-weight: 500; font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.06; letter-spacing: -.038em; text-wrap: balance; }
.post-lede { margin: 0; font-size: 19px; line-height: 1.55; color: #3f3f46; text-wrap: pretty; }
.post-lede a { color: var(--s-ink); text-decoration: underline; text-decoration-color: rgba(9, 9, 11, .3); text-underline-offset: 3px; }
.post-head { padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid #e4e4e7; }

/* the prose: the essay's */
.prose { font-size: 18px; line-height: 1.72; color: #27272a; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: 1.6rem; font-weight: 500; line-height: 1.2; letter-spacing: -.03em; color: var(--s-ink); }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: var(--s-ink); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--s-ink); text-decoration: underline; text-decoration-color: rgba(9, 9, 11, .25); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--s-ink); }
.prose strong { font-weight: 600; color: var(--s-ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { padding-left: 1.1em; border-left: 2px solid var(--s-blue); color: var(--s-ink); }
.prose hr { border: 0; border-top: 1px solid #e4e4e7; margin: 2.4em 0; }
.prose code { font-family: var(--s-mono); font-size: .86em; padding: .1em .35em; border-radius: 6px; background: #f4f4f5; }
.prose pre { padding: 16px 18px; border-radius: 12px; background: #0b0b0f; color: #e4e4e7; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 10px 14px; border-top: 1px solid #e4e4e7; text-align: left; vertical-align: top; }
.prose thead th { border-top: 0; font-family: var(--s-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #71717a; background: #fafafa; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }

/* work with us, then more on the topic */
.post-cta { margin-top: 64px; padding: 32px; border: 1px solid #e4e4e7; border-radius: 16px; background: radial-gradient(circle at 85% 0%, rgba(47, 124, 246, .07), transparent 55%), #fff; }
.post-cta h2 { margin: 0 0 10px; font-size: 1.6rem; font-weight: 500; letter-spacing: -.03em; }
.post-cta p { margin: 0; font-size: 16px; line-height: 1.6; color: #3f3f46; }
.post-cta .post-k { margin-bottom: 10px; }
.post-b { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }
.btn { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 980px; background: #09090b; color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; transition: transform .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: #fff; color: #09090b; border: 1px solid #e4e4e7; }
.post-more { margin-top: 48px; }
.post-more h2 { margin: 0 0 12px; font-family: var(--s-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #71717a; }
.post-more ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid #e4e4e7; }
.post-more li { border-bottom: 1px solid #e4e4e7; }
.post-more li a { display: block; padding: 14px 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--s-ink); text-decoration: none; }
.post-more li a:hover { color: var(--s-blue); }
.post-more p { margin: 16px 0 0; font-size: 15px; }
.post-more p a { color: var(--s-ink); }

/* the index: one list per topic */
.blog-head { padding-bottom: 12px; }
.blog-topic { margin-top: 48px; }
.blog-topic h2 { margin: 0 0 6px; font-family: var(--s-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--s-blue); }
.blog-topic ul { list-style: none; padding: 0; margin: 0; }
.blog-topic li { border-bottom: 1px solid #e4e4e7; }
.blog-topic li a { display: grid; gap: 4px; padding: 18px 0; color: var(--s-ink); text-decoration: none; }
.blog-topic time { font-family: var(--s-mono); font-size: 12px; color: #a1a1aa; }
.blog-topic b { font-size: 18px; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.blog-topic li a:hover b { color: var(--s-blue); }
.blog-topic span { font-size: 15px; line-height: 1.5; color: #52525b; }

@media (max-width: 760px) {
  .post, .blog { padding-top: 32px; }
  .prose { font-size: 17px; }
  .post-cta { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
