/*
Theme Name: Fotosub Lightbox
Theme URI: https://fotosub.org/
Description: The light table and slide mounts of Fotosub.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.2
License: GPL-2.0-or-later
Text Domain: fotosub-lightbox
*/

/* ── Faces: Sofia Sans Condensed for headings and labels, Faustina for reading ── */
@font-face {
	font-family: "Sofia Sans Condensed";
	src: url("assets/fonts/sofia-sans-condensed.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Faustina";
	src: url("assets/fonts/faustina-roman.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Faustina";
	src: url("assets/fonts/faustina-italic.woff2") format("woff2");
	font-weight: 300 800;
	font-style: italic;
	font-display: swap;
}

/* ── The light table's tokens ── */
:root {
	--lightbox: #fafdfb;
	--grid: #d9ebe2;
	--mount: #ffffff;
	--edge: #dfe4e2;
	--label: #f3f7f5;
	--darkroom: #26323a;
	--on-dark: #e7eeea;
	--on-dark-muted: #b4c2bc;
	--ink: #16222a;
	--muted: #4c5a61;
	--mint: #86dcb5;
	--mint-wash: #e2f6ec;
	--grey-mount: #eef0ef;

	--face-label: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
	--face-read: "Faustina", Georgia, serif;

	--cell: 38px; /* one square of the 10 mm grid */
	--gap: 24px;
	--page: 1200px;
	--measure: 34em;
	--mount-r: 18px;
	--window-r: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--lightbox);
	color: var(--ink);
	font-family: var(--face-read);
	font-size: 1.1875rem;
	line-height: 1.7;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
}

img,
svg { max-width: 100%; height: auto; }

a {
	color: var(--darkroom);
	text-decoration-line: underline;
	text-decoration-color: var(--mint);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.22em;
}
a:hover { background: var(--mint-wash); text-decoration-color: var(--darkroom); }

:focus-visible {
	outline: 3px solid var(--darkroom);
	outline-offset: 3px;
	border-radius: 4px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--face-label);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0;
	margin: 0;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 50;
	padding: 8px 14px;
	background: var(--mint);
	color: var(--ink);
	font-family: var(--face-label);
	font-weight: 700;
	text-decoration: none;
	border-radius: 6px;
}
.skip:focus { top: 12px; }

.frame {
	width: 100%;
	max-width: calc(var(--page) + 2 * var(--gap));
	margin-inline: auto;
	padding-inline: var(--gap);
}

/* ── The darkroom band: header ── */
.darkroom {
	background: var(--darkroom);
	color: var(--on-dark);
}
.darkroom a { color: var(--on-dark); }
.darkroom :focus-visible { outline-color: var(--mint); }

.band-top { position: relative; z-index: 5; }
.band-top .frame {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 78px;
	position: relative;
	padding-left: calc(var(--gap) + 104px + 20px); /* the hanging mount keeps its own room */
}

.logo-mount {
	position: absolute;
	left: var(--gap);
	top: 14px;
	width: 104px;
	display: block;
	line-height: 0;
	border-radius: 11px;
}
.logo-mount:hover { background: transparent; }
.logo-mount img { width: 100%; height: auto; display: block; }

.band-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px 28px;
}
.band-nav a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	font-family: var(--face-label);
	font-weight: 600;
	font-size: 1.1875rem;
	letter-spacing: 0.01em;
	text-decoration: none;
}
.band-nav a::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 1.5px solid var(--on-dark-muted);
	flex: none;
}
.band-nav a:hover { background: transparent; color: #ffffff; }
.band-nav a:hover::before { border-color: var(--mint); }
.band-nav .current-menu-item > a::before,
.band-nav .current-menu-parent > a::before,
.band-nav .current-post-ancestor > a::before,
.band-nav .current_page_item > a::before {
	background: var(--mint);
	border-color: var(--mint);
}

/* ── The light table ── */
.lightbox {
	position: relative;
	background-color: var(--lightbox);
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: var(--cell) var(--cell);
	background-position: -1px -1px;
	padding-top: 96px; /* room for the mount that hangs from the band */
	padding-bottom: calc(var(--cell) * 2);
}

/* The one moment: the table switches on, once. The slate field sits behind the content, and its resting state is off. */
.lightbox--home { isolation: isolate; }
.lightbox--home::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--darkroom);
	pointer-events: none;
	opacity: 0;
	animation: lights-on 1.15s cubic-bezier(0.25, 0.6, 0.3, 1) 0.1s backwards;
}
@keyframes lights-on {
	from { opacity: 1; }
	to { opacity: 0; }
}

