/* --- RESET & CORE --- */
* { box-sizing: border-box; }
body {
    background-color: #f4f1ea; /* Weathered paper color */
    color: #1a1a1a;
    font-family: "Georgia", serif;
    margin: 0;
    padding: 10px;
    line-height: 1.4;
    overflow-x: hidden; /* Prevents horizontal scroll errors */
}

/* --- THE CONTAINER --- */
.newspaper-container {
    max-width: 1200px;
    margin: 0 auto;
    border: 2px solid #000;
    padding: 15px;
    background-color: #fff;
    box-shadow: 10px 10px 0px #ccc;
}

/* --- MASTHEAD (Responsive) --- */
.masthead {
    text-align: center;
    border-bottom: 5px solid #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
}
.masthead h1 {
    font-size: clamp(2rem, 15vw, 7rem); /* Scales title to fit any screen */
    margin: 10px 0;
    letter-spacing: -3px;
    text-transform: uppercase;
    overflow-wrap: break-word;
}
.edition-info {
    display: flex;
    justify-content: space-between;
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    font-weight: bold;
    border-bottom: 1px solid #000;
    padding: 5px 0;
}

/* --- LAYOUT ENGINE (Mobile First) --- */
.main-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* --- ARTICLE ELEMENTS --- */
article {
    border-bottom: 1px solid #000;
    padding-bottom: 20px;
    max-width: 100%;
}
h2 { 
    font-size: clamp(1.5rem, 5vw, 2.5rem); 
    margin: 0 0 10px 0; 
    line-height: 1.1; 
    overflow-wrap: break-word;
}
h3 { font-size: 1.4rem; margin: 10px 0; }

.byline { font-style: italic; font-size: 0.9rem; margin-bottom: 10px; color: #444; }
.drop-cap { float: left; font-size: 4rem; line-height: 0.8; padding-right: 8px; font-weight: bold; }

/* --- CLICKABLE BUTTONS --- */
.read-link {
    display: inline-block;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    margin-top: 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
}
.read-link:hover { background: #d00; }

/* --- DESKTOP BROADVIEW (900px+) --- */
@media (min-width: 900px) {
    body { padding: 40px; }
    .main-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr; /* 3 Column Layout */
        grid-template-areas: 
            "lead lead side"
            "sub sub side";
        gap: 40px;
    }
    .lead-story { grid-area: lead; border-bottom: 4px solid #000; }
    .sidebar { grid-area: side; border-left: 1px solid #000; padding-left: 20px; }
    .columns-2 { column-count: 2; column-gap: 30px; text-align: justify; }
}

.double-line { border-top: 3px double #000; height: 3px; margin: 15px 0; border-bottom: none; border-left: none; border-right: none;}

/* --- NEWSPAPER LEGAL FOOTER --- */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 5px double #000;
    font-family: "Arial", sans-serif;
    font-size: 0.75rem;
    color: #333;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    text-transform: uppercase;
    border-bottom: 1px solid #000;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 5px;
}

.footer-column a {
    color: #000;
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #ccc;
    padding-top: 15px;
    font-style: italic;
}