/* ============================================================
   1333 Solutions — blog.css
   Specific styles for the blog and prose content.
   ============================================================ */

/* ── Blog Index ────────────────────────────────────────────── */

.blog-index {
  padding: var(--sp-64) 0 var(--sp-96);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-32);
  margin-top: var(--sp-48);
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-24);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.post-card h3 {
  font-size: 22px;
  font-weight: 500;
  margin: var(--sp-12) 0;
  line-height: 1.3;
}

.post-card h3 a:hover {
  color: var(--accent);
}

.post-card p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: var(--sp-20);
  flex-grow: 1;
}

.post-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  margin-bottom: var(--sp-4);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  margin-bottom: var(--sp-16);
}

.tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.post-read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ── Single Post ───────────────────────────────────────────── */

.post-single {
  padding: var(--sp-64) 0 var(--sp-96);
}

.post-header {
  max-width: 680px;
  margin: 0 auto var(--sp-48);
  text-align: center;
}

.post-header .post-meta {
  justify-content: center;
  margin-bottom: var(--sp-16);
}

.post-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--sp-16);
}

.post-excerpt {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Prose ─────────────────────────────────────────────────── */

.prose {
  max-width: 680px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
}

.prose h2 {
  font-size: 28px;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose h3 {
  font-size: 22px;
  font-weight: 500;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-bottom: 1.5em;
}

.prose ul {
  list-style-type: disc;
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.prose ol {
  list-style-type: decimal;
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.prose ul li, .prose ol li {
  margin-bottom: 0.5em;
  padding-left: 0.5em;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.prose a:hover {
  color: var(--accent-hover);
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--sp-24);
  font-style: italic;
  color: var(--muted);
  margin: 2em 0;
}

.prose code {
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 4px;
}

.prose pre {
  background: var(--surface-alt);
  padding: var(--sp-24);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.prose pre code {
  background: transparent;
  padding: 0;
  font-size: 14px;
}

.prose img {
  border-radius: var(--radius-md);
  margin: 2em auto;
}

/* ── Lead Magnet Card ──────────────────────────────────────── */

.lead-magnet-card {
  max-width: 680px;
  margin: var(--sp-64) auto 0;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  padding: var(--sp-48);
  border: 1px solid rgba(14, 116, 144, 0.1);
}

.lmc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--sp-12);
}

.lead-magnet-card h3 {
  font-size: 24px;
  margin-bottom: var(--sp-12);
}

.lead-magnet-card p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: var(--sp-24);
}

.lmc-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.lmc-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
}

.lmc-form input {
  background: var(--surface);
}

.lmc-privacy {
  font-size: 12px;
  color: var(--muted);
  margin-top: var(--sp-12);
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .lmc-form .form-row {
    grid-template-columns: 1fr;
  }
  .lead-magnet-card {
    padding: var(--sp-32);
  }
}
