/* Bugsniffer blog. Loaded after /assets/site.css; uses its tokens. Comic outside, readable inside. */

/* ---------- top bar ---------- */
.bhead { background: var(--cobalt); border-bottom: 6px solid var(--ink); }
.bhead-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.blogo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; text-transform: uppercase; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); }
.blogo .paw { width: 34px; height: 34px; flex: none; }
.bnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.bnav a { color: #f5f2ef; text-decoration: none; font-family: var(--display); font-size: 1.1rem; line-height: 1; text-transform: uppercase; text-shadow: 0 1px 0 rgba(9,8,10,.35); }
.bnav a:hover { color: var(--mint); }
.bnav .bnav-cta { background: var(--mint); color: var(--ink); text-shadow: none; padding: 10px 16px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 4px 0 var(--ink); transition: transform .15s cubic-bezier(.2,.9,.3,1.4), box-shadow .15s ease-out; }
.bnav .bnav-cta:hover { color: var(--ink); background: #8ff0b7; transform: translate(-1px, -2px) rotate(-1deg); box-shadow: 5px 6px 0 var(--ink); }

/* ---------- draft banner (previews only) ---------- */
.draft-banner { margin: 0; padding: 10px 20px; background: #fff1d6; color: #5a3a00; border-bottom: 4px solid var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .95rem; text-align: center; }
.draft-banner strong { display: inline-block; margin-right: 8px; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); color: var(--ink); letter-spacing: .06em; }

/* ---------- post header band ---------- */
.post-hero { background-color: var(--cobalt); background-image: radial-gradient(rgba(255,255,255,.09) 1.6px, transparent 1.8px); background-size: 14px 14px; border-bottom: 6px solid var(--ink); padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 64px); color: var(--cream); }
.post-kicker { margin: 0 0 18px; font-family: var(--display); font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; color: #e6eefc; }
.post-kicker a { color: var(--cream); }
.post-h { margin: 0 0 18px; font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1; text-transform: uppercase; color: var(--cream); -webkit-text-stroke: clamp(3px, .4vw, 6px) var(--ink); paint-order: stroke fill; text-shadow: 4px 5px 0 var(--ink); text-wrap: balance; overflow-wrap: break-word; }
.post-dek { margin: 0 0 24px; max-width: 60ch; font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 500; line-height: 1.4; color: #fff; }
.byline { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 1.05rem; color: #fff; }
.byline img { width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--ink); background: var(--sky); box-shadow: 3px 4px 0 var(--ink); flex: none; }
.ai-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .06em; vertical-align: 2px; }

/* ---------- article body ---------- */
.post-body { background: var(--cream); padding-block: clamp(36px, 6vw, 72px); }
.prose { color: var(--navy); font-size: 1.22rem; line-height: 1.6; }
.prose > * { max-width: 68ch; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose .table-wrap { margin: 0 0 1.1em; }
.prose h2 { margin: 1.9em 0 .55em; font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.02; text-transform: uppercase; color: var(--ink); text-wrap: balance; scroll-margin-top: 16px; }
.prose h3 { margin: 1.5em 0 .4em; font-family: var(--display); font-weight: 400; font-size: 1.4rem; line-height: 1.05; text-transform: uppercase; color: var(--ink); }
.prose a { color: #1b4fc2; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { color: var(--ink); background: var(--mint); text-decoration: none; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--ink); font-weight: 700; }
.prose ul.checklist { list-style: none; padding-left: 0; }
.prose ul.checklist li { position: relative; padding-left: 2.1em; }
.prose ul.checklist li::before { content: ""; position: absolute; left: 0; top: .22em; width: 1.15em; height: 1.15em; border: 3px solid var(--ink); border-radius: 4px; background: #fff; box-shadow: 2px 2px 0 var(--ink); }
.prose blockquote { padding: 16px 20px; background: #fff; border: 4px solid var(--ink); border-radius: 12px; box-shadow: 4px 5px 0 var(--ink); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: #fff; border: 1px solid #c9d6e8; border-radius: 6px; padding: .08em .35em; overflow-wrap: anywhere; }
.prose pre { overflow-x: auto; padding: 16px 18px; background: #fff; border: 1px solid #c9d6e8; border-radius: 12px; font-size: .95rem; line-height: 1.5; }
.prose pre code { border: 0; padding: 0; background: none; overflow-wrap: normal; }
.prose hr { border: 0; border-top: 4px dashed rgba(9,8,10,.25); margin: 2em 0; }
.prose .table-wrap { max-width: 100%; overflow-x: auto; background: #fff; border: 4px solid var(--ink); border-radius: 10px; box-shadow: 5px 6px 0 var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1.02rem; line-height: 1.4; }
.prose th { background: var(--ink); color: var(--cream); font-family: var(--display); font-weight: 400; text-transform: uppercase; text-align: left; padding: 10px 12px; }
.prose td { padding: 10px 12px; border-top: 2px solid var(--ink); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: #f3f8fd; }
.post-disclosure { margin-top: 2.4em !important; padding-top: 16px; border-top: 3px solid var(--ink); font-size: 1rem; color: #3a475c; }

/* ---------- closing CTA ---------- */
.post-cta { background: var(--sky); border-top: 6px solid var(--ink); padding-block: clamp(48px, 7vw, 88px); }
.cta-panel { background: var(--cream); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 8px 9px 0 var(--ink); padding: clamp(22px, 3vw, 34px); transform: rotate(-.4deg); }
.cta-panel h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.cta-panel p { margin: 0 0 18px; max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0 !important; }
.btn-go, .btn-alt { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 22px; border: 4px solid var(--ink); border-radius: 999px; font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; text-decoration: none; color: var(--ink); box-shadow: 3px 4px 0 var(--ink); transition: transform .15s cubic-bezier(.2,.9,.3,1.4), box-shadow .15s ease-out, background .15s; }
.btn-go { background: var(--mint); }
.btn-go:hover { background: #8ff0b7; transform: translate(-1px, -2px) rotate(-1deg); box-shadow: 5px 6px 0 var(--ink); }
.btn-alt { background: #fff; }
.btn-alt:hover { transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.btn-go:active, .btn-alt:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--ink); }

/* ---------- blog index ---------- */
.blog-hero .post-h { font-size: clamp(2.6rem, 7vw, 5rem); }
.blog-list { background: var(--sky); padding-block: clamp(40px, 6vw, 80px); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 32px 28px; }
.post-card { position: relative; background: var(--cream); border: 4px solid var(--ink); border-radius: 6px; box-shadow: 6px 7px 0 var(--ink); padding: 20px 20px 18px; transition: transform .2s cubic-bezier(.2,.9,.3,1.4); }
.post-card:nth-child(3n+1) { transform: rotate(-.6deg); }
.post-card:nth-child(3n+2) { transform: rotate(.5deg); }
.post-card:hover { transform: translateY(-4px) rotate(0); }
.post-card h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 1.55rem; line-height: 1.02; text-transform: uppercase; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card h2 a:focus-visible { outline: none; }
.post-card:focus-within { outline: 4px solid var(--mint); outline-offset: 3px; }
.post-card p { margin: 0 0 12px; font-size: 1.08rem; }
.card-meta { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .82rem !important; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5a6b85; }
.card-draft { display: inline-block; margin-right: 6px; padding: 2px 9px; border-radius: 999px; background: #fff1d6; color: #8a5300; border: 2px solid var(--ink); }
.card-by { display: flex; align-items: center; gap: 10px; margin: 0 !important; font-size: .98rem !important; color: #3a475c; }
.card-by img { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--ink); background: var(--sky); }

@media (max-width: 760px) {
  .bhead-in { padding-block: 12px; }
  .bnav { gap: 8px 16px; }
  .bnav a { font-size: 1rem; }
  .prose { font-size: 1.12rem; }
  .cta-panel { transform: none; box-shadow: 5px 6px 0 var(--ink); }
  .btn-go, .btn-alt { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .post-card, .post-card:hover, .cta-panel { transform: none; } }
.post-cover { margin: 0 0 28px; }
.post-cover img { display: block; width: 100%; height: auto; border: 4px solid var(--ink); border-radius: 14px; box-shadow: 5px 6px 0 var(--ink); background: var(--sky); }
