:root{
  --ink:#111111; --ink-active:#242424; --body:#292929; --muted:#6b6b6b; --muted-soft:#898989;
  --hairline:#e5e7eb; --hairline-soft:#f3f4f6; --canvas:#ffffff; --surface-soft:#f8f9fa; --surface-card:#f5f5f5;
  --surface-dark:#101010; --on-dark:#ffffff; --on-dark-soft:#a1a1aa; --timer:#fb923c;
  --r-sm:6px; --r-md:8px; --r-lg:12px; --r-xl:16px; --r-pill:9999px;
  --display: -apple-system,"Segoe UI",system-ui,Inter,sans-serif;
  --serif: Georgia,Cambria,"Times New Roman",Times,serif;
}
*{box-sizing:border-box;}
body{margin:0; font-family:var(--display); color:var(--body); background:var(--canvas); font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased;}
h1,h2,h3{font-family:var(--display); color:var(--ink); font-weight:600; margin:0; letter-spacing:-0.5px;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1080px; margin:0 auto; padding:0 24px;}
.eyebrow{font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--timer);}
.muted-meta{font-size:13px; color:var(--muted);}
.dot-sep{color:var(--muted-soft);}

.btn{display:inline-flex; align-items:center; gap:6px; font-size:14px; font-weight:600; height:42px;
  padding:0 22px; border-radius:var(--r-pill); border:1px solid transparent; cursor:pointer; text-decoration:none;
  transition:background .15s ease, transform .1s ease;}
.btn:active{transform:translateY(1px);}
.btn-primary{background:var(--ink); color:#fff;}
.btn-primary:hover{background:var(--ink-active);}
.btn-text{background:none; padding:0; height:auto; font-weight:500; color:var(--ink); border-bottom:1px solid var(--hairline); text-decoration:none;}
.btn-text:hover{border-color:var(--ink);}

/* ---------- nav ---------- */
.nav{position:sticky; top:0; z-index:50; background:rgba(255,255,255,.88); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--hairline); height:64px; display:flex; align-items:center;}
.nav .wrap{max-width:1200px; display:flex; align-items:center; justify-content:space-between; width:100%;}
.brand{display:flex; align-items:center; gap:9px; font-weight:600; font-size:16px; color:var(--ink);}
.brand img{width:26px; height:26px; border-radius:6px;}
.nav-links{display:flex; gap:28px; font-size:14px; font-weight:500; color:var(--muted);}
.nav-links a:hover{color:var(--ink);}
.nav-right{display:flex; align-items:center; gap:18px;}

/* ---------- hero ---------- */
.blog-hero{padding:88px 0 56px; text-align:center; border-bottom:1px solid var(--hairline-soft);}
.blog-hero h1{font-family:var(--serif); font-size:52px; letter-spacing:-1px; margin-top:14px; font-weight:500;}
.blog-hero .lead{font-size:18px; color:var(--muted); margin-top:16px; max-width:52ch; margin-left:auto; margin-right:auto; line-height:1.6;}
.hero-ctas{display:flex; align-items:center; justify-content:center; gap:22px; margin-top:32px;}
@media(max-width:600px){ .blog-hero{padding:56px 0 40px;} .blog-hero h1{font-size:34px;} .hero-ctas{flex-direction:column; gap:14px;} }

/* ---------- card grid ---------- */
.post-card{display:flex; flex-direction:column; border:1px solid var(--hairline); border-radius:var(--r-lg); overflow:hidden;
  background:#fff; padding:22px 24px 26px; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;}
.post-card:hover{transform:translateY(-4px); box-shadow:0 20px 40px -20px rgba(17,17,17,.25); border-color:#d8d8d8;}
.card-meta{display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--muted-soft); margin-bottom:10px; font-weight:500;}
.post-card h2{font-family:var(--serif); font-size:20px; font-weight:600; letter-spacing:-0.2px; line-height:1.35;}
.post-card p{font-size:14.5px; color:var(--muted); margin-top:10px; line-height:1.6;}

.post-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:24px; margin-top:36px; padding-bottom:80px;}

