/* Classic Newspaper Column CSS */

:root {
    --paper-color: #f5f1e8;
    --text-color: #1a1a1a;
    --border-color: #2a2a2a;
    --accent-color: #8b7355;
    --sans-font: 'Georgia', 'Garamond', serif;
    --header-font: 'Georgia', serif;
}

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

html, body {
    height: 100%;
    width: 100%;
    background-color: #d4cfc5;
}

body {
    font-family: var(--sans-font);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 1rem auto;
    background-color: var(--paper-color);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    padding: 2rem;
}

/* ==================== HEADER / MASTHEAD ==================== */

.masthead {
    text-align: center;
    border-bottom: 3px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.issue-date, .price {
    font-weight: bold;
    text-transform: uppercase;
}

.title {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    margin: 0.5rem 0;
    font-family: var(--header-font);
    text-transform: uppercase;
}

.tagline {
    font-size: 0.9rem;
    font-style: italic;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.header-divider {
    height: 2px;
    background-color: var(--border-color);
    margin: 1rem 0 0 0;
}

/* ==================== CONTENT LAYOUT ==================== */

.content-wrapper {
    margin-bottom: 2rem;
}

.column {
    max-width: 65ch;
    margin: 0 auto;
}

/* ==================== ARTICLE ==================== */

.article-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.article-header h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.byline {
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.date {
    font-size: 0.85rem;
    font-style: italic;
    color: #555;
}

.article-body {
    text-align: justify;
}

.article-body p {
    margin-bottom: 1.5rem;
}

/* Drop cap styling */
.drop-cap {
    float: left;
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 2.5rem;
    padding-right: 0.5rem;
    margin-top: -0.1rem;
    font-family: var(--header-font);
}

blockquote {
    border-left: 3px solid var(--border-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #333;
    font-size: 0.95rem;
}

.signature {
    text-align: right;
    font-weight: bold;
    margin-top: 2rem;
}

.article-footer {
    margin-top: 2rem;
}

.footer-line {
    border: none;
    border-top: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.article-footer p {
    font-size: 0.85rem;
    text-align: center;
    color: #666;
}


/* ==================== PAGE FOOTER ==================== */

.page-footer {
    text-align: center;
    border-top: 3px solid var(--border-color);
    padding-top: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: #555;
}

.page-footer .footer-line {
    margin-bottom: 0.75rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets and smaller desktops */
@media (max-width: 900px) {
    .container {
        padding: 1.5rem;
    }

    .title {
        font-size: 2.5rem;
    }

    .article-body {
        text-align: left;
    }

    .header-top {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Phones */
@media (max-width: 600px) {
    .container {
        margin: 0.5rem;
        padding: 1rem;
    }

    .masthead {
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }

    .header-top {
        font-size: 0.75rem;
    }

    .title {
        font-size: 1.8rem;
        letter-spacing: 0.1em;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .article-header h2 {
        font-size: 1.5rem;
    }

    .byline {
        font-size: 0.8rem;
    }

    .date {
        font-size: 0.75rem;
    }

    .article-body {
        font-size: 15px;
        line-height: 1.7;
    }

    .article-body p {
        margin-bottom: 1rem;
    }

    .drop-cap {
        font-size: 2.8rem;
        line-height: 2rem;
        padding-right: 0.3rem;
    }

    .small-ad {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .small-ad h3 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .small-ad p {
        font-size: 0.8rem;
    }

    blockquote {
        font-size: 0.9rem;
        padding-left: 1rem;
        margin: 1.5rem 0;
    }

    .page-footer {
        font-size: 0.7rem;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    .title {
        font-size: 1.5rem;
    }

    .article-header h2 {
        font-size: 1.2rem;
    }

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

    .drop-cap {
        font-size: 2.2rem;
        line-height: 1.8rem;
    }
}

/* Print styles */
@media print {
    body {
        background-color: white;
    }

    .container {
        max-width: 100%;
        margin: 0;
        box-shadow: none;
    }
}
