/* --- Variables & Core Styles --- */
:root {
    --ice-blue: #d0e7f0;
    --navy: #0a192f;
    --silver: #b0c4de;
    --ink: #1a1a1a;
    --paper: #f4f1ea;
    --paper-dark: #e8e4d9;
    --serif: 'Georgia', 'Times New Roman', serif;
    --sans: 'Verdana', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Texture Overlay */
.newspaper-bg::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    pointer-events: none;
    opacity: 0.4;
    z-index: 999;
}

.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* --- Navigation --- */
.navbar {
    background: var(--navy);
    border-bottom: 4px solid var(--silver);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-family: var(--sans);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-links { display: flex; list-style: none; }
.nav-links li a {
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
    font-family: var(--sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--ice-blue); }

/* --- Newspaper Elements --- */
.paper-header { text-align: center; margin-top: 20px; }
.masthead h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    border-top: 4px solid var(--ink);
    border-bottom: 4px solid var(--ink);
    margin: 10px 0;
    font-family: 'Times New Roman', serif;
    letter-spacing: -2px;
    font-weight: 900;
}

.masthead-top {
    display: flex;
    justify-content: space-between;
    font-family: var(--sans);
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0 5px;
}
/* --- Masthead Link Styling --- */
.masthead-link {
    text-decoration: none;
    color: inherit; /* This ensures the text stays black/ink-colored */
    display: block; /* Makes the entire area around the text clickable */
}

.masthead-link h1 {
    margin: 10px 0;
    transition: opacity 0.3s ease; /* Smooth transition for the hover effect */
}

.masthead-link:hover h1 {
    opacity: 0.7; /* Gives a subtle "faded ink" look when you hover */
}

.paper-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 40px; margin-top: 20px; }

.headline { font-size: 2.8rem; line-height: 1; margin-bottom: 15px; }
.subheadline { font-style: italic; font-weight: 400; color: #333; margin-bottom: 25px; font-size: 1.2rem; }

.main-content-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.article-body { text-align: justify; }

.drop-cap {
    float: left;
    font-size: 5rem;
    line-height: 0.8;
    margin: 5px 10px 0 0;
    font-weight: bold;
}

.inline-link {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--navy);
    padding: 0 2px;
}

.inline-link:hover { background: var(--ice-blue); }

.hero-img {
    width: 100%;
    filter: grayscale(1) sepia(0.2) contrast(1.1);
    border: 1px solid #000;
    padding: 5px;
    background: #fff;
}

/* --- Secondary Page Styles --- */
.page-title { font-size: 3.5rem; text-align: center; margin-bottom: 40px; text-transform: uppercase; }
.paper-texture {
    background: var(--paper-dark);
    padding: 40px;
    border: 1px solid #ccc;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.05);
}

.stats-table { width: 100%; border-collapse: collapse; background: white; }
.stats-table th, .stats-table td { border: 1px solid #999; padding: 15px; text-align: center; }
.stats-table th { background: var(--navy); color: white; text-transform: uppercase; }
.highlight-row { background: var(--ice-blue); font-weight: bold; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery-item img {
    width: 100%; height: 300px; object-fit: cover;
    filter: grayscale(1); transition: 0.4s; cursor: pointer;
    border: 10px solid #fff; box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
.gallery-item img:hover { filter: grayscale(0); transform: scale(1.02); }

.media-item { display: flex; align-items: center; padding: 20px 0; border-bottom: 1px dashed #000; }
.puck-icon { width: 24px; height: 12px; background: #000; border-radius: 6px; margin-right: 20px; flex-shrink: 0; }
.media-info a { font-size: 1.2rem; font-weight: bold; color: var(--navy); text-decoration: none; }
.media-date { display: block; font-size: 0.8rem; color: #666; font-family: var(--sans); }

.about-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.about-image-wrapper img { width: 100%; border: 1px solid #000; padding: 10px; background: #fff; filter: grayscale(0.5); }
.pull-quote { font-size: 1.8rem; border-left: 5px solid var(--navy); padding-left: 20px; margin: 30px 0; font-style: italic; }

/* --- Lightbox --- */
.lightbox {
    display: none; position: fixed; z-index: 9999; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.95);
    justify-content: center; align-items: center;
}
.lightbox-content { max-width: 90%; max-height: 80%; border: 5px solid #fff; }
.close-lightbox { position: absolute; top: 40px; right: 40px; color: #fff; font-size: 50px; cursor: pointer; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .paper-grid, .main-content-split, .about-layout { grid-template-columns: 1fr; }
    .sidebar { margin-top: 40px; }
}