/* Modern CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Refined Neutral Color Palette */
    --primary-color: #374151;
    --primary-dark: #1f2937;
    --primary-light: #4b5563;
    --accent-color: #6b7280;

    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;

    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --bg-accent: #f9fafb;

    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-dark: #9ca3af;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.08);

    --transition: all 0.2s ease;
}

/* Enhanced Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p, li {
    text-rendering: optimizeLegibility;
}

/* Header - Minimal and Clean */
header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.98);
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.025em;
    transition: var(--transition);
}

.site-logo:hover {
    color: var(--primary-color);
}

.site-tagline {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    position: relative;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-primary);
    transition: width 0.2s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Breadcrumb - Minimal */
.breadcrumb-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    background-color: var(--bg-secondary);
}

.breadcrumb {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    align-items: center;
    line-height: 1;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    line-height: 1;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb li[aria-current="page"] {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

/* Page Header - Refined */
.page-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

.page-header .meta {
    font-size: 0.9375rem;
    margin-top: 1rem;
    color: var(--text-tertiary);
}

.page-header .meta a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-medium);
}

.page-header .meta a:hover {
    border-bottom-color: var(--text-primary);
}

/* Article Tags - Minimalist */
.article-tags {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag-chip {
    display: inline-block;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.tag-chip:hover {
    background-color: var(--text-primary);
    color: var(--text-inverse);
    border-color: var(--text-primary);
}

/* Category and Tag Index Grids */
.categories-grid,
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card,
.tag-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-align: center;
}

.category-card:hover,
.tag-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-md);
}

.category-card h3,
.tag-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-card h3 a,
.tag-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.category-card h3 a:hover,
.tag-card h3 a:hover {
    color: var(--text-secondary);
}

.category-card p,
.tag-card p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Main Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: var(--bg-secondary);
}

/* Content Sections - Clean Editorial */
.content-section {
    background-color: var(--bg-primary);
    padding: 3rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.content-section h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Optimized paragraph styling */
.content-section p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.content-section > p:first-of-type {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* List styling */
.content-section ul, .content-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.content-section li {
    margin-bottom: 0.75rem;
    font-size: 1.0625rem;
}

.content-section li > strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-section strong {
    font-weight: 600;
    color: var(--text-primary);
}

.content-section em {
    font-style: italic;
}

/* Article Cards - Editorial Style */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.article-card {
    background-color: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
}

.article-card-content {
    padding: 1.5rem;
}

.article-card-category {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.article-card-category a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: var(--transition);
}

.article-card-category a:hover {
    color: var(--text-primary);
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

.article-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.article-card h3 a:hover {
    color: var(--text-secondary);
}

.article-card-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.article-card-meta {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* Perspective Sections - Monochromatic with Subtle Accents */
.perspective-section {
    background-color: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
    border-left: 2px solid var(--border-dark);
}

.perspective-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

/* Subtle Perspective Differentiation - All Gray Tones */
.perspective-progressive {
    border-left-color: var(--border-dark);
}

.perspective-progressive .perspective-label {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.perspective-conservative {
    border-left-color: var(--border-dark);
}

.perspective-conservative .perspective-label {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.perspective-libertarian {
    border-left-color: var(--border-dark);
}

.perspective-libertarian .perspective-label {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.perspective-centrist {
    border-left-color: var(--border-dark);
}

.perspective-centrist .perspective-label {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.perspective-international {
    border-left-color: var(--border-dark);
}

.perspective-international .perspective-label {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.perspective-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    margin-top: 0;
    font-weight: 600;
    color: var(--text-primary);
}

/* Mission Section - Refined */
.mission {
    background-color: var(--text-primary);
    color: var(--text-inverse);
    padding: 3rem;
    border-radius: 6px;
    margin: 3rem 0;
    text-align: center;
}

.mission h2, .mission h3 {
    color: var(--text-inverse);
    margin-bottom: 1rem;
    font-weight: 600;
}

.mission p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-inverse);
    opacity: 0.95;
}

/* Values Grid - Minimal */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.value-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.value-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.value-card h3 a:hover {
    color: var(--text-secondary);
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.value-card ul {
    list-style: none;
    margin-top: 1rem;
    padding-left: 0;
}

.value-card ul li {
    margin-bottom: 0.5rem;
}

.value-card ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
    display: inline-block;
}

.value-card ul li a:hover {
    color: var(--text-primary);
}

/* Button - Minimal */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background-color: var(--text-primary);
    color: var(--text-inverse);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

/* Footer - Clean */
footer {
    background-color: var(--text-primary);
    color: var(--text-inverse);
    margin-top: 4rem;
    padding: 3rem 2rem 1.5rem;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-inverse);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--text-inverse);
}

.footer-section p {
    color: #d1d5db;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .perspective-section {
        padding: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.25rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    header, footer, nav, .breadcrumb-nav {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    .container {
        max-width: 100%;
    }

    .content-section,
    .perspective-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .perspective-label {
        background-color: #f0f0f0 !important;
        color: black !important;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .page-header {
        background: none;
        color: black;
        border-bottom: 2px solid black;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background-color: var(--text-primary);
    color: white;
}

::-moz-selection {
    background-color: var(--text-primary);
    color: white;
}
