/* Networkinge — minimal technical editorial */
:root {
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --code-bg: #0f172a;
  --code-ink: #e2e8f0;
  --max: 760px;
  --max-wide: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
}

pre {
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 18px 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 13.5px;
  line-height: 1.55;
}

code:not(pre code) {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

/* ── Header ─────────────────────────────────────────────────────── */
header.site {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  background-color: rgba(255,255,255,0.92);
}

header.site .wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

nav.primary {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
nav.primary a {
  color: var(--muted);
  font-weight: 500;
}
nav.primary a:hover { color: var(--ink); text-decoration: none; }
nav.primary a.active { color: var(--ink); }

/* ── Hero / Sections ─────────────────────────────────────────── */
.hero {
  padding: 80px 24px 60px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap { max-width: var(--max); margin: 0 auto; }
.hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero p.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
}
.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

section {
  padding: 60px 24px;
}
section .wrap { max-width: var(--max); margin: 0 auto; }
section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
section p.intro {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 16px;
}

/* ── Article cards (homepage list) ──────────────────────────── */
.posts { display: grid; gap: 0; }
.posts article {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.posts article:last-child { border-bottom: none; }
.posts article h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.posts article h3 a { color: var(--ink); }
.posts article h3 a:hover { color: var(--accent); text-decoration: none; }
.posts article .meta {
  font-size: 13px;
  color: var(--soft);
  margin-bottom: 8px;
}
.posts article p.excerpt {
  color: var(--muted);
  font-size: 15px;
}

/* ── Article body ───────────────────────────────────────────── */
article.post {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 24px 80px;
}
article.post h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
article.post .meta {
  color: var(--soft);
  font-size: 14px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
article.post h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
article.post h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
}
article.post p { margin-bottom: 18px; color: var(--ink); }
article.post ul, article.post ol { margin: 0 0 20px 22px; }
article.post li { margin-bottom: 6px; color: var(--ink); }
article.post blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 18px;
  margin: 22px 0;
  color: var(--muted);
  font-style: italic;
}
article.post hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

/* ── Footer ─────────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 24px;
  margin-top: 60px;
  color: var(--soft);
  font-size: 13px;
}
footer.site .wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
footer.site a { color: var(--muted); }
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ── Utilities ─────────────────────────────────────────────── */
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 50px 20px 40px; }
  .hero h1 { font-size: 32px; }
  .hero p.lede { font-size: 16px; }
  section { padding: 40px 20px; }
  article.post { padding: 40px 20px 60px; }
  article.post h1 { font-size: 26px; }
  nav.primary { gap: 14px; font-size: 13px; }
  .brand { font-size: 15px; }
}
