/* ─── PrivacyPuppet Blog Styles ─────────────────────────────────────────────── */
:root {
    --bg: #000000;
    --bg-elevated: #060608;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(124, 92, 252, 0.3);
    --accent: #7c5cfc;
    --accent-light: #a48aff;
    --accent-glow: rgba(124, 92, 252, 0.25);
    --text: #e4e4e7;
    --text-dim: rgba(255, 255, 255, 0.55);
    --text-muted: rgba(255, 255, 255, 0.3);
    --radius: 16px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Navigation ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px var(--accent-glow);
    transition: opacity 0.2s;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--text-dim);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
    padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* ─── Hero (blog index) ─── */
.hero {
    position: relative;
    padding: 140px 32px 60px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 16px;
    color: var(--text-dim);
    margin-top: 16px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
}

/* ─── Container ─── */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ─── Article cards grid ─── */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.article-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.article-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(124, 92, 252, 0.08);
}

.article-card:hover::before {
    opacity: 1;
}

.card-tag {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    background: rgba(124, 92, 252, 0.1);
    border: 1px solid rgba(124, 92, 252, 0.15);
    border-radius: 999px;
    margin-bottom: 16px;
}

.article-card h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #fff;
}

.article-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    gap: 16px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
}

/* ─── Article content (single post pages) ─── */
.article-hero {
    padding: 140px 32px 40px;
    text-align: center;
}

.article-hero .card-tag {
    margin-bottom: 20px;
}

.article-hero h1 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    max-width: 720px;
    margin: 0 auto 16px;
}

.article-hero .hero-sub {
    font-size: 14px;
}

.article-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 48px 0 16px;
    color: #fff;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 36px 0 12px;
    color: #fff;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-content li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(124, 92, 252, 0.05);
    border-radius: 0 12px 12px 0;
}

.article-content blockquote p {
    color: var(--text);
    font-style: italic;
    margin-bottom: 0;
}

.article-content strong {
    color: #fff;
}

.article-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(124, 92, 252, 0.3);
    transition: border-color 0.2s;
}

.article-content a:hover {
    border-color: var(--accent);
}

.article-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.article-nav a {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--text-dim);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all 0.2s;
}

.article-nav a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ─── Footer ─── */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 32px;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    nav {
        padding: 12px 16px;
    }

    .nav-links {
        gap: 16px;
    }

    .hero {
        padding: 120px 16px 40px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .article-hero h1 {
        font-size: 28px;
    }

    .article-hero {
        padding: 120px 16px 30px;
    }

    .container {
        padding: 0 16px 60px;
    }

    .article-card {
        padding: 24px;
    }

    .article-card h2 {
        font-size: 18px;
    }

    .article-content {
        padding: 30px 16px 60px;
    }

    .article-content h2 {
        font-size: 20px;
    }

    .article-content p,
    .article-content li {
        font-size: 15px;
    }
}

@media (min-width: 640px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}