/*
Theme Name: Dave Reeds — Digital Garden
Theme URI: https://davereeds.com
Author: Dave Reeds
Author URI: https://davereeds.com
Description: Production-ready digital garden native WordPress theme. Mineral dark palette, canonical single-H1 hierarchy, Schema.org JSON-LD graph, animated SVG coffee navigation, 3D Library book jackets, Botanical Telemetry Ledger, and Home Workbench engine.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: davereeds-garden
*/

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================================================
   MINERAL COLOR PALETTE: BASALT, ASH, LINEN & TERRACOTTA
   ========================================================= */
:root {
    --bg-canvas: #121214;
    --bg-sidebar: #191a1c;
    --bg-card: #17181a;
    --bg-card-hover: #1c1d20;
    --bg-code: #161719;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(200, 107, 77, 0.35);
    
    --text-primary: #eee8e0;
    --text-body: #d8d2ca;
    --text-muted: #8d8780;
    --text-nav: #b8b2aa;
    
    --accent-terracotta: #c86b4d;
    --accent-terracotta-hover: #e07d5d;
    --accent-subtle: rgba(200, 107, 77, 0.12);
    --cup-line: #b8b2aa;
    --cup-fill-toasted: #52382c;
    --steam-color: #d6cdc3;
    --code-text: #e8cfba;
}

html {
    background-color: var(--bg-canvas);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-body);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--bg-card);
    color: var(--accent-terracotta);
    padding: 8px 14px;
    border: 1px solid var(--border-subtle);
    font-size: 13px;
    z-index: 9999;
    text-decoration: none;
}
.skip-link:focus { top: 20px; }

/* WordPress Admin Bar Compatibility */
body.admin-bar .garden-mobile-bar { top: 32px; }
body.admin-bar .garden-sidebar { top: 32px; height: calc(100vh - 32px); }
@media (max-width: 782px) {
    body.admin-bar .garden-mobile-bar { top: 46px; }
    body.admin-bar .garden-sidebar { top: 46px; height: calc(100vh - 46px); }
}

/* =========================================================
   1. MOBILE HEADER BAR
   ========================================================= */
.garden-mobile-bar { display: none; }
@media (max-width: 768px) {
    .garden-mobile-bar {
        display: flex; align-items: center; justify-content: space-between;
        height: 74px; padding: 0 24px;
        background-color: var(--bg-canvas);
        border-bottom: 1px solid var(--border-subtle);
        position: sticky; top: 0; z-index: 60;
    }
    .mobile-brand-group { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .mobile-brand-link { text-decoration: none; display: inline-block; flex-shrink: 0; }
    .mobile-brand-h1 { margin: 0; padding: 0; display: flex; flex-direction: column; line-height: 0.88; }
    .mobile-brand-word { font-size: 21px; font-weight: 700; letter-spacing: -0.04em; color: var(--text-primary); }
    .mobile-brand-word + .mobile-brand-word { margin-top: 2px; }
    .mobile-brand-tagline {
        font-size: 11.5px; font-weight: 400; letter-spacing: 0.02em;
        color: var(--text-muted); line-height: 1.35;
        border-left: 1px solid rgba(255, 255, 255, 0.1); padding-left: 11px;
    }
    @media (max-width: 420px) { .mobile-brand-tagline { font-size: 10.5px; max-width: 145px; } }
    .mobile-menu-btn {
        background: transparent; border: none; cursor: pointer; padding: 0;
        display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
        gap: 6px; width: 32px; height: 32px; flex-shrink: 0; position: relative;
    }
    .mobile-menu-btn .bar {
        display: block; height: 1.5px; background-color: var(--text-nav);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s ease, background-color 0.2s ease;
        transform-origin: center;
    }
    .mobile-menu-btn .bar-1 { width: 22px; }
    .mobile-menu-btn .bar-2 { width: 16px; }
    .mobile-menu-btn.is-active .bar-1 { width: 20px; transform: translateY(3.75px) rotate(45deg); background-color: var(--text-primary); }
    .mobile-menu-btn.is-active .bar-2 { width: 20px; transform: translateY(-3.75px) rotate(-45deg); background-color: var(--text-primary); }
}

/* =========================================================
   2. LEFT FIXED SIDEBAR (NON-SCROLLING DESKTOP)
   ========================================================= */
.garden-shell { display: flex; min-height: 100vh; width: 100%; }
.garden-sidebar {
    width: 265px; min-width: 265px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    padding: 34px 22px 32px 30px;
    display: flex; flex-direction: column; flex-shrink: 0;
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    box-sizing: border-box; z-index: 50;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 768px) {
    .garden-sidebar {
        position: fixed; top: 0; right: 0; left: auto;
        height: 100vh; width: 275px; max-width: 84vw;
        border-right: none; border-left: 1px solid var(--border-subtle);
        padding: 92px 24px 36px 28px;
        transform: translateX(100%);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.55);
        overflow-y: auto;
    }
    .garden-sidebar.is-open { transform: translateX(0); }
    .sidebar-brand, .sidebar-divider { display: none; }
}

