/*
 * Antolgy Reader — رواق أنطولوجي
 *
 * Three moods, one measure, and as little chrome as the text will tolerate.
 * Scoped under .antolgy-portico / .antolgy-threshold so nothing leaks into the
 * rest of the site.
 */

.antolgy-portico,
.antolgy-threshold {
	--paper: #f5f3ef;
	--ink: #1a1a1a;
	--muted: #6b6b6b;
	--gold: #c9a85c;
	--dark: #1a1a2e;
	--rule: rgba(26, 26, 26, .12);
	--field: var(--antolgy-section, var(--dark));
	--measure: 34rem;
	--size: 1.15rem;
	--leading: 2.05;

	background: var(--paper);
	color: var(--ink);
	font-size: var(--size);
}

.antolgy-portico[data-mood="ink"],
.antolgy-threshold[data-mood="ink"] {
	--paper: #14141c;
	--ink: #e8e3da;
	--muted: #9a948a;
	--rule: rgba(232, 227, 218, .16);
}

.antolgy-portico[data-mood="gold"],
.antolgy-threshold[data-mood="gold"] {
	--paper: #fffdf6;
	--ink: #000;
	--muted: #4a4a4a;
	--rule: rgba(0, 0, 0, .3);
}

.antolgy-portico[data-size="s"] { --size: 1rem; }
.antolgy-portico[data-size="l"] { --size: 1.35rem; --leading: 2.15; }
.antolgy-portico[data-measure="wide"] { --measure: 46rem; }

/* ---------------------------------------------------------------- threshold */

.antolgy-threshold__field {
	background: var(--field);
	padding: clamp(3rem, 9vw, 7rem) 1.25rem clamp(3.5rem, 10vw, 8rem);
}

.antolgy-threshold__inner {
	margin-inline: auto;
	max-width: 60rem;
	display: grid;
	gap: clamp(1.75rem, 5vw, 3.5rem);
	grid-template-columns: 1fr;
	align-items: center;
}

@media (min-width: 48rem) {
	.antolgy-threshold__inner:has(.antolgy-threshold__cover) { grid-template-columns: minmax(0, 18rem) 1fr; }
}

.antolgy-threshold__cover img {
	width: 100%;
	height: auto;
	border-radius: 1.25rem;
	box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, .38);
	display: block;
}

.antolgy-threshold__title {
	font-size: clamp(2.25rem, 7vw, 4.25rem);
	line-height: 1.15;
	margin: 0 0 .5rem;
	color: var(--paper);
}

.antolgy-threshold__subtitle {
	margin: 0 0 1.25rem;
	color: rgba(245, 243, 239, .72);
	font-size: 1.05rem;
}

.antolgy-threshold__credits {
	margin: 0 0 2rem;
	color: rgba(245, 243, 239, .9);
}

.antolgy-threshold__credits a { color: inherit; text-decoration-color: var(--gold); }

.antolgy-credit__role {
	color: rgba(245, 243, 239, .55);
	font-size: .82em;
}

.antolgy-credit__sep { margin-inline: .6rem; opacity: .4; }

.antolgy-threshold__start {
	display: inline-block;
	background: var(--paper);
	color: var(--dark);
	padding: .95rem 2.5rem;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	transition: transform .18s ease, box-shadow .18s ease;
}

.antolgy-threshold__start:hover {
	transform: translateY(-2px);
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, .28);
}

.antolgy-threshold__stats {
	margin: 1.25rem 0 0;
	color: rgba(245, 243, 239, .6);
	font-size: .9rem;
}

.antolgy-threshold__body {
	max-width: 46rem;
	margin-inline: auto;
	padding: clamp(2.5rem, 7vw, 5rem) 1.25rem 5rem;
}

.antolgy-threshold__toc-title {
	font-size: 1.05rem;
	letter-spacing: .04em;
	color: var(--muted);
	border-bottom: 1px solid var(--rule);
	padding-bottom: .6rem;
	margin: 3rem 0 1.25rem;
}

