/*!
Theme Name: Bukasov
Theme URI: https://example.com/bukasov
Author: Bukasov
Author URI: https://example.com
Description: Минималистичная чёрно-белая тема для новостного сайта. Однострочная шапка, логотип, меню и выбор города.
Version: 2.3.9
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bukasov
Tags: news, blog, custom-logo, custom-menu, featured-images, translation-ready, one-column
*/

/* -------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------- */

:root {
	--bk-black: #000000;
	--bk-white: #ffffff;
	--bk-ink: #000000;
	--bk-muted: #737373;
	--bk-line: #000000;
	--bk-hair: #ececec;
	--bk-font: "Golos Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--bk-font-head: "Onest", "Golos Text", "Segoe UI", sans-serif;
	--bk-width: 1240px;
	--bk-gap: 1.75rem;
	--bk-pad: 1.25rem;
	--bk-topbar: 2.5rem;
	--bk-ease: 160ms ease;
}

/* -------------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--bk-font);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bk-ink);
	background: var(--bk-white);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.card__title,
.entry__title,
.page-head__title,
.empty-state__title,
.comments__title,
.post-nav__title,
.reader-more__title {
	font-family: var(--bk-font-head);
}

h1,
.site-title,
.entry__title,
.page-head__title,
.empty-state__title,
.comments__title {
	font-weight: 700;
}

h2,
h3,
h4,
h5,
h6,
.card__title,
.post-nav__title {
	font-weight: 600;
}

.card__cat,
.city-control,
.header-nav,
.header-mega,
.primary-menu,
.entry__meta,
.page-head__kicker,
.post-nav__label,
.feed-more__button {
	font-family: var(--bk-font);
	font-weight: 500;
}

.card__cat,
.header-nav .primary-menu > .menu-item > a,
.header-nav .primary-menu > .page_item > a,
.entry__meta,
.page-head__kicker,
.feed-more__button {
	font-weight: 600;
}

img,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */

.skip-link {
	position: absolute;
	left: 0.75rem;
	top: -3rem;
	z-index: 1000;
	padding: 0.5rem 0.75rem;
	background: var(--bk-black);
	color: var(--bk-white);
}

.skip-link:focus {
	top: 0.75rem;
}

.container {
	width: min(100% - (var(--bk-pad) * 2), var(--bk-width));
	margin-inline: auto;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto !important;
	display: block;
	height: auto;
	width: auto;
	padding: 0.5rem 0.75rem;
	background: var(--bk-black);
	color: var(--bk-white);
	z-index: 100000;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 300;
	background: var(--bk-white);
	border-bottom: 1px solid var(--bk-hair);
}

.site-header.is-scrolled:not(:has(.read-progress)) {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.header-bar {
	position: relative;
	z-index: 2;
	background: var(--bk-white);
}

body.has-header-overlay::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 250;
	background: rgba(0, 0, 0, 0.28);
}

.site-header [hidden] {
	display: none !important;
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.header-bar__inner {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	min-height: 5.5rem;
}

.site-branding {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	width: auto;
	max-width: 280px;
	max-height: 52px;
	height: auto;
	object-fit: contain;
}

.site-header .site-title {
	font-size: 0.95rem;
	letter-spacing: -0.02em;
	line-height: 1.15;
	max-width: 9rem;
	font-weight: 600;
}

.header-nav {
	display: none;
	flex: 1 1 auto;
	min-width: 0;
}

.header-tools {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	flex: 0 0 auto;
	align-self: stretch;
}

.header-icons {
	display: flex;
	align-items: stretch;
	border-left: 1px solid var(--bk-hair);
	border-right: 1px solid var(--bk-hair);
}

.header-icon {
	display: grid;
	place-items: center;
	width: 3.65rem;
	height: auto;
	color: var(--bk-black);
}

.header-icon + .header-icon {
	border-left: 1px solid var(--bk-hair);
}

.header-icon:hover {
	color: #555;
}

.header-search-form__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 5.5rem;
}

