/* Author Profile -- Bookshelf Editorial direction (Step 4.5B) */

body.single-authors {
	background: #FAF8F3;
}

.author-profile-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 56px 24px;
}

/* -- Hero: photo left, name + bio right -- */
.author-header {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	margin-bottom: 56px;
	padding-bottom: 44px;
	border-bottom: 1px solid #E4DFD3;
}

.author-photo img {
	width: 220px;
	height: 220px;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid #FFFFFF;
	outline: 1px solid #E4DFD3;
	display: block;
}

.author-intro {
	flex: 1;
	min-width: 0;
	padding-top: 4px;
}

.author-name {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 2.5rem;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: #242018;
	margin: 0 0 14px;
}

.author-short-bio {
	font-family: 'Source Sans 3', -apple-system, sans-serif;
	font-weight: 500;
	font-size: 1.05rem;
	color: #6E6659; /* muted secondary text */
	line-height: 1.5;
	margin: 0 0 20px;
}

.author-biography {
	font-family: 'Source Sans 3', -apple-system, sans-serif;
	font-weight: 400;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #242018;
	max-width: 65ch;
}

.author-biography p {
	margin: 0 0 16px;
}

/* -- Books section -- */
.author-books-title {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.65rem;
	color: #242018;
	margin: 0 0 28px;
}

.book-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.book-card {
	background: #FFFFFF;
	border: 1px solid #E9E4D8;
	border-radius: 12px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(36, 32, 24, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.book-card:hover {
	box-shadow: 0 6px 16px rgba(36, 32, 24, 0.09);
	transform: translateY(-2px);
	border-color: #1F5D50;
}

.book-cover {
	display: block;
	margin-bottom: 16px;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 2 / 3;
	background: #FAF8F3;
}

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

.book-title {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.15rem;
	line-height: 1.3;
	margin: 0 0 8px;
}

.book-title a {
	color: #242018;
	text-decoration: none;
	transition: color 0.15s ease;
}

.book-title a:hover,
.book-title a:focus-visible {
	color: #1F5D50;
}

.book-description {
	font-family: 'Source Sans 3', -apple-system, sans-serif;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #6E6659; /* muted secondary text */
	margin: 0 0 18px;
	flex: 1;
	display: none;
}

.book-read-more {
	display: inline-block;
	text-align: center;
	background: #1F5D50;
	color: #FFFFFF;
	font-family: 'Source Sans 3', -apple-system, sans-serif;
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	padding: 11px 20px;
	border-radius: 7px;
	margin-top: auto;
	transition: background 0.18s ease, transform 0.18s ease;
}

.book-read-more:hover,
.book-read-more:focus-visible {
	background: #17473D;
	color: #FFFFFF;
	transform: translateY(-1px);
}

/* Accessible focus rings (keyboard nav) */
.book-title a:focus-visible,
.book-read-more:focus-visible {
	outline: 2px solid #1F5D50;
	outline-offset: 2px;
}

/* -- Responsive: 3 / 2 / 1 columns -- */
@media (max-width: 900px) {
	.book-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 640px) {
	.author-profile-wrap {
		padding: 36px 18px;
	}

	.author-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 24px;
		margin-bottom: 40px;
		padding-bottom: 32px;
	}

	.author-photo img {
		width: 160px;
		height: 160px;
	}

	.author-name {
		font-size: 1.9rem;
	}

	.author-biography {
		max-width: 100%;
	}

	.book-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}