:root {
    --bg-color: #0d0d0d;      /* Gritty dark alley gray-black */
    --text-color: #f0f0f0;    /* Stark, clinical white */
    --dim-text: #666666;      /* Faded concrete gray */
    
    /* Strong Monospace font stack applied globally */
    --font-mono: "SF Mono", Monaco, Inconsolata, "Fira Mono", "Droid Sans Mono", monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 3vw;
    -webkit-font-smoothing: antialiased;
}

main {
    max-width: 960px; /* Gritty, compact max-width */
    margin: 0 auto;
}

h1, h3 {
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 { font-size: 1.4rem; margin-bottom: 0.5rem; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.1s ease;
}

/* --- The Unified Index Feed , loops through all posts and displays them --- */

.strong-index {
    display: grid;
    /* A strict functional grid, not masonry */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.feed-entry {
    background: transparent;
    border: 1px solid #222; /* Define gritty structure */
    padding: 15px;
    transition: border-color 0.1s ease;
}

.feed-entry:hover {
    border-color: #444;
}

.entry-link { display: block; }

.entry-title {
    font-size: 0.95rem;
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.entry-date {
    font-size: 0.75rem;
    color: var(--dim-text);
    display: block;
    margin-top: 10px;
}

/* Preview Treatment - Simplified and corrected for full image scaling */
.photo-preview {
    margin-bottom: 10px;
    /* REMOVED overflow: hidden to prevent cropping */
    /* This allows the full image to show without being truncated */
}

.gritty-thumb {
    width: 100%;       /* Scale to full width of parent box */
    height: auto;      /* Maintain aspect ratio - DO NOT CROP */
    display: block;
    /*filter: grayscale(100%) contrast(110%);*/
    transition: filter 0.3s ease;
}

.feed-entry:hover .gritty-thumb {
    filter: contrast(150%);  /*grayscale(100%) contrast(150%);*/
}

.text-preview {
    font-size: 0.85rem;
    color: var(--dim-text);
    margin-top: 10px;
}
.read-more { color: #555; }

/* --- Single Page Look (e.g., _layouts/book.html) --- */

/* The internal pages maintain the clean, analog white frame for a stark pop */
.photo-frame {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 40px;
    display: block;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.photo-frame img {
    width: 100%;       /* Scale to full width of the white frame */
    height: auto;      /* Ensure scaling and no cropping on internal pages */
    display: block;
}

.meta {
    color: var(--dim-text);
    font-size: 0.8rem;
    margin-bottom: 4rem;
}
