/* Work page (/work/): the intro, the filter buttons and the card list. Ported from docs/mockups/work.html. The cards are a core Query
   Loop over the work items; their look is sections/work-cards.css (shared with Home's strip). Bands carry `work-sec`, which loads
   this file (Xcelsior_Page_Assets). */
.work-intro { padding-bottom: 3rem; }
.work-h1 { margin: 1.5rem 0; max-width: 52rem; font-size: 4.5rem; }
/* Scales with the viewport so "rebuilt and rescued." always fits on one line under "Sites we've built," (no orphaned "rebuilt"). The doubled class outranks the global `.hero-h1 { ... !important }` clamp in home-sections.css. */
@media (max-width: 48rem) { .work-h1, .work-h1.hero-h1 { font-size: clamp(2rem, 8.5vw, 3.25rem) !important; } }
.work-lede { max-width: 40rem; margin: 0; }
.work-list { padding-top: 3rem; }

/* Filter buttons (the script is assets/js/work-filter.js; without it every card shows). */
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 3rem; }
.filter { appearance: none; background: transparent; color: var(--ink); border: 1px solid var(--control-border); border-radius: var(--radius-xs); padding: 0.5rem 1rem; font-family: var(--font-display); font-size: 1rem; line-height: 1.2; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
/* The four buttons need about 30.5rem in a row (plus the page gutters); below 33rem they would wrap and leave "Migrations" alone, so they sit in an even 2 x 2 grid. */
@media (max-width: 33rem) { .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .filter { text-align: center; } }
.filter:hover { background: var(--hover-wash); }
.filter[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.filter:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }

/* The list: one column, two from 68rem (the mockup's auto-fill at 32rem, made explicit). A list item holds one card, and the card fills it,
   so every card in a row is the same height and the link sits at the bottom. */
.work-grid.work-index-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 68rem) { .work-grid.work-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* The e-SwapMeet card's picture is a neutral light wireframe (a screenshot of the live site would show its prices). A plain image does not follow the
   theme, so in the dark theme it is inverted down to the dark wireframe tokens (page #262626-ish, block #3a3a3a-ish, stroke #6f6f6f-ish). */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) img[src*="work-wireframe"] { filter: invert(0.88); }
}
:root[data-theme="dark"] img[src*="work-wireframe"] { filter: invert(0.88); }
