/* MAUMEE RIVER MIST & LOTUS THEME 
   The foundational CSS for Mugwump67 
*/

:root {
    /* LOTUS THEME (Default Mode - Earthy Dark) */
    --bg-primary: transparent;       /* Let the tree stump image show through */
    --card-glass: rgba(255, 255, 255, 0.04); /* Soft transparent glass */
    --card-border: rgba(255, 255, 255, 0.1);
    
    /* Typography & Contrast Checks */
    --text-primary: #E2E8F0;         /* Bright Maumee Slate (High legibility) */
    --text-muted: rgba(226, 232, 240, 0.5); /* Softened for footers/labels */
    --deepwater: #FFFFFF;            /* Headers pop in pure white */
    
    /* Accents */
    --accent-moss: #A3B899;          /* Brightened Dried Leaf Green */
    --accent-reed: #D8B48F;          /* Sunlit Reeds / Gold */
    --watercolor-wash: rgba(163, 184, 153, 0.1);
}

/* MOSS THEME (Toggle Active - Deep Forest Shift) */
[data-theme='moss'] {
    --card-glass: rgba(27, 38, 33, 0.45); /* Forest floor tinting the glass */
    --card-border: rgba(139, 154, 103, 0.2);
    
    --text-primary: #FDFBF7;         /* Soft Parchment text */
    --text-muted: rgba(253, 251, 247, 0.4);
    --deepwater: #C9A67C;            /* Headers turn to sunlit gold */
    
    --accent-moss: #C9A67C;          
    --accent-reed: #8B9A67;          /* Reeds drop back to green */
    --watercolor-wash: rgba(201, 166, 124, 0.08);
}

/* Global Reset & Base Structure */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header & Navigation */
.site-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(139, 154, 103, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-weight: bold;
    font-family: 'Space Mono', monospace;
    font-size: 1.25rem;
    color: var(--accent-moss);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--accent-moss);
}

/* The Layout Engine */
.main-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    flex-grow: 1;
}

@media (min-width: 1024px) {
    .main-container {
        grid-template-columns: 1.4fr 0.6fr; /* Narrative left, Images right */
        gap: 5rem;
        align-items: start;
    }
}

/* Content Styling */
h1, h2, h3 {
    color: var(--deepwater);
    font-family: 'Space Mono', monospace;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

[data-theme='moss'] h1, 
[data-theme='moss'] h2, 
[data-theme='moss'] h3 {
    color: var(--accent-moss);
}

.mono-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    color: var(--accent-moss);
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
}

.content-body p {
    margin-bottom: 1.5rem;
}

/* Image scaling inside narrative posts */
.content-body img {
    display: block;
    max-width: 65%;       /* Keeps the tattoo/specimen from overwhelming the text */
    height: auto;         /* Maintains correct proportions */
    margin: 2.5rem auto;  /* Centers the image with breathing room top and bottom */
    border-radius: 6px;   /* Subtle softening to match the layout's character */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* Gives it a soft lift off the parchment */
}

/* The Anchor Point (Refining the Semicolon Context) */
.anchor-point {
    border-left: 2px solid var(--accent-reed);
    padding-left: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.anchor-point::before {
    content: ';';
    position: absolute;
    left: -0.6rem;
    top: -0.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    color: var(--accent-reed);
    opacity: 0.5;
}

.callout-box {
    background-color: var(--watercolor-wash);
    border-left: 3px solid var(--accent-moss);
    padding: 2.5rem;
    font-style: italic;
    margin: 3rem 0;
    border-radius: 0 1rem 1rem 0;
}

/* The Scrapbook / Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--accent-moss);
    background: white;
    padding: 10px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 10px 10px 0px var(--accent-reed);
}

.grid-item:hover {
    transform: rotate(-2deg) scale(1.05);
    z-index: 10;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--accent-moss);
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background: transparent;
    text-transform: uppercase;
}

.button:hover {
    background-color: var(--accent-moss);
    color: var(--bg-primary);
    transform: translateY(-2px);
}
/* ==========================================================================
   Header & Footer Legibility Tuning 
   ========================================================================== */

.site-header, header {
    background: rgba(26, 21, 18, 0.4); /* Subtle horizontal dark anchor */
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ensure Nav links stand out */
.nav-link, .main-nav a {
    color: var(--text-primary) !important;
    opacity: 0.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* Small shadow separator */
}

.nav-link:hover {
    color: var(--accent-reed) !important;
    opacity: 1;
}
/* New Grounded Footer Block (Replacing the old .site-footer) */
.site-footer, footer {
    text-align: center;
    padding: 5rem 2rem;

    background: rgba(26, 21, 18, 0.4); /* Subtle horizontal dark anchor */
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    /* LIFTED CONTRAST: Using high-visibility slate instead of muted */
    color: var(--text-primary) !important; 
    
    /* BOOSTED OPACITY: Changed from a faint 40% to a clear 75% presence */
    opacity: 0.75 !important; 
    
    /* Shadow baseline separator to pull it off the wood grain background */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); 
    
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
}

/* Ensure the tiny platform link tags remain readable and accent-colored */
.site-footer a {
    color: var(--accent-reed) !important;
    text-shadow: none;
    opacity: 0.9;
}

.site-footer a:hover {
    color: var(--accent-moss) !important;
    text-decoration: underline;
}