.header-search-form__icon {
	display: grid;
	place-items: center;
	color: var(--bk-black);
	flex: 0 0 auto;
}

.header-search-form__field {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--bk-black);
	padding: 0.35rem 0;
	font-size: 1.05rem;
	font-weight: 500;
	outline: none;
}

.header-search-form__field::placeholder {
	color: var(--bk-muted);
}

.header-search-form__close {
	font-size: 1.7rem;
	line-height: 1;
	color: #888;
}

.header-search-form__close:hover {
	color: var(--bk-black);
}

.header-live {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 1;
	border-top: 1px solid var(--bk-hair);
	background: var(--bk-white);
	max-height: min(70vh, 28rem);
	overflow: auto;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.header-live__list {
	padding: 0.45rem 0 1rem;
}

.header-live__empty {
	padding: 1.15rem 0 1.35rem;
	color: var(--bk-muted);
}

.search-form {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.search-form__field {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--bk-black);
	background: transparent;
	color: var(--bk-black);
	padding: 0.25rem 0;
	font-size: 0.875rem;
	outline: none;
}

.search-form__field::placeholder {
	color: var(--bk-muted);
}

.search-form__submit {
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	color: var(--bk-black);
}

.city-control {
	display: flex;
	align-items: center;
	margin-left: 0;
	padding: 0 0 0 1rem;
}

.city-control__button {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	max-width: 13rem;
	padding: 0.15rem 0.1rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--bk-black);
}

.city-control__head {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	max-width: 100%;
}

.city-control__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.city-control__weather {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	max-width: 100%;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--bk-muted);
	line-height: 1.2;
}

.city-control__weather[hidden] {
	display: none !important;
}

.city-control__weather .weather__icon {
	flex: 0 0 auto;
}

.city-control__weather .weather__desc {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.city-control__edit {
	display: grid;
	place-items: center;
	color: #b3b3b3;
	flex: 0 0 auto;
}

.city-control__button:hover .city-control__edit,
.city-control__button:focus-visible .city-control__edit {
	color: var(--bk-black);
}

.city-popup[hidden] {
	display: none;
}

.city-popup {
	position: fixed;
	inset: 0;
	z-index: 200;
}

.city-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}

.city-popup__dialog {
	position: relative;
	width: min(28rem, calc(100% - 2rem));
	max-height: min(32rem, calc(100vh - 4rem));
	margin: 12vh auto 0;
	background: var(--bk-white);
	border: 1px solid #e4e4e4;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.city-popup__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.1rem;
	border-bottom: 1px solid #ececec;
}

.city-popup__title {
	font-size: 1.15rem;
}

.city-popup__close {
	width: 2rem;
	height: 2rem;
	font-size: 1.6rem;
	line-height: 1;
	color: #888;
}

.city-popup__close:hover {
	color: var(--bk-black);
}

.city-popup__list {
	overflow: auto;
	padding: 0.35rem 0;
}

.city-popup__list a {
	display: block;
	padding: 0.7rem 1.1rem;
	font-size: 0.95rem;
	font-weight: 500;
}

.city-popup__list a:hover,
.city-popup__list a[aria-current="page"] {
	background: #f3f3f3;
}

body.has-city-popup {
	overflow: hidden;
}

.read-progress {
	height: 4px;
	background: #e4e4e4;
}