/* ── The slide mount, the signature ── */
.mount {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--mount);
	border: 1px solid var(--edge);
	border-radius: var(--mount-r);
	padding: 14px 14px 0;
	color: var(--ink);
}
.mount::after {
	/* the thumb-spot: the right way up */
	content: "";
	position: absolute;
	left: 15px;
	bottom: 19px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--mint);
}
.mount-window {
	position: relative;
	aspect-ratio: 3 / 2;
	border-radius: var(--window-r);
	overflow: hidden;
	background: var(--darkroom);
}
.mount-window img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mount-label {
	margin: 14px -14px 0;
	padding: 14px 18px 16px 40px;
	min-height: 60px;
	background: var(--label);
	border-top: 1px solid var(--edge);
	border-radius: 0 0 calc(var(--mount-r) - 1px) calc(var(--mount-r) - 1px);
	flex: 1;
}
.mount-label p:last-child { margin-bottom: 0; }

a.mount { text-decoration: none; }
a.mount:hover { background: var(--mount); border-color: #b9c6c0; }
a.mount:hover .mount-title { text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 3px; text-underline-offset: 0.18em; }

.mount-title {
	font-family: var(--face-label);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.15;
	margin: 0 0 6px;
}
.mount-excerpt {
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--muted);
	margin: 0 0 8px;
}
.mount-date {
	display: block;
	font-family: var(--face-label);
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
	color: var(--muted);
}

/* A mount with words only: the label strip is the whole slide. */
.mount--text { padding: 0; }
.mount--text .mount-label {
	margin: 0;
	border-top: 0;
	border-radius: calc(var(--mount-r) - 1px);
	background: var(--mount);
	padding: 22px 24px 40px 24px;
}
.mount--text::after { left: 22px; bottom: 18px; }

/* A plain grey mount holds an advertisement, apart from the slides. */
.mount--grey {
	background: var(--grey-mount);
	border-color: #d3d8d6;
	padding: 12px;
}
.mount--grey::after { display: none; }

/* ── Ad slots and their label ── */
.finestrella {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	overflow: hidden;
}
.finestrella iframe { display: block; max-width: 100%; border: 0; }
.contrassegno {
	display: block;
	font-family: var(--face-label);
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: 0.04em;
	line-height: 1.3;
	color: var(--muted);
	margin: 0 0 8px;
}

/* ── Home ── */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: calc(var(--gap) * 2);
	align-items: start;
	padding-top: 8px;
}
.hero-words { padding-top: 26px; }
.hero-tagline {
	font-weight: 800;
	font-size: clamp(3rem, 2rem + 4.2vw, 6.25rem);
	line-height: 0.98;
	letter-spacing: -0.005em;
	margin-bottom: 28px;
}
.hero-lede {
	font-size: 1.3125rem;
	line-height: 1.6;
	max-width: 24em;
	color: var(--ink);
}

.mount--feature .mount-label { padding: 18px 24px 22px 46px; }
.mount--feature::after { left: 18px; bottom: 26px; width: 14px; height: 14px; }
.mount--feature .mount-title { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); }
.mount--feature .mount-excerpt { font-size: 1.1875rem; }

