/*
 * KBF Collection – public styles.
 * Colours come from the Astra global palette so the catalogue follows the site's Customizer settings.
 * Principle: the work is the loudest thing on the page. Images sit on a mat and are never cropped.
 */

.kbf {
	--kbf-ink: var(--ast-global-color-2, #111);
	--kbf-text: var(--ast-global-color-3, #585858);
	--kbf-accent: var(--ast-global-color-1, #2c541d);
	--kbf-accent-soft: var(--ast-global-color-0, #74a84a);
	--kbf-mat: var(--ast-global-color-4, #f6f8f5);
	--kbf-bg: var(--ast-global-color-5, #fff);
	--kbf-line: color-mix(in srgb, var(--kbf-ink) 11%, transparent);
	--kbf-line-strong: color-mix(in srgb, var(--kbf-ink) 22%, transparent);
	--kbf-display: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
	--kbf-wrap: 1320px;
	--kbf-gutter: clamp(16px, 4vw, 48px);
	--kbf-radius: 2px;
	--kbf-ease: cubic-bezier(.2, .7, .2, 1);
	--kbf-sticky-top: 0px;
	color: var(--kbf-text);
	width: 100%;
}

.admin-bar .kbf { --kbf-sticky-top: 32px; }
@media (max-width: 782px) { .admin-bar .kbf { --kbf-sticky-top: 0px; } }

.kbf *, .kbf *::before, .kbf *::after { box-sizing: border-box; }
.kbf img { max-width: 100%; height: auto; }
/* Artwork images always keep their own proportions, whatever box they sit in. */
.kbf-card__frame img,
.kbf-series-card__frame img,
.kbf-thumb img,
.kbf-contact img,
.kbf-cover img,
.kbf-viewer__main img { object-fit: contain !important; }
/* Belt and braces against WordPress's auto-sizes placeholder (3000x1500) distorting artworks. */
.kbf img[sizes^="auto" i] { contain-intrinsic-size: none; }
/* Astra adds a heavy shadow to images and figures in single views; the mat does that job here. */
.kbf .ast-article-single figure,
.kbf .ast-article-single img,
.kbf figure,
.kbf img { box-shadow: none; -webkit-box-shadow: none; }
.kbf a { text-decoration: none; }
.kbf :focus-visible { outline: 2px solid var(--kbf-accent); outline-offset: 3px; border-radius: var(--kbf-radius); }
.kbf ul[role="list"], .kbf ol[role="list"] { list-style: none; margin: 0; padding: 0; }

.kbf-wrap {
	width: 100%;
	max-width: calc(var(--kbf-wrap) + 2 * var(--kbf-gutter));
	margin-inline: auto;
	padding-inline: var(--kbf-gutter);
}

/* ---------------------------------------------------------------- Type */

.kbf-eyebrow {
	margin: 0 0 12px;
	font-family: var(--kbf-display);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--kbf-accent);
}
.kbf-eyebrow a { color: inherit; }
.kbf-eyebrow a:hover { color: var(--kbf-ink); }
.kbf-eyebrow span { margin-inline: 6px; opacity: .5; }

.kbf-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 28px;
	font-size: 13px;
	color: var(--kbf-text);
}
.kbf-crumbs a { color: var(--kbf-text); }
.kbf-crumbs a:hover { color: var(--kbf-accent); }
.kbf-crumbs span { opacity: .45; }

.kbf-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--kbf-line);
}
.kbf-section-title {
	margin: 0;
	font-family: var(--kbf-display);
	font-size: clamp(1.25rem, 1.6vw, 1.5rem);
	font-weight: 400;
	letter-spacing: -.005em;
	color: var(--kbf-ink);
}
.kbf-section-note { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }

.kbf-link { color: var(--kbf-accent); font-weight: 500; font-size: 14px; }
.kbf-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.kbf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid var(--kbf-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--kbf-ink);
	font-family: var(--kbf-display);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .2s var(--kbf-ease), color .2s var(--kbf-ease);
}
.kbf-button:hover { background: var(--kbf-ink); color: var(--kbf-bg); }

.kbf-icon-button {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--kbf-line-strong);
	border-radius: 50%;
	background: var(--kbf-bg);
	color: var(--kbf-ink);
	cursor: pointer;
	transition: border-color .2s, opacity .2s;
}
.kbf-icon-button:hover { border-color: var(--kbf-ink); }
.kbf-icon-button:disabled { opacity: .3; cursor: default; }

/* ---------------------------------------------------------------- Hero */

.kbf-hero { padding-block: clamp(40px, 7vw, 96px) clamp(28px, 4vw, 48px); }
.kbf-hero__title {
	margin: 0;
	max-width: 18ch;
	font-family: var(--kbf-display);
	font-size: clamp(2.4rem, 5.6vw, 4.5rem);
	font-weight: 300;
	line-height: 1.02;
	letter-spacing: -.025em;
	color: var(--kbf-ink);
	text-wrap: balance;
}
.kbf-hero__meta {
	margin: 18px 0 0;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
}
.kbf-hero__intro {
	max-width: 62ch;
	margin-top: 24px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--kbf-text);
}
.kbf-hero__intro p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- Series index */

