/* === 1. Foundational Styles & "Signal Brief" Design System === */
:root {
    /* Color Palette from your brief */
    --primary-color: #004E89;    /* Strong, trustworthy deep blue */
    --accent-color: #F4B942;     /* Warm gold for highlights */
    --text-color: #1F2937;       /* Dark slate gray for text */
    --background-color: #F9FAFB; /* Very light gray background */
    --border-color: #E5E7EB;     /* A subtle border color */
    --surface-color: #FFFFFF;    /* The color of cards and surfaces */

    /* Typography from your brief */
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.7; /* Increased line-height for readability */
    -webkit-font-smoothing: antialiased; /* Smoother fonts on Mac/iOS */
}

.container {
    max-width: 800px; /* A readable width for text-heavy content */
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === 2. Header & Footer === */
.site-header {
    background-color: var(--surface-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.site-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.site-footer {
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
    font-size: 0.9rem;
    color: #6B7280; /* A lighter gray for footer text */
}

/* === 3. Homepage Styles (Axios-inspired list) === */
main {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.main-heading {
    text-align: center;
    margin-bottom: 3.5rem;
}

.main-heading h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.main-heading .subtitle {
    font-size: 1.15rem;
    color: #4B5563;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

#headlines-container {
    display: flex;
    flex-direction: column;
}

/* Re-styled to be a list, not cards */
.headline-link {
    display: block;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease-in-out;
}
.headline-link:first-child {
    border-top: 1px solid var(--border-color);
}
.headline-link:hover h2 {
    color: var(--primary-color);
}

.headline-link h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.3;
    margin: 0;
    transition: color 0.2s ease-in-out;
}

/* === 4. Article Detail Page Styles === */
.detail-header {
    margin-bottom: 1rem;
}

.back-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.2s;
}
.back-link:hover {
    text-decoration: underline;
}

#article-headline {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    line-height: 1.2;
    margin: 1rem 0;
}

#article-summary {
    font-size: 1.2rem;
    color: #374151;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.perspective-container {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.perspective-column {
    flex: 1;
}

.perspective-column h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    /* Using the accent color sparingly and effectively */
    border-bottom: 3px solid var(--accent-color); 
}

/* Specific colors for perspective headers */
.perspective-left h3 { color: #004E89; /* Your primary blue */ }
.perspective-right h3 { color: #B91C1C; /* A deep, serious red */ }

.perspective-column p {
    font-size: 1rem;
    line-height: 1.8; /* Extra line height for long paragraphs */
}

#original-article-link {
    display: inline-block;
    margin-top: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}
#original-article-link:hover {
    text-decoration: underline;
}


/* === 5. Mobile Responsiveness === */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    main {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .main-heading h1 { font-size: 2.5rem; }
    .headline-link h2 { font-size: 1.5rem; }
    #article-headline { font-size: 2.25rem; }
    .perspective-container { flex-direction: column; }
}