/*
Theme Name: RHLM Terminal Archive
Theme URI: https://github.com/rhlm/terminal-archive
Author: rhlm
Description: A minimalist terminal theme with ASCII separators and mobile-optimized grids.
Version: 4.4
*/

/* 1. GLOBAL RESET */
* { box-sizing: border-box; }
a, a:link, a:visited { color: inherit; text-decoration: none; }

body {
    background-color: #ffffff;
    color: #000000;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    line-height: 1.4;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    word-wrap: break-word; /* Mobile fix for long titles */
}

/* 2. HEADER & LOGO */
.logo-link { color: #000 !important; }
header pre {
    font-size: clamp(6px, 2.2vw, 12px);
    line-height: 1.1;
    overflow: hidden;
    margin-bottom: 10px;
}

/* 3. MENU - TIGHTENED WHITE ON BLACK */
.terminal-nav { 
    margin: 20px 0; 
    display: flex; 
    justify-content: space-between; 
    font-size: 13px; 
    font-weight: bold;
}

.terminal-nav a { 
    color: #ffffff !important; 
    background-color: #000000;
    padding: 1px 6px;
    text-transform: lowercase;
    display: inline-block;
}

/* 4. SEPARATORS */
.section-divider pre {
    margin: 10px 0 20px 0;
    font-size: 10px;
    letter-spacing: -1px;
    overflow: hidden;
    opacity: 0.5;
}

/* 5. HIERARCHY: HIGHLIGHTED CATEGORY / BOLD POST */
.category-highlight {
    background-color: #000000;
    color: #ffffff !important;
    padding: 1px 5px;
    text-transform: lowercase;
    font-weight: bold;
    display: inline-block;
}

.path-separator {
    color: #8b0000;
    font-weight: bold;
    margin: 0 3px;
}

.post-title-standard {
    color: #000000 !important;
    text-transform: uppercase;
    font-weight: bold;
}

/* 6. PHOTO WIRE IMAGES & MORE */
.wire-thumb img {
    border: 1px solid #000;
    padding: 2px;
    margin: 10px 0;
    max-width: 100%;
    height: auto;
    filter: grayscale(0%);
}
.wire-thumb img:hover { filter: grayscale(0%); }

.more-link {
    background: #8b0000;
    color: #fff !important;
    padding: 0px 4px;
    font-size: 10px;
    display: inline-block;
}

/* 7. UTILITIES */
hr { border: 0; border-top: 1px dotted #000; margin: 15px 0; }
input[type="text"] {
    background: transparent;
    border: none;
    border-bottom: 1px dotted #000;
    font-family: inherit;
    font-size: 11px;
    width: 120px;
    outline: none;
}

.system-footer {
    margin-top: 40px;
    opacity: 0.6;
    font-size: 10px;
}

/* 8. MOBILE OPTIMIZATION */
@media (max-width: 600px) {
    body { padding: 15px; } /* More screen space for content */
    
    .terminal-nav { 
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid is easier to tap on mobile than 4x1 */
        font-size: 12px; 
        gap: 8px;
        text-align: center;
    }

    .section-divider pre {
        letter-spacing: -2px; /* Squash the line to prevent horizontal scroll */
    }

    .category-highlight {
        margin-bottom: 4px; /* Stack slightly better if title wraps */
    }
}