/* ============================================================
   Pairvue — blog styles (loaded only on blog + article pages)
   Builds on the tokens defined in styles.css.
   ============================================================ */

.blog-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 24px 80px;
}

/* ---------- Blog index ---------- */
.blog-head { max-width: 640px; margin-bottom: 48px; }
.blog-head .kicker {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 14px;
}
.blog-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.blog-head p {
  color: var(--text-soft);
  margin-top: 14px;
  font-size: 1.05rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.post-card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.post-card .kicker {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 12px;
}
.post-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.post-card .dek {
  color: var(--text-soft);
  margin-top: 12px;
  font-size: .97rem;
  flex: 1;
}
.post-card .post-meta {
  margin-top: 20px;
  font-size: .82rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ---------- Article ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: .9rem;
  margin-bottom: 34px;
  transition: color .2s ease;
}
.back-link:hover { color: var(--teal-300); }

.article { max-width: 720px; margin: 0 auto; }

.article-head { margin-bottom: 40px; }
.article-head .kicker {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 16px;
}
.article-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.article-head .post-meta {
  margin-top: 18px;
  font-size: .85rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Long-form prose */
.prose { font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.prose > p { margin: 0 0 22px; color: #d6deea; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 40px 0 16px;
}
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { margin: 0 0 22px; padding-left: 22px; color: #d6deea; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--teal-300); text-decoration: underline; text-underline-offset: 3px; }

.article-note {
  border-left: 2px solid var(--teal-500);
  padding: 4px 0 4px 20px;
  margin: 0 0 22px;
  color: var(--text-soft);
  font-style: italic;
}

/* End-of-article call to action */
.article-cta {
  margin-top: 52px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.article-cta p { color: var(--text-soft); margin-bottom: 22px; }

.article-disclaimer {
  max-width: 720px;
  margin: 40px auto 0;
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .blog-wrap { padding-top: 100px; }
}
