/* Shared styles for /blog/* pages — same design tokens as the homepage (index.html),
   extracted so blog pages don't re-inline the whole page's CSS. If you ever change the
   homepage palette/fonts, mirror the change in the :root block below. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080D1A;
  --surface:   #0F1729;
  --surface2:  #151E35;
  --rose:      #E8697A;
  --rose-dim:  rgba(232,105,122,0.12);
  --amber:     #F5C518;
  --amber-dim: rgba(245,197,24,0.10);
  --text:      #F0EEE8;
  --muted:     #8B95A8;
  --border:    rgba(255,255,255,0.07);
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── NAV (identical to homepage) ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(8,13,26,0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo-icon {
  width: 28px; height: 28px;
  background: var(--rose);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 17px; height: 17px; }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--rose-dim);
  color: var(--rose);
  border: 1px solid rgba(232,105,122,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* ── SHARED SECTION / EYEBROW PATTERN ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
}
.section-head { margin-bottom: 3rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--rose);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-head h1, .section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 0.5rem;
}
.section-sub {
  max-width: 640px;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* ── BLOG INDEX: post card grid ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.post-card:hover { border-color: var(--rose); background: var(--surface2); transform: translateY(-3px); }
.post-card .post-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-card h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.post-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.post-card .post-cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
  transition: color 0.2s;
}
.post-card:hover .post-cta { color: var(--rose); }

.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
}

/* ── ARTICLE (single post) ── */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2.5rem 5rem;
}
.article-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.article h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.article-body { font-size: 1.02rem; line-height: 1.8; color: var(--text); }
.article-body p { margin-bottom: 1.25rem; }
.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 1rem;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
}
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.4rem; color: var(--text); }
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--rose); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body img { max-width: 100%; border-radius: 10px; border: 1px solid var(--border); margin: 1.5rem 0; }
.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}
.article-cta h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.article-cta p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.25rem; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  background: var(--rose);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.88; }

/* ── FOOTER (identical to homepage) ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
footer .logo { font-size: 0.95rem; }
footer p { font-size: 0.8rem; color: var(--muted); }

@media (max-width: 900px) {
  .section { padding: 3rem 1.5rem; }
  .post-grid { grid-template-columns: 1fr; }
  .article { padding: 2rem 1.5rem 3rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem; }
}
