/*
Theme Name: Fastest Vanilla Theme
Description: A single-file, blazing fast masonry theme with a lightweight mobile menu.
Author: You
Version: 1.3
*/

:root {
    --bg-color: #0A1720;
    --text-color: #ffffff;
    --accent-red: #FF3333;
    --nav-arrow-red: #AA0000;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Links & Accents */
a { color: var(--accent-red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: bold;
    text-transform: capitalize;
}

/* Header (Slightly tighter vertical padding so content loads higher) */
header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
}
.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Smaller Site Icon & Logo */
.site-branding img, .site-icon { 
    max-height: 32px; 
    width: auto; 
    display: block; 
}
/* Smaller Site Name Text */
.site-title { margin: 0; font-size: 1.2rem; }
.site-title a { color: var(--text-color); text-decoration: none; }
.site-title a:hover { color: var(--accent-red); text-decoration: none; }

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.main-navigation a { color: var(--text-color); font-weight: bold; text-decoration: none; }
.main-navigation a:hover { color: var(--accent-red); text-decoration: none; }

/* Hamburger Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Layouts (Reduced top padding so title sits higher on page) */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 20px 40px;
}
.container-wide {
    width: 100%;
    padding: 20px 40px 40px;
    box-sizing: border-box;
}

/* Page/Post Titles (Smaller text, higher up, no divider) */
.centered-title {
    text-align: center;
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* Single Post Title Navigation Wrapper & Arrows */
.post-title-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}
.post-title-nav .centered-title {
    margin: 0;
}
.nav-arrow-slot {
    min-width: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.post-nav-arrow {
    color: var(--nav-arrow-red);
    font-size: 1.4rem;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
    user-select: none;
}
.post-nav-arrow:hover {
    text-decoration: none;
    opacity: 0.85;
    transform: scale(1.15);
}

/* Zero-JS Pinterest Grid */
.masonry-grid {
    column-count: 1;
    column-gap: 20px;
}
@media (min-width: 600px) { .masonry-grid { column-count: 2; } }
@media (min-width: 900px) { .masonry-grid { column-count: 3; } }
@media (min-width: 1200px) { .masonry-grid { column-count: 4; } }

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    background: #0f2231; 
    border-radius: 8px;
    overflow: hidden;
}
.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}
.masonry-content { padding: 20px; }
.masonry-content h2 { margin: 0; font-size: 1.2rem; }
.masonry-content h2 a { text-decoration: none; color: var(--text-color); }
.masonry-content h2 a:hover { color: var(--accent-red); text-decoration: none; }

/* Mobile Menu Overrides */
@media (max-width: 768px) {
    header { padding: 12px 20px; }
    .container-wide { padding: 15px 20px 30px; }
    .menu-toggle { display: block; }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0f2231;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .main-navigation.is-open {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}