/* ═══════════════════════════════════════════════════════════════════════
   vbgnt public site — shared chrome for vbgnt.com.

   Dark by design: the product is a game console, and the arcade
   (gallery/index.html) it hands you is dark too, so the marketing site and
   the thing it sells look like one object. The arcade carries this same
   palette — keep the two in step when either moves.

   Two accents, with distinct jobs: violet carries actions (buttons, links,
   hovers), cyan carries labels and affirmatives (overlines, ticks, kickers).
   Mixing those roles is what makes a two-accent system look accidental.

   Loaded by the landing page and every blog post, so nav, footer, buttons
   and prose stay one system as the site grows.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --ground: #08080c;      /* the arcade's background, exactly */
  --raised: #101018;
  --card: #16161f;
  --line: #252531;
  --line-strong: #363646;

  --violet: #7c5cff;      /* ambient glow + washes only */
  --violet-hot: #9b84ff;
  --violet-deep: #6344e8;
  --violet-wash: rgba(124, 92, 255, 0.13);
  --cyan: #22d3ee;        /* actions, labels, affirmatives */
  --cyan-hot: #67e8f9;
  --on-cyan: #05050a;     /* text on a cyan fill */
  --cyan-dim: rgba(34, 211, 238, 0.5);

  --fg1: #f2f1f8;
  --fg2: #d3d1e0;
  --fg3: #b9b6c9;
  --fg4: #837f94;

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-3: 0 10px 30px rgba(0, 0, 0, 0.45);
  --sh-4: 0 24px 60px rgba(0, 0, 0, 0.55);

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--fg2);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--cyan); color: var(--on-cyan); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 740px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--fg1);
  letter-spacing: -0.03em; }
.overline { font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); }
.h2 { font-weight: 700; font-size: 38px; line-height: 1.1; margin: 14px 0 10px;
  max-width: 18ch; }
.lead { font-size: 17px; line-height: 1.62; color: var(--fg3); max-width: 60ch; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: all .18s; white-space: nowrap; }
.btn-primary { background: var(--cyan); color: var(--on-cyan); }
.btn-primary:hover { background: var(--cyan-hot); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg1);
  background: transparent; }
.btn-ghost:hover { border-color: var(--cyan); background: var(--violet-wash); }

