/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-dark: #0c0a09;
    --bg-card: #161412;
    --bg-card-hover: #1c1a17;
    --text-primary: #ece8e4;
    --text-secondary: #a8a4a0;
    --text-muted: #858078;
    --accent-red: #dc2626;
    --accent-red-dim: #991b1b;
    --accent-gold: #d4a520;
    --border: #242220;
    --font-serif: 'Newsreader', Georgia, serif;
    --font-sans: 'Instrument Sans', -apple-system, sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* === HEADER === */
.site-header {
    border-bottom: none;
    padding: 24px 0 0;
    position: relative;
    background: var(--bg-dark);
}

.masthead {
    text-align: center;
    margin-bottom: 16px;
}

.site-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    border-top: 3px solid var(--accent-red);
    border-bottom: 3px solid var(--accent-red);
    padding: 8px 0;
    display: inline-block;
}

.site-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
    letter-spacing: 1px;
}

.site-nav {
    position: relative;
    z-index: 200;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

@media (min-width: 769px) {
    .site-nav {
        position: sticky;
        top: 0;
    }
}

.site-nav .container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-red);
}

/* === HERO === */
.hero {
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 720px;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    object-position: center center;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    border-radius: 4px;
}

.breaking-badge {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 12px;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out 3;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--accent-red-dim);
}

/* === REPORTS GRID === */
.reports-grid {
    padding: 48px 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.report-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 28px;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.report-card:hover {
    background: var(--bg-card-hover);
    border-color: #333;
    transform: translateY(-2px);
}

.report-card.latest {
    grid-column: 1 / -1;
    border-left: 4px solid var(--accent-red);
}

.day-badge {
    display: inline-block;
    background: var(--accent-red-dim);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 2px 8px;
    margin-bottom: 8px;
}

.report-card .date {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.report-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.report-card.latest h3 {
    font-size: 1.5rem;
}

.report-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.read-more {
    color: var(--accent-red);
    font-size: 0.85rem;
    font-weight: 600;
}

/* === KEY FACTS === */
.key-facts {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.fact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 28px;
    text-align: center;
}

.fact-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-red);
    margin-bottom: 4px;
}

.fact-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.fact-detail {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* === REPORT PAGE === */
.report-header {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border);
    max-width: 80ch;
    margin: 0 auto;
}

.report-header .day-badge {
    font-size: 0.8rem;
    padding: 4px 12px;
}

.report-header .breaking-badge {
    vertical-align: middle;
}

.report-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
    font-weight: 900;
    line-height: 1.3;
    margin: 16px 0;
}

.report-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.report-body {
    padding: 40px 0;
    max-width: 80ch;
    margin: 0 auto;
}

.report-body h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.report-body h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.report-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 24px 0 8px;
    color: var(--accent-gold);
}

.report-body p {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.report-body strong {
    color: var(--text-primary);
}

.report-body ul, .report-body ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.report-body li {
    margin-bottom: 8px;
}

.report-body figure {
    margin: 24px 0;
    padding: 0;
}

.report-body figure img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
}

.report-body figure figcaption {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
}

.report-body figure figcaption a {
    color: var(--accent-red);
}

.report-body blockquote {
    border-left: 3px solid var(--accent-red);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--bg-card);
    font-style: italic;
    color: var(--text-secondary);
}

.report-nav {
    display: flex;
    justify-content: space-between;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.report-nav a {
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.9rem;
}

.report-nav a:hover {
    text-decoration: underline;
}

/* === FOOTER === */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.site-footer p {
    margin-bottom: 8px;
}

.disclaimer {
    font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .site-title { font-size: 1.5rem; letter-spacing: 3px; }
    .hero h2 { font-size: 1.6rem; }
    .grid { grid-template-columns: 1fr; }
    .report-card.latest { grid-column: 1; }
    .site-nav { gap: 12px; flex-wrap: wrap; justify-content: center; font-size: 0.75rem; padding: 8px 12px; }
    .site-nav a { letter-spacing: 1px; }
    .report-header h1 { font-size: 1.6rem; }
    .facts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .facts-grid { grid-template-columns: 1fr; }
    .site-title { font-size: 1.2rem; }
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-red-dim); transform: translateY(-2px); }

/* === READING PROGRESS === */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-red);
    z-index: 999;
    transition: width 0.1s;
    width: 0%;
}

/* === HAMBURGER MENU === */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .site-nav .container {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .site-nav .nav-links {
        display: none;
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
        width: 100%;
        text-align: center;
    }
    .site-nav .nav-links.open { display: flex; }
    .site-nav .nav-toggle-row {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

@media (min-width: 769px) {
    .nav-toggle-row { display: none; }
    .nav-links { display: flex !important; gap: 24px; }
}

/* === REPORT CARD THUMBNAILS === */
.report-card .card-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

/* Active page indicator */
.site-nav a[aria-current="page"] {
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-red);
}

/* === FOCUS STYLES === */
:focus-visible {
    outline: 3px solid var(--accent-red);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.2);
}
:focus:not(:focus-visible) {
    outline: none;
}

/* === ACTIVE STATES === */
.btn-primary:active { transform: scale(0.98); }
.report-card:active { transform: translateY(0); }

/* === SKIP LINK === */
.skip-link:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    padding: 12px 24px;
    background: var(--accent-red);
    color: white;
    font-weight: 600;
    z-index: 10000;
    overflow: visible;
}

/* === INLINE STYLE REPLACEMENTS === */
.hero-updated {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    margin-top: -8px;
    margin-bottom: 24px;
}

.badge-live-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.badge-live-small {
    font-size: 0.65rem;
    padding: 2px 8px;
}

.featured-card-gold {
    border-left-color: var(--accent-gold);
}

.badge-gold {
    background: var(--accent-gold);
}

.read-more-gold {
    color: var(--accent-gold);
}

/* === ABOUT PAGE STATS GRID MOBILE === */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
