/* Link Hive blog — "The Local Line".
   Honey on near-black, matching the app rather than the Tatanka Labs site.

   VARIABLE NAMES ARE DELIBERATELY THE SAME as bisonridgepress.com's blog
   (ink / panel / cream / muted / gold / gold-bright / line). tools/
   site_blog_mailer.py builds the email version by substituting these names for
   a light palette, and reusing the proven set means the email conversion works
   without touching the mailer's substitution logic. The VALUES are Link Hive's
   honey; only the names are shared. */

:root {
  --ink: #141317;          /* page background */
  --panel: #1D1C21;        /* cards, raised surfaces */
  --cream: #F2F0EA;        /* body text */
  --muted: #A3A09A;        /* secondary text */
  --gold: #F5B700;         /* Link Hive honey — links, accents */
  --gold-bright: #FFD24A;  /* hover / emphasis */
  --line: #2E2C33;         /* hairlines */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--gold); }
a:hover { color: var(--gold-bright); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(20,19,23,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.blog-header-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.blog-header-brand img { width: 30px; height: 30px; border-radius: 7px; }
.blog-header-brand-name { color: var(--cream); font-weight: 700; letter-spacing: -.01em; }
.blog-header-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.blog-header-nav a { text-decoration: none; font-size: 14px; font-weight: 600; }

main { max-width: 760px; margin: 0 auto; padding: 0 22px 80px; }

/* ── Index hero ─────────────────────────────────────────────────────────── */
.blog-hero { padding: 54px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.blog-hero-eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.blog-hero-title {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  text-wrap: balance;
}
.blog-hero-subtitle { color: var(--muted); font-size: 17px; max-width: 60ch; }
.blog-hero-disclosure { color: var(--muted); font-size: 14px; max-width: 66ch; }

/* ── Post list ──────────────────────────────────────────────────────────── */
.post-list { list-style: none; }
.post-list-item { border-bottom: 1px solid var(--line); }
.post-list-link { display: block; padding: 26px 0; text-decoration: none; color: inherit; }
.post-list-link:hover .post-list-title { color: var(--gold-bright); }
.post-list-date {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.post-list-title { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 8px; }
.post-list-excerpt { color: var(--muted); font-size: 15.5px; }

/* ── Article ────────────────────────────────────────────────────────────── */
.article-wrap { padding: 48px 0 0; }
.article-eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.article-title {
  font-size: clamp(28px, 5.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.article-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.article-meta-author { font-weight: 600; }
.ai-disclosure { color: var(--muted); }

.article-body { font-size: 17px; }
.article-body p { margin-bottom: 20px; }
.article-body h2 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 38px 0 14px;
  text-wrap: balance;
}
.article-body h3 { font-size: 18px; margin: 28px 0 10px; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 9px; }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 18px;
  margin: 0 0 20px;
  color: var(--muted);
  font-style: italic;
}
.article-body strong { color: #FFFFFF; }
.article-body code {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: .9em;
}

.article-footer {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.article-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 24px;
  border-radius: 24px;
  background: var(--gold);
  color: #1C1B1A;
  font-weight: 700;
  text-decoration: none;
}
.article-cta:hover { background: var(--gold-bright); color: #1C1B1A; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.blog-footer {
  border-top: 1px solid var(--line);
  padding: 26px 22px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.blog-footer a { text-decoration: none; }