.garden-backdrop { display: none; }
@media (max-width: 768px) {
    .garden-backdrop {
        display: block; position: fixed; inset: 0;
        background-color: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px);
        opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 45;
    }
    .garden-backdrop.is-active { opacity: 1; pointer-events: auto; }
}

.sidebar-brand { display: flex; flex-direction: column; }
.brand-link { text-decoration: none; display: inline-block; }
.brand-h1 { margin: 0; padding: 0; display: flex; flex-direction: column; line-height: 0.88; }
.brand-word { font-size: 29px; font-weight: 700; letter-spacing: -0.04em; color: var(--text-primary); }
.brand-word + .brand-word { margin-top: 3px; }
.brand-tagline { font-size: 12.5px; font-weight: 400; letter-spacing: 0.04em; color: var(--text-muted); margin-top: 11px; line-height: 1.4; }
.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(238, 232, 224, 0.12) 0%, rgba(238, 232, 224, 0.02) 80%, transparent 100%);
    margin: 24px 0 28px 0; border: none;
}

/* Coffee Cup Navigation */
.coffee-nav { display: flex; flex-direction: column; gap: 18px; }
.coffee-item {
    display: inline-flex; align-items: center; gap: 13px;
    text-decoration: none; color: var(--text-nav); padding: 4px 0;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s ease;
}
.coffee-icon-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.coffee-svg { width: 26px; height: 26px; stroke: var(--cup-line); overflow: visible; }
.cup-body { fill: transparent; stroke: var(--cup-line); transition: fill 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.cup-handle, .cup-saucer { stroke: var(--cup-line); fill: none; }
.steam { opacity: 0; visibility: hidden; stroke: var(--steam-color); transform: translateY(3px); }
.coffee-label { font-size: 15px; font-weight: 450; line-height: 1; letter-spacing: 0.02em; color: inherit; transition: color 0.2s ease, letter-spacing 0.25s ease; }
.coffee-item.is-active { color: var(--text-primary); }
.coffee-item.is-active .cup-body { fill: rgba(82, 56, 44, 0.65); }
.coffee-item:hover { color: var(--text-primary); transform: translateX(4px); }
.coffee-item:hover .coffee-label { letter-spacing: 0.035em; }
.coffee-item:hover .coffee-icon-wrap { transform: translateY(-1.5px) rotate(-3deg); }
.coffee-item:hover .cup-body { fill: var(--cup-fill-toasted); }
.coffee-item:hover .steam { visibility: visible; }
.coffee-item:hover .steam-1 { animation: steamRise 1.3s ease-in-out infinite; }
.coffee-item:hover .steam-2 { animation: steamRise 1.3s ease-in-out infinite 0.35s; }
.coffee-item:hover .steam-3 { animation: steamRise 1.3s ease-in-out infinite 0.7s; }

@keyframes steamRise {
    0%   { opacity: 0; transform: translateY(2px) translateX(0); }
    35%  { opacity: 0.9; }
    75%  { opacity: 0.45; transform: translateY(-3px) translateX(0.8px); }
    100% { opacity: 0; transform: translateY(-6px) translateX(-0.8px); }
}

/* =========================================================
   3. MAIN VIEWPORT & EDITORIAL PROSE
   ========================================================= */
.garden-viewport {
    flex: 1; display: flex; flex-direction: column; min-width: 0;
    background-color: var(--bg-canvas); min-height: 100vh;
}
.garden-main {
    flex: 1; padding: 52px 60px 80px 60px;
    max-width: 1140px; width: 100%; box-sizing: border-box;
}
@media (max-width: 768px) { .garden-main { padding: 32px 20px 60px 20px; } }

.entry-header { width: 100%; margin-bottom: 34px; }
.entry-header h1 {
    font-size: clamp(32px, 4vw, 42px); font-weight: 700;
    letter-spacing: -0.04em; color: var(--text-primary);
    line-height: 1.12; margin: 0; max-width: 880px;
}

.page-lead {
    font-size: 16.5px;
    line-height: 1.68;
    color: var(--text-body);
    margin: 0 0 36px 0;
    max-width: 840px;
}

/* Single Post Grid (Prose + Marginalia) */
.garden-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 260px;
    gap: 68px; align-items: start;
}
@media (max-width: 1060px) { .garden-grid { grid-template-columns: 1fr; gap: 40px; } }