/* ---------- post page (Medium-style reading column) ---------- */
.post{padding:56px 0 80px;}
.post > *{max-width:720px; margin-left:auto; margin-right:auto;}
.back-link{display:block; font-size:13px; font-weight:600; color:var(--muted); margin-bottom:28px;}
.back-link:hover{color:var(--ink);}
.post h1{font-family:var(--serif); font-size:44px; font-weight:600; line-height:1.2; letter-spacing:-0.8px;}
.post-subtitle{font-family:var(--serif); font-size:21px; color:var(--muted); margin-top:16px; line-height:1.5; font-style:italic;}

.byline{display:flex; align-items:center; gap:12px; margin-top:28px; padding:20px 0; border-top:1px solid var(--hairline-soft); border-bottom:1px solid var(--hairline-soft);}
.byline-avatar{width:38px; height:38px; border-radius:50%; object-fit:cover;}
.byline-name{font-size:14px; font-weight:600; color:var(--ink);}
.byline-sub{font-size:13px; color:var(--muted); margin-top:2px;}

.post-body{margin-top:36px; font-family:var(--serif); font-size:20px; line-height:1.75; color:var(--body);}
.post-body h2{font-family:var(--display); font-size:27px; font-weight:700; margin-top:48px; margin-bottom:16px; letter-spacing:-0.5px; line-height:1.3;}
.post-body h3{font-family:var(--display); font-size:21px; font-weight:700; margin-top:36px; margin-bottom:12px;}
.post-body p{margin-bottom:22px;}
.post-body ul, .post-body ol{margin:0 0 22px; padding-left:26px;}
.post-body li{margin-bottom:10px;}
.post-body code{font-family:ui-monospace,monospace; background:var(--surface-card); padding:2px 7px; border-radius:4px; font-size:16px;}
.post-body pre{background:var(--surface-card); padding:12px 14px; border-radius:6px; margin:0 0 22px; font-size:14px; line-height:1.5; max-width:100%; white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word;}
.post-body pre code{background:none; padding:0; font-size:14px; white-space:inherit; overflow-wrap:anywhere; word-break:break-word;}
.post-body blockquote{border-left:3px solid var(--ink); margin:32px 0; padding:2px 0 2px 24px; color:var(--ink); font-style:italic; font-size:24px; line-height:1.5;}
.post-body a{color:var(--ink); text-decoration:underline; text-decoration-color:var(--muted-soft); text-underline-offset:3px;}
.post-body a:hover{text-decoration-color:var(--ink);}
.post-body strong{color:var(--ink); font-weight:700;}

@media(max-width:700px){
  .post h1{font-size:30px;}
  .post-subtitle{font-size:18px;}
  .post-body{font-size:18px;}
  .post-body blockquote{font-size:20px;}
}

/* ---------- end-of-content CTA band ---------- */
.cta-band{background:var(--surface-card); border-radius:var(--r-lg); padding:56px; text-align:center; margin:0 0 80px;}
.cta-band h2{font-family:var(--serif); font-size:30px; font-weight:600; letter-spacing:-0.5px;}
.cta-band p{margin-top:12px; color:var(--muted); font-size:15.5px;}
.cta-band .btn{margin-top:26px;}

/* ---------- footer ---------- */
footer{background:var(--surface-dark); color:var(--on-dark-soft); padding:56px 0 32px;}
.foot-top{display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom:36px; border-bottom:1px solid #232323;}
.foot-brand{display:flex; align-items:center; gap:9px; color:var(--on-dark); font-weight:600; font-size:16px;}
.foot-brand img{width:24px; height:24px; border-radius:6px;}
.foot-cols{display:flex; gap:56px; flex-wrap:wrap;}
.foot-col h4{color:var(--on-dark); font-size:13px; font-weight:600; margin-bottom:14px;}
.foot-col a{display:block; font-size:14px; color:var(--on-dark-soft); text-decoration:none; margin-bottom:10px;}
.foot-col a:hover{color:var(--on-dark);}
.foot-bottom{padding-top:22px; font-size:13px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;}
.built-by{display:inline-flex; align-items:center; gap:7px;}
.built-by img{width:16px; height:16px; border-radius:4px; background:#fff; padding:1px;}
@media(max-width:768px){ .foot-top{flex-direction:column; gap:26px;} .foot-cols{gap:32px;} }
