/* Facets — one photograph set in resin drills, full bleed, and the kit's colour chart beneath it. */
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/IBMPlexMono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/IBMPlexMono-500.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --canvas: #0e0d10; --ink: #efe9df; --ink-soft: #9d958a; --red: #c8442e; --teal: #1d5f66;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; --sans: Onest, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--canvas); }
html, body { overflow-x: clip; }
body { min-height: 100svh; color: var(--ink); font: 300 17px/1.6 var(--sans); background: var(--canvas); }
button { font: inherit; color: inherit; }
.eyebrow { margin: 0 0 8px; font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.corners { position: fixed; z-index: 9; top: 12px; left: 12px; display: flex; gap: 8px; white-space: nowrap; }
.corner { flex: none; white-space: nowrap; padding: 4px 8px; background: var(--canvas); font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.corner:hover, .corner:focus-visible { color: var(--ink); outline: none; }
.corner.kit span { display: inline-block; transition: transform .25s; }
.corner.kit:hover span { transform: translateY(2px); }

/* ---------- the piece ---------- */
.piece { position: relative; height: 100svh; min-height: 480px; background: var(--canvas); touch-action: pan-y; }
.piece canvas { display: block; width: 100%; height: 100%; background: url("../assets/studies/facets/dancer-still.jpg") center / cover no-repeat; cursor: crosshair; }
.title { position: absolute; left: clamp(18px, 4vw, 48px); bottom: clamp(20px, 4vh, 44px); z-index: 2; max-width: 520px; padding: 14px 16px 16px; background: rgba(14,13,16,.78); backdrop-filter: blur(6px); pointer-events: none; }
.title h1 { font: 300 clamp(36px, 5vw, 64px)/.95 var(--sans); letter-spacing: -.035em; }
.title .lede { margin-top: 10px; color: #d6d0c6; font-size: 15px; text-wrap: pretty; }
.how { position: absolute; right: clamp(18px, 4vw, 48px); bottom: clamp(20px, 4vh, 44px); z-index: 2; padding: 6px 10px; background: rgba(14,13,16,.78); font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); pointer-events: none; }

/* ---------- the kit: every colour in the piece and how many drills of each ---------- */
.chart { width: min(100%, 1180px); margin: 0 auto; padding: 40px clamp(18px, 4vw, 48px) 10px; display: grid; gap: 14px; }
.chart h2 { font: 300 clamp(24px, 3vw, 36px)/1.1 var(--sans); letter-spacing: -.025em; }
.chart .count { font: 500 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-top: 6px; }
.swatch { display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; align-items: center; padding: 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 4px; }
.swatch i { display: block; width: 34px; height: 34px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.4), inset 2px 2px 0 rgba(255,255,255,.28), inset -2px -2px 0 rgba(0,0,0,.28); }
.swatch b { display: block; font: 500 11px/1.3 var(--mono); letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.swatch span { display: block; font: 400 10px/1.3 var(--mono); color: var(--ink-soft); white-space: nowrap; }
.colophon { width: min(100%, 1180px); margin: 0 auto; padding: 24px clamp(18px, 4vw, 48px) 60px; }
.colophon p { max-width: 760px; font: 400 12px/1.6 var(--mono); color: var(--ink-soft); }

@media (max-width: 700px) {
  .piece { height: 72svh; min-height: 380px; }
  .title { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .how { display: none; }
  .swatches { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .piece canvas { cursor: default; }
}
