:root {
    --primary-blue: #003366;
    --breaking-red: #cc0000;
    --text-dark: #1a1a1a;
    --text-light: #555;
    --bg-gray: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background: var(--bg-gray);
    color: var(--text-dark);
}

/* Shared Header & Logo */
.top-nav-bar {
    background: #111;
    color: #fff;
    text-align: center;
    font-size: 12px;
    padding: 5px 0;
    font-weight: bold;
    text-transform: uppercase;
}

header {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    text-align: center;
    background: white;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: black;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    border-bottom: 4px double #000;
    padding-bottom: 5px;
    display: inline-block;
}

.logo-sub {
    font-size: 0.8rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 10px;
    font-weight: bold;
    color: var(--text-light);
}

/* Navigation */
nav {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    padding: 12px 20px;
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--breaking-red);
}

/* Container & Main Grid */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 equal columns for secondary articles */
    gap: 30px;
}

/* Shared Article Card Styles */
.article-card {
    display: flex;
    flex-direction: column;
}

.img-box {
    background: #eee;
    background-size: cover;
    background-position: center;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

h1,
h2 {
    font-family: 'Playfair Display', serif;
    margin: 10px 0;
    color: #111;
}

.meta {
    color: var(--breaking-red);
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* Featured Article Specifics */
.featured {
    grid-column: 1 / -1;
    /* Forces it to span all 3 columns */
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 10px;
}

.featured .img-box {
    height: 350px;
    margin-bottom: 0;
}

.featured h1 {
    font-size: 2.8rem;
    line-height: 1.1;
}

/* Secondary Article Specifics */
.secondary-article {
    border-top: 3px solid var(--primary-blue);
    padding-top: 15px;
}

.secondary-article .img-box {
    height: 180px;
}

.secondary-article h2 {
    font-size: 1.4rem;
    line-height: 1.2;
}

.secondary-article p {
    font-size: 0.95rem;
    color: #444;
}

.attribution {
    font-size: 0.85rem;
    color: #444;
}

.caption{
    font-size: .7rem;
    color: #666;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }

    .featured {
        grid-template-columns: 1fr;
    }

    .featured .img-box {
        height: 250px;
    }
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #888;
    padding: 60px 20px;
    margin-top: 60px;
    text-align: center;
}

footer a {
    color: #ccc;
    margin: 0 10px;
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 768px) {

    main,
    .featured {
        grid-template-columns: 1fr;
    }

    .logo-main {
        font-size: 2.2rem;
    }
}