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

body {
    font-family: 'nyt-cheltenham', georgia, 'times new roman', times, serif;
    color: #121212;
    background: #fff;
    line-height: 1.6;
}

/* Header Styles */
.site-header {
    border-bottom: 1px solid #e2e2e2;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e2e2;
}

.search-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
}

.header-nav {
    display: flex;
    gap: 20px;
    font-size: 11px;
    font-weight: 700;
}

.header-nav a {
    color: #121212;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.subscribe-btn {
    background: #567b95;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 3px;
}

.login-btn {
    background: #326891;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 3px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.date-section {
    font-size: 11px;
    color: #121212;
}

.paper-edition {
    font-weight: 700;
    margin-top: 3px;
}

.site-logo {
    font-family: 'OldEnglishTextMT', 'Old English Text MT', serif;
    font-size: 60px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    font-style: italic;
}

.market-data {
    font-size: 12px;
    text-align: right;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 12px 0;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
    font-size: 12px;
}

.main-nav a {
    color: #121212;
    text-decoration: none;
    font-weight: 700;
    position: relative;
}

.main-nav a::after {
    content: '⌄';
    margin-left: 3px;
    font-size: 10px;
}

.breaking-news {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e2e2;
    gap: 15px;
}

.live-badge {
    background: #d0021b;
    color: white;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.breaking-items {
    display: flex;
    gap: 30px;
    font-size: 13px;
}

.breaking-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #121212;
}

.breaking-time {
    color: #727272;
    font-size: 12px;
}

/* Main Content */
.main-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin-bottom: 30px;
}

.main-story {
    grid-column: 1;
    grid-row: 1 / 3;
    padding-right: 20px;
    border-right: 1px solid #e2e2e2;
    position: relative;
}

.main-story .live-badge {
    margin-bottom: 10px;
    display: inline-block;
}

.article-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 700;
    cursor: pointer;
}

.article-title:hover {
    text-decoration: underline;
}

.article-summary {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
}

.more-link {
    color: #121212;
    font-size: 13px;
    text-decoration: none;
    font-weight: 700;
}

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

.featured-media {
    grid-column: 2;
    grid-row: 1 / 3;
    position: relative;
}

.media-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
}

.media-container img, .media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    font-size: 13px;
    line-height: 1.4;
}

.media-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.control-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 3px;
}

.media-credit {
    text-align: right;
    font-size: 11px;
    color: #727272;
    margin-top: 5px;
}

.secondary-stories {
    grid-column: 1;
    grid-row: 3;
    padding-right: 20px;
    border-right: 1px solid #e2e2e2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-item {
    cursor: pointer;
}

.story-title {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 5px;
}

.story-title:hover {
    text-decoration: underline;
}

.read-time {
    font-size: 12px;
    color: #727272;
}

.side-feature {
    grid-column: 3;
    grid-row: 1 / 4;
    padding-left: 20px;
}

.side-feature img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 8px;
}

.feature-credit {
    font-size: 11px;
    color: #727272;
    margin-bottom: 10px;
}

.feature-title {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 10px;
    cursor: pointer;
}

.feature-title:hover {
    text-decoration: underline;
}

.feature-summary {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 8px;
}

.bottom-stories {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    gap: 20px;
}

.bottom-story {
    flex: 1;
}

.bottom-story img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 8px;
}

.bottom-story h3 {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    cursor: pointer;
}

.bottom-story h3:hover {
    text-decoration: underline;
}

/* Audio Section */
.audio-section {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e2e2e2;
    margin-bottom: 30px;
}

.audio-thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.audio-content {
    flex: 1;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-right: 10px;
}

