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

:root {
  --primary: #7c3aed; --primary-l: #9d6af5; --blue: #3b7fd4;
  --bg: #f9f8ff; --surface: #ffffff; --surface2: #f0eeff; --border: #e8e2f8;
  --text: #1a1523; --text-dim: #6b6080; --text-muted: #a89cc8;
}

body { font-family: 'Instrument Sans', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249,248,255,.94); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { width: 32px; height: 32px; object-fit: cover; border-radius: 8px; }
.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700;
  background: linear-gradient(135deg,#7c3aed,#3b7fd4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.btn-primary {
  padding: 9px 20px;
  background: linear-gradient(135deg,var(--primary),var(--blue));
  color: #fff; border: none; border-radius: 9px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  text-decoration: none; display: inline-block; white-space: nowrap;
}

/* ── PAGE HEADER ─────────────────────────────────────── */
.page-header { max-width: 860px; margin: 0 auto; padding: 60px 32px 40px; text-align: center; }
.page-label {
  display: inline-block; font-size: 11px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--primary-l); font-weight: 600; margin-bottom: 12px;
}
.page-title {
  font-family: 'Playfair Display', serif; font-size: 44px; font-weight: 400;
  line-height: 1.15; margin-bottom: 10px;
}
.page-title em {
  font-style: italic;
  background: linear-gradient(135deg,var(--primary),var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-sub { font-size: 16px; color: var(--text-dim); }

/* ── LAYOUT ──────────────────────────────────────────── */
.page-content {
  max-width: 1060px; margin: 0 auto;
  padding: 0 32px 80px;
  display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start;
}
.sidebar { position: sticky; top: 84px; }
.main-col { min-width: 0; }

/* ── SEARCH ──────────────────────────────────────────── */

/* ── FILTERS ─────────────────────────────────────────── */
.filter-pill {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 8px 12px;
  border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-dim);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .18s; font-family: inherit; text-align: left;
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── TIMELINE ────────────────────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute;
  left: 5px; top: 14px; bottom: 0;
  width: 2px; background: var(--border); border-radius: 1px;
}

.post-item { position: relative; margin-bottom: 56px; }
.post-dot {
  position: absolute; left: -28px; top: 18px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary);
  border: 2.5px solid var(--bg);
  box-shadow: 0 0 0 3px var(--border);
  transition: transform .2s;
}
.post-item:hover .post-dot { transform: scale(1.3); box-shadow: 0 0 0 4px rgba(124,58,237,0.18); }

.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: box-shadow .2s;
}
.post-item:hover .post-card { box-shadow: 0 8px 32px rgba(124,58,237,0.1); }

.post-img { width: 100%; aspect-ratio: 16/6; object-fit: cover; display: block; }
.post-body { padding: 28px 32px 32px; }

.post-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.post-tag { padding: 4px 11px; border-radius: 50px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.post-date { font-size: 12px; color: var(--text-muted); font-family: 'DM Mono', monospace; }
.post-readtime { font-size: 12px; color: var(--text-muted); }

.post-title {
  font-family: 'Playfair Display', serif; font-size: 28px;
  font-weight: 400; line-height: 1.2; margin-bottom: 8px; color: var(--text);
}
.post-subtitle { font-size: 15px; color: var(--text-dim); margin-bottom: 20px; line-height: 1.55; }
.post-divider { height: 1px; background: var(--border); margin: 20px 0; }
.post-content { font-size: 15px; color: var(--text-dim); line-height: 1.8; }
.post-content p { margin-bottom: 14px; }
.post-content h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--text); margin: 24px 0 8px;
}
.post-content strong { color: var(--text); font-weight: 600; }

.post-actions { margin-top: 20px; display: flex; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 50px;
  border: 1.5px solid var(--border); background: none;
  color: var(--text-dim); font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: all .18s;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── ROADMAP ─────────────────────────────────────────── */
.roadmap-section { margin: 56px 0 48px; }
.section-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--primary-l); font-weight: 600; margin-bottom: 10px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 400; margin-bottom: 6px; }
.section-title em { font-style: italic; background: linear-gradient(135deg,var(--primary),var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-sub { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }

.roadmap-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.roadmap-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 22px;
  transition: box-shadow .2s;
}
.roadmap-card:hover { box-shadow: 0 4px 16px rgba(124,58,237,0.08); }

/* ── NEWSLETTER ──────────────────────────────────────── */
.newsletter-block {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(59,127,212,0.05));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
}

/* ── FOOTER ──────────────────────────────────────────── */
.page-footer {
  border-top: 1px solid var(--border);
  max-width: 1060px; margin: 0 auto;
  padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-dim);
}
.page-footer a { color: var(--text-dim); text-decoration: none; transition: color .15s; }
.page-footer a:hover { color: var(--primary); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .page-header { padding: 40px 20px 28px; }
  .page-title { font-size: 32px; }
  .page-content { grid-template-columns: 1fr; padding: 0 20px 60px; gap: 24px; }
  .sidebar { position: static; }
  .posts-filters-wrap { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .filter-pill { width: auto; }
  .timeline { padding-left: 20px; }
  .timeline::before { left: 3px; }
  .post-dot { left: -20px; }
  .post-body { padding: 20px; }
  .post-title { font-size: 22px; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .page-footer { flex-direction: column; gap: 12px; text-align: center; }
}