.read-progress__bar {
	display: block;
	width: 0%;
	height: 100%;
	background: var(--bk-progress, #c45c26);
	min-width: 0;
	transition: background-color 280ms ease;
}

.header-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 1;
	border-top: 1px solid var(--bk-hair);
	background: var(--bk-white);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.header-mega__inner {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
	gap: 0 2.25rem;
	padding: 1.35rem 0 1.7rem;
	align-items: stretch;
	min-height: 32rem;
}

.header-mega__cat-list {
	columns: 3;
	column-gap: 2rem;
}

.header-mega__cat-list li {
	break-inside: avoid;
}

.header-mega__cat-list a {
	display: block;
	padding: 0.4rem 0;
	font-size: 0.95rem;
	font-weight: 500;
}

.header-mega__cat-list a:hover,
.header-mega__cat-list a.is-active {
	color: #555;
}

.header-mega__popular {
	border-left: 1px solid #ececec;
	padding-left: 1.6rem;
	min-height: 29.5rem;
}

.header-mega__posts {
	height: calc(5 * 5.5rem);
}

.header-mega__label {
	margin-bottom: 0.55rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--bk-muted);
}

.header-mega__empty {
	padding: 0.4rem 0;
	color: var(--bk-muted);
}

.header-hit,
.header-hit-slot {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 5.5rem;
	min-height: 5.5rem;
	max-height: 5.5rem;
	padding: 0.45rem 0;
	overflow: hidden;
	box-sizing: border-box;
}

.header-hit__media {
	width: 72px;
	height: 54px;
	object-fit: cover;
	flex: 0 0 auto;
	background: #ececec;
}

.header-hit__media--empty {
	display: block;
}

.header-hit__body {
	min-width: 0;
}

.header-hit__cat {
	display: block;
	margin-bottom: 0.15rem;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--bk-muted);
}

.header-hit__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
}

.header-hit:hover .header-hit__title {
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

@media (max-width: 959px) {
	.header-mega__inner {
		grid-template-columns: 1fr;
		gap: 1.25rem;
		min-height: 0;
	}

	.header-mega__cat-list {
		columns: 2;
	}

	.header-mega__popular {
		border-left: 0;
		border-top: 1px solid #ececec;
		padding-left: 0;
		padding-top: 1.1rem;
		min-height: calc(5 * 5.5rem + 3.2rem);
	}
}

@media (max-width: 520px) {
	.header-mega__cat-list {
		columns: 1;
	}
}

.menu-toggle {
	display: grid;
	place-items: center;
}

.menu-toggle__icon {
	width: 1.35rem;
	height: 0.88rem;
	position: relative;
	display: block;
}

.menu-toggle__icon span,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--bk-black);
}

.menu-toggle__icon::before {
	top: 0;
}

.menu-toggle__icon span {
	top: 50%;
	transform: translateY(-50%);
}

