/* RapidVuln blog — shares the design system from the main landing page */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080C10;
  --surface:   #0D1117;
  --border:    #1C2A3A;
  --accent:    #00E5FF;
  --accent2:   #0066FF;
  --danger:    #FF4444;
  --warn:      #FFB800;
  --ok:        #00C853;
  --text:      #E6EDF3;
  --muted:     #7D8590;
  --card:      #0D1825;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── NAV (matches main site) ── */
nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(8,12,16,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.logo span { color: var(--text); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover, nav ul a.active { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; }

/* ── SHARED LAYOUT ── */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ── BLOG INDEX ── */
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.blog-hero p {
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 3rem;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
}

.post-card:hover { border-color: rgba(0,229,255,0.3); }

.post-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.post-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.post-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── ARTICLE ── */
.article-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.article h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

.article h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}

.article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  color: var(--accent);
}

.article p {
  margin-bottom: 1.1rem;
  color: var(--text);
}

.article ul, .article ol {
  margin: 0 0 1.25rem 1.25rem;
}

.article li { margin-bottom: 0.5rem; }

.article strong { color: var(--text); font-weight: 700; }

.article code {
  font-family: 'Space Mono', monospace;
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-size: 0.92rem;
  color: var(--text);
}

.cta-box {
  margin-top: 3rem;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.cta-box h3 {
  color: var(--text);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }

.source-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.source-note a { color: var(--accent); text-decoration: none; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
}

footer p {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
}

@media (max-width: 600px) {
  nav ul { display: none; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
