/* BSS Blog — Shared Styles
   Design system: Instrument Serif + Inter, ink/sand/scarf palette
   Every blog article links to this file. Article-specific styles stay inline.
   Last updated: 2026-04-01 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink-950: #0c0d12; --ink-900: #141520; --ink-800: #1e2030;
  --ink-700: #2d3048; --ink-600: #4a4e6a; --ink-500: #6b7094;
  --sand-50: #faf9f7; --sand-100: #f5f3ef; --sand-200: #e8e5de;
  --sand-300: #d4d0c7;
  --scarf-700: #1a3a6b; --scarf-600: #234d8a; --scarf-500: #2d62ae;
  --scarf-400: #4080d0; --scarf-100: #e8eef7; --scarf-50: #f3f6fb;
  --signal-warm: #c4714e; --signal-good: #3d7c5f;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
body { font-family: var(--font-body); color: var(--ink-700); line-height: 1.7; background: var(--sand-50); -webkit-font-smoothing: antialiased; }
a { color: var(--scarf-700); text-decoration: none; }
a:hover { color: var(--scarf-600); }

/* Nav */
.nav-wrapper { position: sticky; top: 0; z-index: 50; background: rgba(250,249,247,0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(20,21,32,0.05); }
.nav { max-width: 1120px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink-900); text-decoration: none; }
.nav-logo .blue { color: var(--scarf-600); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--ink-600); transition: color 0.2s; text-decoration: none; }
.nav-links a:hover { color: var(--ink-900); }
.nav-cta { background: var(--ink-950) !important; color: #ffffff !important; padding: 10px 22px; border-radius: 10px; font-weight: 600; font-size: 0.85rem; transition: all 0.2s; text-decoration: none; }
.nav-cta:hover { background: var(--ink-700) !important; color: #ffffff !important; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--ink-700); margin: 5px 0; transition: 0.3s; }
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(250,249,247,0.98); backdrop-filter: blur(16px); flex-direction: column; padding: 20px 28px; gap: 16px; border-bottom: 1px solid rgba(20,21,32,0.08); }
  .nav-links.open { display: flex; }
}

/* Article header */
.article-header { max-width: 740px; margin: 0 auto; padding: 56px 28px 0; text-align: center; }
.back-link { display: inline-block; font-size: 0.875rem; font-weight: 500; color: var(--ink-500); margin-bottom: 32px; transition: color 0.2s; text-decoration: none; }
.back-link:hover { color: var(--ink-900); }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 20px; }
.article-meta .cat { background: var(--scarf-50); color: var(--scarf-700); padding: 4px 10px; border-radius: 6px; }
.article-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink-900); margin-bottom: 16px; }
.article-lede { font-size: 1.1rem; line-height: 1.7; color: var(--ink-500); max-width: 600px; margin: 0 auto; }

/* Hero image */
.hero-image { max-width: 900px; margin: 40px auto 0; padding: 0 28px; }
.hero-image img { width: 100%; height: auto; border-radius: 16px; display: block; box-shadow: 0 4px 24px rgba(12,13,18,0.08); }

/* Article body */
.article-body { max-width: 680px; margin: 48px auto 0; padding: 0 28px 60px; }
.article-body p { margin-bottom: 20px; font-size: 1rem; line-height: 1.75; color: var(--ink-600); }
.article-body h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; line-height: 1.2; color: var(--ink-900); margin: 48px 0 16px; letter-spacing: -0.02em; }
.article-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink-900); margin: 32px 0 12px; }
.article-body strong { color: var(--ink-900); }
.article-body ol, .article-body ul { margin: 0 0 20px 24px; color: var(--ink-600); }
.article-body li { margin-bottom: 10px; font-size: 1rem; line-height: 1.65; }
.article-body blockquote { border-left: 3px solid var(--scarf-500); padding: 4px 0 4px 24px; margin: 28px 0; }
.article-body blockquote p { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.5; color: var(--ink-900); margin-bottom: 4px; }
.article-body blockquote cite { font-family: var(--font-body); font-style: normal; font-size: 0.8rem; color: var(--ink-500); display: block; margin-top: 6px; }