.kbf-series-index { margin-bottom: clamp(56px, 8vw, 112px); }
.kbf-series-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(190px, 42vw), 1fr));
	gap: 36px 24px;
}
.kbf-series-card a { display: block; color: var(--kbf-ink); }
.kbf-series-card__frame {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	padding: 14%;
	margin-bottom: 14px;
	background: var(--kbf-mat);
	overflow: hidden;
	transition: background-color .35s var(--kbf-ease);
}
.kbf-series-card__frame img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .12));
	transition: transform .5s var(--kbf-ease);
}
.kbf-series-card a:hover .kbf-series-card__frame { background: color-mix(in srgb, var(--kbf-mat) 88%, var(--kbf-ink)); }
.kbf-series-card a:hover img { transform: scale(1.03); }
.kbf-series-card__name { display: block; font-family: var(--kbf-display); font-size: 17px; font-weight: 500; line-height: 1.3; }
.kbf-series-card__meta { display: block; margin-top: 4px; font-size: 13px; color: var(--kbf-text); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
	/* Phones: series become a swipeable row so "All works" stays close. */
	.kbf-series-grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 42vw;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin-inline: calc(-1 * var(--kbf-gutter));
		padding-inline: var(--kbf-gutter);
		scroll-padding-inline: var(--kbf-gutter);
		padding-bottom: 8px;
	}
	.kbf-series-card { scroll-snap-align: start; }
	.kbf-series-index { margin-bottom: 48px; }
}

/* ---------------------------------------------------------------- Filters */

.kbf-browse .kbf-section-title { margin-bottom: 20px; }

.kbf-filters {
	position: sticky;
	top: var(--kbf-sticky-top);
	z-index: 20;
	display: grid;
	grid-template-columns: minmax(200px, 280px) 1fr;
	align-items: end;
	gap: 16px 28px;
	margin-inline: calc(-1 * var(--kbf-gutter));
	padding: 14px var(--kbf-gutter);
	background: color-mix(in srgb, var(--kbf-bg) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
}
.kbf-filters__search {
	position: relative;
	display: flex;
	align-items: center;
}
.kbf-filters__search svg { position: absolute; left: 0; color: var(--kbf-text); pointer-events: none; }
.kbf-filters__search input {
	width: 100%;
	min-height: 40px;
	padding: 8px 4px 8px 26px;
	border: 0;
	border-bottom: 1px solid var(--kbf-line-strong);
	border-radius: 0;
	background: transparent;
	color: var(--kbf-ink);
	font-size: 15px;
	box-shadow: none;
}
.kbf-filters__search input:focus { outline: none; border-bottom-color: var(--kbf-accent); }

.kbf-filters__row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 20px; justify-content: flex-end; }
.kbf-select { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kbf-select label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--kbf-text);
}
.kbf-select select {
	-webkit-appearance: none;
	appearance: none;
	min-width: 132px;
	max-width: 230px;
	min-height: 40px;
	padding: 8px 26px 8px 0;
	border: 0;
	border-bottom: 1px solid var(--kbf-line-strong);
	border-radius: 0;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23585858' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center;
	color: var(--kbf-ink);
	font-size: 15px;
	text-overflow: ellipsis;
	cursor: pointer;
	box-shadow: none;
}
.kbf-select select:focus { outline: none; border-bottom-color: var(--kbf-accent); }
.kbf-select select:focus-visible { outline: 2px solid var(--kbf-accent); outline-offset: 2px; }
.kbf-js .kbf-filters__submit { display: none; }

@media (max-width: 900px) {
	.kbf-filters { position: static; grid-template-columns: 1fr; margin-inline: 0; padding-inline: 0; border-inline: 0; backdrop-filter: none; background: none; }
	.kbf-filters__row { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }
	.kbf-select select { max-width: none; width: 100%; }
}

/* ---------------------------------------------------------------- Results */

.kbf-results { padding-top: 22px; transition: opacity .25s var(--kbf-ease); }
.kbf-results[aria-busy="true"] { opacity: .4; pointer-events: none; }

.kbf-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 28px; min-height: 32px; }
.kbf-count { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--kbf-text); }
.kbf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kbf-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--kbf-mat);
	color: var(--kbf-ink);
	font-size: 13px;
	transition: background-color .2s;
}
.kbf-chip:hover { background: color-mix(in srgb, var(--kbf-mat) 85%, var(--kbf-ink)); }
.kbf-chip--clear { background: none; text-decoration: underline; text-underline-offset: 3px; padding-inline: 4px; }

.kbf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(220px, 42vw), 1fr));
	gap: clamp(28px, 3.4vw, 52px) clamp(16px, 2.4vw, 32px);
}

