/* style.css - 1970s Tabloid Edition */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Oswald:wght@500;700&family=Courier+Prime:wght@400;700&display=swap');

:root {
    --bg-paper: #fcf9f0;
    --ink-black: #1a1a1a;
    --accent-gold: #f4d03f;
    --accent-red: #c0392b;
    --border-color: #2c2c2c;
    --font-head: 'Playfair Display', serif;
    --font-body: 'Libre Baskerville', serif;
    --font-sans: 'Oswald', sans-serif;
    --font-mono: 'Courier Prime', monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-paper);
    color: var(--ink-black);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    /* Newsprint Texture */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-red); }

img { max-width: 100%; display: block; border: 1px solid #000; filter: grayscale(100%) contrast(1.1); transition: filter 0.3s; }
img:hover { filter: grayscale(0%) sepia(20%); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; background: #fffdf5; border-left: 1px solid #ccc; border-right: 1px solid #ccc; min-height: 100vh; }

/* --- MOVIE RATINGS BAR --- */
.movie-ticker {
    background: var(--ink-black);
    color: #fff;
    padding: 5px 0;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow-x: auto;
    border-bottom: 2px solid #000;
}
.movie-ticker span { margin: 0 15px; letter-spacing: 1px; }
.rating-num { color: var(--accent-gold); font-weight: bold; margin-right: 5px; }

/* --- MASTHEAD --- */
.masthead {
    text-align: center;
    padding: 20px 0;
    border-bottom: 4px double #000;
    position: relative;
    margin-bottom: 20px;
}

.logo-wrap {
    display: inline-block;
    width: 260px;
    max-width: 100%;
    height: auto;
    background: transparent;
    margin-bottom: 20px;
}
.logo-wrap img { border: none; filter: none !important; }

.paper-title {
    font-family: var(--font-head);
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -2px;
    margin: 5px 0;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.issue-meta {
    font-family: var(--font-mono);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 5px 0;
    margin-top: 10px;
}

/* Rotary Phone Box */
.contact-box {
    position: absolute;
    top: 20px;
    right: 0;
    width: 150px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    transform: rotate(2deg);
    border: 2px solid #000;
    padding: 10px;
    background: #fff;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}
.phone-icon { width: 120px; height: auto; margin: 0 auto 5px; border: none !important; filter: none !important; }

/* --- NAV STRIP --- */
.nav-strip {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #000;
    margin-bottom: 30px;
}
.nav-strip a { border-bottom: 2px solid transparent; }
.nav-strip a:hover { border-bottom: 2px solid var(--accent-red); }

/* --- FRONT PAGE LAYOUT (COLUMNS) --- */
.newspaper-layout {
    column-count: 3;
    column-gap: 30px;
    column-rule: 1px solid #ccc;
}

.news-box {
    break-inside: avoid;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.span-2 { column-span: all; /* Or use grid if column-span not behaving */ }
/* Since column-span: all breaks the column flow in CSS columns, we use span-2 mainly for emphasis in design intent, 
   but for CSS columns, a wide block usually needs to be at the top or we switch to Grid. 
   To keep "messy tabloid" look, standard boxes work best. We'll use a specific 'hero-box' for the top. */

.headline { font-family: var(--font-head); font-weight: 700; margin: 10px 0; line-height: 1; color: #000; }
.hl-xl { font-size: 3rem; }
.hl-lg { font-size: 2rem; }
.hl-md { font-size: 1.5rem; font-style: italic; }
.hl-sm { font-size: 1.1rem; font-family: var(--font-sans); text-transform: uppercase; }

.teaser { font-size: 0.95rem; margin-bottom: 10px; text-align: justify; }
.read-link { font-family: var(--font-mono); font-size: 0.8rem; font-weight: bold; text-transform: uppercase; color: var(--accent-red); text-decoration: underline; }

/* Ads */
.faux-ad {
    border: 3px double #000;
    padding: 20px;
    text-align: center;
    background: #f0f0f0;
    font-family: var(--font-sans);
}

/* --- ARTICLE PAGE LAYOUT --- */
.article-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.article-content { font-size: 1.15rem; text-align: justify; }
.article-content p { margin-bottom: 1.5rem; }
.drop-cap::first-letter { float: left; font-size: 4.5rem; line-height: 0.7; padding-right: 10px; font-family: var(--font-head); font-weight: 900; }

.sidebar { border-left: 1px solid #ccc; padding-left: 30px; }
.sidebar-widget { margin-bottom: 40px; }

/* Newsletter */
.newsletter-form { border: 2px solid #000; padding: 20px; background: #e8e4d0; text-align: center; }
.newsletter-form input { width: 100%; padding: 10px; margin-bottom: 10px; font-family: var(--font-mono); border: 1px solid #000; }
.newsletter-form button { background: #000; color: #fff; padding: 10px 20px; border: none; font-family: var(--font-sans); font-weight: bold; cursor: pointer; text-transform: uppercase; width: 100%; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .newspaper-layout { column-count: 1; }
    .article-grid { grid-template-columns: 1fr; }
    .sidebar { border-left: none; padding-left: 0; border-top: 4px double #000; padding-top: 30px; }
    .contact-box { position: static; width: 100%; margin-bottom: 20px; transform: none; box-shadow: none; }
    .paper-title { font-size: 3rem; }
}
