/*
Theme Name: PchelaShop
Theme URI: https://pchelashop.ru
Author: PchelaShop
Description: Editorial WordPress theme for a practical home, repair, garden, cooking and comfort journal.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: pchelashop
*/

:root {
	--bg: #faf8f3;
	--card: #ffffff;
	--text: #292720;
	--muted: #6e6a60;
	--honey: #e5a91a;
	--honey-soft: #fff1be;
	--green: #536b4a;
	--border: #e7e1d6;
	--footer: #28271f;
	--max: 1180px;
	--article: 760px;
	--radius: 8px;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Inter, "Segoe UI", Arial, system-ui, sans-serif;
	font-size: 18px;
	line-height: 1.7;
	letter-spacing: 0;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.is-menu-open { overflow: hidden; }

a {
	color: inherit;
	text-decoration-color: rgba(229, 169, 26, .45);
	text-underline-offset: .18em;
}

a:hover { color: var(--green); }

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

button,
input { font: inherit; }

:focus-visible {
	outline: 3px solid rgba(229, 169, 26, .55);
	outline-offset: 3px;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: var(--footer);
	color: #fff;
	border-radius: var(--radius);
}

.container,
.site-header__inner,
.site-footer__inner,
.site-footer__bottom {
	width: min(var(--max), calc(100% - 40px));
	margin: 0 auto;
}

.container--article { width: min(1020px, calc(100% - 40px)); }

.section-band { padding: 34px 0; }

.section-band--soft,
.section-band--honey {
	background: #eef2ea;
	border-block: 1px solid var(--border);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 248, 243, .94);
	border-bottom: 1px solid var(--border);
	backdrop-filter: blur(14px);
}

.site-ribbon { display: none; }

.site-header__inner {
	min-height: 76px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 28px;
	align-items: center;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: var(--text);
	text-decoration: none;
}

.site-logo__mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--honey-soft);
	color: var(--green);
	font-weight: 900;
	overflow: hidden;
}

.site-logo__mark img {
	width: 38px;
	height: 38px;
}

.site-logo__text {
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 23px;
	line-height: 1;
}

.site-logo__tagline {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.2;
	text-transform: none;
	white-space: nowrap;
}

.site-nav ul,
.footer-nav ul,
.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav--desktop ul { justify-content: center; }

.site-nav a,
.footer-nav a,
.footer-links a {
	color: var(--muted);
	font-size: 14px;
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active,
.footer-nav a:hover,
.footer-links a:hover { color: var(--green); }

.site-actions {
	display: flex;
	gap: 8px;
}

.icon-button {
	width: 42px;
	height: 42px;
	display: inline-grid;
	place-items: center;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--card);
	color: var(--green);
	cursor: pointer;
}

.icon-button:hover {
	border-color: rgba(83, 107, 74, .42);
	background: #f7f4ec;
}

.menu-toggle { display: none; }

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	content: "";
}

.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(4px); }

.header-search {
	border-top: 1px solid var(--border);
	background: var(--card);
}

.header-search__inner {
	width: min(720px, calc(100% - 32px));
	margin: 0 auto;
	padding: 16px 0;
}

.search-form {
	display: flex;
	gap: 8px;
	width: 100%;
}

.search-form label { flex: 1; }

.search-field {
	width: 100%;
	min-height: 46px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0 14px;
	background: #fff;
	color: var(--text);
}

.search-form button,
.button-link {
	min-height: 46px;
	border: 0;
	border-radius: var(--radius);
	padding: 0 18px;
	background: var(--green);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.search-form button:hover,
.button-link:hover {
	background: var(--text);
	color: #fff;
}

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(41, 39, 32, .32);
}

.mobile-menu__panel {
	width: min(430px, 100%);
	height: 100%;
	margin-left: auto;
	background: var(--card);
	padding: 18px;
	overflow-y: auto;
}

.mobile-menu__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.site-nav--mobile ul {
	display: grid;
	gap: 4px;
}

.site-nav--mobile a {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
	font-size: 16px;
}

.mobile-menu__search { margin-top: 22px; }

.home-hero { padding: 44px 0 28px; }

.home-hero__grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 34px;
	align-items: end;
}

.home-hero__intro { min-width: 0; }

