/*
Theme Name: RAW Work
Theme URI: http://example.com/raw-work
Author: Gemini
Author URI: http://example.com
Description: A brutalist, minimal portfolio theme with a grid layout and category filters.
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black-and-white, minimalism, portfolio, grid
*/

:root {
    --bg: #ffffff;
    --text: #000000;
    --border-width: 3px;
    --spacing: 20px;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 1rem;
}

a { color: inherit; text-decoration: none; }
p { margin-bottom: 1.5rem; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    border-bottom: var(--border-width) solid var(--text);
    background: var(--bg);
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing);
}

.site-branding a { font-weight: 900; font-size: 1.4rem; }

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--spacing);
}

.main-navigation a { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; }
.main-navigation a:hover, .current-menu-item a { text-decoration: line-through; }

/* Main Layout */
.site-main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    border-bottom: var(--border-width) solid var(--text);
}

/* --- FILTER BAR --- */
.filter-bar {
    padding: 15px var(--spacing);
    border-bottom: 1px solid var(--text);
    display: flex;
    gap: 20px;
    overflow-x: auto;
    background: var(--bg);
    position: sticky;
    top: 70px; /* Header Height */
    z-index: 90;
}

.filter-bar a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
}

.filter-bar a:hover, .filter-bar a.active {
    background: var(--text);
    color: var(--bg);
    padding: 0 5px;
}

/* --- GRID LAYOUT --- */
.project-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.post-card {
    border-right: 1px solid var(--text);
    border-bottom: 1px solid var(--text);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: background 0.2s;
}

.post-card:nth-child(even) { border-right: none; }

.card-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-bottom: 1px solid var(--text);
}

.card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.5s;
}

.post-card:hover .card-image-link img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.card-content {
    padding: var(--spacing);
    background: var(--bg);
}

.entry-title { font-size: 1.5rem; margin: 0 0 5px 0; }
.entry-meta { font-family: var(--font-mono); font-size: 0.8rem; color: #555; }

@media (max-width: 768px) {
    .project-grid-container { grid-template-columns: 1fr; }
    .post-card { border-right: none; }
}

/* Single Post */
.single-post .hero, .page .hero {
    padding: 80px var(--spacing);
    border-bottom: var(--border-width) solid var(--text);
}

.single-title { font-size: 6vw; margin-bottom: 40px; }

.single-meta {
    font-family: var(--font-mono);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    font-size: 0.9rem;
    border-top: 1px solid var(--text);
    padding-top: 20px;
}

.entry-content { width: 100%; }
.entry-content p {
    max-width: 800px;
    margin: 60px var(--spacing);
    font-size: 1.5rem;
    font-weight: 500;
}
.entry-content .wp-block-image { margin: 60px 0; width: 100%; }
.entry-content .wp-block-image img {
    width: 100%;
    border-top: var(--border-width) solid var(--text);
    border-bottom: var(--border-width) solid var(--text);
    filter: grayscale(100%);
    transition: filter 0.3s;
}
.entry-content .wp-block-image:hover img { filter: grayscale(0); }

/* Info Grid */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 50vh; }
.info-col { padding: 60px var(--spacing); border-right: 1px solid var(--text); }
.info-col:last-child { border-right: none; }
@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; }
    .info-col { border-right: none; border-bottom: 1px solid var(--text); }
}

/* Footer */
.site-footer {
    padding: 40px var(--spacing);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 3rem;
    line-height: 0.8;
}
