/* =========================================================================
   HollaJack — components
   Style guide §5 (edition + chop), §6 (mats), §7 (badges), §10 (cards)

   Brass appears in exactly two places in this file: the edition numeral and
   the chop. If it starts showing up anywhere else, it stops meaning
   "collectible" — see §15 anti-pattern 5.
   ========================================================================= */

/* -------------------------------------------------------------------------
   The mat — a matted print in a frame.
   This single detail does most of the work of making a print-to-order tee
   read as gallery-grade (§6).
   ---------------------------------------------------------------------- */

.hj-mat {
	display: block;
	background: var(--hj-card);
	border: 1px solid var(--hj-line);
	border-radius: var(--hj-radius-mat);
	padding: var(--hj-6);
	transition: border-color var(--hj-fade);
}

.hj-mat--card {
	padding: var(--hj-5);
	overflow: hidden;
}

.hj-mat--card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: contain;
	mix-blend-mode: multiply; /* garment shots sit on the paper, not on a white box */
}

/* Hover lift is nothing more than the border darkening (§13). */
.hj-card__link:hover .hj-mat {
	border-color: var(--hj-line-strong);
}

/* -------------------------------------------------------------------------
   The edition number — brass, Bodoni, inscribed rather than stickered (§5)
   ---------------------------------------------------------------------- */

.hj-numeral {
	font-family: var(--hj-display);
	font-weight: 500;
	color: var(--hj-brass);
	line-height: 1;
	white-space: nowrap;
}

.hj-numeral sup {
	font-size: 0.55em;
	vertical-align: super;
	line-height: 0;
	margin-left: 0.02em;
}

.hj-edition {
	display: flex;
	align-items: baseline;
	gap: var(--hj-3);
	padding-bottom: var(--hj-3);
	/* The graphite stroke — a print signed in pencil in the corner. */
	border-bottom: 1px solid var(--hj-graphite);
}

.hj-edition .hj-numeral {
	font-size: 2rem;
}

.hj-edition__caption {
	font-size: var(--hj-size-small);
	color: var(--hj-stone);
}

/* -------------------------------------------------------------------------
   The edition ledger — the calm replacement for a countdown timer (§5)
   Reads like a printed label: square corners, hairline border, no shadow.
   ---------------------------------------------------------------------- */

.hj-ledger {
	background: var(--hj-card);
	border: 1px solid var(--hj-line);
	border-radius: var(--hj-radius-placard);
	padding: var(--hj-5);
}

.hj-ledger__head {
	display: flex;
	align-items: baseline;
	gap: var(--hj-3);
	padding-bottom: var(--hj-4);
	border-bottom: 1px solid var(--hj-graphite);
}

.hj-ledger__head .hj-numeral {
	font-size: 1.875rem;
}

.hj-ledger__caption {
	font-size: var(--hj-size-small);
	color: var(--hj-stone);
}

.hj-ledger__rows {
	margin-top: var(--hj-4);
	display: grid;
	gap: var(--hj-3);
}

.hj-ledger__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--hj-4);
}

.hj-ledger__label {
	font-size: var(--hj-size-small);
	color: var(--hj-stone);
}

.hj-ledger__value {
	display: inline-flex;
	align-items: baseline;
	gap: var(--hj-2);
}

.hj-ledger__key {
	font-size: var(--hj-size-eyebrow);
	letter-spacing: var(--hj-track-eyebrow);
	text-transform: uppercase;
	color: var(--hj-stone);
}

.hj-ledger__note {
	margin: var(--hj-4) 0 0;
	padding-top: var(--hj-3);
	border-top: 1px solid var(--hj-line);
	font-size: var(--hj-size-small);
	color: var(--hj-stone);
}

/* Never animate the number or price — that pushes it toward hype (§13). */

/* -------------------------------------------------------------------------
   The chop / blind-stamp (§5)
   ---------------------------------------------------------------------- */

.hj-chop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--hj-brass);
	flex: none;
}

/* The mark is a raster of the hand-drawn glyph. No width/height overrides —
   the size comes from the img attributes hj_chop() sets (22–30px per surface);
   base.css's `height: auto` keeps the ratio from that width. */
.hj-chop img {
	display: block;
}

.hj-chop--deboss {
	background: var(--hj-bone-deep);
	border-radius: 50%;
	padding: var(--hj-2);
	/* The one permitted shadow in the system: the deboss on the chop (§6). */
	box-shadow: inset 0 1px 2px rgba(22, 19, 15, 0.18);
}

/* -------------------------------------------------------------------------
   Badges — genuine status only. Never a saturated fill, never brass (§7).
   ---------------------------------------------------------------------- */

.hj-badge {
	display: inline-block;
	font-size: var(--hj-size-eyebrow);
	font-weight: 500;
	letter-spacing: var(--hj-track-eyebrow);
	text-transform: uppercase;
	color: var(--hj-stone);
	background: var(--hj-bone);
	border: 1px solid var(--hj-line);
	padding: var(--hj-1) var(--hj-2);
	margin-top: var(--hj-3);
}

/* -------------------------------------------------------------------------
   Gallery grid + card (§10)
   3-up desktop with large mats — never five columns of thumbnails.
   ---------------------------------------------------------------------- */

.hj-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--hj-8) var(--hj-6);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hj-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
	.hj-grid,
	.hj-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.hj-grid,
	.hj-grid--4 {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--hj-7);
	}
}

.hj-card {
	margin: 0;
}

.hj-card__link,
.hj-card__link:hover {
	text-decoration: none;
	display: block;
	color: inherit;
}

.hj-card__name {
	font-family: var(--hj-display);
	font-size: var(--hj-size-display-m);
	line-height: var(--hj-leading-display-m);
	font-weight: 500;
	color: var(--hj-ink);
	margin: var(--hj-4) 0 0;
}

.hj-card__artist {
	font-size: var(--hj-size-small);
	color: var(--hj-stone);
	margin: var(--hj-1) 0 0;
}

.hj-card__edition {
	display: flex;
	align-items: baseline;
	gap: var(--hj-2);
	margin: var(--hj-3) 0 0;
}

.hj-card__edition .hj-numeral {
	font-size: var(--hj-size-body);
}

.hj-card__sep {
	color: var(--hj-stone);
}

/* -------------------------------------------------------------------------
   Empty states — direction, not mood (§14)
   ---------------------------------------------------------------------- */

.hj-empty {
	padding: var(--hj-9) 0;
	text-align: center;
	color: var(--hj-stone);
}

/* -------------------------------------------------------------------------
   Editorial figures (§12)

   Theme-level imagery: garment shots and print-process detail. Matted like the
   product cards so photography and artwork sit in the same frame.
   ---------------------------------------------------------------------- */

.hj-figure {
	margin: 0;
}

.hj-mat--figure {
	display: block;
	overflow: hidden;
}

.hj-figure__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.hj-figure__cap {
	margin-top: var(--hj-3);
	font-size: var(--hj-size-small);
	color: var(--hj-stone);
}
