@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Mono:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f7f7f7;
    color: #535353;
    font-family: 'Space Mono', monospace;
    line-height: 1.6;
}

nav {
    padding: 20px;
    background: #535353;
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    align-items: center;
}

.home-link, .river-log-link {
    color: #f7f7f7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.home-link:hover, .river-log-link:hover {
    color: #ff6b6b;
}

header {
    text-align: center;
    padding: 60px 20px 40px;
}

header h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 36px;
    margin-bottom: 20px;
    color: #535353;
    letter-spacing: 2px;
}

.tagline {
    font-size: 14px;
    color: #808080;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.categories {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 12px 24px;
    background: #fff;
    border: 3px solid #535353;
    color: #535353;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
}

.category-btn:hover {
    background: #535353;
    color: #f7f7f7;
    transform: translateY(-2px);
}

.category-btn.active {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.posts {
    display: grid;
    gap: 30px;
}

.post-preview {
    background: #fff;
    border: 3px solid #535353;
    padding: 30px;
    transition: all 0.3s;
}

.post-preview:hover {
    transform: translateX(4px);
    box-shadow: -4px 4px 0 #535353;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #808080;
}

.post-meta .category {
    padding: 4px 12px;
    background: #535353;
    color: #f7f7f7;
    border-radius: 2px;
}

.post-preview h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.excerpt {
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.read-more:hover {
    color: #535353;
}

footer {
    text-align: center;
    padding: 60px 20px 40px;
    color: #808080;
    font-size: 12px;
}

.post-preview.hidden {
    display: none;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 24px;
    }
    
    .categories {
        gap: 10px;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .post-preview {
        padding: 20px;
    }
    
    .post-preview h2 {
        font-size: 16px;
    }
}