/* --------------------------------------------------------------------- toc */

.antolgy-toc { list-style: none; margin: 0; padding: 0; }

.antolgy-toc__item {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: .25rem 1rem;
	align-items: baseline;
	padding: .85rem 0;
	border-bottom: 1px solid var(--rule);
}

.antolgy-toc__part {
	margin-top: 2rem;
	font-size: .82rem;
	letter-spacing: .12em;
	color: var(--gold);
	border-bottom: none;
	padding-bottom: .25rem;
}

.antolgy-toc__title {
	color: inherit;
	text-decoration: none;
	font-size: 1.05em;
}

.antolgy-toc__title:hover { text-decoration: underline; text-underline-offset: .3em; }

.antolgy-toc__peek {
	grid-column: 1;
	color: var(--muted);
	font-size: .85em;
	line-height: 1.7;
}

.antolgy-toc__meta {
	grid-row: 1;
	grid-column: 2;
	display: flex;
	align-items: center;
	gap: .6rem;
	color: var(--muted);
	font-size: .78em;
	white-space: nowrap;
}

.antolgy-toc__bar {
	display: block;
	width: 3rem;
	height: 2px;
	background: var(--rule);
	position: relative;
}

.antolgy-toc__bar::after {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: calc(var(--len) * 100%);
	background: var(--gold);
}

.antolgy-toc__item.is-current .antolgy-toc__title { color: var(--gold); font-weight: 600; }
.antolgy-toc__item.is-locked { opacity: .45; }
.antolgy-toc__item.is-read .antolgy-toc__title { opacity: .55; }
.antolgy-toc__lock { color: var(--gold); }

/* ------------------------------------------------------------------ portico */

.antolgy-portico { position: relative; padding-bottom: 5rem; }

.antolgy-bar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .7rem clamp(1rem, 4vw, 2.5rem);
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--rule);
	font-size: .85rem;
}

.antolgy-bar__book { color: inherit; text-decoration: none; font-weight: 600; }
.antolgy-bar__tools { display: flex; gap: .35rem; }

.antolgy-bar__button {
	background: none;
	border: 1px solid var(--rule);
	border-radius: 999px;
	padding: .3rem 1rem;
	color: var(--muted);
	cursor: pointer;
	font: inherit;
	font-size: .82em;
}

.antolgy-bar__button:hover,
.antolgy-bar__button[aria-expanded="true"] { color: var(--ink); border-color: var(--gold); }

.antolgy-bar__progress {
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	height: 2px;
}

.antolgy-bar__progress-chapter,
.antolgy-bar__progress-book {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	display: block;
}

.antolgy-bar__progress-book { width: calc(var(--book-progress, 0) * 100%); background: var(--rule); }
.antolgy-bar__progress-chapter { width: calc(var(--chapter-progress, 0) * 100%); background: var(--gold); z-index: 1; }

.antolgy-panel {
	position: sticky;
	top: 3rem;
	z-index: 19;
	max-height: 60vh;
	overflow-y: auto;
	padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}

.antolgy-panel[hidden] { display: none; }

.antolgy-settings__group {
	border: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	align-items: center;
	gap: .4rem;
	flex-wrap: wrap;
}

.antolgy-settings__group legend {
	float: inline-start;
	width: 5rem;
	color: var(--muted);
	font-size: .82rem;
}

.antolgy-settings__group button {
	border: 1px solid var(--rule);
	background: none;
	color: inherit;
	border-radius: 999px;
	padding: .3rem 1rem;
	cursor: pointer;
	font: inherit;
	font-size: .85rem;
}

.antolgy-settings__group button.is-active { border-color: var(--gold); color: var(--gold); }
.antolgy-settings__group [data-antolgy-size="s"] { font-size: .75rem; }
.antolgy-settings__group [data-antolgy-size="l"] { font-size: 1.15rem; }

/* -------------------------------------------------------------------- spine */

.antolgy-spine {
	position: fixed;
	inset-inline-end: .5rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 15;
	display: none;
	flex-direction: column;
	gap: 4px;
	opacity: .5;
	transition: opacity .25s ease;
}