.menu-toggle__icon::after {
	bottom: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon span {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
	bottom: 50%;
	transform: translateY(50%) rotate(-45deg);
}

.header-panel .primary-menu {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0.25rem 0 0.85rem;
}

.primary-menu > .menu-item,
.primary-menu > .page_item {
	position: relative;
	border-top: 1px solid #e6e6e6;
}

.primary-menu > .menu-item > a,
.primary-menu > .page_item > a {
	display: block;
	padding: 0.85rem 2.25rem 0.85rem 0;
	font-size: 0.95rem;
	font-weight: 600;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.menu-item-has-children,
.page_item_has_children {
	position: relative;
}

.submenu-toggle {
	position: absolute;
	right: 0;
	top: 0.55rem;
	width: 2rem;
	height: 2rem;
	display: grid;
	place-items: center;
}

.submenu-toggle::before {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	border-right: 1.5px solid var(--bk-black);
	border-bottom: 1.5px solid var(--bk-black);
	transform: rotate(45deg);
	margin-top: -0.15rem;
	transition: transform var(--bk-ease);
}

.submenu-toggle[aria-expanded="true"]::before {
	transform: rotate(225deg);
	margin-top: 0.15rem;
}

.sub-menu,
.primary-menu .page_item_has_children > ul {
	display: none;
	flex-direction: column;
	padding: 0 0 0.4rem 0.9rem;
}

.menu-item-has-children.is-open > .sub-menu,
.page_item_has_children.is-open > ul {
	display: flex;
}

.sub-menu a {
	display: block;
	padding: 0.55rem 2.25rem 0.55rem 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: #222;
}

.sub-menu .menu-item {
	position: relative;
}

@media (min-width: 960px) {
	.header-nav {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.header-nav .primary-menu {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		width: auto;
		padding: 0;
		gap: 0.1rem 0.15rem;
	}

	.header-nav .submenu-toggle {
		display: none;
	}

	.header-nav .primary-menu > .menu-item,
	.header-nav .primary-menu > .page_item {
		border-top: 0;
	}

	.header-nav .primary-menu > .menu-item > a,
	.header-nav .primary-menu > .page_item > a {
		padding: 0.55rem 0.7rem;
		font-size: 1rem;
		font-weight: 500;
	}

	.header-nav .primary-menu a:hover,
	.header-nav .primary-menu .current-menu-item > a,
	.header-nav .primary-menu .current-menu-ancestor > a {
		text-decoration: none;
		color: #555;
	}

	.header-nav .primary-menu > .menu-item-has-children > a,
	.header-nav .primary-menu > .page_item_has_children > a {
		padding-right: 1.2rem;
		position: relative;
	}

	.header-nav .primary-menu > .menu-item-has-children > a::after,
	.header-nav .primary-menu > .page_item_has_children > a::after {
		content: "";
		position: absolute;
		right: 0.35rem;
		top: 50%;
		width: 0.28rem;
		height: 0.28rem;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-70%) rotate(45deg);
	}

	.header-nav .sub-menu,
	.header-nav .primary-menu .page_item_has_children > ul {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 14.5rem;
		padding: 0.35rem 0;
		background: var(--bk-white);
		border: 1px solid #e4e4e4;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(0.2rem);
		transition: opacity var(--bk-ease), transform var(--bk-ease), visibility var(--bk-ease);
		z-index: 50;
	}

	.header-nav .sub-menu a,
	.header-nav .primary-menu .page_item_has_children > ul a {
		padding: 0.5rem 1rem;
	}

	.header-nav .sub-menu a:hover,
	.header-nav .primary-menu .page_item_has_children > ul a:hover {
		background: #f5f5f5;
		color: var(--bk-black);
		text-decoration: none;
	}

	.header-nav .menu-item-has-children:hover > .sub-menu,
	.header-nav .menu-item-has-children:focus-within > .sub-menu,
	.header-nav .page_item_has_children:hover > ul,
	.header-nav .page_item_has_children:focus-within > ul {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
	}

	.header-nav .sub-menu .sub-menu,
	.header-nav .primary-menu .page_item_has_children ul ul {
		top: -1px;
		left: 100%;
		margin-left: -1px;
	}

	.header-nav .sub-menu .menu-item-has-children > a,
	.header-nav .primary-menu .page_item_has_children .page_item_has_children > a {
		padding-right: 1.6rem;
		position: relative;
	}

	.header-nav .sub-menu .menu-item-has-children > a::after,
	.header-nav .primary-menu .page_item_has_children .page_item_has_children > a::after {
		content: "";
		position: absolute;
		right: 0.75rem;
		top: 50%;
		width: 0.32rem;
		height: 0.32rem;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-60%) rotate(-45deg);
	}
}

@media (max-width: 520px) {
	.header-bar__inner {
		gap: 0.75rem;
	}

	.city-control {
		padding: 0 0.65rem 0 0.7rem;
	}

	.city-control__button {
		max-width: 8.5rem;
	}
}

/* -------------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------- */

.site-main {
	padding: 2.25rem 0 4rem;
}

.cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--bk-gap);
}

@media (min-width: 620px) {
	.cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem 1.5rem;
	}
}

@media (min-width: 1120px) {
	.cards {
		grid-template-columns: repeat(4, 1fr);
	}
}

.card {
	min-width: 0;
	height: 100%;
}

.card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
}

