/* ============================================================================
   LULOLO — blog styles (complements styles.css; load AFTER it)
   Used by blog.html (index) and posts/*.html (article pages).
   ============================================================================ */

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.prose-wrap { max-width: 680px; margin: 0 auto; padding: 0 32px; }

/* blog masthead extends .logo with a "/ blog" suffix */
.logo .section-suffix { color: var(--fg-3); font-weight: 400; margin-left: 8px; }

/* small mono meta + tag chips */
.meta-mono { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.tag-chip {
  font-family: var(--font-mono); font-size: 11px; padding: 4px 10px;
  border-radius: var(--radius-pill); background: var(--accent-subtle);
  color: var(--accent); border: 1px solid var(--accent-line);
  letter-spacing: 0.03em; display: inline-block;
}
.tag-chip.muted { background: transparent; color: var(--fg-3); border-color: var(--border-default); }

/* byline */
.byline { display: flex; align-items: center; gap: 10px; }
.avatar {
  border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); color: var(--fg-2); flex: none;
}
.byline .name { font-size: 13px; color: var(--fg-1); font-weight: 500; }

/* ---- blog index intro ---- */
.blog-intro { padding-top: 64px; padding-bottom: 40px; }
.blog-intro h1 { font-size: 48px; letter-spacing: -0.03em; max-width: 720px; margin-top: 16px; }
.blog-intro p { font-size: 19px; font-weight: 300; line-height: 1.55; color: var(--fg-2); max-width: 560px; margin-top: 18px; }

/* tag filter bar */
.tag-filter { display: flex; gap: 22px; }
.tag-filter a { font-size: 13.5px; font-weight: 500; color: var(--fg-2); cursor: pointer; }
.tag-filter a:hover, .tag-filter a.active { color: var(--accent); }

/* ---- featured post ---- */
.featured {
  display: block; cursor: pointer; border-radius: var(--radius-xl);
  border: 1px solid var(--border-default); background: var(--surface-1);
  overflow: hidden; transition: border-color var(--dur-base) var(--ease-out);
}
.featured:hover { border-color: var(--border-strong); }
.featured-banner {
  position: relative; height: 220px; background: var(--surface-2); overflow: hidden;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 32px 32px;
}
.featured-banner .glow {
  position: absolute; inset: 0;
  background: radial-gradient(closest-side at 70% 30%, rgba(91,140,255,0.22), transparent 70%);
}
.featured-banner .gitline {
  position: absolute; left: 36px; bottom: 28px;
  font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); line-height: 1.9;
}
.featured-banner .gitline .prompt { color: var(--accent); }
.featured-banner .gitline .out { color: var(--fg-2); }
.featured-body { padding: 32px 36px 36px; }
.featured-body .row { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.featured-body h2 { font-size: 34px; margin-bottom: 12px; line-height: 1.12; letter-spacing: -0.025em; }
.featured-body .excerpt { font-size: 17px; line-height: 1.6; color: var(--fg-2); margin-bottom: 24px; max-width: 620px; }

/* ---- article grid ---- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card {
  display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface-2); border: 1px solid var(--border-default); cursor: pointer;
  transition: border-color var(--dur-base), transform var(--dur-base);
}
.article-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.article-card .chip-row { margin-bottom: 16px; }
.article-card h3 { font-size: 21px; margin-bottom: 10px; line-height: 1.2; letter-spacing: -0.015em; }
.article-card .excerpt { font-size: 14.5px; line-height: 1.6; color: var(--fg-2); margin-bottom: 22px; flex: 1; }

/* ---- article (post) page ---- */
.post-top { padding-top: 56px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 32px; }
.back-link svg { width: 14px; height: 14px; stroke: var(--fg-3); transform: rotate(180deg); }
.post-head-row { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.post-title { font-size: 42px; margin-bottom: 24px; letter-spacing: -0.03em; line-height: 1.08; }
.post-byline {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--border-subtle);
}
.post-byline .role { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }

/* prose */
.prose p { font-size: 18px; line-height: 1.75; color: var(--fg-2); margin: 0 0 24px; }
.prose h2 { font-size: 28px; margin: 44px 0 16px; letter-spacing: -0.02em; }
.prose ul { color: var(--fg-2); font-size: 18px; line-height: 1.75; padding-left: 22px; margin: 0 0 24px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--fg-1); font-weight: 600; }
.prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent);
  color: var(--fg-1); font-size: 20px; line-height: 1.6;
}
.prose pre {
  background: var(--surface-1); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 20px 22px; font-family: var(--font-mono);
  font-size: 14px; line-height: 1.8; color: var(--fg-2); overflow-x: auto; margin: 0 0 28px;
}
.prose pre .k { color: var(--accent); }
.prose pre .n { color: var(--cyan); }
.prose pre .c { color: var(--fg-3); }

.post-related { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--border-subtle); }

@media (max-width: 760px) {
  .article-grid { grid-template-columns: 1fr; }
  .tag-filter { display: none; }
  .blog-intro h1 { font-size: 36px; }
  .post-title { font-size: 32px; }
}