.sorter-row { margin-top: calc(var(--cell) * 2); }
.sorter-row h2 {
	font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem);
	margin-bottom: 20px;
}
.sorter-row ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--gap);
	align-items: stretch;
}
.sorter-row .mount-title { font-size: 1.25rem; }
.sorter-row .mount-excerpt { font-size: 1rem; margin: 0; }

.sheet {
	background: var(--mount);
	border: 1px solid var(--edge);
	border-radius: 6px;
	padding: 56px 72px 64px;
}
.home-sheet {
	margin-top: calc(var(--cell) * 2);
	display: grid;
	grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr);
	gap: calc(var(--gap) * 2.5);
	align-items: start;
}
.home-sheet .slot-standard { align-self: start; max-width: 340px; }

.ad-shelf {
	margin-top: calc(var(--cell) * 1.5);
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 26em);
	gap: calc(var(--gap) * 1.75);
	align-items: center;
}
.ad-shelf-note {
	margin: 0;
	font-style: italic;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--muted);
}

/* ── Article ── */
.title-block {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: calc(var(--gap) * 2);
	align-items: center;
	padding-top: 32px;
	padding-bottom: calc(var(--cell) * 1.5);
}
.niche-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--face-label);
	font-weight: 700;
	font-size: 1.125rem;
	letter-spacing: 0.01em;
	text-decoration: none;
	margin-bottom: 18px;
	min-height: 44px;
}
.niche-link::before {
	content: "";
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--mint);
}
.title-block h1 {
	font-weight: 800;
	font-size: clamp(2.375rem, 1.6rem + 2.6vw, 4rem);
	line-height: 1.02;
	margin-bottom: 22px;
}
.title-excerpt {
	font-size: 1.3125rem;
	line-height: 1.55;
	color: var(--muted);
	max-width: 30em;
	margin-bottom: 26px;
}
.byline {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
}
.byline img {
	width: 46px;
	height: 46px;
	border-radius: 9px;
	flex: none;
}
.byline-name {
	display: block;
	font-family: var(--face-label);
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.25;
}
.byline-role {
	display: block;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--muted);
}
.title-block .mount-label {
	font-family: var(--face-label);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.45;
	letter-spacing: 0.01em;
	color: var(--muted);
}
.title-block .mount-label time { color: var(--ink); }

.reading {
	max-width: calc(var(--measure) + 144px + 2px);
	margin-inline: auto;
}

.prose { max-width: var(--measure); margin-inline: auto; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
	font-size: clamp(1.75rem, 1.4rem + 1vw, 2.125rem);
	margin: 2.1em 0 0.55em;
}
.prose h3 {
	font-size: 1.5rem;
	margin: 1.7em 0 0.45em;
}
.prose ul,
.prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose ul li::marker { color: var(--muted); }

/* Steps: mint numbered dots, only on real sequences */
.prose ol { list-style: none; counter-reset: step; padding-left: 0; }
.prose ol > li {
	counter-increment: step;
	position: relative;
	padding-left: 50px;
	margin-bottom: 0.75em;
}
.prose ol > li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0.18em;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--mint);
	color: var(--ink);
	font-family: var(--face-label);
	font-weight: 800;
	font-size: 1.0625rem;
	line-height: 32px;
	text-align: center;
}

/* Figures: a mount that breaks a little wider than the column */
.prose figure {
	position: relative;
	margin: 2.2em -40px;
	background: var(--mount);
	border: 1px solid var(--edge);
	border-radius: var(--mount-r);
	padding: 14px 14px 0;
}
.prose figure::after {
	content: "";
	position: absolute;
	left: 15px;
	bottom: 19px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--mint);
}
.prose figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--window-r);
	background: var(--label);
}
.prose figcaption {
	margin: 14px -14px 0;
	padding: 13px 20px 15px 40px;
	background: var(--label);
	border-top: 1px solid var(--edge);
	border-radius: 0 0 calc(var(--mount-r) - 1px) calc(var(--mount-r) - 1px);
	font-style: italic;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--ink);
}

