/* Blog index and posts. The page chrome matches the other marketing pages
   (compare, connect, terms); the card and article rules below are the only
   things specific to the blog. */
:root{--ink:#111214;--ink-2:#4B4F58;--ink-3:#7A7F8A;--line:oklch(0 0 0 / 0.08);--bg-2:#F4F5F7;--blue:#2F8CFF;--blue-ink:#0F5CC9;--blue-soft:#E8F2FF;--ember-soft:#FFF1EA;--ember-ink:#C2531F;--ease:cubic-bezier(0.2,0,0,1)}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:16px;line-height:1.65;color:var(--ink);background:#fff}
a{color:var(--blue-ink)}
.wrap{width:min(760px,100% - 48px);margin-inline:auto}
.wrap.wide{width:min(1120px,100% - 48px)}
@media (max-width:640px){.wrap,.wrap.wide{width:calc(100% - 32px)}}

.top{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:10}
.top .wrap{width:min(1120px,100% - 48px);display:flex;align-items:center;justify-content:space-between;height:64px;gap:16px}
@media (max-width:640px){.top .wrap{width:calc(100% - 32px)}}
.brand{display:flex;align-items:center;gap:8px;color:var(--ink);text-decoration:none;font-weight:600;letter-spacing:-0.01em}
.brand svg{width:26px;height:26px;border-radius:7px}
.top nav{display:flex;gap:20px;font-size:.9375rem}
.top nav a{color:var(--ink-2);text-decoration:none}
.top nav a:hover,.top nav a[aria-current="page"]{color:var(--ink)}
@media (max-width:560px){.top nav .hide-sm{display:none}}

main{padding-block:56px 80px}
.eyebrow{font-size:.8125rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);margin:0 0 10px}
h1{font-size:clamp(2rem,4vw,2.75rem);font-weight:500;letter-spacing:-0.03em;line-height:1.1;margin:0 0 12px}
.lede{font-size:1.125rem;line-height:1.6;color:var(--ink-2);max-width:68ch;margin:0 0 40px}

/* ---------- Index ---------- */
.posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:28px;margin:0 0 56px}
/* Whichever post carries .featured runs the full width with the image beside
   the copy, and stays there as posts are added below it. The slot is pinned by
   hand, not won by being newest: do not re-sort it by date. */