.antolgy-spine:hover { opacity: 1; }
.antolgy-portico.is-scrolling .antolgy-spine { opacity: .12; }

@media (min-width: 64rem) { .antolgy-spine { display: flex; } }

.antolgy-spine__tick {
	display: block;
	height: calc(4px + var(--len, .5) * 22px);
	width: 3px;
	background: var(--rule);
	border-radius: 2px;
	position: relative;
}

a.antolgy-spine__tick:hover { background: var(--muted); width: 6px; }
.antolgy-spine__tick.is-current { background: var(--gold); width: 6px; }
.antolgy-spine__tick.is-locked { opacity: .3; }

.antolgy-spine__label {
	position: absolute;
	inset-inline-end: 1rem;
	top: 50%;
	transform: translateY(-50%);
	background: var(--ink);
	color: var(--paper);
	font-size: .72rem;
	padding: .2rem .6rem;
	border-radius: .3rem;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
}

a.antolgy-spine__tick:hover .antolgy-spine__label { opacity: 1; }

/* ------------------------------------------------------------------ chapter */

.antolgy-chapter {
	max-width: var(--measure);
	margin-inline: auto;
	padding: clamp(2.5rem, 8vw, 5.5rem) 1.25rem 0;
}

.antolgy-chapter__head { margin-bottom: clamp(2rem, 6vw, 3.5rem); text-align: center; }

.antolgy-chapter__part {
	margin: 0 0 .6rem;
	color: var(--gold);
	font-size: .8rem;
	letter-spacing: .16em;
}

.antolgy-chapter__title {
	font-size: clamp(1.8rem, 5vw, 2.9rem);
	line-height: 1.25;
	margin: 0 0 .8rem;
}

.antolgy-chapter__meta { margin: 0; color: var(--muted); font-size: .82rem; }
.antolgy-chapter__audio { width: 100%; margin-top: 1.5rem; }

.antolgy-body { line-height: var(--leading); }

.antolgy-body p {
	margin: 0 0 1.6em;
	text-align: justify;
	text-justify: inter-word;
	hyphens: none;
}

/*
 * No drop caps. Arabic is cursive: ::first-letter tears the ه off هذا and leaves
 * both in isolated forms — a word broken in half. The theme already sets
 * dropCap:false in theme.json; the reader honours the same decision. The opening
 * paragraph earns its emphasis from size and colour instead.
 */
.antolgy-body > p:first-of-type,
.antolgy-body .is-style-antolgy-lead {
	font-size: 1.08em;
	color: color-mix(in srgb, var(--ink) 88%, var(--gold));
}

.antolgy-body > p:first-of-type::first-letter,
.antolgy-body .is-style-antolgy-lead::first-letter {
	font-size: inherit;
	float: none;
	color: inherit;
}

.antolgy-body h2,
.antolgy-body h3 { margin: 2.6em 0 .8em; line-height: 1.35; }

.antolgy-body img { max-width: 100%; height: auto; border-radius: .5rem; }
.antolgy-body figure { margin: 2.5em 0; }

.antolgy-body a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: .25em; }

/* Reading comfort: skip work on paragraphs far off screen. */
.antolgy-body > * { content-visibility: auto; contain-intrinsic-size: auto 8rem; }

/* --------------------------------------------------------- content styles */

.is-style-antolgy-dedication,
.is-style-antolgy-epigraph {
	border: none;
	margin: 3.5em auto;
	max-width: 26rem;
	text-align: center;
	color: var(--muted);
	font-style: italic;
	padding: 0;
}

.is-style-antolgy-dedication p,
.is-style-antolgy-epigraph p { text-align: center; margin-bottom: .8em; }

.is-style-antolgy-epigraph cite {
	display: block;
	font-style: normal;
	font-size: .82em;
	letter-spacing: .04em;
	color: var(--gold);
}

.is-style-antolgy-scene {
	border: none;
	height: auto;
	margin: 3em auto;
	max-width: 8rem;
	overflow: visible;
	background: none;
	opacity: 1;
}

