/* Home "Selected work" cards: a framed screenshot, tags, title, one line and a link. Ported from
   docs/mockups/home.html (.work-grid.strip, .work-card, .shot). Built from core blocks: the card
   is an xcelsior/section (article), the screenshot a core/image, the link a paragraph. The whole
   card is clickable through the link's ::after, so the card holds one link, not a wrapping anchor. */
.work-wrap .h1 { margin: 1rem 0 3rem; }
.work-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem 2rem; }
@media (min-width: 36rem) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 80rem) { .work-grid { grid-template-columns: repeat(4, 1fr); } }
.work-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.work-card > * { margin-block: 0; }
.work-card .shot-img { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--control-border); background: var(--wf-page); border-radius: var(--radius-xs); }
.work-card .shot-img::before { content: ""; display: block; height: 1.75rem; border-bottom: 1px solid var(--hairline); background: var(--wf-block); box-sizing: border-box; }
.work-card .shot-img::after { content: ""; position: absolute; top: 0; left: 0; width: 3.5rem; height: 1.75rem; background: radial-gradient(circle at 1rem 50%, transparent 0.1875rem, var(--wf-stroke) 0.1875rem, var(--wf-stroke) 0.25rem, transparent 0.25rem), radial-gradient(circle at 1.875rem 50%, transparent 0.1875rem, var(--wf-stroke) 0.1875rem, var(--wf-stroke) 0.25rem, transparent 0.25rem), radial-gradient(circle at 2.75rem 50%, transparent 0.1875rem, var(--wf-stroke) 0.1875rem, var(--wf-stroke) 0.25rem, transparent 0.25rem); }
.work-card .shot-img img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; object-position: top; transition: transform .6s ease; }
/* A portfolio picture (a site in its own device frames) gets no browser window and sits on white, in both themes, so the grid reads as one family. */
.work-card .shot-img.shot-composite { background: #fff; }
.work-card .shot-img.shot-composite::before, .work-card .shot-img.shot-composite::after { content: none; display: none; }
.work-card:hover .shot-img { border-color: var(--gold); }
.work-card:hover .shot-img img { transform: scale(1.03); }
.work-card .work-tags { margin: 1.25rem 0 0.25rem; font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.work-card .h3 { margin: 0 0 0.5rem; }
.work-card .work-desc { flex: 1; margin: 0 0 1.25rem; color: var(--ink-muted); max-width: 36rem; text-wrap: pretty; }
.work-more, .work-more a { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.work-more a, a.work-more { border-bottom: 1px solid var(--gold); padding-bottom: 0.125rem; }
.work-more .icon { text-transform: none; }
.work-card .work-more { align-self: flex-start; margin-top: auto; }
.work-card .work-more a::after { content: ""; position: absolute; inset: 0; }
.work-card:focus-within .shot-img, .work-more a:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.work-all { margin: 3rem 0 0; }
@media (prefers-reduced-motion: reduce) { .work-card .shot-img img { transition: none; } .work-card:hover .shot-img img { transform: none; } }
/* Cards from a Query Loop (the Work page, an item's strip, Home and About): the list and its items. */
.work-query .work-grid { list-style: none; margin: 0; padding: 0; }
.work-query .work-grid > li { display: flex; margin: 0; min-width: 0; }
.work-query .work-grid > li[hidden] { display: none; }
.work-query .work-grid > li > .work-card { flex: 1; }

/* A card from a Query Loop: Post Excerpt (a div around the paragraph) and Read More (the link itself). */
.work-card .work-desc p { margin: 0; }
.work-card a.work-more { position: static; display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start; margin-top: auto; padding-bottom: 0.125rem; border-bottom: 1px solid var(--gold); font-family: var(--font-display); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.work-card a.work-more::before { content: ""; position: absolute; inset: 0; }
.work-card a.work-more::after { content: "arrow_forward"; width: 1em; overflow: hidden; font-family: "Material Symbols Outlined"; font-weight: 400; font-style: normal; font-size: 1.5em; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; font-feature-settings: "liga", "rlig"; font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 0, "opsz" 48; }
.work-card a.work-more:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.work-card .wp-block-post-featured-image { margin: 0; }

.work-wrap .work-lead { margin: 0 0 3rem; }
.work-wrap .h1:has(+ .work-lead) { margin-bottom: 1rem; }