.kbf-card__link { display: block; color: var(--kbf-ink); }
.kbf-card__frame {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	padding: 11%;
	background: var(--kbf-mat);
	overflow: hidden;
	transition: background-color .35s var(--kbf-ease);
}
.kbf-card__frame img,
.kbf-card__frame .kbf-noimage {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .12));
	transition: transform .5s var(--kbf-ease);
}
.kbf-card__link:hover .kbf-card__frame { background: color-mix(in srgb, var(--kbf-mat) 90%, var(--kbf-ink)); }
.kbf-card__link:hover .kbf-card__frame img { transform: translateY(-2px) scale(1.02); }
.kbf-card.is-current .kbf-card__frame { outline: 1px solid var(--kbf-accent); outline-offset: -1px; }

.kbf-card__body { display: block; padding-top: 14px; }
.kbf-card__title {
	display: block;
	font-family: var(--kbf-display);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--kbf-ink);
	text-wrap: pretty;
}
.kbf-card__link:hover .kbf-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.kbf-card__meta { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--kbf-text); font-variant-numeric: tabular-nums; }
.kbf-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kbf-badge {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid color-mix(in srgb, var(--kbf-accent) 40%, transparent);
	border-radius: 999px;
	color: var(--kbf-accent);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .03em;
}

.kbf-noimage { display: block; background: repeating-linear-gradient(45deg, transparent 0 8px, var(--kbf-line) 8px 9px); }

.kbf-pager { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 80px); }
.kbf-empty { padding: 64px 0; text-align: center; }
.kbf-empty p { margin: 0 0 20px; font-size: 17px; }

.kbf-archive { padding-bottom: clamp(64px, 9vw, 128px); }

/* ---------------------------------------------------------------- Single artwork */

.kbf-artwork { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(64px, 9vw, 128px); }

.kbf-artwork__stage {
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
	align-items: start;
}
@media (min-width: 1000px) {
	.kbf-artwork__stage { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: clamp(40px, 5vw, 88px); }
	.kbf-artwork__media { position: sticky; top: calc(var(--kbf-sticky-top) + 24px); }
}

.kbf-viewer { margin: 0; box-shadow: none; border-radius: 0; }
.kbf-viewer__main {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: min(44vh, 420px);
	padding: clamp(24px, 5.5vw, 72px);
	background: var(--kbf-mat);
	cursor: zoom-in;
}
.kbf-viewer__main img {
	width: auto;
	max-width: 100%;
	max-height: min(70vh, 760px);
	object-fit: contain;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .14));
	transition: opacity .25s var(--kbf-ease);
}
.kbf-viewer__main img.is-loading { opacity: .2; }
.kbf-viewer__zoom {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--kbf-bg);
	color: var(--kbf-ink);
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .25s var(--kbf-ease), transform .25s var(--kbf-ease);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.kbf-viewer__main:hover .kbf-viewer__zoom,
.kbf-viewer__main:focus-visible .kbf-viewer__zoom { opacity: 1; transform: none; }
@media (hover: none) { .kbf-viewer__zoom { opacity: 1; transform: none; } }

.kbf-viewer--empty { display: grid; place-items: center; min-height: 360px; background: var(--kbf-mat); font-size: 14px; }

.kbf-viewer__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	overflow-x: auto;
	scrollbar-width: thin;
	padding-bottom: 4px;
}
.kbf-thumb {
	display: block;
	width: 68px;
	height: 68px;
	padding: 6px;
	border: 1px solid transparent;
	border-radius: 0;
	background: var(--kbf-mat);
	cursor: pointer;
	transition: border-color .2s;
}
.kbf-thumb img { width: 100%; height: 100%; object-fit: contain; }
.kbf-thumb:hover { border-color: var(--kbf-line-strong); }
.kbf-thumb.is-active { border-color: var(--kbf-accent); }

.kbf-artwork__title {
	margin: 0 0 28px;
	font-family: var(--kbf-display);
	font-size: clamp(2rem, 3.4vw, 3rem);
	font-weight: 300;
	line-height: 1.08;
	letter-spacing: -.02em;
	color: var(--kbf-ink);
	text-wrap: balance;
}

.kbf-tombstone { margin: 0; border-top: 1px solid var(--kbf-line); }
.kbf-tombstone > div {
	display: grid;
	grid-template-columns: 104px 1fr;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--kbf-line);
}
.kbf-tombstone dt {
	margin: 0;
	padding-top: 3px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--kbf-text);
}
.kbf-tombstone dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--kbf-ink); font-variant-numeric: tabular-nums; }

.kbf-edition {
	margin-top: 28px;
	padding: 20px 22px;
	background: var(--kbf-mat);
	border-left: 2px solid var(--kbf-accent);
}
.kbf-edition p { margin: 0; }
.kbf-edition__eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--kbf-accent); }
.kbf-edition__size { display: flex; align-items: center; gap: 14px; margin-top: 8px !important; }
.kbf-edition__num { font-family: var(--kbf-display); font-size: 3rem; font-weight: 300; line-height: 1; color: var(--kbf-ink); font-variant-numeric: tabular-nums; }
.kbf-edition__unit { font-size: 14px; line-height: 1.4; }
.kbf-edition__note, .kbf-edition__pub, .kbf-edition__known { margin-top: 12px !important; font-size: 14px; line-height: 1.5; color: var(--kbf-ink); }
.kbf-edition__pub span { color: var(--kbf-text); }

