/* Shell shared with the homepage (tokens, header, footer, buttons) plus the
   article typography. Deliberately a separate file rather than an extraction of
   index.html's inline CSS: the homepage carries a lot of one-off section styling
   a blog post will never use, and pulling it apart risks a page that is already
   right. Only the shell is duplicated here, ~40 lines of it. */
:root{
  --paper:#fbfbf9; --card:#ffffff; --ink:#111113; --ink-2:#3a3a40;
  --muted:#6c6c74; --line:#e7e7e2; --line-2:#d7d7d0;
  --accent:#6d5cf0; --accent-soft:#f1effe;
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Inter",system-ui,"Segoe UI",sans-serif;
  --wrap:1120px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.62;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 28px}
a{color:inherit;text-decoration:none}
a,button,summary,input,select,label{touch-action:manipulation}
h1,h2,h3,h4{font-weight:600;letter-spacing:-.032em;line-height:1.08}
h3,h4{letter-spacing:-.022em;line-height:1.2}
p{color:var(--ink-2)}

/* Blog pages have no dark hero, so the bar is light from the first pixel —
   the homepage's dark-until-scrolled state would have nothing to sit on. */
header{position:sticky;top:0;z-index:40;background:rgba(251,251,249,.9);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:74px;gap:24px}
.brand{display:flex;align-items:center;gap:10px;font-weight:600;font-size:17px;letter-spacing:-.02em}
.brand svg{width:28px;height:28px;flex:0 0 auto}
.nav-links{display:flex;align-items:center;gap:26px}
.nav-links a{font-size:14.5px;color:var(--muted);letter-spacing:-.005em}
.nav-links a:hover{color:var(--ink)}
.btn{display:inline-flex;align-items:center;gap:8px;font-family:inherit;font-weight:500;font-size:15px;letter-spacing:-.01em;
  padding:12px 22px;border-radius:980px;border:1px solid transparent;cursor:pointer;transition:background .18s,border-color .18s,opacity .18s}