.eyebrow {
	margin: 0 0 10px;
	color: var(--green);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 650;
	line-height: 1.08;
	letter-spacing: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

h1 {
	max-width: 760px;
	font-size: clamp(44px, 5vw, 58px);
}

h2 { font-size: 32px; }
h3 { font-size: 22px; }

.lead,
.home-hero p,
.section-heading p:not(.eyebrow),
.hero-feature p,
.article-card__excerpt,
.category-tile p,
.archive-description,
.archive-search {
	color: var(--muted);
}

.lead {
	margin: 18px 0 0;
	font-size: 20px;
	line-height: 1.62;
}

.home-hero p {
	max-width: 620px;
	margin: 18px 0 0;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	margin-top: 24px;
}

.text-link {
	display: inline-flex;
	margin-top: 24px;
	color: var(--green);
	font-weight: 800;
	text-decoration-thickness: 2px;
}

.hero-feature,
.article-card,
.category-tile,
.bee-note,
.about-panel {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.hero-feature {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 28px;
	align-items: center;
	padding: 18px;
}

.hero-feature__image,
.article-card__image,
.single-article__cover {
	display: block;
	aspect-ratio: 16 / 9;
	background: #f4efe5;
	overflow: hidden;
}

.hero-feature__image,
.single-article__cover { border-radius: var(--radius); }

.hero-feature__image img,
.article-card__image img,
.single-article__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-feature__content { padding: 10px 10px 10px 4px; }

.article-card__category {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	min-height: 26px;
	border-radius: 999px;
	padding: 0 10px;
	background: var(--honey-soft);
	color: #5e4b10;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.hero-feature h2 {
	margin-top: 14px;
	font-size: 36px;
}

.home-hero__side,
.bee-note {
	display: grid;
	gap: 10px;
}

.bee-note {
	padding: 22px;
	align-self: center;
}

.bee-note img { display: none; }

.bee-note strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	line-height: 1.15;
}

.bee-note span {
	color: var(--muted);
	font-size: 15px;
}

.article-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.article-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.article-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.article-card {
	display: grid;
	grid-template-rows: auto 1fr;
	min-width: 0;
}

.article-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px;
}

.article-card__title {
	margin-top: 12px;
	font-size: 22px;
}

.article-card__title a,
.hero-feature h2 a { text-decoration: none; }

.article-card__excerpt {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.52;
}

.article-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
	color: var(--muted);
	font-size: 14px;
}

.article-card--compact {
	grid-template-columns: 112px 1fr;
	grid-template-rows: auto;
}

.article-card--compact .article-card__image {
	aspect-ratio: auto;
	height: 100%;
	min-height: 118px;
}

.article-card--compact .article-card__body { padding: 13px; }
.article-card--compact .article-card__title { font-size: 17px; }
.article-card--compact .article-card__excerpt { display: none; }

.section-heading {
	display: block;
	margin-bottom: 18px;
}

.section-heading--row {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
}

.section-heading p:not(.eyebrow) {
	max-width: 660px;
	margin: 8px 0 0;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
}

.category-tile {
	min-height: 112px;
	padding: 16px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.category-tile span {
	display: block;
	font-weight: 800;
}

.category-tile strong {
	display: block;
	color: var(--muted);
	font-size: 13px;
	font-weight: 400;
}

.category-tile p { display: none; }

.breadcrumbs {
	margin-bottom: 26px;
	color: var(--muted);
	font-size: 14px;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 8px;
	color: rgba(41, 39, 32, .38);
}

.single-article { padding: 28px 0 0; }

.single-article__header {
	width: min(var(--article), 100%);
	margin: 0 auto 30px;
}

.single-article__header h1 {
	margin-top: 14px;
	font-size: clamp(36px, 5vw, 58px);
}

.single-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
	color: var(--muted);
	font-size: 14px;
}

.single-article__cover {
	width: min(1020px, 100%);
	max-height: 560px;
	margin: 0 auto 30px;
}

.article-shell {
	display: block;
	width: min(var(--article), 100%);
	margin: 0 auto;
}

.article-aside {
	position: static;
	margin-bottom: 24px;
}

.article-aside__box {
	border-block: 1px solid var(--border);
	padding: 14px 0;
	color: var(--muted);
	font-size: 15px;
}

.article-aside__box span {
	display: block;
	margin-bottom: 8px;
	color: var(--text);
	font-weight: 800;
}

.article-aside ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.article-aside li:not(:last-child)::after {
	content: "·";
	margin-left: 8px;
	color: var(--muted);
}

.article-aside a { text-decoration: none; }

.entry-content {
	width: 100%;
	max-width: 100%;
	font-size: 19px;
	line-height: 1.78;
}

.entry-content p,
.entry-content ul,
.entry-content ol { margin: 0 0 22px; }

.entry-content h2 {
	margin: 44px 0 14px;
	font-size: 32px;
}

.entry-content h3 { margin: 26px 0 10px; }

.entry-content ul,
.entry-content ol { padding-left: 24px; }

.entry-content li + li { margin-top: 8px; }

.entry-content table {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 18px 0 28px;
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	border-collapse: collapse;
	background: var(--card);
	-webkit-overflow-scrolling: touch;
}

