/* Korrali Blog — shared visual system, matched to trust.korrali.com/blog and revenue.korrali.com/blog */

:root {
  --color-background: #fafaf9;
  --color-foreground: #09090b;
  --color-card: #ffffff;
  --color-muted: #f4f4f5;
  --color-muted-foreground: #71717a;
  --color-border: #e4e4e7;
  --color-accent-from: #10b981;
  --color-accent-to: #3b82f6;
}

body.blog-body {
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: 'Geist', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.blog-badge {
  background-image: linear-gradient(to bottom, var(--color-accent-from), var(--color-accent-to));
}

.blog-gradient-text {
  background-image: linear-gradient(to right, var(--color-accent-from), var(--color-accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.blog-eyebrow {
  color: var(--color-accent-from);
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(250, 250, 249, 0.85);
  border-bottom: 1px solid var(--color-border);
}

.blog-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
}

/* Post body typography — mirrors the markdownToHtml() output classes used on Trust/Revenue */
.post h1 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-foreground);
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .post h1 { font-size: 2.25rem; } }
@media (min-width: 768px) { .post h1 { font-size: 3rem; } }

.post h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-foreground);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.post h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-foreground);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post p {
  margin: 1.25rem 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-muted-foreground);
}

.post strong {
  font-weight: 600;
  color: var(--color-foreground);
}

.post em {
  font-style: italic;
}

.post ul, .post ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
  color: var(--color-muted-foreground);
}
.post ul { list-style: disc; }
.post ol { list-style: decimal; }
.post li { margin: 0.5rem 0; }
.post li::marker { color: #a1a1aa; }

.post a {
  color: var(--color-foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-border);
}
.post a:hover { text-decoration-color: var(--color-foreground); }

.post code {
  background: rgba(244, 244, 245, 0.7);
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
  padding: 0.15rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 13px;
  font-family: ui-monospace, 'Geist Mono', SFMono-Regular, Menlo, monospace;
}

.post pre {
  background: var(--color-foreground);
  color: var(--color-background);
  padding: 1.1rem 1.35rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 1.75rem 0;
}
.post pre code {
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
  font-size: 1em;
}

.post hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 3rem 0;
}