.card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #111;
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__placeholder {
	width: 100%;
	height: 100%;
	background: var(--bk-black);
}

.card__body {
	padding: 0.85rem 0 0;
}

.card__cat {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bk-muted);
}

.card__title {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.28;
	letter-spacing: -0.02em;
}

.card__link:hover .card__title {
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.card__link:hover .card__media img {
	opacity: 0.92;
}

/* Overlay / image-as-background */

.card--overlay .card__link {
	display: block;
	position: relative;
	min-height: 20rem;
	height: 100%;
	overflow: hidden;
}

.card--overlay .card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
	min-height: 0;
}

.card--overlay .card__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 3.5rem 1rem 1rem;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 100%);
	color: var(--bk-white);
}

.card--overlay .card__cat {
	color: rgba(255, 255, 255, 0.78);
}

.card--overlay .card__title {
	color: var(--bk-white);
}

.card--overlay .card__link:hover .card__media img {
	opacity: 0.88;
}

/* Wide — two columns, image as background */

.card--wide .card__link {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	height: auto;
	overflow: hidden;
}

.card--wide .card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
	min-height: 0;
}

.card--wide .card__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 4rem 1.15rem 1.1rem;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 100%);
	color: var(--bk-white);
}

.card--wide .card__cat {
	color: rgba(255, 255, 255, 0.78);
}

.card--wide .card__title {
	font-size: clamp(1.2rem, 2.1vw, 1.65rem);
	line-height: 1.22;
	color: var(--bk-white);
}

.card--wide .card__link:hover .card__media img {
	opacity: 0.88;
}

@media (min-width: 620px) {
	.card--wide {
		grid-column: span 2;
	}

	.card--wide .card__link {
		aspect-ratio: auto;
		height: 100%;
		min-height: 18.5rem;
	}
}

/* Homepage side panel — last column, two rows */

.home-rail {
	min-width: 0;
	display: flex;
}

.home-rail__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	width: 100%;
	min-height: 16rem;
	padding: 1.25rem;
	overflow: hidden;
	background: #e8e8e8;
	color: #111;
	text-align: center;
}

.home-rail__box > *:first-child {
	margin-top: 0;
}

.home-rail__box > *:last-child {
	margin-bottom: 0;
}

.home-rail__box p,
.home-rail__box a {
	margin: 0;
}

.home-rail__box img,
.home-rail__box iframe,
.home-rail__box video {
	max-width: 100%;
	height: auto;
	border: 0;
	display: block;
}

@media (min-width: 620px) {
	.cards--with-rail .home-rail {
		grid-column: -2 / -1;
		grid-row: 1 / span 2;
	}

	.home-rail__box {
		min-height: 100%;
		height: 100%;
	}
}

/* -------------------------------------------------------------------------
   Archive / page titles
   ------------------------------------------------------------------------- */

.page-head {
	margin-bottom: 1.75rem;
}

.page-head__kicker {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--bk-muted);
}

.page-head__title {
	font-size: clamp(1.6rem, 3vw, 2.15rem);
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.page-head__desc {
	margin-top: 0.6rem;
	max-width: 40rem;
	color: #333;
}

/* -------------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------------- */

.feed-more {
	display: flex;
	justify-content: center;
	margin-top: 2.75rem;
}

.feed-more__button {
	min-width: 12rem;
	padding: 0.7rem 1.4rem;
	border: 1px solid var(--bk-black);
	background: var(--bk-white);
	color: var(--bk-black);
	font-size: 0.875rem;
	font-weight: 600;
}

.feed-more__button:hover,
.feed-more__button:focus-visible {
	background: var(--bk-black);
	color: var(--bk-white);
}

.feed-more__button:disabled {
	opacity: 0.55;
	cursor: wait;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 2.75rem;
}

.pagination .nav-links,
.pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pagination a.page-numbers,
.pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.55rem;
	border: 1px solid var(--bk-black);
	font-size: 0.875rem;
	font-weight: 600;
}

