/* Archives, search results and author pages. */

/* ---- Page headers ---- */
.page-hero {
	padding-block: 44px 40px;
}

.page-hero--dark {
	background: var(--ink);
	color: #fff;
}

.page-hero--soft {
	background: var(--soft);
	border-bottom: 1px solid var(--line);
}

.page-hero__title {
	margin: 10px 0;
	font-weight: 900;
	font-stretch: var(--stretch-title);
	font-size: clamp(56px, 10vw, 120px);
	line-height: 0.9;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.page-hero__title--sm {
	font-size: clamp(36px, 5.2vw, 64px);
	line-height: 0.98;
}

.page-hero__desc {
	max-width: 640px;
	font-size: 17px;
	line-height: 1.5;
	color: var(--muted);
}

.page-hero--dark .page-hero__desc {
	color: #d4d4d4;
}

.page-hero__search {
	max-width: 760px;
	margin-top: 18px;
}

.crumbs--light {
	color: #bdbdbd;
}

.crumbs--light a {
	color: #fff;
}

.crumbs a:first-child {
	color: inherit;
}

.page-hero--soft .crumbs a:first-child {
	color: var(--ink);
}

/* ---- Archive layout ---- */
.archive {
	padding-top: 32px;
	padding-bottom: 24px;
}

.featured-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 28px;
	margin-bottom: 12px;
}

.archive-body {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	margin-top: 20px;
}

.archive-main {
	flex: 1 1 640px;
	min-width: 0;
}

.archive-aside {
	flex: 0 1 320px;
	min-width: 0;
}

.archive-aside .ad {
	margin-bottom: 32px;
}

.archive-aside .ad:last-child {
	margin: 32px auto 0;
}

.archive-main .ad {
	margin-block: 28px 8px;
}

.block__head--plain {
	margin-bottom: 24px;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--ink);
}

/* ---- Featured card ---- */
.card-feature {
	position: relative;
	display: block;
	min-height: 420px;
	overflow: hidden;
	background: linear-gradient(150deg, #3a3a3a, #161616);
	color: #fff;
}

.card-feature__media {
	position: absolute;
	inset: 0;
	background: none;
}

.card-feature__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 62%);
}

.card-feature__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: block;
	padding: 24px;
}

.card-feature__title {
	display: block;
	margin-top: 10px;
	font-family: var(--font-display);
	font-stretch: var(--stretch-title);
	font-weight: 900;
	font-size: clamp(30px, 3.4vw, 44px);
	line-height: 0.98;
	text-wrap: balance;
}

.card-feature__meta {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: #e5e5e5;
}

/* ---- List card ---- */
.card-list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}

.card-list__media {
	flex: 0 0 260px;
	max-width: 100%;
	aspect-ratio: 16 / 10;
}

.card-list__body {
	display: block;
	flex: 1 1 260px;
	min-width: 0;
}

.card-list__title {
	display: block;
	margin-top: 6px;
	font-family: var(--font-display);
	font-stretch: var(--stretch-ui);
	font-weight: 800;
	font-size: 28px;
	line-height: 1.06;
	text-wrap: balance;
}

.card-list__summary {
	display: block;
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.5;
	color: #404040;
}

.card-list .meta {
	margin-top: 8px;
}

mark {
	background: #ffe45c;
	color: var(--ink);
}

/* ---- Sidebar menu ---- */
.side-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-display);
	font-stretch: var(--stretch-ui);
	font-weight: 800;
	font-size: 18px;
	text-transform: uppercase;
}

.side-menu a:hover {
	color: var(--accent-ink);
}

/* ---- Search extras ---- */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid #cfcfcf;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
}

.chip:hover {
	background: var(--soft-2);
}

.chip.is-active {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}

.result-count {
	padding-bottom: 10px;
	border-bottom: 3px solid var(--ink);
	font-size: 14px;
	color: #404040;
}

.result-count strong {
	color: var(--ink);
}

.empty {
	padding: 40px 24px;
	border: 1px dashed #8a8a8a;
	text-align: center;
}

.empty__title {
	font-family: var(--font-display);
	font-stretch: var(--stretch-title);
	font-weight: 900;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1;
	text-transform: uppercase;
}

.empty__text {
	max-width: 520px;
	margin: 10px auto 0;
	font-size: 16px;
	line-height: 1.5;
	color: #404040;
}

.empty .search-form {
	max-width: 520px;
	margin: 20px auto 0;
}

/* ---- Author ---- */
.author-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px;
}

.author-hero__avatar {
	flex: 0 0 160px;
	width: 160px;
	height: 160px;
}

.author-hero__img {
	width: 160px;
	height: 160px;
	border-radius: 999px;
	background: var(--ink);
	object-fit: cover;
}

.author-hero__text {
	flex: 1 1 420px;
	min-width: 0;
}

.author-hero__links {
	margin-top: 16px;
}

.author-hero__count {
	flex: 0 0 auto;
	text-align: center;
	padding-inline: 12px;
}

.author-hero__num {
	display: block;
	font-family: var(--font-display);
	font-stretch: var(--stretch-title);
	font-weight: 900;
	font-size: 64px;
	line-height: 1;
}

.author-hero__label {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ---- Pagination ---- */
.pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
}

.pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	background: var(--soft-2);
	font-weight: 600;
}

.pager a.page-numbers:hover {
	background: #e3e3e3;
}

.pager .page-numbers.current {
	background: var(--ink);
	color: #fff;
}

.pager .page-numbers.dots {
	min-width: 0;
	padding: 0 4px;
	background: none;
}

.pager .next.page-numbers {
	padding: 0 20px;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-display);
	font-stretch: var(--stretch-ui);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pager .prev.page-numbers {
	padding: 0 20px;
	font-family: var(--font-display);
	font-stretch: var(--stretch-ui);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (max-width: 700px) {
	.page-hero {
		padding-block: 32px 28px;
	}
	.card-feature {
		min-height: 360px;
	}
	.card-list__media {
		flex-basis: 100%;
	}
	.author-hero__avatar,
	.author-hero__img {
		width: 112px;
		height: 112px;
		flex-basis: 112px;
	}
}