.garden-prose { min-width: 0; max-width: 630px; }
.garden-prose p { font-size: 16.5px; line-height: 1.75; color: var(--text-body); margin-bottom: 24px; letter-spacing: -0.005em; }
.garden-prose h2 { font-size: 23px; font-weight: 600; letter-spacing: -0.03em; color: var(--text-primary); line-height: 1.3; margin-top: 48px; margin-bottom: 18px; }
.garden-prose h3 { font-size: 18.5px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); line-height: 1.4; margin-top: 36px; margin-bottom: 14px; }
.garden-prose a { color: var(--accent-terracotta); text-decoration: none; border-bottom: 1px solid rgba(200, 107, 77, 0.38); transition: border-color 0.2s ease, color 0.2s ease; }
.garden-prose a:hover { color: var(--accent-terracotta-hover); border-bottom-color: var(--accent-terracotta-hover); }
.garden-prose blockquote { border-left: 2px solid var(--accent-terracotta); padding: 6px 0 6px 24px; margin: 32px 0; font-style: italic; color: #c4beba; }
.garden-prose blockquote p { font-size: 17px; line-height: 1.7; margin-bottom: 0; }
.garden-prose blockquote cite { display: block; font-size: 13px; font-style: normal; color: var(--text-muted); margin-top: 10px; }
.garden-prose ul, .garden-prose ol { padding-left: 24px; margin-bottom: 26px; }
.garden-prose li { font-size: 16.5px; line-height: 1.7; margin-bottom: 8px; }
.garden-prose img { max-width: 100%; height: auto; border-radius: 4px; margin: 28px 0; }

/* Standard Page Content */
.garden-page-content { width: 100%; }
.garden-page-content > p { font-size: 16.5px; line-height: 1.72; color: var(--text-body); margin-bottom: 22px; }
.garden-page-content > h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: var(--text-primary); line-height: 1.3; margin-top: 40px; margin-bottom: 16px; }
.garden-page-content > h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); line-height: 1.35; margin-top: 30px; margin-bottom: 12px; }

/* Fixed Marginalia Column */
.garden-marginalia {
    position: sticky; top: 48px; max-height: calc(100vh - 96px);
    overflow: hidden; display: flex; flex-direction: column;
    gap: 28px; width: 260px; flex-shrink: 0;
}
@media (max-width: 1060px) {
    .garden-marginalia { position: static; max-height: none; overflow: visible; width: 100%; max-width: 630px; }
}

.garden-meta-line { display: flex; flex-direction: column; gap: 5px; }
.meta-status-wrap { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 0.04em; color: #d8b28a; font-weight: 500; margin-bottom: 2px; }
.meta-tagline { font-size: 12.5px; font-weight: 400; letter-spacing: 0.035em; color: var(--text-muted); line-height: 1.45; margin: 0; }

.margin-note { padding-left: 14px; border-left: 1.5px solid var(--border-subtle); }
.margin-tag { display: block; font-family: ui-monospace, "SF Mono", monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: lowercase; color: var(--accent-terracotta); margin-bottom: 6px; }
.margin-note p { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); margin: 0; letter-spacing: 0.01em; }
.margin-scheme-clean { margin-top: 8px; font-family: ui-monospace, "SF Mono", monospace; font-size: 11.5px; line-height: 1.5; color: var(--code-text); opacity: 0.85; background: transparent; border: none; padding: 0; }

