@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Outfit:wght@400;600;800&display=swap');

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --bg-light: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    
    /* Signal Color Tokens */
    --high-bg: #FFF1F2;
    --high-text: #E11D48;
    --medium-bg: #FFFBEB;
    --medium-text: #D97706;
    --routine-bg: #F1F5F9;
    --routine-text: #475569;

    --max-width: 900px;
}

body.dark-mode {
    --bg-light: #0F172A;
    --card-bg: #1E293B;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --border: #334155;
    
    --high-bg: #4c0519;
    --high-text: #FDA4AF;
    --medium-bg: #451a03;
    --medium-text: #FCD34D;
    --routine-bg: #1e293b;
    --routine-text: #94a3b8;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    transition: background-color 0.3s ease;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Header */
.site-header {
    background: rgba(var(--card-bg), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

nav a {
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 1.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary);
}

/* Main Layout */
.content-wrapper {
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* Article */
.news-article {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
}

.article-header h1 {
    font-size: 2.75rem;
    line-height: 1.1;
    margin: 1.5rem 0;
    letter-spacing: -0.03em;
}

.metadata-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.signal-badge {
    padding: 0.4rem 1rem;
    border-radius: 100px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.signal-badge.high { background: var(--high-bg); color: var(--high-text); }
.signal-badge.medium { background: var(--medium-bg); color: var(--medium-text); }
.signal-badge.routine { background: var(--routine-bg); color: var(--routine-text); }

.company-subhead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.company-subhead a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* Content Sections */
.article-body {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.8;
}

.key-figures {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.key-figures h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.key-figures ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.key-figures li strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.why-it-matters {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 3rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.source-link {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.source-link a {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s;
}

.source-link a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Footer */
.site-footer {
    max-width: var(--max-width);
    margin: 5rem auto 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0 1.5rem;
}

#theme-toggle {
    background: none;
    border: 1px solid var(--border);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .news-article {
        padding: 1.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .article-header h1 {
        font-size: 1.8rem;
    }
    .header-inner {
        padding: 1rem;
    }
    nav a {
        margin-left: 0.75rem;
        font-size: 0.9rem;
    }
}
