/* FIL Design System - Technical Aesthetic */

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: #333333;
    --accent-color: #ffffff;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --spacing-unit: 4px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-weight: 300;
}

a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

a:hover {
    border-bottom-color: var(--text-color);
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

.post-date {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    display: block;
    margin-bottom: 2rem;
}

/* Navigation - Fixed & Blend Mode */
.fil-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 40px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
    color: #fff;
    pointer-events: none;
    background: transparent;
    /* rely on mix-blend mostly, or use rgba(0,0,0,0.8) if needed */
}

.fil-nav .nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
    pointer-events: auto;
}

.fil-nav .site-title {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Year Menu */
.year-menu {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    white-space: nowrap;
    margin-left: 40px;
    pointer-events: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    scrollbar-width: none;
    /* Hide scrollbar */
}

.year-menu::-webkit-scrollbar {
    display: none;
}

.year-menu a {
    color: #888;
    border: none;
}

.year-menu a:hover,
.year-menu a.active {
    color: #fff;
    font-weight: bold;
}

/* Index Page - Compact List Layout */
.archive-container {
    max-width: 900px;
    /* Narrower for reading */
    margin: 100px auto 40px;
    padding: 0 40px;
}

.year-heading {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-top: 60px;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 100;
    color: var(--text-muted);
}

.post-list-compact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-row {
    display: flex;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #222;
    transition: background 0.2s ease;
}

.post-row:hover {
    background: #111;
}

.post-row .meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #666;
    width: 100px;
    flex-shrink: 0;
}

.post-row .title {
    font-size: 1rem;
    color: #ddd;
    font-weight: 400;
}

.post-row:hover .title {
    color: #fff;
}

/* Post Content Styling */
.post-content-container {
    max-width: 800px;
    margin: 120px auto;
    padding: 0 20px;
}

.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border: 1px solid #222;
}

.content blockquote {
    border-left: 4px solid var(--border-color) !important;
    background: #111;
    padding: 1rem;
    margin: 2rem 0;
}

.video-container {
    border: 1px solid #222;
}

/* Post Footer Nav */
.navigation {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.back-link {
    text-align: center;
    margin: 40px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .fil-nav {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        background: rgba(0, 0, 0, 0.8);
        /* Need background on mobile */
        mix-blend-mode: normal;
    }

    .year-menu {
        margin-left: 0;
        width: 100%;
        padding-bottom: 5px;
    }

    .archive-container,
    .post-content-container {
        padding: 0 20px;
        margin-top: 140px;
        /* More space for stacked nav */
    }

    .post-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .post-row .meta {
        font-size: 0.75rem;
    }
}