/* =========================================================
   4. GARDEN STATUS PILLS (SHARED COMPONENT)
   ========================================================= */
.garden-status-pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: ui-monospace, "SF Mono", monospace;
    font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 3px; border: 1px solid transparent; white-space: nowrap;
}
.status-seedling { color: #8fa876; background: rgba(143, 168, 118, 0.1); border-color: rgba(143, 168, 118, 0.2); }
.status-budding  { color: #e5b567; background: rgba(229, 181, 103, 0.1); border-color: rgba(229, 181, 103, 0.2); }
.status-evergreen { color: var(--accent-terracotta); background: var(--accent-subtle); border-color: rgba(200, 107, 77, 0.25); }

/* =========================================================
   5. THE GARDEN: BOTANICAL TELEMETRY, FOLIOS & LEDGER
   ========================================================= */
.garden-index-wrapper { display: flex; flex-direction: column; gap: 40px; width: 100%; }

.telemetry-panel {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px; align-items: center; background-color: var(--bg-card);
    border: 1px solid var(--border-subtle); border-radius: 4px; padding: 22px 26px;
}
@media (max-width: 900px) { .telemetry-panel { grid-template-columns: 1fr; gap: 20px; } }
.telemetry-lead { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.telemetry-counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 580px) { .telemetry-counters { grid-template-columns: repeat(2, 1fr); } }

.telemetry-counter-card {
    display: flex; flex-direction: column; gap: 3px; padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-subtle);
    border-radius: 3px; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.telemetry-counter-card:hover { border-color: var(--border-hover); background-color: var(--bg-card-hover); }
.counter-label { font-family: ui-monospace, "SF Mono", monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.counter-value { font-family: ui-monospace, "SF Mono", monospace; font-size: 20px; font-weight: 700; color: var(--text-primary); }
.value-evergreen { color: var(--accent-terracotta); }
.value-budding   { color: #e5b567; }
.value-seedling  { color: #8fa876; }

/* Thematic Folios Grid */
.territories-section { display: flex; flex-direction: column; gap: 14px; }
.territories-header { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 6px; border-bottom: 1px solid var(--border-subtle); }
.territories-kicker { font-family: ui-monospace, "SF Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-terracotta); }
.territories-note { font-size: 12.5px; color: var(--text-muted); }
.territories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .territories-grid { grid-template-columns: 1fr; } }

.territory-card {
    background-color: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 4px; padding: 20px 22px; display: flex; flex-direction: column;
    gap: 10px; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.territory-card:hover, .territory-card.is-selected {
    border-color: var(--accent-terracotta); background-color: var(--bg-card-hover); transform: translateY(-2px);
}
.territory-pill { font-family: ui-monospace, "SF Mono", monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-terracotta); }
.territory-title { font-size: 17.5px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.02em; margin: 0; line-height: 1.3; }
.territory-desc { font-size: 13.5px; line-height: 1.58; color: var(--text-body); margin: 0; flex: 1; }
.territory-action { font-family: ui-monospace, "SF Mono", monospace; font-size: 11.5px; color: var(--text-muted); transition: color 0.2s ease; }
.territory-card:hover .territory-action { color: var(--accent-terracotta); }

/* Botanical Ledger Table */
.ledger-section { display: flex; flex-direction: column; gap: 14px; }
.ledger-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle); }
.ledger-toolbar-left { display: flex; align-items: baseline; gap: 12px; }
.ledger-kicker { font-family: ui-monospace, "SF Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-terracotta); }
.ledger-count-indicator { font-family: ui-monospace, "SF Mono", monospace; font-size: 12px; color: var(--text-muted); }
.ledger-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ledger-filter-btn {
    background: transparent; border: 1px solid var(--border-subtle); color: var(--text-muted);
    font-family: ui-monospace, "SF Mono", monospace; font-size: 11.5px; padding: 4px 10px;
    border-radius: 3px; cursor: pointer; transition: all 0.2s ease;
}
.ledger-filter-btn:hover, .ledger-filter-btn.is-active {
    color: var(--text-primary); border-color: var(--accent-terracotta); background: var(--accent-subtle);
}
.ledger-filter-reset {
    background: none; border: none; color: var(--accent-terracotta);
    font-family: ui-monospace, "SF Mono", monospace; font-size: 11.5px; cursor: pointer; padding: 4px 6px;
}

.ledger-table { display: flex; flex-direction: column; }
.ledger-row {
    display: grid; grid-template-columns: 140px minmax(0, 1fr) 240px;
    gap: 20px; align-items: baseline; padding: 16px 8px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ledger-row:hover { background-color: rgba(255, 255, 255, 0.015); border-bottom-color: var(--border-hover); }
@media (max-width: 860px) { .ledger-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 4px; } }
.ledger-col-status { display: flex; align-items: center; }
.ledger-col-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ledger-title-link { font-size: 16.5px; font-weight: 550; color: var(--text-primary); text-decoration: none; letter-spacing: -0.015em; transition: color 0.15s ease; }
.ledger-row:hover .ledger-title-link { color: var(--accent-terracotta); }
.ledger-excerpt { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); margin: 0; }
.ledger-col-meta { display: flex; align-items: baseline; justify-content: flex-end; gap: 7px; font-family: ui-monospace, "SF Mono", monospace; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
@media (max-width: 860px) { .ledger-col-meta { justify-content: flex-start; } }
.ledger-notebook { color: #b8b2aa; }
.ledger-bullet { color: rgba(255, 255, 255, 0.2); }
.ledger-empty { padding: 30px 10px; color: var(--text-muted); font-style: italic; font-size: 14px; }

/* =========================================================
   6. THE LIBRARY: HORIZONTAL SHELVES & 3D BOOK JACKETS
   ========================================================= */
.library-wrapper { display: flex; flex-direction: column; gap: 38px; width: 100%; }
.lib-shelf, .lib-shelf-section { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.lib-shelf-header { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--border-subtle); }
.lib-shelf-title, .lib-shelf-kicker { font-family: ui-monospace, "SF Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-terracotta); }
.lib-shelf-note, .lib-shelf-meta { font-size: 12.5px; color: var(--text-muted); letter-spacing: 0.02em; }
.lib-shelf-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 980px) { .lib-shelf-track { grid-template-columns: 1fr; } }

.lib-book-card {
    background-color: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 4px; padding: 20px; display: flex; flex-direction: column;
    justify-content: space-between; gap: 14px; box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.lib-book-card:hover { border-color: var(--border-hover); background-color: var(--bg-card-hover); }

.book-card-top { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 520px) { .book-card-top { grid-template-columns: 1fr; gap: 14px; } }

.lib-book-card .book-heading {
    margin: 0 0 3px 0; padding: 0; font-size: 18px; font-weight: 600;
    letter-spacing: -0.025em; color: var(--text-primary); line-height: 1.25;
}
.lib-book-card .jacket-title { margin: 0; padding: 0; font-size: 12.5px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.lib-book-card p { margin: 0; }

.book-jacket {
    width: 104px; height: 152px; border-radius: 2px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.55), inset -2px 0 4px rgba(0, 0, 0, 0.45), inset 1px 0 2px rgba(255, 255, 255, 0.08);
    position: relative; padding: 10px 8px 10px 12px; display: flex;
    flex-direction: column; justify-content: space-between;
    box-sizing: border-box; overflow: hidden; flex-shrink: 0;
}
.book-jacket::before {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 8px;
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(255,255,255,0.06) 50%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}
.jacket-writing { background: linear-gradient(150deg, #181c22 0%, #0d1014 100%); border: 1px solid rgba(255, 255, 255, 0.08); }
.jacket-taleb   { background: linear-gradient(150deg, #221c17 0%, #14110e 100%); border: 1px solid rgba(200, 107, 77, 0.25); }
.jacket-danish  { background: linear-gradient(150deg, #18201c 0%, #0e1411 100%); border: 1px solid rgba(164, 204, 161, 0.22); }
.jacket-mulisch { background: linear-gradient(150deg, #191817 0%, #0d0c0c 100%); border: 1px solid rgba(255, 255, 255, 0.07); }
.jacket-custom  { background: linear-gradient(150deg, #191a1c 0%, #101112 100%); border: 1px solid rgba(255, 255, 255, 0.08); }

.jacket-kicker { font-family: ui-monospace, "SF Mono", monospace; font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-terracotta); padding-left: 5px; display: block; }
.jacket-author { font-size: 9px; color: var(--text-muted); padding-left: 5px; display: block; margin-top: 4px; }
.jacket-footer { font-family: ui-monospace, "SF Mono", monospace; font-size: 7.5px; color: rgba(255, 255, 255, 0.28); padding-left: 5px; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 4px; }

.book-dossier-top { display: flex; flex-direction: column; min-width: 0; }
.book-byline { font-size: 13.5px; color: var(--text-nav); margin-bottom: 7px; }
.book-apparatus { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-family: ui-monospace, "SF Mono", monospace; font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.book-excerpt { border-left: 1.5px solid var(--accent-terracotta); padding-left: 10px; font-style: italic; font-size: 13.5px; line-height: 1.5; color: #cbc5bd; }
.book-card-bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.book-reflection { font-size: 14px; line-height: 1.58; color: var(--text-body); margin: 0; }
.book-link {
    display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500;
    color: var(--accent-terracotta); text-decoration: none; letter-spacing: 0.02em; align-self: flex-start;
    transition: color 0.2s ease, gap 0.2s ease;
}
.book-link:hover { color: var(--accent-terracotta-hover); gap: 8px; }

/* =========================================================
   7. NOW PAGE: TELEMETRY BAR & 2x2 QUADRANT MATRIX
   ========================================================= */
.now-telemetry-bar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    gap: 14px; padding: 12px 18px; background-color: var(--bg-card);
    border: 1px solid var(--border-subtle); border-radius: 4px; margin-bottom: 28px;
    font-family: ui-monospace, "SF Mono", monospace; font-size: 11.5px; color: var(--text-muted);
    letter-spacing: 0.04em; text-transform: uppercase;
}
.now-status-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--text-primary); font-weight: 600; }
.now-status-dot { width: 7px; height: 7px; border-radius: 50%; background-color: var(--accent-terracotta); display: inline-block; }

.now-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .now-grid { grid-template-columns: 1fr; } }

.now-card {
    background-color: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 4px; padding: 26px 28px; display: flex; flex-direction: column;
    justify-content: space-between; gap: 20px; transition: border-color 0.2s ease;
}
.now-card:hover { border-color: var(--border-hover); }
.now-card-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.now-kicker { font-family: ui-monospace, "SF Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-terracotta); }
.now-heading { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; color: var(--text-primary); line-height: 1.25; margin: 0; }
.now-body { font-size: 14.5px; line-height: 1.65; color: var(--text-body); margin: 0; }
.now-list { list-style: none; padding: 14px 0 0 0; margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 7px; }
.now-item { font-family: ui-monospace, "SF Mono", monospace; font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; line-height: 1.4; }
.now-item::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background-color: var(--accent-terracotta); flex-shrink: 0; }

/* =========================================================
   8. FOUNDATIONS PAGE: NARRATIVE + DOSSIER SIDEBAR
   ========================================================= */
.foundations-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) 320px; gap: 56px; align-items: start; }
@media (max-width: 960px) { .foundations-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-narrative { display: flex; flex-direction: column; gap: 40px; }
.about-block { display: flex; flex-direction: column; gap: 10px; }
.about-kicker { font-family: ui-monospace, "SF Mono", monospace; font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-terracotta); }
.about-heading { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: var(--text-primary); line-height: 1.28; margin: 0 0 4px 0; }
.about-prose { display: flex; flex-direction: column; gap: 16px; }
.about-prose p { font-size: 15.5px; line-height: 1.72; color: var(--text-body); margin: 0; }

.about-sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar-card { background-color: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 4px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.sidebar-label { font-family: ui-monospace, "SF Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-terracotta); }
.sidebar-body { font-size: 14px; line-height: 1.62; color: var(--text-body); }
.meta-list { display: flex; flex-direction: column; gap: 7px; }
.meta-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.meta-label { font-family: ui-monospace, "SF Mono", monospace; font-size: 11px; color: var(--text-muted); }
.meta-val { color: var(--text-primary); font-weight: 500; font-size: 13.5px; }
.sidebar-link { font-family: ui-monospace, "SF Mono", monospace; font-size: 12.5px; color: var(--accent-terracotta); margin-top: 2px; display: inline-block; text-decoration: none; }

/* =========================================================
   9. HOME WORKBENCH ENGINE ([garden_home])
   ========================================================= */
.garden-front h1 {
    font-size: clamp(32px, 4vw, 42px); font-weight: 700;
    letter-spacing: -0.04em; color: var(--text-primary);
    line-height: 1.12; margin: 0 0 18px 0; max-width: 840px;
}
.garden-front > p {
    font-size: 16.5px; line-height: 1.68; color: var(--text-body);
    margin: 0 0 42px 0; max-width: 780px;
}

.home-workbench-wrapper { display: flex; flex-direction: column; gap: 52px; width: 100%; margin-top: 12px; }
.hw-section { display: flex; flex-direction: column; gap: 18px; }
.hw-section-header { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; gap: 10px; }
.hw-header-left { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hw-kicker { font-family: ui-monospace, "SF Mono", monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-terracotta); }
.hw-subnote { font-size: 12.5px; color: var(--text-muted); }
.hw-header-link { font-family: ui-monospace, "SF Mono", monospace; font-size: 12px; color: var(--accent-terracotta); text-decoration: none; transition: color 0.2s ease; }
.hw-header-link:hover { color: var(--accent-terracotta-hover); }

/* Module 2: Folio Showcase Grid */
.hw-folio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .hw-folio-grid { grid-template-columns: 1fr; } }

.hw-plate-card {
    background-color: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 4px; overflow: hidden; display: flex; flex-direction: column;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.hw-plate-card:hover { border-color: var(--border-hover); background-color: var(--bg-card-hover); }
.hw-plate-img-link { display: block; overflow: hidden; border-bottom: 1px solid var(--border-subtle); }
.hw-plate-figure { margin: 0; width: 100%; height: 240px; overflow: hidden; background: #141517; }
.hw-plate-figure img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.03) brightness(0.93); transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease; }
.hw-plate-card:hover .hw-plate-figure img { transform: scale(1.025); filter: contrast(1.05) brightness(0.98); }
.hw-plate-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hw-plate-meta { display: flex; justify-content: space-between; align-items: center; font-family: ui-monospace, "SF Mono", monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.hw-plate-tag { color: var(--accent-terracotta); font-weight: 600; }
.hw-plate-edition { color: var(--text-muted); }
.hw-plate-title { margin: 0; font-size: 18.5px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.hw-plate-title a { color: var(--text-primary); text-decoration: none; transition: color 0.15s ease; }
.hw-plate-card:hover .hw-plate-title a { color: var(--accent-terracotta); }
.hw-plate-desc { margin: 0; font-size: 14px; line-height: 1.58; color: var(--text-body); flex: 1; }
.hw-plate-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.05); flex-wrap: wrap; gap: 10px; }
.hw-plate-specs { font-family: ui-monospace, "SF Mono", monospace; font-size: 11px; color: var(--text-muted); }
.hw-plate-cta { font-family: ui-monospace, "SF Mono", monospace; font-size: 12px; font-weight: 500; color: var(--accent-terracotta); text-decoration: none; }
.hw-plate-cta:hover { color: var(--accent-terracotta-hover); }

/* Module 3: Garden Stream (Visual Notes + Textual Seedlings) */
.hw-visual-notes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .hw-visual-notes-grid { grid-template-columns: 1fr; } }

.hw-visual-note-card {
    background-color: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 4px; overflow: hidden; display: flex; flex-direction: column;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.hw-visual-note-card:hover { border-color: var(--border-hover); background-color: var(--bg-card-hover); }
.hw-vn-thumb { display: block; height: 175px; overflow: hidden; border-bottom: 1px solid var(--border-subtle); background: #141517; }
.hw-vn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.92); transition: transform 0.4s ease; }
.hw-visual-note-card:hover .hw-vn-thumb img { transform: scale(1.025); }
.hw-vn-content { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hw-vn-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.hw-vn-info { font-family: ui-monospace, "SF Mono", monospace; font-size: 11.5px; color: var(--text-muted); }
.hw-vn-title { margin: 0; font-size: 18.5px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.32; }
.hw-vn-title a { color: var(--text-primary); text-decoration: none; transition: color 0.15s ease; }
.hw-visual-note-card:hover .hw-vn-title a { color: var(--accent-terracotta); }
.hw-vn-excerpt { margin: 0; font-size: 14px; line-height: 1.58; color: var(--text-body); flex: 1; }
.hw-vn-read { font-family: ui-monospace, "SF Mono", monospace; font-size: 12px; color: var(--accent-terracotta); text-decoration: none; align-self: flex-start; margin-top: 4px; }

/* Sub-block B: 3 Textual Seedlings Strip */
.hw-seedlings-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 4px; }
@media (max-width: 900px) { .hw-seedlings-strip { grid-template-columns: 1fr; } }

.hw-seedling-card {
    background: rgba(255, 255, 255, 0.015); border: 1px solid var(--border-subtle);
    border-radius: 4px; padding: 18px 20px; display: flex; flex-direction: column;
    gap: 8px; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.hw-seedling-card:hover { border-color: var(--border-hover); background-color: var(--bg-card); }
.hw-seed-meta { display: flex; justify-content: space-between; align-items: center; }
.hw-seed-date { font-family: ui-monospace, "SF Mono", monospace; font-size: 11.5px; color: var(--text-muted); }
.hw-seed-title { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
.hw-seed-title a { color: var(--text-primary); text-decoration: none; transition: color 0.15s ease; }
.hw-seedling-card:hover .hw-seed-title a { color: var(--accent-terracotta); }
.hw-seed-desc { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

/* Module 4: Active Horizon (/now Pulse Box) */
.hw-horizon-box {
    background-color: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 4px; padding: 24px 26px; display: flex; flex-direction: column; gap: 20px;
}
.hw-horizon-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap; gap: 12px; }
.hw-horizon-status { display: inline-flex; align-items: center; gap: 9px; font-family: ui-monospace, "SF Mono", monospace; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-primary); }
.hw-pulse-dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--accent-terracotta); box-shadow: 0 0 10px var(--accent-terracotta); }
.hw-horizon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .hw-horizon-grid { grid-template-columns: 1fr; gap: 16px; } }
.hw-horizon-col { display: flex; flex-direction: column; gap: 5px; }
.hw-h-label { font-family: ui-monospace, "SF Mono", monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-terracotta); }
.hw-h-val { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-body); }

/* =========================================================
   10. EDITORIAL FOOTER
   ========================================================= */
.garden-footer {
    width: 100%; max-width: 1140px; padding: 28px 60px 40px 60px;
    border-top: 1px solid var(--border-subtle); display: flex;
    justify-content: space-between; align-items: center; gap: 20px;
    box-sizing: border-box; font-size: 12px; color: var(--text-muted);
    letter-spacing: 0.02em;
}
@media (max-width: 768px) {
    .garden-footer { flex-direction: column; align-items: flex-start; padding: 24px 20px 36px 20px; gap: 14px; }
}
.footer-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-right { display: flex; align-items: center; gap: 18px; }
.garden-footer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s ease; }
.garden-footer a:hover { color: var(--text-primary); }
.back-to-top { cursor: pointer; background: none; border: none; color: var(--text-muted); font-size: 12px; font-family: inherit; padding: 0; transition: color 0.2s ease; }
.back-to-top:hover { color: var(--accent-terracotta); }