/* ============================================
   VexlowHQ — design tokens
   ============================================ */
:root {
  --ink: #0f1419;
  --ink-2: #161d24;
  --ink-3: #1e2830;
  --line: #2a353e;
  --bone: #e8e6e1;
  --bone-dim: #a9b2ba;
  --slate: #8b93a1;
  --amber: #f2a63c;
  --amber-dim: #7a5a25;
  --cyan: #3fc1c9;
  --cyan-dim: #1f5f63;

  --display: "Space Grotesk", "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --max: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 20, 25, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--bone);
  letter-spacing: -0.02em;
}
.logo span { color: var(--amber); }
nav.primary { display: flex; gap: 28px; }
nav.primary a {
  color: var(--bone-dim);
  font-size: 14px;
  font-family: var(--mono);
}
nav.primary a:hover { color: var(--cyan); text-decoration: none; }

/* ---------- hero + pipeline signature ---------- */
.hero { padding: 88px 0 40px; }
.hero .eyebrow { display: block; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 780px;
}
.hero p.lede {
  max-width: 620px;
  color: var(--bone-dim);
  font-size: 18px;
  margin-top: 22px;
}

.pipeline {
  margin-top: 64px;
  position: relative;
  padding-top: 36px;
}
.pipeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim) 8%, var(--cyan-dim) 92%, transparent);
}
.pipeline-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.node {
  position: relative;
  padding: 22px 20px 26px;
  border-left: 1px solid var(--line);
}
.node:first-child { border-left: none; }
.node::before {
  content: "";
  position: absolute;
  top: -37px;
  left: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--cyan);
}
.node:first-child::before { left: 0; }
.node .n-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.06em;
}
.node h3 { font-size: 17px; margin-top: 10px; }
.node p {
  color: var(--slate);
  font-size: 14px;
  margin-top: 8px;
}
.node a.go {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
}

/* ---------- article list ---------- */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 26px; margin-bottom: 28px; }

.post-list { display: flex; flex-direction: column; }
.post-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.post-list .post-row:first-child { border-top: none; }
.post-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-dim);
  background: rgba(242, 166, 60, 0.08);
  border: 1px solid var(--amber-dim);
  padding: 3px 8px;
  border-radius: 3px;
  width: fit-content;
}
.post-row h3 { font-size: 17px; font-weight: 500; }
.post-row .status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate);
  white-space: nowrap;
}

/* ---------- article page ---------- */
article.post { padding: 64px 0 96px; }
article.post .meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 18px;
}
article.post h1 { font-size: clamp(28px, 4vw, 42px); max-width: 800px; }
article.post .dek {
  color: var(--bone-dim);
  font-size: 19px;
  max-width: 700px;
  margin-top: 18px;
}
article.post .body-copy {
  max-width: 700px;
  margin-top: 44px;
}
article.post .body-copy h2 {
  font-size: 22px;
  margin-top: 44px;
  margin-bottom: 14px;
}
article.post .body-copy p {
  margin: 0 0 18px;
  color: var(--bone-dim);
}
article.post .body-copy ul, article.post .body-copy ol {
  color: var(--bone-dim);
  padding-left: 22px;
}
article.post .body-copy li { margin-bottom: 8px; }
article.post .body-copy code {
  font-family: var(--mono);
  background: var(--ink-3);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 15px;
  color: var(--cyan);
}
article.post .body-copy pre {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--bone);
}
.callout {
  border-left: 3px solid var(--amber);
  background: rgba(242, 166, 60, 0.06);
  padding: 16px 20px;
  margin: 28px 0;
  max-width: 700px;
  font-size: 15px;
  color: var(--bone-dim);
}

/* ---------- ad slots ---------- */
.ad-slot {
  max-width: 700px;
  margin: 40px auto;
  padding: 10px;
  border: 1px dashed var(--line);
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0 60px;
  margin-top: 40px;
}
footer.site .foot-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--slate);
  font-size: 13px;
  font-family: var(--mono);
}
footer.site a { color: var(--slate); }
footer.site a:hover { color: var(--cyan); }

/* ---------- category page header ---------- */
.cat-header { padding: 64px 0 20px; border-bottom: 1px solid var(--line); }
.cat-header .eyebrow { display: block; margin-bottom: 14px; }
.cat-header h1 { font-size: clamp(30px, 4.5vw, 46px); max-width: 700px; }
.cat-header p.lede {
  max-width: 600px;
  color: var(--bone-dim);
  font-size: 17px;
  margin-top: 16px;
}

/* ---------- contact form ---------- */
form.contact-form { max-width: 520px; margin-top: 32px; }
form.contact-form label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}
form.contact-form .field { margin-bottom: 22px; }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--bone);
  font-family: var(--body);
  font-size: 15px;
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
form.contact-form textarea { min-height: 140px; resize: vertical; }
form.contact-form button {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--ink);
  border: none;
  padding: 13px 26px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}
form.contact-form button:hover { background: #ffb85c; }

/* ---------- cookie banner ---------- */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 50;
}
#cookie-banner.show { display: flex; }
#cookie-banner p {
  margin: 0;
  font-size: 13.5px;
  color: var(--bone-dim);
  max-width: 640px;
}
#cookie-banner a { color: var(--cyan); }
#cookie-banner button {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--amber);
  color: var(--ink);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}
.error-page .code {
  font-family: var(--mono);
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.error-page h1 { font-size: clamp(32px, 5vw, 52px); margin-top: 14px; }
.error-page p { color: var(--bone-dim); margin-top: 14px; max-width: 480px; }

@media (max-width: 1024px) and (min-width: 781px) {
  .pipeline-row { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .node:nth-child(3) { border-left: none; }
}

@media (max-width: 780px) {
  .pipeline-row { grid-template-columns: 1fr 1fr; }
  .node { border-left: none; border-top: 1px solid var(--line); padding-top: 18px; }
  .node::before { display: none; }
  .post-row { grid-template-columns: 1fr; gap: 6px; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
}