.audio-badge {
    background: #121212;
    color: white;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.audio-title {
    font-size: 20px;
    font-weight: 700;
    margin: 10px 0;
}

.play-btn {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.duration {
    color: #727272;
}

/* Featured Section */
.featured-section {
    padding: 20px;
    border-top: 4px double #121212;
    margin-bottom: 30px;
}

.featured-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.featured-nav {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.featured-nav a {
    color: #121212;
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.featured-nav a:first-child {
    border-bottom-color: #121212;
    font-weight: 700;
}

.featured-nav a:hover {
    border-bottom-color: #121212;
}

/* Article Page Styles */
.article-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-header {
    margin-bottom: 30px;
}

.article-category {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.article-page h1 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #727272;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e2e2;
}

.article-author {
    font-weight: 700;
    color: #121212;
}

.article-featured-image {
    width: 100%;
    margin-bottom: 10px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.image-caption {
    font-size: 13px;
    color: #727272;
    line-height: 1.5;
    margin-bottom: 30px;
}

.article-content {
    font-size: 18px;
    line-height: 1.7;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.article-content h3 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 700;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #121212;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

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

/* Responsive Design */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
    .site-header {
        padding: 0 15px;
    }

    .main-content {
        padding: 15px;
    }

    .content-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }
    
    .main-story {
        grid-column: 1 / 3;
        grid-row: 1;
        border-right: none;
        border-bottom: 1px solid #e2e2e2;
        padding-right: 0;
        padding-bottom: 20px;
    }
    
    .featured-media {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .media-container {
        height: 350px;
    }
    
    .side-feature {
        grid-column: 1 / 3;
        grid-row: 4;
        padding-left: 0;
        padding-top: 20px;
        border-top: 1px solid #e2e2e2;
    }
    
    .secondary-stories {
        grid-column: 1 / 3;
        grid-row: 3;
        border-right: none;
        flex-direction: row;
        padding-right: 0;
        padding-top: 15px;
        border-top: 1px solid #e2e2e2;
    }
    
    .bottom-stories {
        grid-column: 1 / 3;
        grid-row: 5;
    }

    .audio-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .audio-thumb {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .site-logo {
        font-size: 45px;
    }
    
    .header-nav {
        display: none;
    }

    .header-actions {
        flex-direction: column;
        gap: 5px;
    }

    .subscribe-btn,
    .login-btn {
        font-size: 10px;
        padding: 6px 10px;
    }

    .main-nav {
        gap: 15px;
        font-size: 11px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .breaking-news {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .breaking-items {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .main-story {
        grid-column: 1;
    }

    .featured-media {
        grid-column: 1;
    }

    .media-container {
        height: 250px;
    }

    .side-feature {
        grid-column: 1;
    }

    .secondary-stories {
        grid-column: 1;
        flex-direction: column;
        gap: 20px;
    }

    .bottom-stories {
        grid-column: 1;
        flex-direction: column;
        gap: 20px;
    }

    .article-title {
        font-size: 24px;
    }

    .featured-nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    .featured-section {
        padding: 15px;
    }

    .audio-section {
        padding: 15px;
    }

    /* Article page responsive */
    .article-page {
        padding: 30px 15px;
    }

    .article-page h1 {
        font-size: 32px;
    }

    .article-content {
        font-size: 17px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .article-content h3 {
        font-size: 20px;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    .site-logo {
        font-size: 35px;
        letter-spacing: 1px;
    }

    .header-top {
        padding: 8px 0;
    }

    .header-main {
        padding: 10px 0;
    }

    .date-section {
        font-size: 10px;
    }

    .market-data {
        font-size: 10px;
    }

    .main-nav {
        gap: 12px;
        font-size: 10px;
        padding: 8px 0;
    }

    .breaking-news {
        padding: 10px 0;
    }

    .live-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .article-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .article-summary {
        font-size: 14px;
    }

    .story-title {
        font-size: 15px;
    }

    .feature-title {
        font-size: 18px;
    }

    .feature-summary {
        font-size: 13px;
    }

    .media-container {
        height: 200px;
    }

    .media-caption {
        font-size: 12px;
        padding: 10px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .control-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .side-feature img {
        height: 200px;
    }

    .bottom-story img {
        height: 180px;
    }

    .audio-section {
        padding: 12px;
    }

    .audio-title {
        font-size: 18px;
    }

    .section-label,
    .audio-badge {
        font-size: 9px;
    }

    .featured-title {
        font-size: 20px;
    }

    .featured-nav {
        font-size: 12px;
        gap: 12px;
    }

    /* Article page mobile */
    .article-page {
        padding: 20px 12px;
    }

    .article-page h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    .article-meta {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.6;
    }

    .article-content h2 {
        font-size: 22px;
        margin-top: 25px;
    }

    .article-content h3 {
        font-size: 18px;
        margin-top: 20px;
    }

    .image-caption {
        font-size: 12px;
    }

    .back-link {
        font-size: 13px;
        margin-bottom: 15px;
    }

    /* Better touch targets for mobile */
    .article-title,
    .story-title,
    .feature-title,
    .bottom-story h3 {
        padding: 5px 0;
    }

    button,
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .search-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Very Small Devices (360px and below) */
@media (max-width: 360px) {
    .site-logo {
        font-size: 30px;
    }

    .header-actions {
        width: 100%;
    }

    .subscribe-btn,
    .login-btn {
        width: 100%;
        font-size: 9px;
    }

    .article-title {
        font-size: 18px;
    }

    .article-page h1 {
        font-size: 24px;
    }

    .main-nav {
        font-size: 9px;
        gap: 10px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .media-container {
        height: 300px;
    }

    .header-main {
        padding: 8px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-logo {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print styles */
@media print {
    .site-header,
    .breaking-news,
    .control-btn,
    .back-link {
        display: none;
    }

    .article-page {
        max-width: 100%;
    }

    .article-content {
        font-size: 12pt;
    }
}

/* Archive Page Styles */
.archive-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.archive-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #121212;
}

.archive-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

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

.archive-article {
    border: 1px solid #e2e2e2;
    cursor: pointer;
    transition: box-shadow 0.3s;
    overflow: hidden;
}

.archive-article:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.archive-article img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.archive-content {
    padding: 20px;
}

.archive-date {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 10px;
}

.archive-article h2 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 700;
}

.archive-article p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Article Tags Styles */
.article-tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #567b95;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}

.article-tag:hover {
    background: #567b95;
    color: white;
}

/* Responsive Archive */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .archive-title {
        font-size: 28px;
    }
    
    .archive-article img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .archive-page {
        padding: 20px 15px;
    }
    
    .archive-title {
        font-size: 24px;
    }
    
    .archive-article h2 {
        font-size: 18px;
    }
}
