/* Blog / article styles for Krackpot. Loaded after the shared style.css,
   which supplies the design tokens, self-hosted fonts, topbar and footer. */

.article-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Article header ---- */
.article-head {
  max-width: 720px;
  margin: 0 auto;
  padding: 46px 0 34px;
  position: relative;
}
.article-head::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--line);
}
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 12px/1 var(--font-mono); letter-spacing: 0.06em;
  color: var(--accent-ink); text-decoration: none; margin-bottom: 26px;
}
.back-link:hover { filter: brightness(1.1); }
.back-link .arrow { font-size: 15px; }

.article-eyebrow {
  font: 600 11px/1 var(--font-mono); letter-spacing: 0.2em; color: var(--accent-ink);
}
.article-title {
  font: 700 clamp(30px, 5vw, 46px)/1.06 var(--font-head);
  letter-spacing: -0.02em; margin: 16px 0 0; text-wrap: balance;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  margin-top: 20px; font: 500 12.5px/1 var(--font-mono); color: var(--muted);
}
.article-meta a { color: var(--accent-ink); text-decoration: none; }
.article-meta a:hover { text-decoration: underline; text-underline-offset: 2px; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

/* ---- Article body ---- */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 34px 0 20px;
}
.article-lede {
  font: 400 19px/1.6 var(--font-body); color: var(--soft);
  margin: 0 0 8px; text-wrap: pretty;
}
.article-body h2 {
  font: 700 25px/1.2 var(--font-head); letter-spacing: -0.01em;
  margin: 44px 0 0; scroll-margin-top: 20px; text-wrap: balance;
}
.article-body h2 + p { margin-top: 12px; }
.article-body p {
  font: 400 16px/1.72 var(--font-body); color: var(--text);
  margin: 18px 0 0; text-wrap: pretty;
}
.article-body a {
  color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.article-body a:hover { filter: brightness(1.1); }
.article-body strong { font-weight: 600; }
.article-body code {
  font: 500 0.87em var(--font-mono); background: var(--panel2);
  padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere;
}

/* Ordered / unordered lists */
.article-body ol, .article-body ul {
  margin: 18px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  counter-reset: step;
}
.article-body li {
  font: 400 16px/1.62 var(--font-body); color: var(--text);
  position: relative; padding-left: 34px;
}
.article-body ol > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  font: 800 11px/22px var(--font-head); text-align: center;
}
.article-body ul > li::before {
  content: ""; position: absolute; left: 6px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-ink);
}

/* Measured-rates callout table */
.rate-card {
  margin: 22px 0 0; border: 1.5px solid var(--line); border-radius: 12px;
  overflow: hidden; background: var(--panel);
}
.rate-card .rc-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  font: 700 10px/1.3 var(--font-mono); letter-spacing: 0.14em; color: var(--muted);
}
.rate-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px 20px;
  align-items: baseline; padding: 12px 18px; border-bottom: 1px solid var(--border);
}
.rate-row:last-child { border-bottom: 0; }
.rate-gpu { font: 600 14px/1.2 var(--font-body); color: var(--text); }
.rate-speed { font: 700 13px/1 var(--font-mono); color: var(--accent-ink); white-space: nowrap; }
.rate-eta { font: 500 12px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }

/* Pull-quote for the honesty line */
.pull {
  margin: 40px 0 0; padding: 22px 26px; border-left: 3px solid var(--accent);
  background: var(--disc-bg); border-radius: 0 12px 12px 0;
  font: 600 19px/1.45 var(--font-head); letter-spacing: -0.01em; color: var(--text);
  text-wrap: balance;
}

/* Test-vector callout */
.vectors {
  margin: 22px 0 0; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--panel); overflow: hidden;
}
.vectors .v-row {
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  font: 500 12.5px/1.6 var(--font-mono); color: var(--soft); overflow-wrap: anywhere;
}
.vectors .v-row:last-child { border-bottom: 0; }
.vectors .v-row strong { color: var(--text); font-weight: 700; }

/* Closing CTA */
.article-cta {
  max-width: 720px; margin: 40px auto 0; padding: 30px 0 8px; position: relative;
}
.article-cta::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 1.5px; background: var(--line);
}
.article-cta h2 { font: 700 24px/1.2 var(--font-head); letter-spacing: -0.01em; margin: 0; }
.article-cta p { font: 400 16px/1.6 var(--font-body); color: var(--soft); margin: 12px 0 0; }
.article-cta .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.article-cta a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 15px var(--font-head); text-decoration: none; border-radius: 11px; padding: 14px 24px;
}
.article-cta a.btn-solid { background: var(--accent-ink); color: var(--ink); }
.article-cta a.btn-solid:hover { filter: brightness(1.06); }
.article-cta a.btn-out { background: transparent; border: 1.5px solid var(--line); color: var(--text); }
.article-cta a.btn-out:hover { background: var(--panel2); }

/* Brand link in topbar for the blog context */
.topbar .brand-link { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }

@media (max-width: 620px) {
  .rate-row { grid-template-columns: 1fr; gap: 3px; padding: 12px 16px; }
  .article-body h2 { margin-top: 36px; }
}