/* Tables: a slide sorter with a slate head row */
.sorter {
	margin: 2.2em -40px;
	padding: 6px;
	background-color: var(--lightbox);
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 19px 19px;
	border: 1px solid var(--edge);
	border-radius: 14px;
	overflow-x: auto;
}
.sorter:focus-visible { outline-offset: 2px; }
.prose table {
	width: 100%;
	min-width: 600px;
	border-collapse: separate;
	border-spacing: 6px;
	font-size: 1rem;
	line-height: 1.5;
}
.prose th {
	background: var(--darkroom);
	color: var(--on-dark);
	font-family: var(--face-label);
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: 0.01em;
	text-align: left;
	vertical-align: bottom;
	padding: 10px 12px;
	border-radius: 7px;
}
.prose td {
	background: var(--mount);
	border: 1px solid var(--edge);
	border-radius: 7px;
	padding: 10px 12px;
	vertical-align: top;
}
.prose tbody th { vertical-align: top; }
.prose caption {
	caption-side: bottom;
	text-align: left;
	font-style: italic;
	font-size: 0.9375rem;
	color: var(--muted);
	padding: 6px 8px 4px;
}

/* Asides: a small mounted note with its thumb-spot */
.prose aside {
	position: relative;
	margin: 2em 0;
	padding: 18px 22px 18px 46px;
	background: var(--label);
	border: 1px solid var(--edge);
	border-radius: 14px;
	font-size: 1.0625rem;
	line-height: 1.6;
}
.prose aside::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 1.35em;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--mint);
}
.prose aside > :last-child { margin-bottom: 0; }
.prose aside strong { font-family: var(--face-label); font-size: 1.1875rem; font-weight: 700; }

/* Questions and answers */
.prose details {
	border: 1px solid var(--edge);
	border-radius: 12px;
	background: var(--mount);
	margin: 0 0 10px;
}
.prose details + :not(details) { margin-top: 1.6em; }
.prose summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	gap: 14px;
	align-items: baseline;
	padding: 12px 18px;
	min-height: 48px;
	font-family: var(--face-label);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.3;
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid var(--darkroom);
	transform: translateY(1px);
}
.prose details[open] summary::before { background: var(--mint); border-color: var(--mint); }
.prose details > :not(summary) { margin: 0 18px 14px 44px; }

.prose blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 26px;
	border-left: 4px solid var(--mint);
	font-style: italic;
	font-size: 1.375rem;
	line-height: 1.5;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose dl { margin: 1.6em 0; }
.prose dt {
	font-family: var(--face-label);
	font-weight: 700;
	font-size: 1.1875rem;
	margin-top: 0.9em;
}
.prose dd {
	margin: 0.15em 0 0;
	padding-left: 18px;
	border-left: 2px solid var(--edge);
}

.prose hr {
	border: 0;
	height: 12px;
	margin: 2.4em auto;
	width: 96px;
	background: radial-gradient(circle, var(--mint) 5px, transparent 6px) center / 32px 12px repeat-x;
}

.prose .finestrella,
.slot-in-article {
	margin: 2.2em -40px;
	padding: 12px;
	background: var(--grey-mount);
	border: 1px solid #d3d8d6;
	border-radius: var(--mount-r);
	width: auto;
	max-width: none;
}

/* The close of an article */
.article-close {
	margin-top: calc(var(--cell) * 1.5);
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: var(--gap);
	align-items: stretch;
}
.team-note .mount-label { padding-left: 40px; }
.team-note-head {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-bottom: 10px;
}
.team-note-head img { width: 52px; height: 52px; border-radius: 10px; }
.team-note p { font-size: 1.0625rem; line-height: 1.6; }
.close-heading {
	font-size: 1.5rem;
	margin-bottom: 14px;
}

