/* NYT-Style Typography and Layout */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    background-color: #ffffff;
    color: #121212;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header/Masthead */
.masthead {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 4px double #121212;
    padding-bottom: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date {
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    color: #666;
}

.site-title {
    font-family: 'Old English Text MT', 'Blackletter', Georgia, serif;
    font-size: 60px;
    font-weight: normal;
    letter-spacing: 2px;
    margin: 15px 0;
    /* Fallback to fancy Georgia if Old English not available */
}

.header-border {
    height: 1px;
    background-color: #121212;
    margin-top: 10px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Article Boxes */
.article-box {
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.main-feature {
    grid-column: 1 / 9;
    border-right: 1px solid #e6e6e6;
    padding-right: 20px;
}

.secondary {
    grid-column: 1 / 9;
}

.secondary:nth-of-type(2) {
    grid-column: 1 / 5;
}

.secondary:nth-of-type(3) {
    grid-column: 5 / 9;
}

.secondary:nth-of-type(4) {
    grid-column: 1 / 5;
}

.opinion {
    grid-column: 9 / 13;
    grid-row: 1 / 3;
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #e6e6e6;
}

.tertiary {
    grid-column: span 4;
}

/* Typography */
.article-title {
    font-family: 'Georgia', serif;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.main-feature .article-title {
    font-size: 42px;
    margin-bottom: 15px;
}

.secondary .article-title {
    font-size: 24px;
}

.tertiary .article-title {
    font-size: 18px;
}

.opinion .article-title {
    font-size: 20px;
}

.section-label {
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #666;
}

.article-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.article-content p {
    margin-bottom: 12px;
}

.main-feature .article-content {
    font-size: 18px;
    line-height: 1.8;
}

/* Byline style */
.byline {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

/* Footer */
.site-footer {
    border-top: 2px solid #121212;
    padding-top: 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    color: #666;
}

.refresh-notice {
    margin-top: 10px;
    font-size: 11px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .main-feature,
    .secondary,
    .opinion,
    .tertiary {
        grid-column: 1 / -1;
        border-right: none;
        padding-right: 0;
    }
    
    .main-feature {
        border-bottom: 2px solid #121212;
    }
    
    .site-title {
        font-size: 40px;
    }
    
    .main-feature .article-title {
        font-size: 32px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