/* ── nav ─────────────────────────────────────────────────────────────── */
nav { position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 12, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; padding: 14px 0; }
.wordmark { display: flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.03em; color: var(--fg1); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--fg3);
  white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--fg1); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* ── sections ────────────────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section.raised { background: var(--raised);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.grid-bg {
  background-image: radial-gradient(rgba(124, 92, 255, 0.13) 1px, transparent 1px);
  background-size: 22px 22px; }

/* ── prose (blog posts) ──────────────────────────────────────────────── */
.prose { font-size: 17px; line-height: 1.74; color: var(--fg2); }
.prose > * + * { margin-top: 21px; }
.prose h2 { font-size: 27px; font-weight: 700; margin-top: 50px;
  letter-spacing: -0.026em; scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; font-weight: 700; margin-top: 34px;
  letter-spacing: -0.02em; scroll-margin-top: 90px; }
.prose a { color: var(--cyan); font-weight: 500;
  border-bottom: 1px solid var(--cyan-dim); }
.prose a:hover { border-bottom-color: var(--cyan); }
.prose ul, .prose ol { padding-left: 22px; display: flex;
  flex-direction: column; gap: 10px; }
.prose li { line-height: 1.68; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: var(--fg1); font-weight: 700; }
.prose em { color: var(--fg1); }
.prose blockquote { border-left: 3px solid var(--cyan);
  background: var(--violet-wash); padding: 16px 20px; border-radius: 0 10px 10px 0;
  color: var(--fg2); font-size: 16.5px; }
.prose blockquote p + p { margin-top: 12px; }
.prose code { font-family: var(--mono); font-size: 0.86em;
  background: #1d1d28; padding: 2px 6px; border-radius: 5px; color: var(--cyan); }
.prose pre { background: #05050a; border: 1px solid var(--line);
  color: var(--fg2); padding: 18px 20px; border-radius: 12px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 42px 0; }
.prose figure { margin: 32px 0; }
.prose figcaption { font-size: 13.5px; color: var(--fg4); margin-top: 10px; }

/* Tables scroll inside their own container — the page never scrolls sideways. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; min-width: 560px;
  font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 12px 16px;
  border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--card); font-family: var(--display);
  font-weight: 700; color: var(--fg1); font-size: 13.5px; white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }

/* Extractable summary at the top of every post (SEO + AI answer engines). */
.takeaways { border: 1px solid var(--line); border-left: 3px solid var(--cyan);
  background: var(--card); border-radius: 0 14px 14px 0; padding: 24px 26px;
  margin-bottom: 38px; }
.takeaways h2 { font-size: 12px; font-family: var(--mono); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan);
  margin: 0 0 14px; }
.takeaways ul { margin: 0; padding-left: 20px; display: flex;
  flex-direction: column; gap: 11px; }
.takeaways li { font-size: 15.5px; line-height: 1.62; color: var(--fg2); }
.takeaways li::marker { color: var(--cyan); }

.post-faq { margin-top: 54px; }
.post-faq h2 { font-family: var(--display); font-size: 27px; font-weight: 700;
  letter-spacing: -0.026em; margin-bottom: 8px; }
.post-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.post-faq summary { font-family: var(--display); font-weight: 700; font-size: 17.5px;
  color: var(--fg1); cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; gap: 20px; letter-spacing: -0.018em; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; color: var(--cyan); font-weight: 500;
  font-size: 21px; line-height: 1; flex: none; }
.post-faq details[open] summary::after { content: "\2013"; }
.post-faq p { font-size: 15.5px; line-height: 1.68; color: var(--fg3); margin-top: 10px; }

/* Ties a post back to the product it is about. */
.try-cta { margin-top: 50px; border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 28px; background: var(--card);
  display: flex; gap: 22px; align-items: center; }
.try-cta .body { flex: 1; }
.try-cta h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.try-cta p { font-size: 15px; color: var(--fg3); line-height: 1.55; }

/* ── blog index cards ────────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 36px; }
.post-card { display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  box-shadow: var(--sh-1); transition: all .18s; }
.post-card:hover { border-color: var(--cyan); box-shadow: var(--sh-3);
  transform: translateY(-2px); }
.post-card .kicker { font-family: var(--mono); font-size: 11px;
  font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cyan); }
.post-card h3 { font-size: 20px; font-weight: 700; margin: 12px 0 8px;
  line-height: 1.25; letter-spacing: -0.022em; }
.post-card p { font-size: 14.5px; color: var(--fg3); line-height: 1.55; flex: 1; }
.post-card .meta { display: flex; gap: 12px; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--fg4); }
.post-card.featured { grid-column: 1 / -1; }
.post-card.featured h3 { font-size: 27px; }

/* ── post header + breadcrumbs ───────────────────────────────────────── */
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--fg4);
  display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--cyan); }
.post-head { padding: 52px 0 34px; border-bottom: 1px solid var(--line); }
.post-head h1 { font-size: 43px; font-weight: 700; line-height: 1.08;
  letter-spacing: -0.036em; margin: 18px 0 0; }
.post-head .standfirst { font-size: 19px; line-height: 1.55; color: var(--fg3);
  margin-top: 18px; }
.post-head .byline { display: flex; gap: 14px; align-items: center;
  flex-wrap: wrap; margin-top: 24px; font-family: var(--mono);
  font-size: 12px; color: var(--fg4); }
.post-body { padding: 44px 0 76px; }

/* ── footer ──────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); background: var(--raised); }
.foot-cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px; padding: 48px 0 36px; }
.foot-cols p { font-size: 13.5px; color: var(--fg3); line-height: 1.6;
  margin-top: 14px; max-width: 260px; }
.foot-cols h4 { font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg4);
  margin-bottom: 14px; }
.foot-cols .links { display: flex; flex-direction: column; gap: 9px; }
.foot-cols .links a, .foot-cols .links span { font-size: 13.5px; color: var(--fg3); }
.foot-cols .links a:hover { color: var(--cyan); }
.foot-bar { border-top: 1px solid var(--line); display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0;
  font-family: var(--mono); font-size: 12.5px; color: var(--fg4); }

@media (max-width: 1000px) {
  .post-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .post-head h1 { font-size: 33px; }
}
@media (max-width: 620px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .nav-links { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
  .h2 { font-size: 29px; }
  .section { padding: 60px 0; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 23px; }
  .try-cta { flex-direction: column; align-items: flex-start; }
}
