/* ============================================================
   CREWFILE BLOG — extends styles.css, same terminal editorial
   ============================================================ */

/* ---------- blog index ---------- */

.blog-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.2rem, 4vw, 3rem) 5rem;
}

.blog-h1 {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.blog-h1 em { font-style: normal; color: var(--accent); }

.blog-sub {
  margin-top: 1.2rem;
  max-width: 58ch;
  color: var(--mute);
  font-size: 0.95rem;
}

.blog-list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.blog-card {
  display: block;
  background: var(--panel);
  padding: 1.9rem 1.8rem;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease;
}
.blog-card:hover { background: var(--bg-2); }
.blog-card:hover h2 { color: var(--accent); }

.blog-tag {
  display: inline-block;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.14rem 0.5rem;
  margin-bottom: 0.9rem;
}

.blog-card h2 {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 0.18s ease;
}

.blog-card p {
  margin-top: 0.6rem;
  color: var(--mute);
  font-size: 0.88rem;
  max-width: 70ch;
}

.blog-more {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--dim);
  font-size: 0.78rem;
}
.blog-card:hover .blog-more { color: var(--accent); }

/* ---------- single post ---------- */

.post {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 4.5rem) clamp(1.2rem, 4vw, 2rem) 5rem;
}

.post-back {
  display: inline-block;
  color: var(--dim);
  text-decoration: none;
  font-size: 0.82rem;
  margin-bottom: 2.2rem;
  transition: color 0.18s ease;
}
.post-back:hover { color: var(--accent); }

.post-kicker {
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.post h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.7rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.post-meta {
  margin: 1rem 0 2.6rem;
  color: var(--dim);
  font-size: 0.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px dashed var(--line);
}

.post h2 {
  margin: 2.6rem 0 0.9rem;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.post h2::before { content: "## "; color: var(--accent); font-weight: 400; }

.post h3 {
  margin: 1.9rem 0 0.6rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.post p { margin: 0 0 1.1rem; color: var(--mute); font-size: 0.93rem; }
.post p b, .post p strong, .post li b, .post li strong { color: var(--ink); }

.post a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-style: dotted; }
.post a:hover { text-decoration-style: solid; }

.post ul, .post ol { margin: 0 0 1.2rem 1.2rem; }
.post li { color: var(--mute); font-size: 0.92rem; margin-bottom: 0.5rem; }
.post ul li::marker { content: "▸ "; color: var(--accent); }

.post code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0.08em 0.4em;
}

.post pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.3rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink);
}
.post pre code { background: none; border: none; padding: 0; font-size: inherit; }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--panel);
  padding: 1.1rem 1.3rem;
  margin: 1.8rem 0;
  color: var(--mute);
  font-size: 0.9rem;
}
.callout b { color: var(--ink); }

/* buttons inside a post must not inherit the article link style */
.post a.btn { text-decoration: none; }
.post a.btn-solid { color: #06130b; }
.post a.btn-solid:hover { background: transparent; color: var(--accent); }
.post a.btn-ghost { color: var(--accent); }
.post a.btn-ghost:hover { background: var(--accent); color: #06130b; }

/* end-of-post CTA */
.post-cta {
  margin-top: 3.2rem;
  border: 1px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-dim) 0%, var(--panel) 60%);
  padding: 2rem 1.8rem;
}
.post-cta h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.post-cta p { margin-bottom: 1.4rem; }

/* prev / next reading */
.post-related {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
}
.post-related p { margin-bottom: 0.5rem; color: var(--dim); }

@media (max-width: 600px) {
  .post pre { font-size: 0.74rem; }
}
