/* Newspaper Article Style Design - Mobile First */

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

:root {
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #757575;
    --border-light: #e0e0e0;
    --border-dark: #2a2a2a;
    --accent: #c41e3a;
    --background: #fafafa;
    --paper-white: #ffffff;
    --serif: Georgia, 'Times New Roman', Times, serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--serif);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

/* Newspaper Header */
header {
    background: var(--paper-white);
    border-bottom: 3px double var(--border-dark);
    padding: 1.5rem 0;
    text-align: center;
}

header h1 {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

header h1 a {
    color: var(--text-primary);
    text-decoration: none;
}

header p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* Navigation Bar */
nav {
    background: var(--paper-white);
    border-bottom: 1px solid var(--border-dark);
    padding: 0.5rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-right: 1px solid var(--border-light);
}

nav li:last-child a {
    border-right: none;
}

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

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background: var(--paper-white);
}

/* Hero Section - Newspaper Style */
.hero {
    border-bottom: 2px solid var(--border-dark);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero .lead {
    font-family: var(--serif);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    column-count: 1;
    column-gap: 2rem;
}

/* Search Box */
.search-box {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--border-light);
}

.search-box input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-dark);
    font-family: var(--sans);
    font-size: 0.875rem;
}

.search-box input:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

/* Article Grid - Newspaper Layout */
.post-grid {
    display: grid;
    gap: 1px;
    background: var(--border-dark);
    border: 1px solid var(--border-dark);
    margin-bottom: 2rem;
}

.post-card {
    background: var(--paper-white);
    padding: 1.5rem;
    transition: background 0.2s ease;
}

.post-card:hover {
    background: var(--background);
}

/* Featured Image Placeholder */
.post-card-image {
    width: 100%;
    height: 200px;
    background: var(--background);
    border: 1px dashed var(--border-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--sans);
    font-size: 0.875rem;
}

.post-card-image::after {
    content: "Featured Image Space";
}

/* Article Headlines */
.post-card h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.post-card h2 a {
    color: var(--text-primary);
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--accent);
}

/* Article Metadata */
.meta {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.meta time {
    font-weight: 600;
}

.meta a {
    color: var(--text-muted);
    text-decoration: none;
}

.meta a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Article Excerpt */
.excerpt {
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Read More Link */
.read-more {
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.read-more:hover {
    text-decoration: underline;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--text-primary);
    color: var(--paper-white);
    text-decoration: none;
    font-family: var(--sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.button:hover {
    background: var(--accent);
    color: var(--paper-white);
}

/* Categories & Tags */
.categories, .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.category, .tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--paper-white);
    border: 1px solid var(--border-dark);
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.category:hover, .tag:hover {
    background: var(--text-primary);
    color: var(--paper-white);
}

/* Article Page Styles */
article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

article h1 {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Article Image Placeholder Areas */
.article-featured-image {
    width: 100%;
    height: 300px;
    background: var(--background);
    border: 2px dashed var(--border-light);
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--sans);
    font-size: 1rem;
}

.article-featured-image::after {
    content: "Article Main Image (Full Width)";
}

.article-inline-image {
    width: 100%;
    height: 250px;
    background: var(--background);
    border: 1px dashed var(--border-light);
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--sans);
    font-size: 0.875rem;
}

.article-inline-image::after {
    content: "Inline Article Image";
}

/* Article Text Styles */
article p {
    font-family: var(--serif);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    text-align: justify;
}

article h2 {
    font-family: var(--serif);
    font-size: 1.875rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    letter-spacing: -0.01em;
    border-bottom: 2px solid var(--border-dark);
    padding-bottom: 0.5rem;
}

article h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

article blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: var(--text-primary);
    color: var(--paper-white);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px double var(--border-dark);
}

footer .container {
    display: grid;
    gap: 2rem;
}

footer h3 {
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--paper-white);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.875rem;
    opacity: 0.8;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

footer p {
    font-family: var(--sans);
    font-size: 0.875rem;
    opacity: 0.8;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    header h1 {
        font-size: 3.5rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    nav ul {
        gap: 0;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero .lead {
        column-count: 2;
        font-size: 1.25rem;
    }
    
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-card h2 {
        font-size: 1.75rem;
    }
    
    article h1 {
        font-size: 3rem;
    }
    
    .article-featured-image {
        height: 400px;
    }
    
    footer .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    header h1 {
        font-size: 4rem;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* First article spans 2 columns */
    .post-card:first-child {
        grid-column: span 2;
    }
    
    .post-card:first-child .post-card-image {
        height: 300px;
    }
    
    .post-card:first-child h2 {
        font-size: 2.25rem;
    }
    
    article {
        padding: 3rem 2rem;
    }
    
    article p {
        font-size: 1.25rem;
        line-height: 1.9;
    }
    
    .article-featured-image {
        height: 500px;
    }
    
    /* Two column article layout */
    .article-content {
        column-count: 2;
        column-gap: 3rem;
        column-rule: 1px solid var(--border-light);
    }
    
    .article-content h2,
    .article-content h3,
    .article-featured-image,
    .article-inline-image {
        column-span: all;
    }
}

/* Print Styles */
@media print {
    header, nav, footer, .search-box, .button {
        display: none;
    }
    
    main {
        background: white;
    }
    
    .post-card {
        break-inside: avoid;
    }
    
    article {
        max-width: 100%;
    }
}