.kbf-partof { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--kbf-line); }
.kbf-partof__lead { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--kbf-ink); }
.kbf-partof__pos { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--kbf-accent); }
.kbf-partof__lead a { color: var(--kbf-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.kbf-contact { display: grid; grid-template-columns: repeat(auto-fill, 48px); gap: 6px; }
.kbf-contact a { display: block; width: 48px; height: 48px; padding: 4px; background: var(--kbf-mat); opacity: .7; transition: opacity .2s; }
.kbf-contact a:hover, .kbf-contact a.is-current { opacity: 1; }
.kbf-contact a.is-current { outline: 1.5px solid var(--kbf-accent); outline-offset: 1px; }
.kbf-contact img { width: 100%; height: 100%; object-fit: contain; }

.kbf-artwork__text { margin-top: 28px; font-size: 16px; line-height: 1.7; }

.kbf-adjacent {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid var(--kbf-line);
}
.kbf-adjacent a { display: flex; flex-direction: column; gap: 4px; color: var(--kbf-ink); }
.kbf-adjacent__next { grid-column: 2; text-align: right; }
.kbf-adjacent__dir { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--kbf-text); }
.kbf-adjacent__prev .kbf-adjacent__dir::before { content: "← "; }
.kbf-adjacent__next .kbf-adjacent__dir::after { content: " →"; }
.kbf-adjacent__title { font-family: var(--kbf-display); font-size: 15px; font-weight: 500; line-height: 1.35; }
.kbf-adjacent a:hover .kbf-adjacent__title { color: var(--kbf-accent); }
.kbf-hint { margin: 14px 0 0; font-size: 12px; color: var(--kbf-text); opacity: .8; }
@media (hover: none) { .kbf-hint { display: none; } }

.kbf-section { margin-top: clamp(64px, 8vw, 120px); }

.kbf-strip__controls { display: flex; align-items: center; gap: 8px; }
.kbf-strip__controls .kbf-link { margin-left: 8px; }
.kbf-strip__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(150px, 20vw, 220px);
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 2px;
	padding-bottom: 12px;
	scrollbar-width: thin;
	overscroll-behavior-x: contain;
}
.kbf-strip__track > li { scroll-snap-align: start; }
.kbf-strip__track .kbf-card__title { font-size: 14px; }
.kbf-strip__track .kbf-card__badges { display: none; }
html:not(.kbf-js) .kbf-strip__controls .kbf-icon-button { display: none; }

.kbf-exh-list { border-top: 1px solid var(--kbf-line); }
.kbf-exh-list > li {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--kbf-line);
	font-size: 15px;
}
.kbf-exh-list a { color: var(--kbf-ink); font-weight: 500; }
.kbf-exh-list a:hover { color: var(--kbf-accent); }
.kbf-exh-list__year { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
	.kbf-exh-list > li { grid-template-columns: 52px 1fr; }
	.kbf-exh-list__venue { grid-column: 2; margin-top: -14px; font-size: 13px; }
}

/* ---------------------------------------------------------------- Cite */

.kbf-cite { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--kbf-line); font-size: 14px; }
.kbf-tombstone + .kbf-cite { margin-top: 0; border-top: 0; }
.kbf-cite summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	list-style: none;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--kbf-text);
}
.kbf-cite summary::-webkit-details-marker { display: none; }
.kbf-cite summary::after { content: "+"; font-size: 14px; line-height: 1; transition: transform .2s var(--kbf-ease); }
.kbf-cite[open] summary::after { transform: rotate(45deg); }
.kbf-cite summary:hover { color: var(--kbf-ink); }
.kbf-cite__text { margin: 12px 0 10px; padding: 12px 14px; background: var(--kbf-mat); color: var(--kbf-ink); line-height: 1.55; overflow-wrap: anywhere; }
.kbf-cite__copy { padding: 0; border: 0; background: none; color: var(--kbf-accent); font-size: 13px; font-weight: 500; cursor: pointer; }
.kbf-cite__copy:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- Series layouts (3 or 4 columns + panel) */

/* The same column gap as .kbf-grid, so a work in a 3- or 4-column series is exactly as wide as in the 5-column grid. */
.kbf { --kbf-colgap: clamp(16px, 2.4vw, 32px); }
@media (min-width: 1000px) {
	.kbf-layout--cols-3,
	.kbf-layout--cols-4 {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		column-gap: var(--kbf-colgap);
		align-items: start;
	}
	.kbf-layout--cols-4 > .kbf-grid--fixed { grid-column: span 4; grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.kbf-layout--cols-3 > .kbf-grid--fixed { grid-column: span 3; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kbf-layout--cols-4 > .kbf-panel { grid-column: span 1; }
	.kbf-layout--cols-3 > .kbf-panel { grid-column: span 2; }
	.kbf-panel { position: sticky; top: calc(var(--kbf-sticky-top) + 96px); }
}
@media (max-width: 999px) {
	.kbf-layout.has-panel { display: flex; flex-direction: column; gap: 40px; }
	.kbf-layout.has-panel > .kbf-panel { order: -1; }
}
.kbf-panel { font-size: 15px; line-height: 1.65; color: var(--kbf-text); }
.kbf-panel__figure { margin: 0 0 20px; padding: 10%; background: var(--kbf-mat); }
.kbf-panel__figure img { display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .14)); }
.kbf-panel__figure figcaption { margin-top: 12px; font-size: 12px; color: var(--kbf-text); text-align: center; }
.kbf-panel__text p { margin: 0 0 12px; }
.kbf-panel__text p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- Caption mode (artwork page) */