.pagination span.page-numbers.current,
.pagination a.page-numbers:hover {
	background: var(--bk-black);
	color: var(--bk-white);
}

.pagination span.page-numbers.dots {
	border-color: transparent;
}

/* -------------------------------------------------------------------------
   Single / page
   ------------------------------------------------------------------------- */

.entry {
	max-width: 42.5rem;
	margin-inline: auto;
}

.single .entry,
.single .comments {
	max-width: none;
	margin-inline: 0;
}

.reader-item + .reader-item {
	margin-top: 4rem;
	padding-top: 3.25rem;
	border-top: 2px solid var(--bk-black);
}

.reader-more {
	margin-top: 4.5rem;
	padding-top: 2.25rem;
	border-top: 2px solid var(--bk-black);
}

.reader-more__title {
	margin-bottom: 1.75rem;
	font-size: 1.5rem;
	letter-spacing: -0.03em;
}

.entry--wide {
	max-width: 52rem;
}

.entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin-bottom: 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--bk-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.entry__meta a:hover {
	color: var(--bk-black);
}

.entry__title {
	font-size: clamp(1.75rem, 4vw, 2.6rem);
	letter-spacing: -0.035em;
	line-height: 1.12;
	margin-bottom: 1.25rem;
}

.entry__thumb {
	margin: 0 0 2rem;
}

.entry__thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.single .entry__thumb img {
	width: 100%;
	height: 420px;
	max-height: 420px;
	object-fit: cover;
}

.entry__content {
	font-size: 1.0625rem;
	line-height: 1.7;
}

.entry__content > * + * {
	margin-top: 1.15em;
}

.entry__content h2,
.entry__content h3,
.entry__content h4 {
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.entry__content h2 {
	font-size: 1.5rem;
}

.entry__content h3 {
	font-size: 1.25rem;
}

.entry__content a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.entry__content ul,
.entry__content ol {
	padding-left: 1.25rem;
	list-style: revert;
}

.entry__content blockquote {
	border-left: 2px solid var(--bk-black);
	padding-left: 1rem;
	font-size: 1.15rem;
}

.entry__content figure {
	margin: 1.5rem 0;
}

.entry__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 2rem;
}

.entry__tags a {
	border: 1px solid var(--bk-black);
	padding: 0.25rem 0.6rem;
	font-size: 0.75rem;
	font-weight: 600;
}

.entry__tags a:hover {
	background: var(--bk-black);
	color: var(--bk-white);
}

.post-nav {
	display: grid;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 2px solid var(--bk-black);
}

@media (min-width: 700px) {
	.post-nav {
		grid-template-columns: 1fr 1fr;
	}
}

.post-nav a {
	display: block;
}

.post-nav__label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bk-muted);
}

.post-nav__title {
	font-weight: 600;
	letter-spacing: -0.02em;
}

.post-nav a:hover .post-nav__title {
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.post-nav__next {
	text-align: right;
}

/* -------------------------------------------------------------------------
   Comments
   ------------------------------------------------------------------------- */

.comments {
	max-width: 42.5rem;
	margin: 3rem auto 0;
	padding-top: 1.75rem;
	border-top: 2px solid var(--bk-black);
}

.comments__title {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 1.25rem;
}

.comment-list {
	display: grid;
	gap: 1.25rem;
}

.comment-body {
	padding: 0.25rem 0 0.5rem;
}

.comment-author {
	font-weight: 700;
}

.comment-meta {
	font-size: 0.75rem;
	color: var(--bk-muted);
	margin: 0.2rem 0 0.6rem;
}

.comment-reply-link {
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.children {
	margin-top: 1rem;
	padding-left: 1.15rem;
	border-left: 2px solid var(--bk-black);
	display: grid;
	gap: 1rem;
}

.comment-form label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--bk-black);
	padding: 0.55rem 0.7rem;
	background: var(--bk-white);
}

