:root {
    --bg-body: #f8fafc;
    --bg-paper: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-soft: #eff6ff;
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    --quote-bg: #f1f5f9;
    --table-header: #0f172a;
    --tag-bg: #e0e7ff;
    --tag-text: #3730a3;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --danger-text: #991b1b;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08);
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* Top Bar */
.top-nav {
    background: #0f172a;
    color: #94a3b8;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid #1e293b;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.top-nav .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.date-badge {
    display: flex;
    gap: 12px;
}

/* Newspaper Paper Container */
.newspaper-container {
    background: var(--bg-paper);
    margin: 32px auto 60px;
    padding: 56px 64px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .newspaper-container {
        padding: 28px 20px;
        margin: 16px auto;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 32px;
}

.category-pill {
    display: inline-block;
    background: var(--tag-bg);
    color: var(--tag-text);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

h1.article-title {
    font-family: var(--font-sans);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #0f172a;
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    h1.article-title {
        font-size: 28px;
    }
}

.article-subtitle {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

.meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.reading-time {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
}

/* Lead Paragraph */
.lead-text {
    font-size: 21px;
    line-height: 1.7;
    font-weight: 400;
    color: #1e293b;
    margin-bottom: 32px;
    padding-left: 20px;
    border-left: 4px solid var(--accent);
}

/* Hero Image */
.hero-figure {
    margin: 36px 0 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.hero-figure img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
    object-position: center;
}

.hero-figure figcaption {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-light);
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    line-height: 1.5;
}

/* Headings */
h2 {
    font-family: var(--font-sans);
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 44px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

h2 .section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 16px;
}

h3 {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 28px 0 12px;
}

p {
    margin-bottom: 22px;
}

/* Key Metrics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 32px 0;
    font-family: var(--font-sans);
}

.stat-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

.stat-source {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quote Box */
.speech-box {
    background: var(--quote-bg);
    border-left: 4px solid #0f172a;
    padding: 24px 28px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.speech-box::before {
    content: "“";
    font-family: Georgia, serif;
    font-size: 60px;
    color: #94a3b8;
    position: absolute;
    top: 4px;
    left: 12px;
    line-height: 1;
    opacity: 0.4;
}

.speech-text {
    font-style: italic;
    color: #1e293b;
    font-size: 19px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.speech-author {
    margin-top: 14px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-align: right;
    border-top: 1px solid #cbd5e1;
    padding-top: 8px;
}

/* Perspective Cards */
.perspectives-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 28px 0;
    font-family: var(--font-sans);
}

.p-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.p-card.futurist { border-top: 4px solid #8b5cf6; }
.p-card.pragmatist { border-top: 4px solid #10b981; }
.p-card.economist { border-top: 4px solid #f59e0b; }

.p-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.p-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.p-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.p-tag.purple { background: #ede9fe; color: #6d28d9; }
.p-tag.green { background: #d1fae5; color: #047857; }
.p-tag.amber { background: #fef3c7; color: #b45309; }

.p-body {
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}

.p-quote {
    background: #f8fafc;
    border-left: 3px solid #cbd5e1;
    padding: 10px 16px;
    margin-top: 12px;
    font-size: 15px;
    font-style: italic;
    color: #475569;
}

/* Comparison Table */
.table-responsive {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

table.editorial-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 14px;
    text-align: left;
    background: #fff;
}

table.editorial-table th {
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
    padding: 16px 18px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

table.editorial-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.6;
}

table.editorial-table tr:last-child td {
    border-bottom: none;
}

table.editorial-table tr:nth-child(even) td {
    background: #f8fafc;
}

.table-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    margin-bottom: 6px;
}

/* Formula & Logic Box */
.formula-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    margin: 28px 0;
    font-family: var(--font-sans);
    text-align: center;
}

.formula-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

.formula-content {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    padding: 12px 18px;
    display: inline-block;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Callout Warning */
.callout-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin: 28px 0;
    font-size: 16px;
    line-height: 1.7;
}

.callout-title {
    font-family: var(--font-sans);
    font-weight: 700;
    color: #92400e;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* References / Sources Section */
.sources-section {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 2px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-muted);
}

.sources-section h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sources-list {
    list-style: decimal;
    padding-left: 20px;
    line-height: 1.8;
}

.sources-list li {
    margin-bottom: 8px;
}

.sources-list a {
    color: var(--accent);
    text-decoration: none;
}

.sources-list a:hover {
    text-decoration: underline;
}

/* Footer */
footer.newspaper-footer {
    text-align: center;
    padding: 30px 0 50px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
}

/* Print formatting */
@media print {
    body { background: #fff; font-size: 14pt; }
    .top-nav { display: none; }
    .newspaper-container { box-shadow: none; border: none; padding: 0; }
}