/* ── Archive ── */
.archive-band { padding: 120px 0 56px; }
.archive-band h1 {
	font-weight: 800;
	font-size: clamp(2.75rem, 1.8rem + 3.4vw, 5rem);
	line-height: 1;
	color: #ffffff;
	margin-bottom: 18px;
}
.archive-band p {
	max-width: 36em;
	font-size: 1.25rem;
	line-height: 1.6;
	color: var(--on-dark);
	margin: 0;
}
.lightbox--archive { padding-top: calc(var(--cell) * 1.5); }
.slide-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: calc(var(--gap) * 1.25);
}
.slide-grid > li { display: flex; }
.slide-grid > li > .mount { flex: 1; }
.slide-grid > li > .mount--text { align-self: flex-start; }

/* ── Pages ── */
.page-head {
	padding-top: 32px;
	padding-bottom: calc(var(--cell) * 1.5);
	max-width: 46rem;
}
.page-head h1 {
	font-weight: 800;
	font-size: clamp(2.5rem, 1.8rem + 2.4vw, 4rem);
	line-height: 1.02;
	margin-bottom: 18px;
}
.page-head p { font-size: 1.25rem; line-height: 1.55; color: var(--muted); margin: 0; }
.page-head .page-date {
	margin-top: 14px;
	font-family: var(--face-label);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.01em;
}

/* ── Empty mount (missing page, no results) ── */
.empty-mount { max-width: 420px; }
.empty-mount .mount-window {
	background-color: var(--darkroom);
	background-image:
		linear-gradient(rgba(231, 238, 234, 0.12) 1px, transparent 1px),
		linear-gradient(90deg, rgba(231, 238, 234, 0.12) 1px, transparent 1px);
	background-size: 19px 19px;
}
.missing {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: calc(var(--gap) * 2);
	align-items: center;
	padding-top: 32px;
}
.missing h1 {
	font-weight: 800;
	font-size: clamp(2.5rem, 1.8rem + 2.4vw, 4rem);
	line-height: 1.02;
	margin-bottom: 18px;
}
.missing ul { list-style: none; padding: 0; margin: 24px 0 0; }
.missing li { margin-bottom: 8px; }

/* ── The darkroom band: footer ── */
.band-foot { padding: 56px 0 40px; }
.band-foot .frame {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: calc(var(--gap) * 2);
}
.foot-mark { display: flex; gap: 16px; align-items: flex-start; }
.foot-mark img { width: 56px; height: 56px; border-radius: 11px; flex: none; }
.foot-name {
	font-family: var(--face-label);
	font-weight: 800;
	font-size: 1.75rem;
	line-height: 1.1;
	margin: 0 0 4px;
	color: #ffffff;
}
.foot-tagline { margin: 0 0 18px; color: var(--on-dark); font-style: italic; }
.foot-publisher { font-size: 1rem; line-height: 1.6; color: var(--on-dark-muted); margin: 0; }
.foot-publisher a { color: var(--on-dark); }
.foot-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: var(--gap);
}
.foot-nav li { break-inside: avoid; }
.foot-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--face-label);
	font-weight: 600;
	font-size: 1.125rem;
	text-decoration: none;
}
.foot-nav a:hover { background: transparent; text-decoration: underline; text-decoration-color: var(--mint); }
.foot-nav .current-menu-item > a { text-decoration: underline; text-decoration-color: var(--mint); }

