/* Reusable components. */

/* ---- Images ---- */
.media {
	position: relative;
	display: block;
	overflow: hidden;
	background: linear-gradient(150deg, #3a3a3a, #161616);
}

.media__img,
.media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.media__fallback {
	position: absolute;
	inset: 0;
	background: linear-gradient(150deg, #3a3a3a, #161616);
}

/* ---- Buttons and icons ---- */
.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.icon-btn--light {
	background: #fff;
	color: var(--ink);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	font-family: var(--font-display);
	font-stretch: var(--stretch-ui);
	font-weight: 800;
	font-size: 16px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.btn--accent {
	background: var(--accent);
	color: #fff;
}

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

/* ---- Text bits ---- */
.tag {
	display: block;
	font-family: var(--font-display);
	font-stretch: var(--stretch-ui);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-ink);
}

.tag:empty {
	display: none;
}

.tag--solid {
	display: inline-block;
	padding: 5px 9px;
	background: var(--accent);
	color: #fff;
}

.meta {
	display: block;
	font-size: 12px;
	color: var(--muted);
}

.band--dark .meta {
	color: #d4d4d4;
}

.more {
	font-size: 14px;
	font-weight: 600;
	color: var(--accent-ink);
}

.band--dark .more {
	color: #fff;
}

/* ---- Breadcrumbs ---- */
.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	font-family: var(--font-display);
	font-stretch: var(--stretch-ui);
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.crumbs a:hover {
	text-decoration: underline;
}

/* ---- Section titles ---- */
.section-title {
	font-family: var(--font-display);
	font-weight: 900;
	font-stretch: var(--stretch-ui);
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.section-title--rule {
	margin: 0 0 4px;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--ink);
	font-size: 24px;
}

.section-title--mark {
	padding-left: 14px;
	border-left: 8px solid var(--accent);
	font-size: 34px;
}

.section-title--band {
	font-size: 44px;
	font-stretch: var(--stretch-title);
}

.block__head--accent {
	border-bottom-color: var(--accent);
}

.block__head .section-title--mark {
	margin: 0;
}

/* ---- Hero ---- */
.hero {
	position: relative;
	display: block;
	min-height: 600px;
	overflow: hidden;
	background: linear-gradient(160deg, #2a2a2a, #111 55%, #3b0a10);
	color: #fff;
}

.hero__media {
	position: absolute;
	inset: 0;
	background: none;
}

.hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 70%);
}

.hero__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: block;
	padding: 36px;
}

.hero__title {
	margin: 14px 0 12px;
	font-weight: 900;
	font-stretch: var(--stretch-title);
	font-size: clamp(40px, 5.6vw, 76px);
	line-height: 0.96;
	letter-spacing: -0.01em;
}

.hero__meta {
	display: block;
	font-size: 14px;
	color: #ececec;
}

@media (max-width: 700px) {
	.hero {
		min-height: 480px;
	}
	.hero__body {
		padding: 20px 16px;
	}
}

/* ---- Cards ---- */
.card-side {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
}

.card-side__media {
	flex: 0 0 112px;
	height: 112px;
}

.card-side__body {
	display: block;
	min-width: 0;
}

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

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

.card-grid {
	display: block;
}

.card-grid__media {
	aspect-ratio: 16 / 10;
	margin-bottom: 14px;
}

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

.card-grid .meta {
	margin-top: 10px;
}

.card-portrait {
	display: block;
}

.card-portrait__media {
	aspect-ratio: 4 / 5;
	margin-bottom: 16px;
}

.card-portrait__title {
	display: block;
	font-family: var(--font-display);
	font-stretch: var(--stretch-title);
	font-weight: 900;
	font-size: 34px;
	line-height: 1.02;
	text-wrap: balance;
}

.card-portrait .meta {
	margin-top: 10px;
}

.card-row {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.card-row__media {
	flex: 0 0 140px;
	aspect-ratio: 16 / 10;
}

.card-row__body {
	display: block;
	min-width: 0;
}

.card-row__title {
	display: block;
	font-family: var(--font-display);
	font-stretch: var(--stretch-ui);
	font-weight: 800;
	font-size: 21px;
	line-height: 1.12;
	text-wrap: balance;
}

.card-row .meta {
	margin-top: 6px;
}

/* ---- Ads ---- */
.ad {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-inline: auto;
	background: var(--soft);
	text-align: center;
}

.ad__tag {
	display: block;
	padding: 4px 0;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.ad__placeholder {
	padding: 12px;
	border: 1px dashed #8a8a8a;
	flex: 1 1 auto;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.ad:has(.ad__placeholder) {
	background: transparent;
}

.ad--in-article {
	max-width: 336px;
	margin-block: 32px;
}

.ad--sidebar {
	max-width: 300px;
}

/* ---- Search form ---- */
.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.search-form__input {
	flex: 1 1 240px;
	min-height: 52px;
	padding: 0 18px;
	border: 2px solid var(--ink);
	border-radius: 0;
	background: #fff;
	color: var(--ink);
	font-size: 17px;
}

.search-form .btn {
	min-height: 52px;
}

/* ---- Newsletter ---- */
.newsletter {
	margin-top: 40px;
	background: var(--accent);
	color: #fff;
}

.newsletter__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	padding-block: 48px;
}

.newsletter__title {
	flex: 1 1 380px;
	font-weight: 900;
	font-stretch: var(--stretch-title);
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1;
	text-transform: uppercase;
}

.newsletter__form {
	flex: 1 1 380px;
}

.newsletter__todo {
	padding: 12px 16px;
	border: 1px dashed #fff;
	font-size: 14px;
}

/* ---- Privacy notice ---- */
.privacy-notice {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 900;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	max-width: 440px;
	padding: 16px 18px;
	background: var(--ink);
	color: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
	font-size: 14px;
	line-height: 1.45;
}

.privacy-notice[hidden] {
	display: none;
}

.privacy-notice__text {
	flex: 1 1 220px;
}

.privacy-notice a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.privacy-notice__btn {
	min-height: 44px;
	border: 2px solid #fff;
}

/* Leave room for the mobile anchor ad that auto ads can place at the bottom. */
@media (max-width: 700px) {
	.privacy-notice {
		right: 16px;
		bottom: 72px;
		max-width: none;
	}
}

/* ---- Pagination (fallback) ---- */
.navigation.pagination {
	margin-top: 36px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

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

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