/* clearcutstudios.co/software — the index of every product page (PASS 5).
 * Hallmark · studied DNA of clearcutstudios.co (midnight + periwinkle, Fraunces + Archivo), same
 * tokens as watch-v2.css. Font URLs are RELATIVE so they resolve under /software/ on the main
 * domain (the root /fonts there belongs to the main site). Pre-emit critique: P4 H5 E4 S4 R5 V4
 */
@font-face { font-family: 'Fraunces'; src: url(fonts/fraunces-v1.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url(fonts/archivo-v1.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --color-paper: oklch(11.8% 0.019 275);
  --color-surface: oklch(16% 0.02 275);
  --color-line: oklch(26% 0.022 275);
  --color-ink: oklch(95% 0.008 275);
  --color-muted: oklch(74% 0.02 275);
  --color-accent: oklch(69.7% 0.127 271);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --rule: 1px solid var(--color-line);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body.sw { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.sw a { color: inherit; }
.sw :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem var(--gutter); max-width: 1280px; margin: 0 auto; }
.mast__brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; font-family: var(--font-display); font-size: 1.125rem; font-weight: 560; white-space: nowrap; }
.mast__soft { color: var(--color-muted); font-weight: 400; }
.mast__link { color: var(--color-muted); text-decoration: none; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .mast__link:hover { color: var(--color-ink); } }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter) 4.5rem; }
.intro { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); max-width: 900px; }
.eyebrow { margin: 0 0 0.75rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); }
.title { margin: 0; font-family: var(--font-display); font-weight: 480; font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.5rem); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: anywhere; }
.title em { font-style: normal; color: var(--color-accent); }
.lede { margin: 1.25rem 0 0; max-width: 56ch; color: var(--color-muted); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.products { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.product { display: grid; gap: 0.5rem; text-decoration: none; }
.product__img { overflow: hidden; border-radius: 16px; border: var(--rule); aspect-ratio: 16 / 10; background: var(--color-surface); }
.product__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .product:hover .product__img img { transform: scale(1.03); } .product:hover .product__t { color: var(--color-accent); } }
.product__k { margin-top: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); }
.product__t { font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.05; }
.product__s { color: var(--color-muted); max-width: 52ch; }
.product__more { font-weight: 500; }
.empty { color: var(--color-muted); }
.foot { max-width: 1280px; margin: 0 auto; padding: 2rem var(--gutter); border-top: var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--color-muted); font-size: 0.875rem; }
.foot p { margin: 0; }
.stamp { font-size: 0.7rem; letter-spacing: 0.08em; opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .product__img img { transition: none; } }
