/* Blog styles. Layered on top of styles.css — the variables (--bg, --panel,
   --line, --text, --muted, --cyan) and the shared chrome (.bar, .foot, .btn)
   come from there, so the blog cannot drift from the product design. */

.bwrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }

/* --- index ---------------------------------------------------------------- */
.bhead { margin-bottom: 40px; }
.bhead h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; margin: 0 0 10px; color: #fff; letter-spacing: -0.02em; }
.bhead p { margin: 0; font-size: 16px; line-height: 1.6; max-width: 60ch; }

.blist { display: flex; flex-direction: column; gap: 14px; }

.bpost-card {
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  transition: border-color .18s ease, transform .18s ease;
}
.bpost-card:hover { border-color: rgba(0,242,255,.34); transform: translateY(-2px); }
.bpost-link { display: block; padding: 22px 24px; text-decoration: none; color: inherit; }
.bpost-card h2 { margin: 8px 0 8px; font-size: 20px; font-weight: 700; color: #fff; line-height: 1.3; letter-spacing: -0.01em; }
.bpost-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.bpost-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.bdot { opacity: .5; }

.btags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.btag {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(0,242,255,.22); color: var(--cyan); background: rgba(0,242,255,.06);
}

.bnext { margin-top: 32px; font-size: 14px; text-align: center; }

/* --- post ----------------------------------------------------------------- */
.bback { display: inline-block; font-size: 13px; margin-bottom: 24px; text-decoration: none; }
.bback:hover { text-decoration: underline; }

.bpost h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; color: #fff; margin: 10px 0 14px; line-height: 1.18; letter-spacing: -0.02em; }
.blede { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 8px; }

/* Long-form body. ~68ch measure, generous leading — this is read, not scanned. */
.bbody { margin-top: 32px; font-size: 16.5px; line-height: 1.75; }
/* Reset and spacing must sit at the SAME specificity, or the reset wins and the
   spacing silently does nothing. An earlier `.bbody p { margin: 0 }` (0,1,1)
   outranked `.bbody > * + *` (0,1,0) and collapsed every paragraph gap. */
.bbody > * { margin: 0; }
.bbody > * + * { margin-top: 1.15em; }
.bbody h2 {
  font-size: 24px; font-weight: 700; color: #fff; margin-top: 2em; margin-bottom: .6em;
  line-height: 1.3; letter-spacing: -0.01em; padding-top: .6em; border-top: 1px solid var(--line);
}
.bbody h3 { font-size: 18px; font-weight: 700; color: #fff; margin-top: 1.8em; margin-bottom: .5em; }
.bbody a { text-decoration: underline; text-underline-offset: 2px; }
.bbody strong, .bbody b { color: #fff; font-weight: 600; }
.bbody ul, .bbody ol { margin: 0; padding-left: 1.35em; }
.bbody li { margin-top: .5em; }
.bbody li::marker { color: var(--cyan); }

.bbody blockquote {
  margin: 1.6em 0; padding: 2px 0 2px 18px; border-left: 3px solid rgba(0,242,255,.4);
  color: var(--muted); font-style: italic;
}

.bbody code {
  font-family: ui-monospace, Consolas, monospace; font-size: 13.5px;
  background: rgba(0,242,255,.07); border: 1px solid rgba(0,242,255,.16);
  padding: 1.5px 6px; border-radius: 5px; color: #b9e9ef;
}
.bbody pre {
  background: #0b1017; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6;
}
.bbody pre code { background: none; border: none; padding: 0; color: var(--text); font-size: 13.5px; }

.bbody table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.bbody th, .bbody td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.bbody th { color: #fff; font-weight: 600; white-space: nowrap; }

.bbody hr { border: none; border-top: 1px solid var(--line); margin: 2.2em 0; }
.bbody img { max-width: 100%; border-radius: 10px; }

/* --- CTA + prev/next ------------------------------------------------------ */
.bcta {
  margin-top: 56px; padding: 22px 24px; border-radius: 14px;
  border: 1px solid rgba(0,242,255,.22); background: rgba(0,242,255,.05);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 15px; line-height: 1.55;
}

.bnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.bnav a { text-decoration: none; max-width: 46%; }
.bnav a:hover { text-decoration: underline; }
.bnav-next { text-align: right; }

@media (max-width: 640px) {
  .bwrap { padding: 32px 18px 72px; }
  .bbody { font-size: 16px; }
  .bcta { flex-direction: column; align-items: flex-start; }
}
