/* BrokenSilence Design System */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
    --slate-950: #0a0f1a;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --white: #f8fafc;
    --amber: #f59e0b;
    --amber-dim: #92610a;
    --amber-glow: rgba(245, 158, 11, 0.08);
    --amber-light: #fbbf24;
    --green: #22c55e;
    --green-dim: #166534;
    --green-glow: rgba(34, 197, 94, 0.08);
    --red: #ef4444;
    --red-dim: #991b1b;
    --red-glow: rgba(239, 68, 68, 0.08);
    --blue: #3b82f6;
    --blue-dim: #1e3a5f;
    --blue-glow: rgba(59, 130, 246, 0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--slate-950);
    color: var(--slate-300);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--white);
    line-height: 1.2;
}

a { color: var(--amber); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber-light); }

/* Subtle grain texture */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* NAV */
nav {
    padding: 20px 0;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--slate-800);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    text-decoration: none;
}
.logo span { color: var(--amber); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 0.9rem;
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--amber);
}

/* FOOTER */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--slate-800);
    margin-top: 80px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-left {
    font-size: 0.8rem;
    color: var(--slate-700);
}
.footer-right {
    font-size: 0.75rem;
    color: var(--slate-700);
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    font-size: 0.8rem;
    color: var(--slate-500);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    gap: 8px;
}
.btn-primary {
    background: var(--amber);
    color: var(--slate-950);
}
.btn-primary:hover {
    background: var(--amber-light);
    color: var(--slate-950);
    transform: translateY(-1px);
}
.btn-secondary {
    background: transparent;
    color: var(--slate-300);
    border: 1px solid var(--slate-700);
}
.btn-secondary:hover {
    border-color: var(--slate-500);
    color: var(--white);
}
.btn-ghost {
    background: transparent;
    color: var(--amber);
    padding: 8px 16px;
}
.btn-ghost:hover {
    background: var(--amber-glow);
}

/* CARDS */
.card {
    padding: 32px;
    background: var(--slate-900);
    border: 1px solid var(--slate-800);
    border-radius: 12px;
    transition: border-color 0.3s;
}
.card:hover {
    border-color: var(--amber-dim);
}

/* BADGE */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}
.badge-amber {
    color: var(--amber);
    background: var(--amber-glow);
    border: 1px solid var(--amber-dim);
}
.badge-green {
    color: var(--green);
    background: var(--green-glow);
    border: 1px solid var(--green-dim);
}
.badge-red {
    color: var(--red);
    background: var(--red-glow);
    border: 1px solid var(--red-dim);
}
.badge-blue {
    color: var(--blue);
    background: var(--blue-glow);
    border: 1px solid var(--blue-dim);
}

/* PRIVACY NOTICE */
.privacy-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--slate-900);
    border: 1px solid var(--slate-800);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--slate-400);
    margin-bottom: 32px;
}
.privacy-notice svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    fill: var(--green);
}

/* ARTICLE STYLES */
.article-body h2 {
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.article-body h3 {
    font-size: 1.2rem;
    margin-top: 36px;
    margin-bottom: 12px;
}
.article-body p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}
.article-body ul, .article-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}
.article-body li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.7;
}
.article-body blockquote {
    border-left: 3px solid var(--amber);
    padding: 16px 24px;
    margin: 28px 0;
    background: var(--amber-glow);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--slate-300);
}
.article-body strong {
    color: var(--white);
    font-weight: 500;
}
.article-body .callout {
    padding: 24px;
    background: var(--slate-900);
    border: 1px solid var(--slate-800);
    border-radius: 12px;
    margin: 28px 0;
}
.article-body .callout-warning {
    border-left: 3px solid var(--red);
}
.article-body .callout-info {
    border-left: 3px solid var(--blue);
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.article-meta span {
    font-size: 0.85rem;
    color: var(--slate-500);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 0.85rem; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .article-body h2 { font-size: 1.3rem; margin-top: 36px; }
    .article-body p { font-size: 1rem; }
}

@media (max-width: 480px) {
    .nav-links { gap: 16px; }
    .btn { padding: 12px 24px; font-size: 0.9rem; }
}
