/* ============================================
   kodta.me — Blog styles (extends styles.css)
   ============================================ */

/* --- Sub-header / breadcrumb --- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.crumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t) var(--ease);
}
.crumbs a:hover { color: var(--accent-2); }
.crumbs span { color: var(--text-dim); }

/* --- Blog hero --- */
.blog-hero {
  padding: 7rem 0 2rem;
  position: relative;
}
.blog-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 1rem;
}
.blog-hero__title .accent {
  background: linear-gradient(120deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-hero__sub {
  color: var(--text-muted);
  font-size: 1.12rem;
  max-width: 60ch;
  line-height: 1.7;
}

/* --- Post grid (listing) --- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
  padding-bottom: 5rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, var(--accent-glow), transparent 55%);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
  pointer-events: none;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.post-card:hover::before { opacity: 0.5; }
.post-card__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.post-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.post-card__excerpt {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  flex: 1;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: auto;
}
.post-card__read {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-2);
  font-weight: 600;
  font-family: var(--font-sans);
}

/* --- Article --- */
.article-wrap { padding: 6.5rem 0 5rem; }
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article__head { margin-bottom: 2.5rem; }
.article__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0.8rem 0 1.2rem;
}
.article__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.article__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }
.article__author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}
.article__author-mark {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
}

/* Prose typography */
.prose { color: var(--text); font-size: 1.08rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.35rem; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  margin-top: 2.8rem;
  scroll-margin-top: 90px;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: 2rem;
}
.prose p { color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(52, 211, 153, 0.4);
  transition: text-decoration-color var(--t) var(--ease);
}
.prose a:hover { text-decoration-color: var(--accent-2); }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--text-muted); }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--accent-2); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 1rem 1.3rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-style: italic;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 0.12em 0.45em;
  border-radius: 6px;
  color: var(--accent-2);
}
.prose pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
}
.prose pre code { background: none; border: none; padding: 0; color: var(--text); }

/* Callout / lead */
.prose .lead {
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.7;
}

/* Article CTA */
.article-cta {
  margin: 3.5rem auto 0;
  max-width: 760px;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(6,182,212,0.06));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  text-align: center;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.article-cta p { color: var(--text-muted); margin-bottom: 1.3rem; }

/* FAQ block */
.faq { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.8rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.faq__q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.faq__a { color: var(--text-muted); line-height: 1.65; }

@media (max-width: 640px) {
  .blog-hero { padding: 6rem 0 1.5rem; }
  .article-wrap { padding: 5.5rem 0 3.5rem; }
  .prose { font-size: 1.02rem; }
}
