/* Blog styles. Same look as the homepage and the other pages (src/pages.ts):
   Inter, warm Notion greys, black buttons. Shared by /blog/ and every post. */
:root { --fg:#37352f; --ink:#000; --muted:#5f5e5a; --soft:#6b6a66; --bg:#fff; --border:rgba(55,53,47,.12); --hair:rgba(55,53,47,.09); --chip:rgba(55,53,47,.08); }
* { box-sizing: border-box; }
::selection { background: rgba(35,131,226,.2); }
body { margin:0; background:var(--bg); color:var(--fg); font:17px/1.65 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible { outline: 4px solid rgba(0,0,0,.18); outline-offset: 2px; border-radius: 8px; }

/* Header: wordmark left, back to the product right */
/* Header, content and footer share one 640px column so their left and right edges line up. */
.top { display:flex; align-items:center; justify-content:space-between; height:64px; width:calc(100% - 40px); max-width:640px; margin:16px auto 0; }
.wordmark { display:inline-flex; align-items:center; gap:6px; font-size:22px; font-weight:700; letter-spacing:-.04em; color:var(--ink); text-decoration:none; line-height:1; }
.wordmark img { height:20px; width:auto; display:block; }
.top-cta { display:inline-flex; align-items:center; height:38px; padding:0 16px; border-radius:10px; background:linear-gradient(#2c2c2c,#111); box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 1px 2px rgba(0,0,0,.2); color:#fff; font-size:15px; font-weight:600; text-decoration:none; }
.top-cta:hover { background:linear-gradient(#383838,#1c1c1c); }

main { max-width: 680px; margin: 0 auto; padding: 56px 20px 64px; }
h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.035em; font-weight: 700; color: var(--ink); margin: 0 0 16px; text-wrap: balance; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 40px; }
.muted { color: var(--muted); }

/* Blog index: list of posts */
.posts { list-style:none; margin:0; padding:0; border-top:1px solid var(--hair); }
.posts li { border-bottom:1px solid var(--hair); }
.posts a { display:block; padding:24px 0; text-decoration:none; }
.posts h2 { font-size:22px; line-height:1.3; letter-spacing:-.015em; font-weight:650; color:var(--ink); margin:0 0 6px; }
.posts p { margin:0 0 8px; color:var(--fg); }
.posts time { font-size:14px; color:var(--soft); font-variant-numeric: tabular-nums; }
.posts a:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
h1 + .posts, h1 + .empty { margin-top: 32px; }
.empty { padding:32px 0; border-top:1px solid var(--hair); color:var(--muted); }

/* A post */
.crumb { font-size:15px; margin:0 0 20px; }
.crumb a { color: var(--soft); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.post-meta { font-size:15px; color:var(--soft); margin:0 0 40px; }
.post h2 { font-size:26px; line-height:1.25; letter-spacing:-.02em; font-weight:650; color:var(--ink); margin:48px 0 12px; }
.post h3 { font-size:20px; line-height:1.3; font-weight:650; color:var(--ink); margin:32px 0 8px; }
.post p, .post li { margin: 0 0 18px; }
.post ul, .post ol { padding-left: 1.3em; margin: 0 0 18px; }
.post li { margin-bottom: 8px; }
.post img { max-width:100%; height:auto; border-radius:12px; border:1px solid var(--hair); display:block; margin:28px 0; }
.post figure { margin:28px 0; }
.post video { width:100%; height:auto; display:block; border-radius:12px; border:1px solid var(--hair); margin:0 0 8px; background:#f7f6f3; }
.post figure img { margin:0 0 8px; }
.post figcaption { font-size:14px; color:var(--soft); }
.post blockquote { margin:24px 0; padding:2px 20px; background:rgba(55,53,47,.04); border-radius:12px; color:var(--fg); }
.post code { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.88em; font-weight:600; color:var(--ink); background:var(--chip); padding:1px 6px; border-radius:6px; }
.post pre { margin:0 0 22px; padding:14px 16px; background:rgba(55,53,47,.05); border:1px solid var(--hair); border-radius:12px; overflow-x:auto; line-height:1.5; }
.post pre code { background:none; padding:0; font-size:14px; font-weight:500; white-space:pre-wrap; overflow-wrap:anywhere; }
.post table { width:100%; border-collapse:collapse; margin:24px 0; font-size:16px; }
.post th, .post td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--hair); }
.post th { font-weight:600; color:var(--ink); }

/* End-of-post call to action */
.post-cta { margin:56px 0 0; padding:28px; border:1px solid var(--hair); border-radius:20px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 0 0 6px rgba(55,53,47,.04); }
.post-cta h2 { margin:0 0 8px !important; font-size:22px !important; }
.post-cta p { margin:0 0 20px; }
.button { display:inline-flex; align-items:center; justify-content:center; height:48px; padding:0 22px; border-radius:12px; background:linear-gradient(#2c2c2c,#111); box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 1px 2px rgba(0,0,0,.2); color:#fff; font-weight:600; text-decoration:none; }
.button:hover { background:linear-gradient(#383838,#1c1c1c); }

footer { width: calc(100% - 40px); max-width: 640px; margin: 0 auto; padding: 24px 0 40px; border-top: 1px solid var(--border); font-size: 14px; color: var(--soft); }
footer nav { display:flex; flex-wrap:wrap; gap:8px 20px; margin-bottom: 12px; }
footer nav a { color: var(--soft); text-decoration: none; }
footer nav a:hover { color: var(--ink); }
footer p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--soft); }

@media (max-width: 600px) {
  .top { margin-top: 4px; }
  main { padding-top: 32px; }
  h1 { font-size: 34px; }
  .post h2 { font-size: 23px; }
  .post table { display:block; overflow-x:auto; font-size:15px; }
}
