/* Quantor blog — article + index page styling.
   Loaded AFTER styles.css + pages.css. Uses the same design tokens
   (--bg, --txt, --muted, --font-body, --font-display, --font-mono).

   2026-05-11 Phase Б — blog infrastructure. Long-form articles for
   product-narrative SEO ("How we sign every prod deploy with Ed25519",
   etc.) Each article has its own HTML file under site/blog/.
   ─────────────────────────────────────────────────────────────────── */

/* ── Blog index (list of posts) ─────────────────────────────────── */

.blog-list{display:grid;gap:20px;margin:40px 0 80px}
.blog-card{
  display:block;text-decoration:none;
  background:rgba(20,32,64,.5);border:1px solid var(--stroke);border-radius:20px;
  padding:28px 30px;color:var(--txt);
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease
}
.blog-card:hover{
  transform:translateY(-3px);
  border-color:rgba(79,140,255,.4);
  box-shadow:0 18px 50px rgba(0,0,0,.4)
}
.blog-card__meta{display:flex;gap:10px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#a8c8ff;margin-bottom:10px;font-weight:600}
.blog-card__meta .dot{color:rgba(168,200,255,.4)}
.blog-card h2{margin:0 0 12px;font-family:var(--font-display);font-size:clamp(20px,2.4vw,26px);font-weight:600;line-height:1.25}
.blog-card p{margin:0 0 16px;font-size:15.5px;color:var(--muted);line-height:1.65;max-width:65ch}
.blog-card__read{font-size:14px;color:#a8c8ff;font-weight:500}
.blog-card:hover .blog-card__read{text-decoration:underline}

/* ── Single article ─────────────────────────────────────────────── */

.article{margin:40px auto 60px;max-width:760px}
.article header.article__head{margin-bottom:36px}
.article__kicker{
  display:inline-block;padding:5px 12px;border-radius:999px;
  background:rgba(79,140,255,.12);border:1px solid rgba(79,140,255,.3);color:#a8c8ff;
  font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;
  margin-bottom:20px
}
.article h1{
  font-family:var(--font-display);font-size:clamp(28px,3.6vw,46px);
  line-height:1.15;letter-spacing:-0.02em;margin:0 0 16px;font-weight:700
}
.article__meta{display:flex;gap:14px;flex-wrap:wrap;font-size:13.5px;color:var(--muted)}
.article__meta .dot{color:rgba(170,180,214,.3)}
.article__meta a{color:#a8c8ff;text-decoration:none}
.article__meta a:hover{text-decoration:underline}

.article__body{font-size:17px;line-height:1.75;color:var(--txt)}
.article__body > * + *{margin-top:1.1em}
.article__body p{margin:0;color:var(--txt)}
.article__body p.muted{color:var(--muted)}

.article__body h2{
  font-family:var(--font-display);font-size:clamp(22px,2.6vw,30px);
  font-weight:600;line-height:1.25;letter-spacing:-0.01em;
  margin:48px 0 14px;color:#EAF0FF
}
.article__body h3{
  font-family:var(--font-display);font-size:clamp(18px,2vw,22px);
  font-weight:600;line-height:1.3;margin:32px 0 12px;color:#cbe0ff
}

.article__body ul, .article__body ol{margin:0;padding-left:24px;color:var(--txt)}
.article__body li{margin:6px 0;line-height:1.7}
.article__body li::marker{color:#a8c8ff}

.article__body strong{color:#fff}
.article__body em{color:#cbe0ff;font-style:italic}

.article__body a{color:#a8c8ff;text-decoration:underline;text-decoration-color:rgba(168,200,255,.3);text-underline-offset:3px}
.article__body a:hover{text-decoration-color:rgba(168,200,255,.9)}

.article__body code{
  font-family:var(--font-mono);font-size:0.88em;
  padding:1px 6px;border-radius:5px;
  background:rgba(79,140,255,.12);color:#cbe0ff;
  white-space:nowrap
}
.article__body pre{
  margin:24px 0;padding:18px 22px;
  background:rgba(0,0,0,.45);border:1px solid var(--stroke2);border-radius:14px;
  overflow-x:auto;font-size:13.5px;line-height:1.65;color:#dbe6ff
}
.article__body pre code{
  font-size:inherit;padding:0;background:none;color:inherit;white-space:pre
}
.article__body pre .c{color:#8896b8;font-style:italic} /* comment */
.article__body pre .k{color:#d7a9ff;font-weight:500}   /* keyword */
.article__body pre .s{color:#86efac}                    /* string */
.article__body pre .n{color:#fcd34d}                    /* number */

.article__body blockquote{
  margin:28px 0;padding:18px 26px;
  border-left:3px solid #4f8cff;background:rgba(79,140,255,.06);
  border-radius:0 14px 14px 0;font-style:italic;color:#cbe0ff;
  font-size:16.5px;line-height:1.65
}

.article__body table{
  width:100%;border-collapse:collapse;margin:24px 0;font-size:14.5px
}
.article__body table th, .article__body table td{
  padding:10px 14px;border-bottom:1px solid var(--stroke2);text-align:left;vertical-align:top
}
.article__body table th{
  color:#a8c8ff;font-weight:600;font-size:12.5px;letter-spacing:.04em;text-transform:uppercase;
  background:rgba(11,17,26,.4)
}

.article__body figure{margin:32px 0;text-align:center}
.article__body figcaption{margin-top:10px;font-size:13px;color:var(--muted);font-style:italic}

.article__body hr{
  margin:48px 0;border:0;height:1px;
  background:linear-gradient(90deg, transparent, var(--stroke), transparent)
}

/* Callout box for "what this does / doesn't" sections etc. */
.article__body .callout{
  margin:28px 0;padding:20px 24px;
  background:rgba(34,197,94,.06);border:1px solid rgba(34,197,94,.25);border-radius:14px;
  font-size:15.5px;line-height:1.65;color:#cbe0ff
}
.article__body .callout.warn{
  background:rgba(245,158,11,.06);border-color:rgba(245,158,11,.3);color:#fcd34d
}
.article__body .callout strong{
  display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;
  margin-bottom:8px;color:#86efac;font-weight:700
}
.article__body .callout.warn strong{color:#fcd34d}

/* Article footer: next post + cta */
.article__foot{
  margin-top:56px;padding-top:30px;border-top:1px solid var(--stroke2);
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px
}
.article__back{font-size:14px;color:#a8c8ff;text-decoration:none}
.article__back:hover{text-decoration:underline}

@media (max-width:640px){
  .article{margin:24px 0 40px}
  .article__body{font-size:16px;line-height:1.7}
  .article__body pre{padding:14px 16px;font-size:12.5px;border-radius:10px}
}
