/* ================================
   The Record - Static Site Styles
   Clean, neutral, factual design
   ================================ */

:root {
    --primary: #475569;
    --primary-dark: #334155;
    --secondary: #64748b;
    --accent: #06b6d4;
    --background: #f1f5f9;
    --surface: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 0.375rem;
    --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .main-nav, .meta, .category, button, input {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ================================
   Header
   ================================ */
.site-header {
    background: var(--surface);
    color: var(--text);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
}

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

.logo-icon { font-size: 1.75rem; }

.logo-text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Georgia', serif;
}

.logo-text .tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-light);
    transition: color var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
}

/* ================================
   Content Grid
   ================================ */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    padding: 2rem 0;
}

@media (max-width: 968px) {
    .content-grid { grid-template-columns: 1fr; }
}

/* ================================
   Featured Article
   ================================ */
.featured-article {
    margin-bottom: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-link {
    display: block;
}

.featured-image {
    aspect-ratio: 2/1;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.featured-link:hover .featured-image img {
    filter: grayscale(0%);
}

.featured-content {
    padding: 1.5rem;
}

.featured-content .category {
    display: inline-block;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.featured-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-family: 'Georgia', serif;
}

.featured-content .excerpt {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.featured-content .meta {
    font-size: 0.8125rem;
    color: var(--secondary);
}

.meta .separator { margin: 0 0.5rem; }

/* ================================
   Article List
   ================================ */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-row {
    background: var(--surface);
}

.article-row a {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    transition: background var(--transition);
}

.article-row:hover a {
    background: var(--background);
}

.row-image {
    width: 160px;
    height: 100px;
    border-radius: 0.25rem;
    overflow: hidden;
    flex-shrink: 0;
}

.row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.article-row:hover .row-image img {
    filter: grayscale(0%);
}

.row-content {
    flex: 1;
}

.row-content .category {
    display: inline-block;
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.row-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.375rem;
    color: var(--text);
    font-family: 'Georgia', serif;
}

.row-content .excerpt {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.row-content .meta {
    font-size: 0.75rem;
    color: var(--secondary);
}

@media (max-width: 600px) {
    .article-row a {
        flex-direction: column;
    }
    .row-image {
        width: 100%;
        height: 150px;
    }
}

/* ================================
   Pagination
   ================================ */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.page-current {
    font-size: 0.875rem;
    color: var(--text-light);
}

.page-links {
    display: flex;
    gap: 1rem;
}

.page-link {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
}

.page-link.disabled {
    color: var(--border);
    pointer-events: none;
}

/* ================================
   Sidebar
   ================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Facts List */
.facts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fact-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.fact-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 3.5rem;
}

.fact-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-item {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    min-width: 3rem;
}

.timeline-item p {
    font-size: 0.8125rem;
    color: var(--text);
    line-height: 1.4;
}

/* Newsletter */
.newsletter p {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: border-color var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.newsletter-form button {
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* About */
.about p {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

.about-link {
    font-size: 0.8125rem;
    color: var(--accent);
    font-weight: 500;
}

/* ================================
   Footer
   ================================ */
.site-footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { padding-right: 2rem; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon { font-size: 1.25rem; }

.footer-logo h4 {
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'Georgia', serif;
}

.footer-brand p {
    font-size: 0.8125rem;
    opacity: 0.7;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-links h5 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

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

.footer-links a {
    font-size: 0.8125rem;
    opacity: 0.7;
    transition: opacity var(--transition);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-links a:hover {
    opacity: 1;
    color: white;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    opacity: 0.6;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
