/* blog.css — nmbrguy blog · blog.nmbrguy.com */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg:         #f5f4f0;
  --text:       #1a1a1a;
  --muted:      #666;
  --accent:     #2a6ebb;
  --border:     #ddd;
  --max-width:  700px;
  --font-body:  Georgia, 'Times New Roman', serif;
  --font-ui:    system-ui, -apple-system, sans-serif;
}

/* ── Reset ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  margin: 0;
  padding: 0;
}

a { color: var(--accent); }
a:hover { text-decoration: underline; }

/* ── Site header ── */
.site-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
}
.site-header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-title {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
}
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

/* ── Main content ── */
main {
  max-width: var(--max-width);
  margin: 2.5rem auto;
  padding: 0 2rem;
}

/* ── Post listing ── */
.post-listing h1 {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  margin: 0 0 2rem;
  font-weight: 700;
}
.post-card {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}
.post-card:last-child { border-bottom: none; }
.post-card h2 { margin: 0 0 0.3rem; font-size: 1.4rem; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.no-posts { color: var(--muted); font-family: var(--font-ui); }

/* ── Post meta (date + tags) ── */
.post-meta {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.2rem 0 0.6rem;
}
.tag {
  background: var(--border);
  color: var(--text);
  padding: 0.1em 0.45em;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-left: 0.2em;
}
.excerpt { color: var(--muted); margin: 0.3rem 0 0; font-size: 1rem; }

/* ── Single post ── */
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: 2rem; margin: 0 0 0.5rem; line-height: 1.25; }

.post-body h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.post-body h3 { font-size: 1.15rem; margin-top: 2rem; }
.post-body img { max-width: 100%; height: auto; display: block; margin: 1.5rem 0; border-radius: 4px; }
.post-body blockquote {
  border-left: 3px solid var(--border);
  margin: 1.5rem 0;
  padding: 0.5rem 1.25rem;
  color: var(--muted);
  font-style: italic;
}
.post-body pre {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
}
.post-body code { font-size: 0.9em; background: #fff; padding: 0.1em 0.3em; border-radius: 3px; }
.post-body pre code { background: none; padding: 0; }

/* ── Comments ── */
.comments-section {
  margin-top: 3rem;
  border-top: 2px solid var(--border);
  padding-top: 2rem;
}
.comments-section h2 {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.comment {
  margin-bottom: 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
}
.comment.reply {
  margin-left: 2rem;
  margin-top: 1rem;
  border-left-color: #bbb;
}
.comment-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.comment-meta a { color: var(--muted); }
.comment-author { font-weight: 600; color: var(--text); }
.reply-link { font-style: italic; }
.comment-body { margin: 0; font-size: 1rem; }
.comment-body p { margin: 0.4rem 0; }
.comments-archived-note {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Post prev/next navigation ── */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.post-nav-older { text-align: left; max-width: 48%; }
.post-nav-newer { text-align: right; max-width: 48%; }
.post-nav-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.post-nav a { color: var(--text); text-decoration: none; }
.post-nav a:hover { color: var(--accent); text-decoration: underline; }

/* ── About page links ── */
.about-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.about-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.about-social a { display: flex; align-items: center; text-decoration: none; }
.about-social a:hover { opacity: 0.75; }
.about-social svg { width: 22px; height: 22px; }
.about-social .sn-x       { color: #000; }
.about-social .sn-youtube  { color: #FF0000; }
.about-social .sn-linkedin { color: #0A66C2; }
.about-social .sn-medium   { color: #000; }

/* ── Older posts (index page archive list) ── */
.older-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.older-posts > h2 {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.older-posts .post-card { margin-bottom: 0.5rem; padding-bottom: 0.5rem; }
.older-posts .post-card h2 { font-size: 1.15rem; }
.older-posts-year {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 300;
  color: #999;
  margin: 1.75rem 0 0.5rem;
}

/* ── 404 ── */
.error-page { text-align: center; padding: 4rem 0; }
.error-page h1 { font-size: 2rem; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}
.site-footer a { color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 640px) {
  main { padding: 0 1.25rem; }
  .site-header { padding: 1rem 1.25rem; }
  .post-header h1 { font-size: 1.6rem; }
}