.post-card.featured{grid-column:1 / -1}
.post-card{display:grid;gap:18px;text-decoration:none;color:inherit;border-radius:18px;padding:12px;margin:-12px;transition:background-color 160ms var(--ease)}
.post-card:hover{background:var(--bg-2)}
.post-card img{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;border-radius:14px;box-shadow:0 0 0 1px oklch(0 0 0 / 0.06)}
.post-card h2{font-size:1.3125rem;font-weight:600;letter-spacing:-0.02em;line-height:1.3;margin:0 0 8px}
.post-card:hover h2{color:var(--blue-ink)}
.post-card p{color:var(--ink-2);font-size:.9375rem;margin:0 0 12px}
.pc-meta{color:var(--ink-3);font-size:.875rem;margin:0}
@media (min-width:860px){
  /* One bordered panel: artwork flush to the left edge, copy on white at the
     right. The image is anchored left because these banners carry their title
     on that side, so the crop takes the far edge rather than the words. */
  .post-card.featured{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:stretch;gap:0;
    padding:0;margin:0;min-height:260px;background:#fff;overflow:hidden;
    box-shadow:0 0 0 1px oklch(0 0 0 / 0.07),0 1px 2px oklch(0 0 0 / 0.04);
    transition:box-shadow 160ms var(--ease)}
  .post-card.featured:hover{background:#fff;box-shadow:0 0 0 1px oklch(0 0 0 / 0.1),0 10px 28px -12px oklch(0 0 0 / 0.25)}
  .posts .post-card.featured img{height:100%;aspect-ratio:auto;object-fit:cover;object-position:left center;border-radius:0;box-shadow:none}
  .post-card.featured > div{align-self:center;padding:30px 34px}
  .post-card.featured h2{font-size:1.75rem}
  .post-card.featured p{font-size:1rem}
}
.blog-note{border-top:1px solid var(--line);padding-top:28px;color:var(--ink-3);font-size:.9375rem;max-width:62ch}

/* ---------- Article ---------- */
.post-head{margin:0 0 32px}
.post-meta{color:var(--ink-3);font-size:.9375rem;margin:0 0 26px;display:flex;flex-wrap:wrap;gap:8px}
.post-meta span::after{content:"·";margin-left:8px;color:oklch(0 0 0 / 0.22)}
.post-meta span:last-child::after{content:none}
/* Cards crop to a common shape so an odd-sized image is never squashed.
   An image drawn as a wide banner keeps its own proportions instead, on the
   card as well as the hero: cropping one cuts into the artwork, and on these
   the artwork is the title. */
.post-hero{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;border-radius:18px;margin:0 0 40px;box-shadow:0 0 0 1px oklch(0 0 0 / 0.06)}
.post-hero.wide-banner,
.post-card img.wide-banner{aspect-ratio:auto;object-fit:fill}
article h2{font-size:1.375rem;font-weight:600;letter-spacing:-0.02em;line-height:1.25;margin:44px 0 12px}
article p,article li{color:var(--ink-2)}
article p{margin:0 0 14px}
article ul{margin:0 0 14px;padding-left:22px}
article li{margin:8px 0}
article strong{color:var(--ink);font-weight:600}
.post-lede{font-size:1.1875rem;line-height:1.6;color:var(--ink-2);margin:0 0 20px}

.post-cta{background:var(--blue-soft);border-radius:18px;padding:24px 26px;margin:44px 0 0}
.post-cta h2{margin:0 0 8px;font-size:1.125rem}
.post-cta p{margin:0 0 16px;color:var(--ink-2);font-size:.9375rem}
.post-cta a.btn{display:inline-flex;align-items:center;height:44px;padding-inline:20px;border-radius:999px;background:linear-gradient(180deg,#4DA3FF 0%,#2F8CFF 100%);color:#fff;text-decoration:none;font-weight:600;font-size:.9375rem;box-shadow:inset 0 1px 0 oklch(1 0 0 / 0.35),0 6px 16px -6px oklch(0.6 0.2 255 / 0.6)}
.post-cta a.btn:hover{filter:brightness(1.06)}

.post-author{display:flex;align-items:center;gap:14px;margin:40px 0 0;padding-top:28px;border-top:1px solid var(--line)}
/* The author photo. It was a letter in a circle, which never sat straight:
   a single glyph centred by the grid still rides on its own baseline and
   side bearings, so it looked off no matter the alignment. An image has
   neither. */
.pa-avatar{flex:none;width:44px;height:44px;border-radius:999px;object-fit:cover;background:var(--blue-soft);display:block}
.post-author b{display:block;font-size:.9375rem}
.post-author span{display:block;color:var(--ink-3);font-size:.875rem}
.post-back{display:inline-flex;align-items:center;gap:7px;margin:0 0 22px;color:var(--ink-2);text-decoration:none;font-size:.9375rem;font-weight:500}
.post-back:hover{color:var(--ink)}
.post-back svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.post-source{color:var(--ink-3);font-size:.875rem;margin:26px 0 0}

/* Long-form guides: summary box, H3s, numbered lists, tables and notes. */
article h3{font-size:1.125rem;font-weight:600;letter-spacing:-0.01em;line-height:1.3;color:var(--ink);margin:28px 0 8px}
article ol{margin:0 0 14px;padding-left:22px}
.tldr{background:var(--bg-2);border-radius:16px;padding:20px 24px 8px;margin:4px 0 30px}
.tldr .tldr-h{font-weight:600;color:var(--ink);margin:0 0 4px}
.table-wrap{overflow-x:auto;margin:6px 0 18px;border-radius:12px;box-shadow:0 0 0 1px var(--line)}
article table{width:100%;min-width:520px;border-collapse:collapse;font-size:.9375rem;line-height:1.5}
article th,article td{text-align:left;vertical-align:top;padding:11px 14px;border-bottom:1px solid var(--line);color:var(--ink-2)}
article th{background:var(--bg-2);color:var(--ink);font-weight:600}
article tr:last-child td{border-bottom:0}
.note-box{background:var(--ember-soft);border-left:3px solid var(--ember-ink);border-radius:0 12px 12px 0;padding:12px 16px;font-size:.9375rem}
.sources li{font-size:.9375rem}

/* Keep reading: in-article links between posts, after the author box. */
.related{margin:40px 0 8px;padding-top:24px;border-top:1px solid var(--line)}
.related-h{font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);margin:0 0 12px}
.related ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.related li{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.related a{font-weight:600;color:var(--ink);text-decoration:none;line-height:1.4}
.related a:hover{color:var(--blue-ink);text-decoration:underline}
.related span{flex:none;font-size:.8125rem;color:var(--ink-3)}
.post-meta a,.post-author a{color:inherit;text-decoration:none}
.post-meta a:hover,.post-author a:hover{text-decoration:underline}
@media (max-width:640px){.related li{flex-direction:column;gap:2px}}

/* Screenshots inside a post */
.post-shot{margin:22px 0 26px}
.post-shot img{display:block;width:100%;height:auto;border-radius:14px;box-shadow:0 0 0 1px var(--line),0 10px 28px -14px oklch(0 0 0 / 0.25);background:#fff}
.post-shot.narrow img{max-width:360px}
.post-shot figcaption{margin-top:10px;font-size:.875rem;color:var(--ink-3)}
