:root {
    --bg-color: #E0E0E0;
    --card-bg: #F5F5F5;
    --text-main: #1A1A1A;
    --accent-pop: #CCFF00; /* Acid Lime */
    --border-color: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    padding: 20px;
    line-height: 1.4;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    margin-bottom: 10px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.75rem;
    margin: 0 15px;
    letter-spacing: 1.5px;
}

/* Bento Grid Layout */
.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    overflow: hidden; /* Keeps images inside borders */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.item-text {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0px var(--border-color);
}

/* Hero Section */
.hero {
    grid-column: span 4;
    text-align: center;
    padding: 100px 20px;
    background-color: #ECECEC;
}

h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(4rem, 10vw, 8.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 0.85;
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-subline {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.location-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* Bento Images */
.bento-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid var(--border-color);
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.bento-item:hover .bento-img {
    filter: grayscale(0%);
}

/* Typography for items */
h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

.label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 15px;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* Pop Button */
.btn-pop {
    display: inline-block;
    background: var(--accent-pop);
    color: #000;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    margin-top: 30px;
    border: 2px solid var(--border-color);
    text-transform: uppercase;
}

.btn-pop:hover {
    background: #fff;
}

/* Footer */
.footer {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    background: var(--text-main);
    color: #fff;
    padding: 25px;
    border: 2px solid var(--border-color);
}

.footer-left a {
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    margin-right: 25px;
    font-weight: 700;
}

.footer-center {
    text-align: center;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 0.9rem;
}

.dark-mode-toggle {
    justify-self: end;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .bento-container { grid-template-columns: repeat(2, 1fr); }
    .hero { grid-column: span 2; }
}

@media (max-width: 650px) {
    .bento-container { grid-template-columns: 1fr; }
    .hero { grid-column: span 1; }
    .footer { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .footer-left, .footer-right { justify-self: center; }
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.page-header p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 10px;
    opacity: 0.8;
}

/* Category Tags */
.category-tag {
    display: inline-block;
    background: var(--text-main);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-radius: 2px;
}

/* Featured Article Style */
.featured {
    grid-column: span 4;
    flex-direction: row !important; /* Side-by-side on desktop */
}

.featured .item-text {
    flex: 1;
    padding: 50px;
}

.featured h3 {
    font-size: 2.5rem;
}

.featured-img-placeholder {
    flex: 1;
    background: #D9D9D9;
    border-left: 2px solid var(--border-color);
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
}

/* Links */
.read-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-pop);
    padding-bottom: 2px;
}

.read-link:hover {
    color: var(--accent-pop);
    background: var(--text-main);
    border-bottom: 2px solid transparent;
}

/* Navbar Active State */
.nav-links a.active {
    border-bottom: 2px solid var(--accent-pop);
}

/* Responsive Playbook */
@media (max-width: 1024px) {
    .featured {
        flex-direction: column !important;
    }
    .featured-img-placeholder {
        height: 200px;
        border-left: none;
        border-top: 2px solid var(--border-color);
    }
}