/* ── Measurement notice: a quiet slate strip at the foot of the window ── */
.tavolo-luminoso {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	background: var(--darkroom);
	color: var(--on-dark);
	border-top: 1px solid #3a4851;
	padding: 12px var(--gap);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 20px;
	font-family: var(--face-read);
	font-size: 0.9375rem;
	line-height: 1.45;
}
.tavolo-luminoso p { margin: 0; max-width: 46em; }
.tavolo-luminoso a { color: var(--on-dark); }
.tavolo-luminoso :focus-visible { outline-color: var(--mint); }
.tavolo-luminoso button,
.lentino button {
	min-height: 44px;
	min-width: 112px;
	padding: 0 18px;
	border: 1.5px solid var(--on-dark);
	border-radius: 8px;
	background: transparent;
	color: var(--on-dark);
	font-family: var(--face-label);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.02em;
	cursor: pointer;
}
.tavolo-luminoso button:hover { background: #33424b; }
.lentino {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 1.4em 0;
	padding: 16px 18px;
	background: var(--label);
	border: 1px solid var(--edge);
	border-radius: 14px;
}
.lentino button {
	border-color: var(--darkroom);
	color: var(--darkroom);
	background: var(--mount);
}
.lentino button:hover { background: var(--mint-wash); }
.esposizione {
	flex-basis: 100%;
	margin: 0;
	font-family: var(--face-label);
	font-weight: 600;
	font-size: 1.0625rem;
	color: var(--ink);
}

/* ── Narrower tables ── */
@media (max-width: 1080px) {
	.sorter-row ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ad-shelf { grid-template-columns: minmax(0, 1fr); justify-items: center; }
	.ad-shelf .mount--grey { width: 100%; max-width: 340px; }
	.ad-shelf-note { max-width: 340px; }
	.home-sheet { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
	.hero,
	.title-block,
	.missing { grid-template-columns: minmax(0, 1fr); }
	.hero-words { padding-top: 0; }
	.title-block { gap: 32px; }
	.article-close { grid-template-columns: minmax(0, 1fr); }
	.band-foot .frame { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
	:root { --gap: 18px; --cell: 30px; }
	body { font-size: 1.125rem; }
	.sheet { padding: 32px 20px 40px; border-radius: 4px; }
	.prose figure,
	.sorter,
	.prose .finestrella,
	.slot-in-article { margin-inline: -10px; }
	.prose figure { padding: 10px 10px 0; }
	.prose figcaption { margin: 10px -10px 0; }
	.lightbox { padding-top: 74px; }
	.logo-mount { width: 76px; top: 10px; }
	.band-top .frame { min-height: 64px; padding-left: calc(var(--gap) + 76px + 12px); }
	.band-nav ul { gap: 0 16px; }
	.band-nav a { font-size: 1.0625rem; gap: 7px; }
	.band-nav a::before { width: 8px; height: 8px; }
	.hero { padding-top: 24px; }
	.hero-lede { font-size: 1.1875rem; }
	.sorter-row ul { gap: 14px; }
	.sorter-row .mount { padding: 10px 10px 0; }
	.sorter-row .mount-label { margin: 10px -10px 0; padding: 10px 12px 12px 32px; }
	.sorter-row .mount::after { left: 12px; bottom: 15px; width: 10px; height: 10px; }
	.sorter-row .mount-title { font-size: 1.0625rem; }
	.sorter-row .mount-excerpt { font-size: 0.9375rem; line-height: 1.45; }
	.archive-band { padding: 96px 0 40px; }
	.tavolo-luminoso { padding: 10px 14px; gap: 8px 10px; font-size: 0.875rem; line-height: 1.4; }
	.tavolo-luminoso button { min-width: 0; flex: 1 1 0; }
	.tavolo-luminoso p { flex-basis: 100%; }
}

@media (max-width: 380px) {
	.band-nav ul { gap: 0 12px; }
	.band-nav a { font-size: 1rem; gap: 6px; }
	.logo-mount { width: 66px; }
	.band-top .frame { padding-left: calc(var(--gap) + 66px + 10px); }
	.sorter-row ul { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.lightbox--home::before { display: none; animation: none; }
	* { scroll-behavior: auto !important; }
}

@media print {
	.darkroom,
	.tavolo-luminoso,
	.finestrella { display: none; }
	.lightbox { background: none; padding-top: 0; }
}
