/* Blog styles: same dark look and fonts as the landing page */
@font-face { font-family: "Neulis Sans"; src: url("/NeulisSans-SemiBold.otf") format("opentype"); font-weight: 600 700; font-style: normal; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #0a0f18; --surface: #111826; --ink: #f2f5fa; --ink-soft: #a2adbf; --prose: #c5cddb;
  --line: rgba(255,255,255,.09); --accent: #00d9ff; --accent-soft: rgba(0,217,255,.09); --accent-deep: #6be8ff; --accent-ink: #00191f;
  --font-display: "Neulis Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.7;
  padding-inline: 20px; -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 520px at 82% -120px, rgba(0,217,255,.13), transparent 70%), radial-gradient(1000px 640px at 8% 100%, rgba(0,217,255,.06), transparent 70%), var(--bg);
  background-repeat: no-repeat; background-color: var(--bg);
}
::selection { background: var(--accent); color: var(--accent-ink); }
p { margin: 0; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1160px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font: 700 15px/1 var(--font-body); padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap; }
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn.lg { padding: 20px 34px; font-size: 16px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.bnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.bnav-logo { display: block; line-height: 0; min-width: 0; }
.bnav-logo img, .bfoot .logo img { display: block; width: 180px; max-width: 100%; height: auto; filter: brightness(0) invert(1); }
.bnav-r { display: flex; align-items: center; gap: 22px; }
.navlink { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.navlink:hover { color: var(--accent); }

/* Article */
main { display: block; }
.post, .hub { max-width: 760px; margin-inline: auto; padding-block: clamp(28px, 5vw, 64px) 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-soft); margin-bottom: 26px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.post h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -0.025em; }
.byline { margin-top: 22px; font-size: 15px; color: var(--ink-soft); }
.byline a { color: var(--ink); text-decoration: none; font-weight: 600; }
.prose { margin-top: 36px; color: var(--prose); font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 22px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; color: var(--ink); margin-top: 64px; scroll-margin-top: 24px; }
.prose h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; color: var(--ink); margin-top: 38px; scroll-margin-top: 24px; }
.prose h2 + *, .prose h3 + * { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--accent); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 38px; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .2em; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 14px/26px var(--font-body); text-align: center; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.tablewrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; line-height: 1.55; }
.tablewrap th, .tablewrap td { text-align: left; vertical-align: top; padding: 14px 18px; }
.tablewrap thead th { background: rgba(255,255,255,.05); color: var(--accent); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.tablewrap tbody tr + tr > * { border-top: 1px solid var(--line); }
.tablewrap tbody th { color: var(--ink); font-weight: 600; }
.toc { background: var(--accent-soft); border: 1px solid rgba(0,217,255,.3); border-radius: 20px; padding: 22px 26px; margin-top: 34px !important; }
.toc-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); margin: 0 0 12px !important; }
.prose .toc ol { display: block; columns: 2; column-gap: 32px; counter-reset: t; font-size: 15.5px; line-height: 1.45; }
.prose .toc li { padding-left: 0; counter-increment: t; break-inside: avoid; margin: 0 0 10px; }
.prose .toc li::before { display: none; }
.prose .toc a { color: var(--prose); text-decoration: none; }
.prose .toc a:hover { color: var(--accent); }
.post-cta { display: flex; justify-content: center; margin-top: 64px; }

/* Hub */
.hub h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.08; }
.hub-lead { margin-top: 18px; font-size: 19px; color: var(--ink-soft); }
.hub-h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 52px; margin-bottom: 20px; }
.hub-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3.5vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.hub-card:hover { border-color: rgba(0,217,255,.45); transform: translateY(-2px); }
.hub-card h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.hub-card p { color: var(--ink-soft); font-size: 17px; }
.hub-tag { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hub-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); margin-top: 4px; }

/* Footer */
.bfoot { margin-top: 96px; border-top: 1px solid var(--line); padding-block: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; font-size: 14.5px; color: var(--ink-soft); }
.bfoot .logo { display: block; line-height: 0; }
.bfoot .links { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.bfoot a { color: var(--ink-soft); text-decoration: none; }
.bfoot a:hover { color: var(--accent); }
.bfoot .in { width: 50px; height: 50px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.bfoot .in svg { width: 30px; height: 30px; fill: currentColor; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .prose { font-size: 17px; }
  .bnav-logo { flex: 0 1 auto; max-width: 48%; }
  .bnav-r { gap: 14px; }
  .bnav .btn { padding: 12px 16px; font-size: 13px; gap: 8px; }
  .prose .toc ol { columns: 1; }
  .btn.lg { width: 100%; justify-content: center; }
  .toc { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .hub-card { transition: none; } }
