/* Blog layout, loaded after docs.css (prose, tables, callouts, the draft badge). Every colour is a token from site.css,
   so dark mode follows the homepage. One 680px column for the index and the posts. Spacing is on a 4px scale. */
.blog,.post{max-width:680px;margin-inline:auto;padding-top:64px}

/* breadcrumbs, as in the docs heading */
:is(.blog-hero,.post-header) ol{display:flex;flex-wrap:wrap;gap:4px 8px;list-style:none;margin:0;padding:0;font-size:13px;line-height:20px;color:var(--muted)}
:is(.blog-hero,.post-header) li + li::before{content:"›";margin-right:8px;color:var(--border-strong)}
:is(.blog-hero,.post-header) ol a{color:inherit;text-decoration:none}
:is(.blog-hero,.post-header) ol a:hover{color:var(--text)}
:is(.blog-hero,.post-header) [aria-current]{color:var(--text-2)}
.post-header li:last-child{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

/* index hero */
.blog-hero{padding-bottom:32px;border-bottom:1px solid var(--border-subtle)}
.blog-hero .doc-badge{display:inline-block;margin-top:20px}
.blog-hero h1{margin-top:20px;font-size:clamp(36px,4.4vw,48px);line-height:1.06;font-weight:650;letter-spacing:-.04em}
.blog-hero p{margin-top:16px;font-size:18px;line-height:1.6;color:var(--text-2)}

/* post cards: the title link covers the card */
.post-list{margin-top:32px;display:grid;gap:16px}
.post-card{position:relative;padding:24px 28px;border:1px solid var(--border);border-radius:12px;background:var(--surface);transition:border-color .15s,box-shadow .15s}
.post-card:hover{border-color:var(--accent-border);box-shadow:var(--shadow)}
.post-card:has(a:focus-visible){outline:2px solid var(--accent-text);outline-offset:2px}
.post-card :is(h2,h3){margin-top:12px;font-size:20px;line-height:1.3;font-weight:600;letter-spacing:-.02em}
.post-card :is(h2,h3) a{color:var(--text);text-decoration:none}
.post-card :is(h2,h3) a::after{content:"";position:absolute;inset:0;border-radius:inherit}
.post-card :is(h2,h3) a:focus-visible{outline:none}
.post-card:hover :is(h2,h3) a{color:var(--accent-text)}
.post-card > p:not(.post-meta){margin-top:8px;font-size:15px;line-height:1.6;color:var(--text-2)}
.post-more{display:inline-block;margin-top:16px;font-size:14px;font-weight:500;color:var(--accent-text)}
.post-empty{margin-top:8px;color:var(--muted)}

/* date, reading time, author */
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:13px;line-height:20px;color:var(--muted);font-variant-numeric:tabular-nums}
.post-meta > :not(.doc-badge) + ::before{content:"";display:inline-block;width:3px;height:3px;margin:0 12px 0 0;border-radius:50%;background:var(--border-strong);vertical-align:middle}

/* post header and reading column */
.post-header{margin-bottom:40px;padding-bottom:32px;border-bottom:1px solid var(--border-subtle)}
.post-header h1{margin-top:24px;font-size:clamp(32px,4.4vw,44px);line-height:1.1;font-weight:650;letter-spacing:-.035em}
.post-header .post-meta{margin-top:20px}
.post-lead{margin-top:24px;font-size:19px;line-height:1.6;color:var(--text-2)}
.post .prose{max-width:none;padding:0;font-size:17px;line-height:1.75}
.post .prose :where(p,ul,ol){font-size:inherit}
.post .prose h2{margin-top:48px;font-size:24px}
.post .prose h3{margin-top:32px;font-size:19px}

/* the waitlist panel, after the post */
.post-cta{margin-top:56px;padding:28px 32px;display:grid;justify-items:start;gap:12px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}
.post-cta-text{max-width:34em;font-size:17px;line-height:1.55;font-weight:500;color:var(--text)}
.post-cta .btn{margin-top:8px;height:44px;padding-inline:20px}

/* related posts */
.related{margin-top:64px}
.related > h2{margin-bottom:16px;font:500 12px/16px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.related .post-card + .post-card{margin-top:12px}
.related .post-card{padding:20px 24px}
.related .post-card h3{margin-top:8px;font-size:17px}
.related .post-more{display:none}

@media (max-width:599px){
  .blog,.post{padding-top:32px}
  .blog-hero h1{font-size:36px}
  .blog-hero p{font-size:17px}
  .post-header h1{font-size:30px}
  .post-header .post-meta > :last-child{flex-basis:100%}
  .post-header .post-meta > :last-child::before{display:none}
  .post-lead{font-size:17.5px}
  .post .prose{font-size:16.5px}
  .post .prose h2{margin-top:40px;font-size:22px}
  .post-card,.related .post-card{padding:20px}
  .post-card :is(h2,h3){font-size:18px}
  .post-cta{padding:24px 20px}
  .post-cta .btn{width:100%}
}