.is-style-antolgy-scene::before {
	content: "❊   ❊   ❊";
	display: block;
	text-align: center;
	color: var(--gold);
	font-size: .8rem;
	letter-spacing: .3em;
}

.antolgy-note {
	border-inline-start: 2px solid var(--gold);
	padding: .2rem 1.25rem;
	margin: 2.5em 0;
	color: var(--muted);
	font-size: .93em;
}

.antolgy-note--caution { border-color: #b8737a; }
.antolgy-note--unknown { border-style: dashed; }

/* Verse */

.antolgy-verse {
	margin: 2.5em auto;
	font-size: 1.02em;
	line-height: 2.2;
}

.antolgy-verse--free {
	background: none;
	border: none;
	padding: 0;
	white-space: pre-wrap;
	text-align: center;
	font-family: inherit;
}

.antolgy-verse__line {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 2.5rem;
	margin: 0 0 .35em;
	text-align: initial;
}

.antolgy-verse__line--single { display: block; text-align: center; }
.antolgy-hemistich--a { text-align: start; }
.antolgy-hemistich--b { text-align: end; }

@media (max-width: 40rem) {
	.antolgy-verse__line { grid-template-columns: 1fr; gap: 0; text-align: center; }
	.antolgy-hemistich--a,
	.antolgy-hemistich--b { text-align: center; }
	.antolgy-hemistich--b { color: var(--muted); }
}

/* Parallel text */

.antolgy-parallel { margin: 2.5em 0; gap: 2.5rem; }

.antolgy-parallel__col { position: relative; padding-top: 1.75rem; }

.antolgy-parallel__col::before {
	content: attr(data-label);
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	font-size: .72rem;
	letter-spacing: .14em;
	color: var(--gold);
}

.antolgy-parallel__col--source { direction: ltr; text-align: start; }
.antolgy-parallel__col--source p,
.antolgy-parallel__col--source .antolgy-verse--free { text-align: start; }

/* Book card: label / value pairs, not a stack of orphan lines. */

.antolgy-threshold__facts dl {
	margin: 0;
	display: grid;
	gap: 0;
}

.antolgy-threshold__facts dl > div {
	display: grid;
	grid-template-columns: 9rem 1fr;
	gap: 1rem;
	padding: .65rem 0;
	border-bottom: 1px solid var(--rule);
}

.antolgy-threshold__facts dt { color: var(--muted); font-size: .88rem; }
.antolgy-threshold__facts dd { margin: 0; }

/* Print-edition page marker */

.antolgy-printpage {
	display: inline-block;
	font-size: .62em;
	color: var(--muted);
	opacity: .55;
	letter-spacing: .04em;
	user-select: none;
	vertical-align: .35em;
	margin-inline-end: .35em;
	white-space: nowrap;
}

@media (min-width: 72rem) {
	.antolgy-printpage {
		position: absolute;
		inset-inline-start: calc(var(--measure) * -1 + 100% + 1.5rem);
		margin: 0;
	}
}

/* Footnotes, dressed as sidenotes */

.antolgy-body .wp-block-footnotes { display: none; }

.antolgy-body sup.fn a {
	text-decoration: none;
	color: var(--gold);
	font-size: .68em;
	padding-inline: .15em;
}

.antolgy-sidenote {
	display: block;
	font-size: .82em;
	line-height: 1.75;
	color: var(--muted);
	border-inline-start: 2px solid var(--gold);
	padding-inline-start: .8rem;
	margin: .5rem 0 1.25rem;
}

@media (min-width: 72rem) {
	.antolgy-chapter { position: relative; }

	.antolgy-sidenote {
		position: absolute;
		inset-inline-end: calc(100% + 2.5rem);
		width: 13rem;
		margin: 0;
		border: none;
		padding-inline-start: 0;
		border-top: 1px solid var(--rule);
		padding-top: .4rem;
	}
}

.antolgy-sidenote__number { color: var(--gold); margin-inline-end: .35em; font-size: .9em; }

/* --------------------------------------------------------------- gate, nav */

.antolgy-body--teaser {
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.antolgy-gate {
	max-width: var(--measure);
	margin: 2rem auto 0;
	padding: 2.5rem 1.5rem 3rem;
	text-align: center;
	border-top: 1px solid var(--rule);
}

.antolgy-gate__cover { width: 9rem; height: auto; border-radius: .6rem; box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .2); }
.antolgy-gate__title { font-size: 1.5rem; margin: 1.5rem 0 .5rem; }
.antolgy-gate__text { color: var(--muted); margin: 0 0 1.5rem; }

.antolgy-gate__cta {
	display: inline-block;
	background: var(--dark);
	color: var(--paper);
	padding: .8rem 2.2rem;
	border-radius: 999px;
	text-decoration: none;
}

.antolgy-license {
	margin: 2.5rem 0 0;
	color: var(--muted);
	font-size: .78rem;
	text-align: center;
	letter-spacing: .02em;
}

.antolgy-license__date { margin-inline-start: .5rem; opacity: .7; }

.antolgy-chapter__foot {
	max-width: var(--measure);
	margin: 3.5rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
	text-align: center;
	font-size: .85rem;
	color: var(--muted);
}

.antolgy-chapter__credits a { color: inherit; }

.antolgy-nav {
	max-width: 52rem;
	margin: 3.5rem auto 0;
	padding-inline: 1.25rem;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 1rem;
	align-items: center;
}

.antolgy-nav__link {
	text-decoration: none;
	color: inherit;
	display: block;
	padding: 1rem;
	border: 1px solid var(--rule);
	border-radius: .75rem;
	transition: border-color .18s ease;
}

.antolgy-nav__link:hover { border-color: var(--gold); }
.antolgy-nav__link--empty { border: none; }
.antolgy-nav__link--next { text-align: end; }
.antolgy-nav__dir { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .1em; }
.antolgy-nav__title { display: block; margin-top: .25rem; }
.antolgy-nav__home { color: var(--muted); text-decoration: none; font-size: .82rem; }

/* --------------------------------------------------------------- afterword */

.antolgy-afterword {
	max-width: 46rem;
	margin: 5rem auto 0;
	padding: 2.5rem 1.25rem 0;
	border-top: 1px solid var(--rule);
}

.antolgy-afterword__title { font-size: 1.2rem; margin: 0 0 1.5rem; }
.antolgy-afterword__subtitle { font-size: .95rem; color: var(--muted); margin: 2rem 0 .75rem; }
.antolgy-afterword__people { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.antolgy-afterword__person {
	display: flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
	color: inherit;
}

.antolgy-afterword__person img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.antolgy-afterword__books { list-style: none; margin: 0; padding: 0; }
.antolgy-afterword__books li { padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.antolgy-afterword__books a { color: inherit; }

/* --------------------------------------------------------------- selection */

.antolgy-selection {
	position: fixed;
	z-index: 40;
	display: flex;
	gap: .25rem;
	padding: .25rem;
	background: var(--ink);
	border-radius: .5rem;
	box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .3);
	transform: translate(-50%, -130%);
}

.antolgy-selection[hidden] { display: none; }

.antolgy-selection button,
.antolgy-selection a {
	background: none;
	border: none;
	color: var(--paper);
	font: inherit;
	font-size: .8rem;
	padding: .3rem .8rem;
	cursor: pointer;
	border-radius: .35rem;
	text-decoration: none;
}

.antolgy-selection button:hover,
.antolgy-selection a:hover { background: rgba(255, 255, 255, .12); }

.antolgy-orphan { max-width: 40rem; margin: 5rem auto; text-align: center; color: var(--muted); }

/* --------------------------------------------------------- view transitions */

@media (prefers-reduced-motion: no-preference) {
	::view-transition-old(root) { animation: antolgy-fade-out .18s ease both; }
	::view-transition-new(root) { animation: antolgy-fade-in .28s ease both; }
}

@keyframes antolgy-fade-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes antolgy-fade-in { from { opacity: 0; transform: translateY(10px); } }

/* Editor: keep the reading styles legible inside the block editor too. */
.editor-styles-wrapper .antolgy-verse__line { display: grid; grid-template-columns: 1fr 1fr; }

/* ===========================================================================
 * بطاقة فهرس الكتاب — the book index card
 *
 * Shaped like a book, not like a post: a cover with a spine, a credit line, the
 * book's measurements, and — once the reader has begun — their own progress.
 * ======================================================================== */

.antolgy-card-grid {
	display: grid;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	grid-template-columns: 1fr;
	margin: 2rem 0 0;
}

/*
 * min() on the track size is what stops a 20rem minimum from forcing the grid
 * wider than a 390px phone — the overflow that pushed the whole page, footer
 * included, off to one side.
 */
.antolgy-card-grid { grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); }

.antolgy-card {
	--paper: #f5f3ef;
	--ink: #1a1a1a;
	--muted: #6b6b6b;
	--gold: #c9a85c;
	--dark: #1a1a2e;
	--rule: rgba(26, 26, 26, .12);
	--field: var(--antolgy-section, #1a1a2e);

	display: grid;
	grid-template-columns: 7.5rem 1fr;
	gap: 1.25rem;
	align-items: start;
	padding: 1.25rem;
	background: color-mix(in srgb, var(--paper) 55%, #fff);
	border: 1px solid var(--rule);
	border-radius: .75rem;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.antolgy-card:hover {
	border-color: var(--gold);
	transform: translateY(-2px);
	box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .07);
}

.antolgy-card--compact { grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1rem; }

@media (max-width: 26rem) {
	.antolgy-card { grid-template-columns: 5.5rem 1fr; gap: .9rem; padding: .9rem; }
	.antolgy-card--compact { grid-template-columns: 4rem 1fr; }
}

/* Nothing inside a card may push it wider than its column. */
.antolgy-card,
.antolgy-card * { min-width: 0; }
.antolgy-card__blurb,
.antolgy-card__credits,
.antolgy-card__title { overflow-wrap: anywhere; }

/* The cover, with a spine along its binding edge. */

.antolgy-card__cover {
	position: relative;
	display: block;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: var(--field);
	box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .18);

	/* Tight radius on the bound edge, generous on the fore-edge — logical, so an
	   Arabic book binds on the right and a Latin one on the left. */
	border-start-start-radius: .2rem;
	border-end-start-radius: .2rem;
	border-start-end-radius: .55rem;
	border-end-end-radius: .55rem;
}

.antolgy-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/*
 * The binding sits on the inline-start edge: the right of an Arabic book, the
 * left of a Latin one. Getting this backwards is the visual equivalent of
 * shelving a book upside down.
 */
.antolgy-card__spine {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: .55rem;
	z-index: 2;
	background: linear-gradient(
		to right,
		rgba(0, 0, 0, .3),
		rgba(0, 0, 0, .05) 40%,
		rgba(255, 255, 255, .25) 68%,
		rgba(0, 0, 0, .18)
	);
}

/* Typographic cover for a book with no image: its own title, set on the field. */

.antolgy-card__facade {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem .85rem 1rem 1.5rem;
	padding-inline-start: 1.5rem;
	background:
		radial-gradient(circle at 70% 12%, rgba(255, 255, 255, .13), transparent 62%),
		var(--field);
}

.antolgy-card__facade-title {
	color: #fff;
	font-size: clamp(.9rem, 2.1vw, 1.15rem);
	font-weight: 600;
	line-height: 1.65;
	text-align: center;
	text-wrap: balance;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
	border-block: 1px solid rgba(255, 255, 255, .45);
	padding-block: .55rem;
}

.antolgy-card--compact .antolgy-card__facade-title {
	font-size: .72rem;
	padding-block: .3rem;
	line-height: 1.45;
}

/* Identity */

.antolgy-card__body { min-width: 0; }

.antolgy-card__genre {
	margin: 0 0 .35rem;
	font-size: .68rem;
	letter-spacing: .14em;
	color: var(--gold);
}

.antolgy-card__title {
	margin: 0 0 .3rem;
	font-size: clamp(1.05rem, 2.5vw, 1.35rem);
	line-height: 1.35;
}

.antolgy-card--compact .antolgy-card__title { font-size: 1rem; }

.antolgy-card__title a {
	color: inherit;
	text-decoration: none;
}

.antolgy-card__title a:hover { text-decoration: underline; text-underline-offset: .25em; }

.antolgy-card__subtitle {
	margin: 0 0 .5rem;
	color: var(--muted);
	font-size: .85rem;
}

.antolgy-card__credits {
	margin: 0 0 .6rem;
	font-size: .85rem;
}

.antolgy-card__credits a { color: inherit; text-decoration-color: var(--gold); }
.antolgy-card__credits .antolgy-credit__role { color: var(--muted); font-size: .78em; }
.antolgy-card__credits .antolgy-credit__sep { margin-inline: .45rem; opacity: .35; }

.antolgy-card__blurb {
	margin: 0 0 .7rem;
	color: var(--muted);
	font-size: .88rem;
	line-height: 1.85;
}

.antolgy-card__shape,
.antolgy-card__imprint {
	margin: 0 0 .35rem;
	color: var(--muted);
	font-size: .78rem;
}

.antolgy-card__imprint { opacity: .8; }

/* The reader's own progress — filled in by JS, absent for a first-time visitor. */

.antolgy-card__progress {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin: .85rem 0 .25rem;
}

.antolgy-card__progress[hidden] { display: none; }

.antolgy-card__progress-bar {
	flex: 1;
	height: 3px;
	background: var(--rule);
	border-radius: 2px;
	overflow: hidden;
}

.antolgy-card__progress-bar span {
	display: block;
	height: 100%;
	width: calc(var(--p, 0) * 100%);
	background: var(--gold);
	transition: width .4s ease;
}

.antolgy-card__progress-label {
	font-size: .72rem;
	color: var(--gold);
	white-space: nowrap;
}

.antolgy-card__cta {
	display: inline-block;
	margin-top: .75rem;
	padding: .5rem 1.4rem;
	border: 1px solid var(--dark);
	border-radius: 999px;
	color: var(--dark);
	text-decoration: none;
	font-size: .82rem;
	transition: background .18s ease, color .18s ease;
}

.antolgy-card__cta:hover { background: var(--dark); color: var(--paper); }
.antolgy-card__cta.is-resume { border-color: var(--gold); color: var(--gold); }
.antolgy-card__cta.is-resume:hover { background: var(--gold); color: #fff; }

.antolgy-card__license {
	margin: .85rem 0 0;
	font-size: .7rem;
	color: var(--muted);
	opacity: .75;
}

/* ------------------------------------------------------------------- shelf */

.antolgy-shelf {
	max-width: 62rem;
	margin-inline: auto;
	padding: clamp(2.5rem, 7vw, 5rem) 1.25rem 5rem;
	color: #1a1a1a;
}

.antolgy-shelf__head { max-width: 34rem; margin-bottom: 1rem; }

.antolgy-shelf__title {
	font-size: clamp(2rem, 6vw, 3.25rem);
	margin: 0 0 .6rem;
	line-height: 1.2;
}

.antolgy-shelf__lede {
	margin: 0;
	color: #6b6b6b;
	line-height: 1.9;
}

.antolgy-shelf__pagination {
	margin-top: 3rem;
	display: flex;
	gap: .5rem;
	justify-content: center;
}

.antolgy-shelf__pagination .page-numbers {
	padding: .35rem .8rem;
	border: 1px solid rgba(26, 26, 26, .12);
	border-radius: .4rem;
	text-decoration: none;
	color: inherit;
	font-size: .85rem;
}

.antolgy-shelf__pagination .current { border-color: #c9a85c; color: #c9a85c; }
