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

:root {
    /* Color System - News Site Palette */
    --primary-blue: hsl(0, 0%, 0%);
    --primary-blue-hover: hsl(0, 0%, 20%);
    --accent-orange: hsl(0, 85%, 45%);
    --text-primary: hsl(0, 0%, 0%);
    --text-secondary: hsl(0, 0%, 33%);
    --background: hsl(0, 0%, 100%);
    --card-background: hsl(0, 0%, 100%);
    --border-color: hsl(0, 0%, 90%);
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 0px;
    --border-radius-lg: 0px;
    
    /* Typography */
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    /* Shadows */
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 2px 8px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.2s ease;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 16px;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: var(--card-background);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1rem;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.nav-menu {
    display: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    transition: var(--transition);
    font-size: 0.875rem;
}

.nav-link:hover {
    color: var(--accent-orange);
}

.date-display {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

/* Main Content */
.main {
    padding: 1.5rem 0;
}

/* Hero Section */
.hero-section {
    margin-bottom: 2rem;
}

.hero-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    color: white;
    box-shadow: none;
    border: none;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--text-primary);
    opacity: 0.85;
}

.hero-content {
    position: relative;
    padding: 3rem 2rem;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-excerpt {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    max-width: 100%;
    line-height: 1.5;
    font-weight: 400;
}

.hero-timestamp {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 4rem 3rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        max-width: 900px;
        margin: 0 auto;
    }
    .hero-excerpt {
        max-width: 100%;
    }
}

/* Stories Section */
.stories-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--text-primary);
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Story Cards */
.story-card {
    background: var(--card-background);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.story-card:hover {
    box-shadow: none;
    transform: none;
}

.story-image-container {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.story-card:hover .story-image {
    transform: scale(1.05);
}

.story-content {
    padding: 0;
}

.story-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.story-category {
    display: inline-block;
    color: var(--text-primary);
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.story-timestamp {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.story-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.25;
    transition: var(--transition);
    letter-spacing: -0.02em;
}

.story-card:hover .story-title {
    color: var(--accent-orange);
}

.story-excerpt {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: hsl(0, 0%, 95%);
    border-top: 2px solid var(--border-color);
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 0.875rem;
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-brand {
    font-weight: 900;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
    font-weight: 400;
}

.footer-text a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 700;
}

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

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        gap: 0;
    }
    
    .footer-text {
        text-align: right;
    }
}

/* Responsive Typography */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .story-title {
        font-size: 1.125rem;
    }
}

/* Article Content Styles */
.article-content {
    background: var(--card-background);
    border-radius: 0;
    padding: 2.5rem 2rem;
    box-shadow: none;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
    color: var(--text-primary);
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-content ul, 
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-orange);
    background: hsl(0, 0%, 97%);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0;
    font-style: normal;
    color: var(--text-primary);
    font-weight: 400;
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content code {
    background: hsl(0, 0%, 95%);
    padding: 0.25rem 0.5rem;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
}

.article-content pre {
    background: hsl(0, 0%, 95%);
    padding: 1.5rem;
    border-radius: 0;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.article-content pre code {
    background: none;
    padding: 0;
    border: none;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 2rem 0;
    box-shadow: none;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--card-background);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.article-content th,
.article-content td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.article-content th {
    background: hsl(0, 0%, 95%);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.article-content a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 700;
}

.article-content a:hover {
    text-decoration: underline;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Article Meta Information */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    font-weight: 400;
}

.article-meta-divider {
    opacity: 0.5;
}

/* Responsive adjustments for article content */
@media (min-width: 768px) {
    .article-content {
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 767px) {
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
}

.article-banner {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-top: none;
    border-bottom: none;
}

.article-banner-content {
    text-align: left;
}

.article-banner .hero-badge {
    background: var(--accent-orange);
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.article-banner .hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
}

/* About Page Styles */
.about-section {
    text-align: center;
    background: var(--card-background);
    padding: 3rem 2rem;
    border-radius: 0;
    box-shadow: none;
    margin-top: 1rem;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin-bottom: 2rem;
    box-shadow: none;
    display: block;
    margin-inline: auto;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.about-text {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

@media (min-width: 1024px) {
    .hero-content {
        max-width: 900px;
        margin: 0 auto;
    }
    .hero-excerpt {
        max-width: 100%;
    }
    .about-section {
        max-width: 980px;
        margin: 0 auto;
    }
}

.media-item-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 700;
}

.media-item-title a:hover {
    color: var(--accent-orange);
}

.media-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.media-section {
    max-width: 800px;
    margin: 0 auto;
}

.media-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    border-bottom: 3px solid var(--text-primary);
    padding-bottom: 1rem;
}