/* archive.css — All Work page. Extends base.css. */

.archive-legend {
    border-left: 2px solid rgba(138, 125, 60, 0.35);
    padding: 0.4rem 0 0.6rem 0.9rem;
    margin: 1.4rem 0 1.8rem;
    background: rgba(255, 254, 245, 0.5);
}

.archive-legend h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--zone-writing);
    margin-bottom: 0.3rem;
}

.archive-legend-quote {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-style: italic;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.archive-legend-approach {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ---- RESEARCH HUB (/research) — the archive scoped to one body of work ---- */
.research-page .archive-legend {
    border-left: 3px solid var(--zone-research);
}

.research-page .archive-legend h2 {
    color: var(--zone-research);
}

.research-sub {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

.research-all {
    margin-top: 2rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
}

.research-all a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.research-all a:hover {
    color: var(--text);
}

.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.archive-filters button {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 0.75rem;
    color: var(--muted);
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
    padding: 0;
    background: none;
    border: none;
    font-weight: 400;
}

.archive-filters button::before { content: '#'; }
.archive-filters button:hover { color: var(--text); }
.archive-filters button.active { color: var(--text); font-weight: 500; }
.archive-filters button.active::after { content: ' \00d7'; opacity: 0.5; }

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.archive-item {
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #e8e8e8;
    padding: 0.9rem 0 0.9rem 0.8rem;
    border-left: 3px solid transparent;
    transition: opacity 0.15s ease;
}

.archive-item:first-child {
    border-top: 1px solid #e8e8e8;
}

.archive-item:hover {
    opacity: 0.65;
}

/* The border is the primary zone carrier — full strength, aperture weight. */
.archive-item.zone-portfolio {
    border-left-color: var(--zone-portfolio);
}

.archive-item.zone-writing {
    border-left-color: var(--zone-writing);
    background: rgba(255, 254, 245, 0.6);
}

.archive-item.zone-research {
    border-left-color: var(--zone-research);
    background: rgba(255, 254, 245, 0.6);
}

.archive-item.zone-roundtable {
    border-left-color: var(--zone-roundtable);
    background: rgba(255, 254, 245, 0.6);
}

.archive-item.filtered-out {
    opacity: 0.1;
    pointer-events: none;
}

.archive-item-header {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
}

.archive-type {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.archive-type.zone-portfolio { color: var(--zone-portfolio); }
.archive-type.zone-writing { color: var(--zone-writing); }
.archive-type.zone-research { color: var(--zone-research); }
.archive-type.zone-roundtable { color: var(--zone-roundtable); }

.archive-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.archive-desc {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 0.2rem;
}

.archive-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--muted);
}

/* Date echoes the zone — mirrors the homepage logbook dates. */
.archive-date.zone-portfolio { color: var(--zone-portfolio); }
.archive-date.zone-writing { color: var(--zone-writing); }
.archive-date.zone-research { color: var(--zone-research); }
.archive-date.zone-roundtable { color: var(--zone-roundtable); }

@media (max-width: 600px) {
    .archive-title { font-size: 0.85rem; }
    .archive-desc { font-size: 0.78rem; }
}