/* Stat cards (shared across many articles) */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 32px 0; }
.stat-card { background: white; border: 1px solid rgba(20,21,32,0.06); border-radius: 14px; padding: 24px; text-align: center; box-shadow: 0 1px 4px rgba(20,21,32,0.03); }
.stat-number { font-family: var(--font-mono); font-size: 2rem; font-weight: 500; color: var(--scarf-700); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.82rem; color: var(--ink-500); line-height: 1.4; }

/* Inline CTA card */
.inline-cta { background: var(--scarf-50); border: 1px solid rgba(35,77,138,0.1); border-radius: 16px; padding: 32px; margin: 40px 0; text-align: center; }
.inline-cta h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--ink-900); margin-bottom: 8px; }
.inline-cta p { font-size: 0.92rem; color: var(--ink-500); margin-bottom: 16px; max-width: 420px; margin-left: auto; margin-right: auto; }
.inline-cta a { display: inline-block; background: var(--ink-950); color: #fff; padding: 12px 28px; border-radius: 10px; font-weight: 600; font-size: 0.88rem; transition: background 0.2s; }
.inline-cta a:hover { background: var(--ink-700); color: #fff; }

/* Email capture / Lead magnet */
.lead-magnet-box { background: linear-gradient(135deg, var(--ink-950) 0%, var(--ink-800) 100%); border-radius: 16px; padding: 36px 32px; margin: 40px 0; text-align: center; }
.lead-magnet-box h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--sand-50); margin-bottom: 8px; }
.lead-magnet-box p { font-size: 0.9rem; color: var(--ink-500); margin-bottom: 20px; max-width: 400px; margin-left: auto; margin-right: auto; }
.lead-magnet-box .capture-form { display: flex; flex-direction: column; gap: 10px; max-width: 440px; margin: 0 auto; }
.lead-magnet-box input { padding: 13px 16px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.15); font-size: 0.9rem; font-family: var(--font-body); background: var(--ink-900); color: var(--sand-50); outline: none; transition: border-color 0.2s; }
.lead-magnet-box input::placeholder { color: var(--ink-500); }
.lead-magnet-box input:focus { border-color: var(--scarf-500); }
.lead-magnet-box button { padding: 13px 24px; border-radius: 10px; border: none; background: white; color: var(--ink-950); font-weight: 600; font-size: 0.88rem; cursor: pointer; font-family: var(--font-body); transition: all 0.2s; white-space: nowrap; }
.lead-magnet-box button:hover { background: var(--sand-200); }
.lead-magnet-box .capture-msg { display: none; font-size: 0.85rem; margin-top: 14px; }
@media (max-width: 480px) { .lead-magnet-box .capture-form { flex-direction: column; } }

/* Related articles */
.related { max-width: 900px; margin: 0 auto; padding: 0 28px 40px; }
.related h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--ink-900); margin-bottom: 24px; text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.related-card { background: white; border: 1px solid rgba(20,21,32,0.06); border-radius: 16px; padding: 28px; box-shadow: 0 1px 4px rgba(20,21,32,0.03); transition: all 0.25s ease; text-decoration: none; display: block; }
.related-card:hover { box-shadow: 0 6px 20px rgba(20,21,32,0.08); transform: translateY(-2px); }
.related-card .rc-cat { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--scarf-600); margin-bottom: 10px; }
.related-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; color: var(--ink-900); line-height: 1.25; margin-bottom: 10px; }
.related-card p { font-size: 0.85rem; color: var(--ink-500); line-height: 1.6; }

/* Footer CTA */
.footer-cta { background: var(--ink-950); padding: 80px 28px; text-align: center; }
.footer-cta h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; color: var(--sand-50); margin-bottom: 12px; }
.footer-cta p { font-size: 1rem; color: var(--ink-500); max-width: 480px; margin: 0 auto 28px; line-height: 1.7; }
.footer-cta a { display: inline-block; background: white; color: var(--ink-950); padding: 14px 32px; border-radius: 12px; font-weight: 600; font-size: 0.92rem; transition: all 0.2s; }
.footer-cta a:hover { background: var(--sand-200); color: var(--ink-950); }

/* Footer */
.site-footer { text-align: center; padding: 32px 28px; font-size: 0.82rem; color: var(--ink-500); }
.site-footer a { color: var(--ink-500); }
.site-footer a:hover { color: var(--ink-900); }

/* Animations */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