.kbf-artwork__caption p { margin: 0 0 12px; }
.kbf-artwork__caption p:last-child { margin-bottom: 0; }
.kbf-artwork__caption {
	margin: 0 0 8px;
	padding: 18px 0;
	border-block: 1px solid var(--kbf-line);
	font-size: 17px;
	line-height: 1.65;
	color: var(--kbf-ink);
}

/* ---------------------------------------------------------------- Bibliography (Writing) */

.kbf-bibliography { padding-bottom: clamp(64px, 9vw, 128px); }
.kbf-biblio-search { max-width: 420px; margin-bottom: 20px; }
.kbf-entry--ref { grid-template-columns: 96px minmax(0, 1fr); }
.kbf-entry__ref { display: block; font-size: 16px; line-height: 1.6; color: var(--kbf-ink); text-wrap: pretty; }
a.kbf-entry__ref:hover { color: var(--kbf-accent); }
.kbf-entry__more { color: var(--kbf-accent); white-space: nowrap; }
.kbf-entry--ref[hidden] { display: none; }
@media (max-width: 700px) { .kbf-entry--ref { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Transitions */

@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
	::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
	.kbf-enter { animation: kbf-enter .45s var(--kbf-ease) both; animation-delay: calc(var(--kbf-i, 0) * 28ms); }
	@keyframes kbf-enter { from { opacity: 0; transform: translateY(8px); } }
}

/* ---------------------------------------------------------------- Lightbox */

.pswp.pswp {
	/* Light grey, a step darker than the grey mat around artworks in the grids.
	   Doubled class: photoswipe.css loads after this file and sets its own black. */
	--pswp-bg: #e3e5e1;
	--pswp-placeholder-bg: #d6d9d4;
	--pswp-icon-color: #2b2f2a;
	--pswp-icon-color-secondary: #e3e5e1;
	--pswp-icon-stroke-color: #e3e5e1;
	--pswp-error-text-color: #2b2f2a;
}
.pswp.pswp .pswp__counter { color: #2b2f2a; text-shadow: none; }

/* ---------------------------------------------------------------- Motion */

@media (prefers-reduced-motion: reduce) {
	.kbf *, .kbf *::before, .kbf *::after { transition: none !important; animation: none !important; }
	.kbf-strip__track { scroll-behavior: auto; }
}

/* ================================================================== Writing */

.kbf-forthcoming { padding: 48px 0 120px; }
.kbf-forthcoming p { max-width: 52ch; margin: 0; padding-top: 22px; border-top: 1px solid var(--kbf-line); font-size: 17px; }

/* ---------------------------------------------------------------- Covers */

.kbf-cover {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	aspect-ratio: 5 / 7;
}
/* Photographed covers keep their proportions and stand on the shelf line. */
.kbf-cover img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center bottom;
	filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .14)) drop-shadow(0 1px 2px rgba(0, 0, 0, .12));
}
.kbf-cover__type {
	--c-bg: var(--kbf-accent);
	--c-fg: #f6f8f5;
	--c-mark: var(--kbf-accent-soft);
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 11% 10% 9%;
	overflow: hidden;
	background: var(--c-bg);
	color: var(--c-fg);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .14), 0 1px 2px rgba(0, 0, 0, .1), inset 3px 0 0 rgba(255, 255, 255, .08), inset 7px 0 0 rgba(0, 0, 0, .08);
}
/* Two nested diamonds, after the foundation mark. */
.kbf-cover__type::before,
.kbf-cover__type::after {
	content: "";
	position: absolute;
	aspect-ratio: 1;
	border: 1px solid var(--c-mark);
	transform: rotate(45deg);
}
.kbf-cover__type::before { right: -18%; bottom: 18%; width: 62%; opacity: .55; }
.kbf-cover__type::after { right: -4%; bottom: 30%; width: 34%; opacity: .35; }
.kbf-cover__type--ink { --c-bg: #1d211b; --c-fg: #eef1ea; --c-mark: #74a84a; }
.kbf-cover__type--moss { --c-bg: #52683f; --c-fg: #f3f2ea; --c-mark: #cfe0bd; }
.kbf-cover__type--sand { --c-bg: #ebe5d6; --c-fg: #26261f; --c-mark: #2c541d; }
.kbf-cover__type--clay { --c-bg: #9c5b3f; --c-fg: #fbf4ec; --c-mark: #f0c9a8; }
.kbf-cover__author {
	position: relative;
	font-family: var(--kbf-display);
	font-size: clamp(8px, .9vw, 11px);
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .85;
}
.kbf-cover__title {
	position: relative;
	display: -webkit-box;
	margin-top: 14%;
	overflow: hidden;
	font-family: var(--kbf-display);
	font-size: clamp(14px, 1.45vw, 21px);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-wrap: balance;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
}
.kbf-cover__foot {
	position: relative;
	margin-top: auto;
	font-size: clamp(8px, .8vw, 10px);
	letter-spacing: .06em;
	opacity: .75;
}
.kbf-cover--large .kbf-cover__author { font-size: 12px; }
.kbf-cover--large .kbf-cover__title { font-size: clamp(22px, 2.6vw, 34px); }
.kbf-cover--large .kbf-cover__foot { font-size: 12px; }

/* ---------------------------------------------------------------- Shelf */

.kbf-shelf { margin-bottom: clamp(56px, 8vw, 112px); }
.kbf-shelf__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(140px, 15vw, 200px);
	gap: clamp(20px, 3vw, 40px);
	align-items: start;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 8px 2px 14px;
	scrollbar-width: thin;
	overscroll-behavior-x: contain;
}
.kbf-book { scroll-snap-align: start; }
.kbf-book a { display: block; color: var(--kbf-ink); }
/* Books stand on a shelf line. */
.kbf-book .kbf-cover { margin-bottom: 18px; padding-bottom: 1px; border-bottom: 1px solid var(--kbf-line-strong); transition: transform .4s var(--kbf-ease); }
.kbf-book a:hover .kbf-cover { transform: translateY(-4px); }
.kbf-book__title { display: block; font-family: var(--kbf-display); font-size: 15px; font-weight: 500; line-height: 1.3; }
.kbf-book a:hover .kbf-book__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.kbf-book__meta { display: block; margin-top: 4px; font-size: 13px; color: var(--kbf-text); }

/* ---------------------------------------------------------------- Bibliography list */

.kbf-biblio { border-top: 1px solid var(--kbf-line); }
.kbf-entry {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 8px 28px;
	align-items: baseline;
	padding: 18px 0;
	border-bottom: 1px solid var(--kbf-line);
}
.kbf-entry__year { font-family: var(--kbf-display); font-size: 20px; font-weight: 300; color: var(--kbf-ink); font-variant-numeric: tabular-nums; }
.kbf-entry__link { display: block; color: var(--kbf-ink); }
.kbf-entry__title { display: block; font-family: var(--kbf-display); font-size: 18px; font-weight: 500; line-height: 1.35; text-wrap: pretty; }
.kbf-entry__sub { font-weight: 400; }
.kbf-entry__link:hover .kbf-entry__title { color: var(--kbf-accent); }
.kbf-entry__imprint { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--kbf-text); }
.kbf-entry__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.kbf-entry__lang { font-size: 12px; color: var(--kbf-text); }
.kbf-entry__pdf { padding: 1px 6px; border-radius: 3px; background: var(--kbf-mat); color: var(--kbf-accent); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
@media (max-width: 700px) {
	.kbf-entry { grid-template-columns: 1fr; gap: 6px; }
	.kbf-entry__year:empty { display: none; }
	.kbf-entry__year { font-size: 15px; }
	.kbf-entry__tags { justify-content: flex-start; }
}

/* ---------------------------------------------------------------- Single writing */

.kbf-writing { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(64px, 9vw, 128px); }
.kbf-writing__stage { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.kbf-writing__stage:not(.has-cover) .kbf-writing__main { max-width: 760px; }
@media (min-width: 900px) {
	.kbf-writing__stage.has-cover { grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); }
	.kbf-writing__cover { position: sticky; top: calc(var(--kbf-sticky-top) + 32px); }
}
.kbf-writing__cover .kbf-cover { max-width: 380px; }
@media (max-width: 899px) { .kbf-writing__cover .kbf-cover { width: min(64vw, 300px); } }
.kbf-writing__title {
	margin: 0;
	font-family: var(--kbf-display);
	font-size: clamp(2.1rem, 3.8vw, 3.4rem);
	font-weight: 300;
	line-height: 1.06;
	letter-spacing: -.02em;
	color: var(--kbf-ink);
	text-wrap: balance;
}
.kbf-writing__subtitle { margin: 12px 0 0; font-family: var(--kbf-display); font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 300; line-height: 1.35; color: var(--kbf-ink); }
.kbf-writing__byline { margin: 18px 0 28px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--kbf-text); }
.kbf-writing__abstract { margin-top: 32px; font-size: 17px; line-height: 1.7; color: var(--kbf-ink); }
.kbf-writing__abstract p:last-child { margin-bottom: 0; }

.kbf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.kbf-button--solid { background: var(--kbf-ink); color: var(--kbf-bg); }
.kbf-button--solid:hover { border-color: var(--kbf-accent); background: var(--kbf-accent); color: #fff; }
.kbf-button__note { margin-left: 8px; font-size: 12px; font-weight: 400; opacity: .7; }
.kbf-link--out::after { content: " \2197"; }

.kbf-reader { margin-top: clamp(40px, 6vw, 72px); scroll-margin-top: 24px; }
.kbf-reader__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--kbf-line); font-family: var(--kbf-display); font-size: 15px; color: var(--kbf-ink); }
.kbf-reader__bar .kbf-link { padding: 0; border: 0; background: none; cursor: pointer; }
.kbf-reader__frame iframe { display: block; width: 100%; height: 88vh; border: 0; background: var(--kbf-mat); }

.kbf-longform { margin-top: clamp(48px, 7vw, 96px); }
.kbf-longform__body { max-width: 68ch; margin-inline: auto; font-size: 18px; line-height: 1.75; color: var(--kbf-ink); }
.kbf-longform__body > p:first-of-type::first-letter { float: left; margin: 6px 10px 0 0; font-family: var(--kbf-display); font-size: 3.6em; font-weight: 300; line-height: .8; color: var(--kbf-accent); }

/* ---------------------------------------------------------------- Placeholders */

/* Poster stand-in inside a square mat: poster proportions, centred. */
.kbf-card__frame > .kbf-cover--poster,
.kbf-series-card__frame > .kbf-cover--poster { height: 100%; width: auto; max-width: 100%; }
.kbf-cover--poster .kbf-cover__title { -webkit-line-clamp: 5; }
.kbf-viewer--empty { display: grid; place-items: center; padding: clamp(28px, 6vw, 80px); }
.kbf-viewer--empty .kbf-cover--poster { width: min(100%, 380px); height: auto; }

.kbf-quiet {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	height: 100%;
	color: var(--kbf-text);
}
.kbf-quiet__mark {
	width: 26%;
	max-width: 64px;
	aspect-ratio: 1;
	border: 1px solid color-mix(in srgb, var(--kbf-accent) 45%, transparent);
	transform: rotate(45deg);
	box-shadow: inset 0 0 0 7px var(--kbf-mat), inset 0 0 0 8px color-mix(in srgb, var(--kbf-accent) 30%, transparent);
}
.kbf-quiet__text { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.kbf-strip__track .kbf-quiet__text { display: none; }

/* ---------------------------------------------------------------- Mats: the image always sits fully inside */

/* Explicit positioning instead of grid percentages: a tall work can never overflow and be clipped. */
.kbf-card__frame,
.kbf-series-card__frame {
	position: relative;
	display: block;
	padding: 0;
}
.kbf-card__frame > img,
.kbf-card__frame > .kbf-noimage,
.kbf-card__frame > .kbf-quiet { position: absolute; inset: 11%; width: 78%; height: 78%; }
.kbf-series-card__frame > img,
.kbf-series-card__frame > .kbf-noimage,
.kbf-series-card__frame > .kbf-quiet { position: absolute; inset: 14%; width: 72%; height: 72%; }
.kbf-card__frame > img,
.kbf-series-card__frame > img { max-width: none; object-fit: contain; }

/* Poster stand-ins: identical size in every mat, whatever the title length. */
.kbf-card__frame > .kbf-cover--poster,
.kbf-series-card__frame > .kbf-cover--poster {
	position: absolute;
	top: 11%;
	left: 50%;
	height: 78%;
	width: auto;
	max-width: none;
	aspect-ratio: 5 / 7;
	transform: translateX(-50%);
}
.kbf-series-card__frame > .kbf-cover--poster { top: 14%; height: 72%; }
.kbf-cover--poster .kbf-cover__type { min-height: 0; }
.kbf-card__link:hover .kbf-card__frame > .kbf-cover--poster { transform: translateX(-50%) translateY(-2px); }

/* ---------------------------------------------------------------- Cover typography scales with the cover */

.kbf-cover { container-type: inline-size; }
.kbf-cover__type { padding: 10% 9% 8%; }
.kbf-cover__author { font-size: max(7px, 5.2cqi); letter-spacing: .12em; }
.kbf-cover__title {
	flex: 0 1 auto;
	min-height: 0;
	margin-top: 9%;
	margin-bottom: 6%;
	font-size: max(10px, 10.5cqi);
	line-height: 1.12;
	overflow-wrap: break-word;
	hyphens: auto;
	-webkit-line-clamp: 5;
}
.kbf-cover__foot { flex: none; font-size: max(7px, 4.6cqi); }
.kbf-cover--large .kbf-cover__author { font-size: max(10px, 3.4cqi); }
.kbf-cover--large .kbf-cover__title { font-size: max(18px, 8.5cqi); }
.kbf-cover--large .kbf-cover__foot { font-size: max(10px, 3.2cqi); }

.kbf-writing__ref {
	margin: 28px 0 0;
	padding: 16px 18px;
	border-left: 2px solid var(--kbf-accent);
	background: var(--kbf-mat);
	color: var(--kbf-ink);
	font-size: 15px;
	line-height: 1.6;
}

/* On the detail page the cover hangs from the top of its column (on the shelf it stands on the line). */
.kbf-cover--large { align-items: flex-start; }
.kbf-cover--large img { object-position: center top; }

.kbf-writing__ref p { margin: 0; }
.kbf-writing__ref-label { margin-bottom: 6px !important; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--kbf-accent); }

/* Sub-series links on a main series page. */
.kbf-subseries { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.kbf-subseries__label { font-size: 13px; color: var(--kbf-muted, #6b7068); margin-right: 2px; }

/* Tabs: Series | All works (Art), Selected publications | All publications (Writing). */
.kbf-tabs {
	display: flex;
	gap: clamp(20px, 3vw, 36px);
	margin: 0 0 clamp(28px, 4vw, 44px);
	border-bottom: 1px solid var(--kbf-line);
	overflow-x: auto;
	scrollbar-width: none;
}
.kbf-tabs::-webkit-scrollbar { display: none; }
.kbf-tab {
	position: relative;
	flex: none;
	padding: 0 0 14px;
	font-family: var(--kbf-display);
	font-size: clamp(1.1rem, 1.5vw, 1.375rem);
	font-weight: 400;
	color: var(--kbf-text);
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s var(--kbf-ease);
}
.kbf-tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--kbf-ink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--kbf-ease);
}
.kbf-tab:hover { color: var(--kbf-ink); }
.kbf-tab.is-active { color: var(--kbf-ink); }
.kbf-tab.is-active::after { transform: scaleX(1); }
.kbf-tab:focus-visible { outline: 2px solid var(--kbf-accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .kbf-tab, .kbf-tab::after { transition: none; } }
.kbf-tabpanel:focus { outline: none; }
.kbf-tabpanel[hidden] { display: none !important; }
/* Inside a tab, the tab is the heading: hide the repeated section title and its rule. */
.kbf-tabpanel .kbf-section-head { border-top: 0; padding-top: 0; }
.kbf-tabpanel .kbf-section-head:not(:has(.kbf-strip__controls)) { display: none; }
.kbf-tabpanel .kbf-section-head .kbf-section-title,
.kbf-tabpanel .kbf-section-head .kbf-section-note {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.kbf-tabpanel .kbf-section-head:has(.kbf-strip__controls) { justify-content: flex-end; margin-bottom: 16px; }
.kbf-tabpanel .kbf-series-index,
.kbf-tabpanel .kbf-shelf { margin-bottom: clamp(48px, 6vw, 80px); }

/* Image protection (deterrent): no dragging images out, no long-press save menu, no selection. */
.kbf img,
.kbf-card__frame,
.kbf [data-kbf-zoom],
.pswp img {
	-webkit-user-drag: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}

/* All publications: year | cover | title + short snippet. */
.kbf-entry--ref { grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
.kbf-entry--ref .kbf-entry__year { padding-top: 2px; }
.kbf-entry__card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start; color: var(--kbf-ink); }
.kbf-cover--mini { width: 64px; align-items: flex-start; }
.kbf-cover--mini img { object-position: top center; }
.kbf-cover--mini .kbf-cover__type { padding: 12% 10%; }
.kbf-cover--mini .kbf-cover__author,
.kbf-cover--mini .kbf-cover__foot { display: none; }
.kbf-cover--mini .kbf-cover__title { margin-top: 0; font-size: 8px; line-height: 1.15; -webkit-line-clamp: 5; }
.kbf-cover--mini .kbf-cover__type::before { right: -30%; bottom: 8%; }
.kbf-entry__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kbf-entry--ref .kbf-entry__title { font-size: 18px; }
.kbf-entry__snippet {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.55;
	color: var(--kbf-text);
	-webkit-line-clamp: 2;
	max-width: 75ch;
	-webkit-box-orient: vertical;
	text-wrap: pretty;
}
.kbf-entry--ref .kbf-entry__more { font-size: 13px; color: var(--kbf-accent); }
.kbf-entry__card:hover .kbf-entry__title { color: var(--kbf-accent); }
.kbf-entry__card:hover .kbf-entry__more span { margin-left: 3px; }
@media (max-width: 700px) {
	.kbf-entry--ref { grid-template-columns: 1fr; }
	.kbf-entry__card { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
	.kbf-cover--mini { width: 56px; }
	.kbf-entry--ref .kbf-entry__title { font-size: 16px; }
}

/* Selected publications as a grid (same cards as Art and Design). The cover keeps book proportions inside the square mat. */
.kbf-card--book .kbf-card__frame { padding: 9% 14%; }
.kbf-card--book .kbf-cover { height: 100%; width: auto; max-width: 100%; aspect-ratio: 5 / 7; align-items: center; }
.kbf-card--book .kbf-cover img { width: 100%; height: 100%; object-fit: contain; }
.kbf-card--book .kbf-cover__type { box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.kbf-card--book .kbf-cover__title { font-size: clamp(11px, 1.05vw, 15px); }
.kbf-card--book .kbf-cover__author,
.kbf-card--book .kbf-cover__foot { font-size: clamp(7px, .65vw, 9px); }