.comment-form .form-submit {
	margin-top: 0.85rem;
}

.comment-form .submit {
	background: var(--bk-black);
	color: var(--bk-white);
	border: 1px solid var(--bk-black);
	padding: 0.6rem 1.1rem;
	font-weight: 600;
}

.comment-form .submit:hover {
	background: var(--bk-white);
	color: var(--bk-black);
}

/* -------------------------------------------------------------------------
   Empty / 404
   ------------------------------------------------------------------------- */

.empty-state {
	max-width: 32rem;
	padding: 2rem 0 3rem;
}

.empty-state__title {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	letter-spacing: -0.035em;
	margin-bottom: 0.75rem;
}

.empty-state__text {
	color: #333;
	margin-bottom: 1.25rem;
}

.empty-state a {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
	border-top: 2px solid var(--bk-black);
	padding: 3rem 0 1.4rem;
	background: var(--bk-white);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(16rem, 1.35fr) repeat(3, minmax(8rem, 0.75fr)) minmax(14rem, 1.15fr);
	gap: 2.25rem 2.5rem;
	align-items: start;
}

.footer-brand__lockup {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.1rem;
}

.footer-brand .custom-logo-link {
	flex: 0 0 auto;
}

.footer-brand .custom-logo {
	max-width: 48px;
	max-height: 48px;
}

.footer-brand__name {
	font-family: var(--bk-font-head);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.03em;
	max-width: 9.5rem;
}

.footer-brand__lead {
	margin-bottom: 0.85rem;
	font-size: 0.92rem;
	font-weight: 500;
}

.footer-brand__text {
	max-width: 20rem;
	font-size: 0.88rem;
	line-height: 1.5;
	color: #555;
}

.footer-col__title {
	margin-bottom: 0.85rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.footer-col__list {
	display: grid;
	gap: 0.48rem;
}

.footer-col__list a {
	font-size: 0.92rem;
	font-weight: 500;
}

.footer-subscribe__text {
	margin-bottom: 1.15rem;
	max-width: 16.5rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: #333;
}

.footer-subscribe__form {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.75rem;
	border-bottom: 1px solid #d8d8d8;
}

.footer-subscribe__field {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.45rem 0;
	font-size: 0.92rem;
	outline: none;
}

.footer-subscribe__field::placeholder {
	color: #b0b0b0;
}

.footer-subscribe__send {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	color: #b0b0b0;
}

.footer-subscribe__send:hover {
	color: var(--bk-black);
}

.footer-subscribe__note {
	font-size: 0.75rem;
	line-height: 1.4;
	color: #8a8a8a;
}

.site-footer__mark {
	margin: 2.75rem 0 1.6rem;
	font-family: var(--bk-font-head);
	font-size: clamp(1.7rem, 7.4vw, 6.4rem);
	font-weight: 600;
	line-height: 0.92;
	letter-spacing: -0.045em;
	color: #d6d6d6;
	white-space: nowrap;
	overflow: hidden;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem 1.5rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: #8a8a8a;
}

.site-footer__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.55rem;
}

.site-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

@media (max-width: 1119px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-brand,
	.footer-subscribe {
		grid-column: 1 / -1;
	}
}

@media (max-width: 619px) {
	.site-footer {
		padding-top: 2.25rem;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.site-footer__mark {
		margin: 2rem 0 1.2rem;
		white-space: normal;
		font-size: clamp(1.6rem, 11vw, 2.6rem);
	}
}

/* -------------------------------------------------------------------------
   Alignments / WP
   ------------------------------------------------------------------------- */

.alignleft {
	float: left;
	margin: 0 1.25rem 0.75rem 0;
}

.alignright {
	float: right;
	margin: 0 0 0.75rem 1.25rem;
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text,
.wp-element-caption {
	font-size: 0.8rem;
	color: var(--bk-muted);
	margin-top: 0.4rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
