/* ==========================================================================
   PROJECTS LIST (projects.html) — all cards plus the area filters
   ========================================================================== */

.work {
    padding-top: 0;
}

/* ---------- Filter chips (scroll sideways on small screens) ---------- */

.filters {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filters::-webkit-scrollbar {
    display: none;
}

/* Each chip takes its area color from data-area (components.css); "All" uses the brand blue.
   Off: a pixel frame with a colored square. On: filled like a tag, with 8-bit depth. */
.filter {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 7px;
    border: none;
    background: var(--surface);
    box-shadow: inset 0 0 0 3px var(--edge);
    clip-path: var(--notch);
    color: var(--text-muted);
    font-family: var(--font-label);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color .15s steps(2), background .15s steps(2), box-shadow .15s steps(2);
}

.filter::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent, var(--brand-light));
}

.filter:hover {
    color: var(--text);
    box-shadow: inset 0 0 0 3px var(--accent, var(--brand-light));
}

.filter:focus-visible {
    outline: 3px solid var(--text);
    outline-offset: -7px;
}

.filter[aria-pressed="true"] {
    background: var(--accent, var(--brand-light));
    box-shadow:
        inset 0 2px 0 rgb(255 255 255 / 25%),
        inset 0 -4px 0 rgb(0 0 0 / 25%);
    color: var(--ink);
    font-weight: 700;
}

.filter[aria-pressed="true"]::before {
    background: var(--ink);
}
