/* ==========================================================================
   hx/provenance.css — 05 Swiss provenance (#heritage), 14–15 Oct 2026 rebuild. Prefix hxp-.
   A silver print of the Matterhorn's face (build_provenance_matterhorn.py) carrying only the
   label · plate-caption register and the heading; reading copy, links and facts on a warm
   ivory band directly beneath (clean edge). One 12-column grid. No parallax: the section's
   top edge is always photograph (round-1 seam fix). Restored 16 Oct to the round-3 state.
   ========================================================================== */

.hxp{
	--hxp-rule:rgba(28,29,31,.3);
	--hxp-top:clamp(128px,6vw + 104px,184px);   /* label row clears the 80px fixed nav with air */
	--hxp-row:44px;
	position:relative;
	margin:0;
	background:var(--hx-ivory);
	color:var(--hx-text);
}

/* ─── The plate ─────────────────────────────────────────────────── */
.hxp__plate{
	position:relative;
	display:grid;
	grid-template:1fr / 1fr;
	overflow:clip;
	background:#C9CACB;                   /* the print's mid-silver, only before decode */
}
.hxp__photo{grid-area:1/1;z-index:0;margin:0}
.hxp__photo :where(picture,img){display:block;width:100%;height:100%}
.hxp__photo img{aspect-ratio:1100/1540;object-fit:cover;object-position:50% 50%}

.hxp__over{
	grid-area:1/1;
	z-index:1;
	position:relative;
	align-self:start;
	padding-top:var(--hxp-top);
	padding-bottom:var(--hx-s-6);
}
/* the register: one hairline across the grid under the label · caption row */
.hxp__over::before{
	content:"";
	position:absolute;
	left:var(--hx-margin);
	right:var(--hx-margin);
	top:calc(var(--hxp-top) + var(--hxp-row));
	height:1px;
	background:var(--hxp-rule);
}
.hxp__label{box-sizing:border-box;height:var(--hxp-row);margin:0;color:var(--hx-ink)}
.hxp__title{max-width:11em;margin:clamp(24px,1rem + 2vw,48px) 0 0;color:var(--hx-ink)}

.hxp__caption{
	position:absolute;
	z-index:2;
	top:var(--hxp-top);
	right:calc(max(0px,(100% - var(--hx-max) - 2 * var(--hx-margin)) / 2) + var(--hx-margin));
	display:flex;
	flex-direction:column;
	align-items:flex-end;
	gap:2px;
	margin:0;
	font-family:var(--hx-sans);
	font-size:var(--hx-fs-detail);
	font-weight:400;
	line-height:1.45;
	letter-spacing:.02em;
	text-align:right;
	color:var(--hx-ink);
	font-variant-numeric:lining-nums tabular-nums;
}
.hxp__alt{color:var(--hx-ink)}

/* ─── Phones ────────────────────────────────────────────────────── */
@media (max-width:399.98px){
	.hxp__label{letter-spacing:.14em}
	.hxp__caption{font-size:var(--hx-fs-label)}
}
@media (max-width:359.98px){
	.hxp{--hxp-top:112px}
	.hxp__title{margin-top:16px}
	.hxp__photo img{object-position:58% 50%}  /* ratio: the 4:5 phone print below (4 Nov 2026) */
}
@media (max-width:759.98px){
	/* 4 Nov 2026 (distill): no label row on phones, so the register hairline sat under the heading and
	   read as a link underline; and a shorter 4:5 print (was 1100:1540, ~546px tall at 390px). */
	.hxp__over::before{content:none}
	.hxp__photo img{aspect-ratio:4/5}
	.hxp__caption{flex-direction:row;gap:var(--hx-s-2);white-space:nowrap}
	.hxp__region{display:none}
}

/* ─── ≥ 760px: wide print, summit face right ────────────────────── */
@media (min-width:760px){
	.hxp__photo img{aspect-ratio:auto;height:clamp(560px,80svh,860px);object-position:50% 34%}
	.hxp__caption{flex-direction:row;gap:var(--hx-s-3)}
	.hxp__title{max-width:9.5em}
}

@media (forced-colors:active){
	.hxp__over::before{background:CanvasText}
}

/* ─── Text on the plate, taller print (4 Nov 2026, owner) ───────────────────────────────
   The ivory band (lede, links, facts list) is gone: the lede and the two links sit on the
   photograph under the heading, on the light cloud at the left, in ink; the facts list was
   removed. The print is taller to carry them. */
.hxp__lede{max-width:24em;margin:var(--hx-s-4) 0 0;color:var(--hx-ink)}
.hxp__links{display:flex;flex-wrap:wrap;gap:0 var(--hx-s-6);margin:var(--hx-s-3) 0 0}
.hxp__links .hx-link{color:var(--hx-ink)}
@media (max-width:759.98px){
	.hxp__photo img{aspect-ratio:3/4.6}                 /* was 4:5 (488px at 390); now ~598px */
	.hxp__links{flex-direction:column;align-items:flex-start;gap:0}
}
@media (max-width:359.98px){.hxp__photo img{aspect-ratio:3/5}}
@media (min-width:760px){
	.hxp__photo img{height:clamp(680px,100svh,1040px);object-position:50% 40%}   /* was clamp(560px,80svh,860px) */
	.hxp__title{max-width:11em}
}