.entry-content thead,
.entry-content tbody,
.entry-content tr {
	display: table;
	width: 100%;
	table-layout: fixed;
}

.entry-content th,
.entry-content td {
	padding: 14px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

.entry-content th {
	background: #f4efe5;
	text-align: left;
	font-size: 14px;
}

.entry-content blockquote {
	margin: 28px 0;
	border-left: 4px solid var(--honey);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: #fff8dd;
	padding: 16px 18px;
}

.archive-hero { padding: 46px 0 30px; }
.archive-hero h1 { font-size: clamp(34px, 4vw, 56px); }

.pagination { margin-top: 34px; }

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.pagination a,
.pagination span {
	min-width: 42px;
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--card);
	text-decoration: none;
}

.pagination .current {
	background: var(--honey-soft);
	color: var(--text);
}

.empty-state {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}

.error-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 34px;
	align-items: start;
}

.site-footer {
	margin-top: 36px;
	background: var(--footer);
	color: #f7f3e8;
}

.site-footer__inner {
	min-height: 150px;
	padding: 36px 0;
	display: grid;
	grid-template-columns: 1.2fr 1.3fr .8fr;
	gap: 26px;
	align-items: center;
}

.site-footer p,
.site-footer a { color: rgba(247, 243, 232, .76); }

.site-footer h2 {
	margin: 0 0 12px;
	font-size: 18px;
}

.site-footer .site-logo__text,
.site-footer .site-logo__tagline { color: #f7f3e8; }

.site-footer .site-logo__mark img { display: none; }
.site-footer .site-logo__mark::before { content: "PS"; }

.site-footer__note { color: rgba(247, 243, 232, .76); }

.site-footer__form { margin-top: 16px; }

.site-footer__bottom {
	padding: 18px 0;
	border-top: 1px solid rgba(247, 243, 232, .18);
	color: rgba(247, 243, 232, .72);
	font-size: 14px;
}

@media (max-width: 1120px) {
	.site-header__inner {
		grid-template-columns: auto auto;
		justify-content: space-between;
	}

	.site-nav--desktop { display: none; }
	.menu-toggle { display: inline-grid; }

	.home-hero__grid,
	.hero-feature { grid-template-columns: 1fr; }

	.home-hero__side {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.category-grid,
	.article-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.article-grid,
	.article-grid--three,
	.article-grid--four,
	.error-page__grid,
	.site-footer__inner { grid-template-columns: 1fr; }

	.category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
	body { font-size: 17px; }

	html,
	body,
	.site-main {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
	}

	.site-main > * {
		max-width: 100vw;
		overflow-x: hidden;
	}

	.container,
	.container--article,
	.site-header__inner,
	.site-footer__inner,
	.site-footer__bottom {
		width: min(var(--max), calc(100% - 28px));
	}

	.section-band { padding: 26px 0; }
	.site-header__inner { min-height: 76px; }
	.site-logo__tagline { display: none; }

	.home-hero { padding-top: 28px; }
	.home-hero__grid,
	.home-hero__side { grid-template-columns: 1fr; }

	h1,
	.single-article__header h1 {
		display: block;
		width: min(340px, calc(100vw - 28px));
		max-width: min(340px, calc(100vw - 28px));
		font-size: 25px;
		line-height: 1.16;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.single-article__header h1 {
		word-break: normal;
	}

	.breadcrumbs,
	.single-article__header,
	.single-article__header .lead,
	.single-article__meta,
	.article-shell,
	.entry-content {
		width: min(340px, calc(100vw - 28px));
		min-width: 0;
		max-width: min(340px, calc(100vw - 28px));
		margin-left: 0;
		margin-right: 0;
		overflow-wrap: anywhere;
	}

	.breadcrumbs li[aria-current="page"] {
		display: none;
	}

	.single-article__cover {
		width: min(340px, calc(100vw - 28px));
		max-width: min(340px, calc(100vw - 28px));
		margin-left: 0;
		margin-right: 0;
	}

	.single-article__cover img {
		width: 100%;
		max-width: 100%;
	}

	.hero-feature h2 { font-size: 30px; }
	.lead { font-size: 18px; }
	.entry-content { font-size: 18px; line-height: 1.72; }
	.entry-content h2 { font-size: 27px; }

	.search-form { display: grid; }
	.search-form button { width: 100%; }

	.footer-nav ul,
	.footer-links { display: grid; gap: 6px; }
}

@media (max-width: 480px) {
	.category-grid { grid-template-columns: 1fr; }
	.article-card--compact { grid-template-columns: 1fr; }
	.article-card--compact .article-card__image { aspect-ratio: 16 / 9; }

	.entry-content thead,
	.entry-content tbody,
	.entry-content tr { min-width: 620px; }
}
