/* NYT-Style Template CSS for The Jackson Chronicle Articles */
/* This file can be linked to any article page for consistent NYT styling */

body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #121212;
    line-height: 1.6;
}

/* Top Navigation Bar */
.top-bar {
    background: #000;
    color: #fff;
    font-size: 11px;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1024px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar .logo {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.top-bar .date {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-bar .subscribe-btn {
    padding: 4px 12px;
    background: #326891;
    color: #fff;
    border-radius: 2px;
    font-weight: 600;
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.top-bar .subscribe-btn:hover {
    background: #5a9bd4;
}

/* Masthead Header */
.masthead {
    text-align: center;
    padding: 20px 0;
    background: #fff;
    border-bottom: 4px double #000;
    max-width: 1024px;
    margin: 0 auto;
}

.masthead-title {
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    font-weight: 900;
    letter-spacing: 4px;
    margin: 0;
    color: #000;
    text-shadow: none;
}

.masthead-subtitle {
    font-size: 12px;
    color: #666;
    font-family: 'Georgia', serif;
    margin: 8px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: italic;
}

.masthead-date {
    font-size: 11px;
    color: #000;
    font-family: 'Roboto', sans-serif;
    margin: 8px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Section Navigation */
.section-nav {
    background: #fff;
    border-bottom: 1px solid #000;
    padding: 0;
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.section-nav a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 20px;
    border-right: 1px solid #e2e2e2;
    transition: background-color 0.2s;
    font-family: 'Roboto', sans-serif;
}

.section-nav a:first-child {
    border-left: 1px solid #e2e2e2;
}

.section-nav a:hover {
    background-color: #f7f7f7;
}

/* Article Container */
.article-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
}

/* Article Header Section */
.article-header {
    margin-bottom: 30px;
}

.article-section {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 15px 0;
    color: #000;
}

.article-subtitle {
    font-family: 'Georgia', serif;
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 20px 0;
    color: #666;
    font-style: italic;
}

.article-byline {
    font-size: 14px;
    color: #000;
    margin-bottom: 8px;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.article-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    font-family: 'Roboto', sans-serif;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e2e2;
}

/* Article Images */
.article-image {
    width: 100%;
    margin: 30px 0;
}

.article-image img {
    width: 100%;
    height: auto;
}

.article-image-caption {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    font-family: 'Georgia', serif;
    line-height: 1.4;
}

/* Article Content Styling */
.article-content {
    font-size: 18px;
    line-height: 1.6;
    font-family: 'Georgia', serif;
}

.article-content p {
    margin-bottom: 20px;
}

/* NYT-style Drop Cap */
.article-content p:first-of-type::first-letter {
    float: left;
    font-size: 58px;
    line-height: 50px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #000;
    padding-right: 8px;
    margin-top: 4px;
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: #000;
}

.article-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content a {
    color: #326891;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content strong {
    font-weight: 700;
}

/* Navigation and Footer */
.back-link {
    margin: 40px 0 20px 0;
    text-align: center;
}

.back-link a {
    color: #326891;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}

.back-link a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 30px 10px 20px 10px;
    font-size: 12px;
    color: #777;
    background: #fff;
    border-top: 1px solid #e2e2e2;
    margin-top: 40px;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .masthead-title {
        font-size: 40px;
    }
    .article-title {
        font-size: 32px;
    }
    .article-content {
        font-size: 16px;
    }
    .article-container {
        padding: 20px 15px;
    }
    .section-nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .section-nav a {
        padding: 8px 12px;
        font-size: 10px;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .section-nav,
    .back-link {
        display: none;
    }
    .masthead {
        border-bottom: 2px solid #000;
    }
    .article-container {
        max-width: none;
        padding: 20px;
    }
}
