/* ============================================================
   smolnikov.pro — shared design system
   Neo-brutalist · Manrope + JetBrains Mono · oklch palette
   Used by all multipage subpages (marketing / development /
   games / blog). Home (index.html) keeps its own inline SPA
   styles but shares the same tokens for visual continuity.
   ============================================================ */

:root {
  --bg:        oklch(0.97 0.01 95);
  --ink:       #14110a;
  --muted:     #7a7568;
  --muted-inv: oklch(0.7 0.02 95);
  --line:      oklch(0.9 0.02 95);
  --surface:   #ffffff;
  --accent:    oklch(0.78 0.18 95);   /* yellow  */
  --accent-2:  oklch(0.72 0.17 155);  /* green   */
  --accent-3:  oklch(0.68 0.2 20);    /* coral   */
  --accent-4:  oklch(0.65 0.18 265);  /* blue    */
  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { margin: 0; padding: 0; background: var(--bg); overflow-x: hidden; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; }
a:hover { opacity: 0.85; }
img { max-width: 100%; display: block; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 48px; width: 100%; }

/* ---------- top navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav__in {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 48px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--ink);
  display: grid; place-items: center; flex-shrink: 0;
}
.brand__mark svg { width: 22px; height: 22px; display: block; }
.brand__name { font-weight: 800; letter-spacing: -0.02em; font-size: 17px; }
.brand__name span { color: var(--accent-2); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none; font-size: 14.5px; font-weight: 600;
  padding: 8px 13px; border-radius: 999px; color: var(--ink);
  transition: background 0.15s;
}
.nav-links a:hover { background: color-mix(in oklab, var(--ink) 7%, transparent); opacity: 1; }
.nav-links a.is-active { background: var(--ink); color: var(--bg); }
.nav-cta {
  text-decoration: none; font-weight: 700; font-size: 14.5px;
  padding: 10px 18px; border-radius: 999px; background: var(--accent-2);
  color: var(--ink); border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink); white-space: nowrap;
  transition: transform 0.12s, box-shadow 0.12s;
}
.nav-cta:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); opacity: 1; }
.nav-burger { display: none; background: none; border: 2px solid var(--ink);
  border-radius: 10px; width: 42px; height: 42px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ''; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }

/* ---------- page hero ---------- */
.page-hero { padding: 72px 0 40px; }
.eyebrow {
  display: inline-block; padding: 6px 14px; background: var(--accent);
  color: var(--ink); border-radius: 999px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', monospace; margin-bottom: 22px;
}
.eyebrow--green { background: var(--accent-2); }
.eyebrow--blue  { background: var(--accent-4); color: var(--bg); }
.eyebrow--coral { background: var(--accent-3); color: var(--bg); }
.h-display {
  font-size: clamp(40px, 6.5vw, 84px); font-weight: 800; letter-spacing: -0.04em;
  line-height: 0.98; margin: 0; text-wrap: balance;
}
.h-accent { color: var(--accent-2); font-style: italic; }
.lead { font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: var(--muted);
  max-width: 640px; margin: 26px 0 0; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 44px; max-width: 760px; }
.section-title { font-size: clamp(30px, 4vw, 52px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.02; margin: 0; text-wrap: balance; }
.section-sub { font-size: 17px; color: var(--muted); margin: 16px 0 0; line-height: 1.55; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; font-size: 16px; border-radius: 999px; padding: 15px 26px;
  border: 2px solid var(--ink); cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; }
.btn--primary { background: var(--ink); color: var(--bg); box-shadow: 5px 5px 0 var(--accent-2); }
.btn--accent  { background: var(--accent-2); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn--ghost   { background: transparent; color: var(--ink); box-shadow: none; }
.btn:hover { transform: translate(-2px,-2px); }
.btn--primary:hover { box-shadow: 7px 7px 0 var(--accent-2); opacity: 1; }
.btn--accent:hover  { box-shadow: 7px 7px 0 var(--ink); opacity: 1; }
.btn__arr { display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 12px; text-decoration: none;
  color: var(--ink); transition: transform 0.15s, box-shadow 0.15s; }
.card--link:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(0,0,0,0.4); opacity: 1; }
.card--brut { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.card--brut.card--link:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.card__kicker { font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--accent-2); font-weight: 600; }
.card__title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.card__text { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.card__meta { margin-top: auto; padding-top: 14px; font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; color: var(--accent-2); font-weight: 600; }

/* colored feature cards */
.feature { padding: 32px; border-radius: 24px; min-height: 280px; display: flex;
  flex-direction: column; text-decoration: none; color: var(--ink); }
.feature--green { background: var(--accent-2); }
.feature--blue  { background: var(--accent-4); color: var(--bg); }
.feature--yellow{ background: var(--accent); }
.feature--coral { background: var(--accent-3); color: var(--bg); }
.feature--ink   { background: var(--ink); color: var(--bg); }
.feature__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.feature__tag { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,0.16); }
.feature__name { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1; margin: 0 0 14px; }
.feature__desc { font-size: 15px; line-height: 1.55; flex: 1; margin: 0; opacity: 0.9; }
.feature__meta { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(0,0,0,0.18);
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; }
.feature--blue .feature__meta, .feature--coral .feature__meta, .feature--ink .feature__meta {
  border-color: rgba(255,255,255,0.22); }

/* big number posters */
.posters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.poster { padding: 36px 26px; border-radius: 20px; }
.poster:nth-child(1){ background: var(--accent); transform: rotate(-1deg); }
.poster:nth-child(2){ background: var(--accent-2); transform: rotate(1deg); }
.poster:nth-child(3){ background: var(--accent-3); color: var(--bg); transform: rotate(-0.5deg); }
.poster:nth-child(4){ background: var(--ink); color: var(--bg); transform: rotate(1deg); }
.poster__n { font-family: 'JetBrains Mono', monospace; font-size: clamp(44px,5vw,76px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.poster__l { font-size: 15px; font-weight: 500; margin-top: 10px; }

/* tag chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; font-size: 13.5px; font-weight: 500; }
.chip--ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* numbered list (process / steps) */
.steps { display: grid; gap: 18px; }
.step { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.step__n { font-family: 'JetBrains Mono', monospace; font-size: 30px; font-weight: 800;
  color: var(--accent-2); letter-spacing: -0.03em; margin-bottom: 14px; }
.step__t { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.step__d { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- callout / CTA band ---------- */
.cta-band { background: var(--ink); color: var(--bg); border-radius: 28px; padding: 56px 48px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cta-band h2 { font-size: clamp(30px, 4.5vw, 56px); font-weight: 800; letter-spacing: -0.04em;
  line-height: 0.98; margin: 0 0 18px; }
.cta-band p { font-size: 17px; color: var(--muted-inv); margin: 0 0 26px; max-width: 560px; }

/* ---------- blog ---------- */
.post-list { display: flex; flex-direction: column; }
.post-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 28px;
  align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); }
.post-row:first-child { border-top: 1px solid var(--line); }
.post-row__date { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent-2); font-weight: 600; }
.post-row__title { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; }
.post-row__excerpt { font-size: 14.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; max-width: 620px; }
.post-row__arr { font-size: 22px; color: var(--muted); }
.post-row:hover .post-row__arr { color: var(--accent-2); opacity: 1; }
.post-row:hover { opacity: 1; }

/* article */
.article { max-width: 760px; margin: 0 auto; }
.article__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.article__title { font-size: clamp(32px, 5vw, 60px); font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.02; margin: 0 0 18px; text-wrap: balance; }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink); }
.prose > p { margin: 0 0 22px; }
.prose h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; margin: 46px 0 16px; }
.prose h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 34px 0 12px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.prose blockquote { margin: 28px 0; padding: 20px 26px; background: var(--surface);
  border-left: 4px solid var(--accent-2); border-radius: 0 14px 14px 0;
  font-size: 19px; font-style: italic; }
.prose strong { font-weight: 700; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-2);
  text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose code { font-family: 'JetBrains Mono', monospace; font-size: 0.86em;
  background: color-mix(in oklab, var(--ink) 8%, transparent); padding: 2px 6px; border-radius: 6px; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.callout { padding: 22px 26px; background: var(--accent); border-radius: 16px;
  border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); margin: 28px 0;
  font-size: 16.5px; line-height: 1.6; }

/* ---------- article figures (VC imports) ---------- */
.post-fig { margin: 30px 0; }
.post-fig img { width: 100%; height: auto; border-radius: 16px; border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink); display: block; background: var(--surface); }
.post-fig figcaption { margin-top: 12px; font-size: 14px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace; line-height: 1.5; }
.post-fig--cover { margin: 26px 0 36px; }
.post-fig--cover img { box-shadow: 8px 8px 0 var(--accent-2); }

/* ---------- blog index cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.blog-card { display: flex; flex-direction: column; background: var(--surface);
  border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; text-decoration: none;
  color: var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: transform 0.14s, box-shadow 0.14s; }
.blog-card:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); opacity: 1; }
.blog-card__cover { aspect-ratio: 16/9; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--accent-2); }
.blog-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__cover--gen { display: grid; place-items: center; padding: 24px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-4)); }
.blog-card__cover--gen span { font-family: 'JetBrains Mono', monospace; font-weight: 800;
  font-size: 22px; color: var(--bg); letter-spacing: -0.02em; text-align: center; line-height: 1.2; }
.blog-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__date { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--accent-2); font-weight: 600; }
.blog-card__title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.blog-card__excerpt { font-size: 14.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.blog-card__more { margin-top: auto; padding-top: 12px; font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 24px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin: 0 0 16px; font-weight: 600; }
.site-footer a { display: block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 5px 0; color: var(--ink); }
.site-footer__lead { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; max-width: 320px; line-height: 1.2; }
.site-footer__copy { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--muted); }

/* sticky mobile cta */
.mobile-cta { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .container, .site-nav__in { padding-left: 32px; padding-right: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .posters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .container, .site-nav__in { padding-left: 20px; padding-right: 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .site-nav.is-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 12px 20px 18px; }
  .site-nav.is-open .nav-links a { padding: 12px 14px; }
  .site-nav.is-open .nav-cta { display: inline-flex; margin: 6px 20px 16px;
    position: absolute; top: 100%; left: 0; right: 0; transform: translateY(260px); justify-content: center; }
  .section { padding: 48px 0; }
  .page-hero { padding: 44px 0 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .posters { grid-template-columns: 1fr 1fr; }
  .post-row { grid-template-columns: 1fr; gap: 6px; }
  .post-row__arr { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-fig img, .post-fig--cover img { box-shadow: 4px 4px 0 var(--ink); }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 36px 24px; }
  .prose { font-size: 17px; }
  .mobile-cta {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
    padding: 13px 22px; background: var(--ink); color: var(--bg); border-radius: 999px;
    font-size: 15px; font-weight: 700; text-decoration: none; z-index: 90;
    box-shadow: 0 10px 30px -8px rgba(0,0,0,0.4); white-space: nowrap; }
}
