/* Books template: Santos's own book, then the list he recommends. */

.book-lead {
	align-items: center;
	row-gap: clamp(28px, 3.4vw, 44px);
}

.book-lead__cover {
	grid-column: 2 / span 4;
	perspective: 1500px;
}

@media (hover: hover) and (pointer: fine) {
	.book-lead__cover:hover .book3d {
		transform: rotateY(-6deg);
	}
}

.book-lead__text {
	grid-column: 7 / span 6;
}

.book-lead__text .opener {
	font-size: clamp(2.4rem, 5.2vw, 4.6rem);
}

@media (max-width: 800px) {
	.book-lead__cover {
		grid-column: 1 / -1;
		justify-self: start;
		width: min(64%, 300px);
	}

	.book-lead__text {
		grid-column: 1 / -1;
	}
}

/* The line under the button: where it goes and what happens next */

.buy-note {
	max-width: 46ch;
	font-size: var(--t-small);
	line-height: 1.5;
	color: var(--bone-3);
}

/* Jump links to the four lists */

.book-jump {
	--cluster: 10px 22px;
	margin-top: clamp(20px, 2.4vw, 30px);
}

.book-jump a {
	font-size: var(--t-small);
}

.book-note {
	max-width: var(--measure);
	font-family: var(--serif);
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--bone-2);
}

.book-disclosure {
	margin-top: clamp(18px, 2.4vw, 30px);
	max-width: 56ch;
	font-size: var(--t-small);
	line-height: 1.5;
	color: var(--bone-3);
}

/* One of Santos's lists */

.booklist {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: clamp(24px, 3.4vw, 56px);
}

.booklist__item {
	break-inside: avoid;
	display: grid;
	grid-template-columns: clamp(64px, 6vw, 84px) minmax(0, 1fr);
	gap: clamp(14px, 1.6vw, 22px);
	align-items: start;
	padding-block: clamp(14px, 1.6vw, 20px);
	border-top: 1px dashed var(--line);
}

.booklist__cover {
	display: block;
	aspect-ratio: 2 / 3;
	background: var(--ink-2, rgb(127 127 127 / .12));
	box-shadow: 0 10px 22px -12px rgb(0 0 0 / .55), 0 1px 0 rgb(255 255 255 / .06) inset;
	transform-origin: 0 50%;
	transition: transform var(--mid) var(--ease), box-shadow var(--mid) ease;
}

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

.booklist__item:hover .booklist__cover {
	transform: perspective(600px) rotateY(-14deg) translateY(-3px);
	box-shadow: 0 18px 30px -14px rgb(0 0 0 / .6), 0 1px 0 rgb(255 255 255 / .06) inset;
}

.booklist__blank {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border: 1px solid var(--line);
	color: var(--gold);
}

.booklist__text {
	display: block;
	min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
	.booklist__item:hover .booklist__cover {
		transform: none;
	}
}

.booklist__title {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

.booklist__author {
	display: block;
	margin-top: 3px;
	font-family: var(--serif);
	font-style: italic;
	font-size: .9375rem;
	line-height: 1.35;
	color: var(--bone-2);
}

.booklist__links {
	--cluster: 6px 18px;
	margin-top: 8px;
}

.booklist__links .link {
	font-size: var(--t-small);
	font-weight: 600;
}

.booklist__none {
	display: block;
	margin-top: 8px;
	font-size: var(--t-small);
	color: var(--bone-3);
}

@media (max-width: 780px) {
	.booklist {
		columns: 1;
	}
}

/* On a wide screen the text takes the width it is given, in two columns, rather than one slim column with the page empty beside it */

@media (min-width: 900px) {
	.split__main:has(> .book-note) {
		grid-column: 3 / -1;
	}

	.book-note {
		max-width: none;
		columns: 2;
		column-gap: clamp(28px, 3.4vw, 56px);
	}

	.book-note > * {
		break-inside: avoid;
	}
}