.btn-p{background:var(--ink);color:#fff}
.btn-p:hover{opacity:.86}
.btn-o{background:#fff;color:var(--ink);border-color:var(--line-2)}
.btn-o:hover{border-color:#b9b9b0}
.btn-lg{padding:15px 30px;font-size:16.5px}

footer{padding:56px 0 48px;background:#171233;color:#e9e5ff;margin-top:clamp(72px,10vw,120px)}
footer .brand{color:#fff}
footer .foot p{color:#b9b2d6}
footer .foot-col h5{color:#8f86bd}
footer .foot-col a{color:#cfc9e6}
footer .foot-col a:hover{color:#fff}
footer .copy{border-top-color:rgba(255,255,255,.12);color:#8f86bd}
.foot{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap}
.foot p{font-size:14px;max-width:30ch;margin-top:12px}
.foot-cols{display:flex;gap:56px;flex-wrap:wrap}
.foot-col h5{font-size:12.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;margin-bottom:12px}
.foot-col a{display:block;font-size:14.5px;margin-bottom:9px}
.copy{margin-top:36px;padding-top:22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13.5px}

/* ---- blog index ---- */
.blog-head{padding:clamp(64px,9vw,108px) 0 clamp(28px,4vw,44px)}
.blog-head h1{font-size:clamp(38px,6vw,64px);letter-spacing:-.04em}
.blog-head p{margin-top:18px;color:var(--muted);font-size:clamp(17px,1.9vw,20px);max-width:54ch;line-height:1.5}
.post-list{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.post-item{display:grid;grid-template-columns:150px 1fr;gap:32px;padding:30px 0;border-bottom:1px solid var(--line);align-items:baseline;transition:opacity .18s}
.post-item:hover{opacity:.62}
.post-item time{font-size:13.5px;color:var(--muted);letter-spacing:-.005em}
.post-item h2{font-size:clamp(21px,2.4vw,26px);letter-spacing:-.028em;line-height:1.24}
.post-item p{margin-top:9px;font-size:15.5px;color:var(--muted);line-height:1.55;max-width:62ch}
.post-empty{padding:40px 0 0;color:var(--muted)}

/* ---- article ---- */
.post{padding:clamp(56px,8vw,96px) 0 0}
.post-hd{max-width:720px;margin:0 auto}
.post-hd .back{display:inline-block;font-size:14px;color:var(--muted);margin-bottom:26px}
.post-hd .back:hover{color:var(--ink)}
.post-hd h1{font-size:clamp(33px,5vw,52px);letter-spacing:-.038em;line-height:1.1}
.post-hd .meta{margin-top:20px;font-size:14px;color:var(--muted);display:flex;gap:14px;flex-wrap:wrap}
.post-body{max-width:720px;margin:44px auto 0;font-size:18px;line-height:1.72}
.post-body > *+*{margin-top:24px}
.post-body h2{font-size:clamp(24px,3vw,31px);letter-spacing:-.03em;margin-top:52px}
.post-body h3{font-size:20.5px;margin-top:40px}
.post-body p{color:var(--ink-2)}
.post-body a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.post-body a:hover{text-decoration-thickness:2px}
.post-body strong{font-weight:600;color:var(--ink)}
.post-body ul,.post-body ol{padding-left:22px}
.post-body li{margin-top:9px;color:var(--ink-2)}
.post-body li::marker{color:var(--accent)}
.post-body blockquote{border-left:3px solid var(--accent);padding:2px 0 2px 22px;color:var(--muted);font-size:19px}
.post-body img{display:block;width:100%;height:auto;border-radius:14px;border:1px solid var(--line);margin:34px 0}
.post-body hr{border:0;border-top:1px solid var(--line);margin:44px 0}
.post-body code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;background:#f3f3ef;border:1px solid var(--line);border-radius:5px;padding:1px 5px}
.post-body pre{background:#f7f7f4;border:1px solid var(--line);border-radius:12px;padding:18px 20px;overflow-x:auto}
.post-body pre code{background:none;border:0;padding:0;font-size:14px;line-height:1.6}

/* Closing call to action at the foot of every post. */
.post-cta{max-width:720px;margin:clamp(56px,8vw,88px) auto 0;padding:34px 36px;background:var(--accent-soft);border:1px solid #e2ddfb;border-radius:18px}
.post-cta h3{font-size:22px;letter-spacing:-.026em}
.post-cta p{margin:10px 0 22px;color:var(--ink-2);font-size:16px;line-height:1.55}

@media (max-width:900px){
  .nav-links{display:none}
  .post-item{grid-template-columns:1fr;gap:8px}
  .post-item time{order:-1}
  .blog-head{padding:48px 0 24px}
  .post-body{font-size:17px}
  .post-cta{padding:26px 24px}
}

/* ---- phones ----
   Mirrors the phone block on the home page: edge padding, and footer and brand
   links given enough height to be a comfortable tap rather than a precise one. */
@media (max-width:640px){
  .wrap{padding:0 20px}
  .brand{padding:6px 0}
  .blog-head{padding:40px 0 20px}
  .blog-head h1{font-size:clamp(32px,9vw,44px)}
  .post-item{padding:24px 0}
  .post{padding:40px 0 0}
  .post-hd h1{font-size:clamp(28px,7.5vw,38px)}
  .post-body{margin-top:32px;font-size:17px}
  .post-body h2{margin-top:40px}
  .post-cta{padding:24px 22px}
  .post-cta .btn{width:100%;justify-content:center}
  footer{margin-top:64px;padding:48px 0 40px}
  .foot{gap:30px}
  .foot-cols{gap:24px 36px}
  .foot-col a{padding:10px 0;margin-bottom:0}
  .copy{flex-direction:column;gap:6px;margin-top:28px}
}
