/* ==========================================================================
   Fitxa Autor (tpl-fitxa-autor) — frame f80oKd
   ========================================================================== */

/* Breadcrumb */
.fautor-crumb {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 24px var(--pad-x) 0;
	font-family: var(--font-ui);
	font-size: 13px;
	color: var(--ink-faint);
}
.fautor-crumb a { color: var(--ink-faint); }
.fautor-crumb a:hover { color: var(--wine); }
.fautor-crumb__here { color: var(--ink); font-weight: 600; }

/* AuthorHero */
.fautor-hero {
	display: grid;
	grid-template-columns: 420px 1fr;
	gap: 56px;
	align-items: start;
	padding: 40px var(--pad-x) 56px;
}
.fautor-hero__photo {
	aspect-ratio: 420 / 520;
	border-radius: var(--radius);
	background: var(--line);
	overflow: hidden;
}
.fautor-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.fautor-hero__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.fautor-hero__name {
	font-size: 46px;
	letter-spacing: -1px;
}
/* Bio: paràgrafs de veritat. Abans es duplicava el wpautop i eixien <p> buits,
   que era el que deixava aquells forats enormes entre línies. */
.fautor-hero__bio {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	max-width: 68ch;
}
.fautor-hero__bio p {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.62;
	color: var(--ink-soft);
}
.fautor-hero__bio p:empty { display: none; }
/* Sense foto: isotip, com a les targetes. */
.fautor-hero__photo--empty { display: flex; align-items: center; justify-content: center; background: var(--paper-2); }
.fautor-hero__photo--empty img { width: 42%; height: auto; object-fit: contain; opacity: .42; }
.fautor-hero__data {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 8px;
}
.fautor-pill {
	background: var(--paper-2);
	border: 1px solid var(--line);
	border-radius: 100px;
	padding: 7px 14px;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 13px;
	color: var(--ink-soft);
}

/* AuthorBooks — rejilla de 4 llibres */
.fautor-books-sec { padding-top: 8px; }
.fautor-books-sec .section__title { letter-spacing: -0.5px; }
.fautor-books {
	gap: 40px 32px;
}

/* AuthorCTA — franja fosca */
.fautor-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
	padding-top: 80px;
	padding-bottom: 80px;
}
.fautor-cta__title {
	max-width: 760px;
	font-size: 38px;
	line-height: 1.16;
	letter-spacing: -0.5px;
	color: var(--paper);
}
.fautor-cta__text {
	max-width: 620px;
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink-faint);
}

@media (max-width: 1024px) {
	.fautor-hero { grid-template-columns: 320px 1fr; gap: 36px; }
	.fautor-books { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.fautor-hero { grid-template-columns: 1fr; }
	.fautor-hero__photo { aspect-ratio: 4 / 3; }
	.fautor-hero__name { font-size: 34px; }
	.fautor-books { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.fautor-books .book-card__cover { height: auto; aspect-ratio: 220 / 300; }
	.fautor-cta__title { font-size: 28px; }
}
