/*
Theme Name: pradaelite-ru
Author: Сильвестр Роскошный
Description: Тема журнала о роскоши в духе аукционного каталога: тёмный малахит с прожилками, латунные линии, слоновая кость и бордо. На главной — анатомия часов в разобранном виде с выносками, реестр тем с тонкими гравюрными иконками, последние записи как лоты каталога с бумажными бирками «№ 01», блок «Под лупой» с признаками подлинной кожи и палитра материалов: кашемир, кожа, шёлк, мрамор, эбен, латунь.
Version: 1.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pel
*/
/* ---------- Шрифты (локально, OFL) ---------- */
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/playfair-display-cyrillic-400-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/playfair-display-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/playfair-display-cyrillic-500-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/playfair-display-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Roboto Condensed";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/roboto-condensed-cyrillic-400-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Roboto Condensed";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/roboto-condensed-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Roboto Condensed";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/roboto-condensed-cyrillic-500-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Roboto Condensed";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/roboto-condensed-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ---------- Основа: малахит, латунь, слоновая кость ---------- */
:root {
	--ivory: #EEE3CF;
	--ivory-2: #F5EDDD;
	--ink: #14100C;
	--malachite: #10251D;
	--night: #0B1512;
	--night-2: #0D1110;
	--oxblood: #22100F;
	--oxblood-2: #2E1416;
	--brass: #C6A24E;
	--brass-2: #E0C27A;
	--brass-dark: #7A5A1E;
	--line: #C9AE6A;
	--muted: #6B5E48;
	--on-dark: #EDE4D2;
	--on-dark-2: #B5B6A8;
	/* имена, которые использует inner.css */
	--paper: #EEE3CF;
	--card: #F5EDDD;
	--accent: #7A5A1E;
	--graphite: #0B1512;
	--mahogany: #0B1512;
	--lime: #C6A24E;
	--brass-3: #3A3424;
	--morocco: #22100F;
	--morocco-2: #2E1416;
	--paper-0: #F5EDDD;
	--grid: #D8C9A8;
	--shadow: none;
	--font-head: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	--font-mono: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--ivory);
}

img,
svg {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--brass-dark);
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

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

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--brass);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-head);
	font-weight: 400;
	line-height: 1.1;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 0.6rem;
	left: 0.6rem;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 0.6rem 1rem;
	margin: 0;
	clip: auto;
	color: var(--on-dark);
	background: var(--night);
}

.shell {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding-left: 32px;
	padding-right: 32px;
}

/* ---------- Шапка: малахит с прожилками ---------- */
.site-header {
	color: var(--on-dark);
	background:
		linear-gradient(90deg, var(--night) 30%, rgba(11, 21, 18, 0) 62%),
		url("images/marble.jpg") right center / auto 100% no-repeat,
		var(--night);
	border-bottom: 1px solid var(--brass);
}

.header-row {
	display: grid;
	grid-template-columns: minmax(0, auto) minmax(0, 1fr);
	align-items: start;
	gap: 1rem 2.4rem;
	padding-top: 2.6rem;
	padding-bottom: 2.8rem;
}

.brand {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: 1.6rem;
	min-width: 0;
	max-width: 720px;
	text-decoration: none;
	color: var(--on-dark);
}

.brand-mark,
.brand-logo {
	flex: none;
	width: 96px;
	height: auto;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.brand-text {
	display: contents;
}

.brand-name {
	font-family: var(--font-head);
	font-size: clamp(2.6rem, 7vw, 6.6rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.01em;
	color: #F3EBDA;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.brand-desc {
	grid-column: 2;
	max-width: 31rem;
	margin-top: 1.4rem;
	font-size: 1.45rem;
	line-height: 1.38;
	color: var(--on-dark);
}

.nav-toggle {
	display: none;
	padding: 0.45rem 1rem;
	font-family: var(--font-body);
	font-size: 1.05rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brass);
	background: transparent;
	border: 1px solid var(--brass);
	border-radius: 0;
	cursor: pointer;
}

.main-nav {
	justify-self: end;
	padding-top: 0.4rem;
}

.main-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.4rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav li + li::before {
	content: "|";
	margin: 0 0.7rem;
	color: var(--brass);
	opacity: 0.8;
}

.main-nav a {
	display: inline-block;
	padding: 0.15rem 0;
	font-size: 1.2rem;
	letter-spacing: 0.02em;
	white-space: nowrap;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--brass-2);
	border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav a[aria-current] {
	color: #F3EBDA;
	border-bottom-color: var(--brass);
}

/* ---------- Заголовки секций ---------- */
.sec-num {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	letter-spacing: 0.04em;
	color: var(--brass);
}

.sec-title {
	margin: 0;
	font-size: clamp(2.4rem, 5vw, 4.6rem);
	line-height: 1.04;
	letter-spacing: -0.005em;
}

.sec-lead {
	margin: 1.4rem 0 0;
	font-size: 1.45rem;
	line-height: 1.4;
}

.more-link {
	display: inline-block;
	margin-top: 1.8rem;
	font-size: 1.05rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brass-2);
}

.more-link::after {
	content: " →";
}

.more-link:hover {
	color: #F3EBDA;
}

/* ---------- Главная ---------- */
.front {
	overflow-x: clip;
}

/* Блок 1: анатомия вещи */
.anatomy {
	padding: 4.4rem 0 0;
	color: var(--on-dark);
	background: var(--malachite);
	border-bottom: 1px solid var(--line);
}

.anatomy .sec-title {
	color: #F3EBDA;
}

.anatomy-text {
	position: relative;
	z-index: 1;
	max-width: 640px;
}

.watch {
	position: relative;
	width: min(900px, 100%);
	margin: -170px 0 0 auto;
	container-type: inline-size;
}

.watch img {
	display: block;
	width: 100%;
}

.watch-label,
.loupe-label {
	position: absolute;
	font-size: clamp(11px, 2.45cqw, 22px);
	line-height: 1.18;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--brass);
}

.watch-label--right {
	max-width: 6.6em;
	text-align: right;
}

/* Сдвоенные блоки: половина экрана на своём фоне */
.split {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	border-bottom: 1px solid var(--line);
}

.half {
	min-width: 0;
	padding: 4.2rem 3rem 4.6rem;
}

.half--start {
	padding-left: max(32px, calc(50vw - 588px));
}

.half--end {
	padding-right: max(32px, calc(50vw - 588px));
}

.split--lower {
	grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
}

.half--ivory {
	color: var(--ink);
	background: var(--ivory);
}

.half--ivory .sec-num {
	color: #A88A4C;
}

.half--oxblood {
	color: var(--on-dark);
	background: var(--oxblood);
}

.half--night {
	color: var(--on-dark);
	background: var(--night);
}

.half--oxblood .sec-title,
.half--night .sec-title {
	color: #F3EBDA;
}

/* Блок 2: реестр знаний */
.registry .sec-title {
	margin-bottom: 2.2rem;
}

.registry-list {
	max-width: 540px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.registry-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 64px;
	padding: 0.35rem 0;
	font-size: 1.55rem;
	line-height: 1.2;
	border-bottom: 1.5px solid var(--line);
}

.registry-list li:last-child {
	border-bottom: 0;
}

.registry-list img {
	flex: none;
	width: 46px;
	height: 46px;
}

/* Блок 3: лоты собрания */
.collection .sec-title {
	margin-bottom: 1.4rem;
	font-size: clamp(2.2rem, 3.6vw, 3.4rem);
}

.feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.4rem 1.6rem;
	align-items: stretch;
}

.feed--front {
	gap: 1.2rem;
	padding-top: 0.6rem;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 0 13px 16px;
	color: var(--on-dark);
	background: var(--oxblood-2);
	border: 1px solid #9C7C3C;
}

.card-media {
	position: relative;
	margin-top: 13px;
	padding-bottom: 26px;
}

.card-tab {
	position: absolute;
	top: -28px;
	left: 0;
	z-index: 1;
	width: 60%;
	height: 44px;
	background: var(--ivory-2);
	clip-path: polygon(0 0, 92% 0, 100% 30%, 100% 100%, 0 100%);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.card-thumb {
	display: block;
	aspect-ratio: 392 / 346;
	overflow: hidden;
	background: #3A1D1C;
}

.card-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.card:hover .card-thumb img {
	transform: scale(1.04);
}

.card-lot {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	width: 60%;
	padding: 0.3rem 0.9rem 0.25rem;
	font-family: var(--font-head);
	font-size: 1.55rem;
	font-variant-numeric: lining-nums;
	line-height: 1.25;
	color: var(--ink);
	background: var(--ivory-2);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding-top: 1rem;
}

.card-title {
	margin: 0 0 0.6rem;
	font-family: var(--font-body);
	font-size: 1.35rem;
	line-height: 1.18;
	overflow-wrap: anywhere;
}

.card-title a {
	color: #F3EBDA;
	text-decoration: none;
}

.card-title a:hover {
	color: var(--brass-2);
}

.card-excerpt {
	flex: 1;
	font-size: 1rem;
	line-height: 1.35;
	color: #D9CDB8;
}

.card-excerpt p {
	margin: 0 0 0.8rem;
}

.card-date {
	display: block;
	margin-bottom: 1rem;
	font-size: 0.98rem;
	color: var(--brass);
}

.read-more {
	display: block;
	padding: 0.6rem 0.4rem 0.55rem;
	font-size: 1rem;
	letter-spacing: 0.03em;
	white-space: nowrap;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--brass-2);
	border: 1px solid var(--brass);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.read-more:hover {
	color: var(--ink);
	background: var(--brass);
}

.feed-empty {
	color: var(--on-dark-2);
}

/* Блок 4: под лупой */
.loupe {
	display: flex;
	flex-direction: column;
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 0;
	background: #0C1512;
}

.loupe-text {
	padding: 0 3rem 1.2rem max(32px, calc(50vw - 588px));
}

.loupe-figure {
	position: relative;
	margin: auto 0 0;
	container-type: inline-size;
}

.loupe-figure img {
	display: block;
	width: 100%;
}

.loupe-label {
	max-width: 7.5em;
	font-size: clamp(11px, 2.85cqw, 22px);
}

/* Блок 5: материалы */
.materials .sec-title {
	margin-bottom: 2rem;
}

.swatches {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.swatches img {
	display: block;
	width: 100%;
	aspect-ratio: 402 / 346;
	object-fit: cover;
	margin-bottom: 0.7rem;
}

.swatches b {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 1.3rem;
	white-space: nowrap;
	font-weight: 400;
	line-height: 1.2;
}

.swatches b::after {
	content: "";
	flex: 1;
	min-width: 0.6rem;
	height: 1px;
	background: var(--ink);
}

.swatches span {
	display: block;
	margin-top: 0.2rem;
	font-size: 1.05rem;
	color: #3E3428;
}

.feed--front .card-title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.feed--front .card-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	margin-bottom: 0.8rem;
}

.feed--front .card-excerpt p {
	margin: 0;
	display: inline;
}

/* ---------- Внутренние страницы ---------- */
.page-head {
	padding: 2.2rem 0 1.4rem;
}

.page-head h1 {
	margin: 0.3rem 0 0.5rem;
	padding-bottom: 0.6rem;
	font-size: clamp(2rem, 4vw, 3.2rem);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border-bottom: 2px solid var(--accent);
}

.single .page-head h1 {
	max-width: 24em;
	font-size: clamp(1.8rem, 3.4vw, 2.7rem);
	text-transform: none;
}

.breadcrumbs {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--muted);
}

.breadcrumbs a {
	color: var(--ink);
}

.breadcrumbs .sep {
	margin: 0 0.4em;
	color: var(--accent);
}

.entry-meta {
	font-family: var(--font-mono);
	font-size: 0.88rem;
	color: var(--muted);
}

.entry-meta a {
	color: var(--accent);
}

.site-main {
	overflow-x: clip;
	padding: 0.6rem 0 4rem;
}

.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	align-items: start;
	gap: 3rem;
}

.layout-single .content-area {
	max-width: 860px;
}

.content-area {
	min-width: 0;
}

.layout-with-sidebar .feed {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Лист записи — вырезка на миллиметровке */
.sheet {
	position: relative;
	padding: 2.4rem 2.6rem 2.6rem;
	color: var(--ink);
	background: var(--card);
	box-shadow: var(--shadow);
}

.sheet::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(198, 162, 74, 0.6);
	pointer-events: none;
}

.entry-thumb {
	margin: 0 0 1.8rem;
}

.entry-thumb img {
	display: block;
	width: 100%;
}

.entry-content {
	overflow-wrap: break-word;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content a {
	color: var(--accent);
	text-decoration: underline double;
}

.entry-content h2 {
	margin-top: 1.6em;
	padding-bottom: 0.3rem;
	font-size: 1.9rem;
	border-bottom: 2px solid var(--accent);
}

.entry-content h3 {
	margin-top: 1.4em;
	font-size: 1.45rem;
}

.entry-content h4 {
	font-size: 1.2rem;
}

.entry-content ol,
.entry-content ul {
	padding-left: 1.6em;
}

.entry-content ul {
	list-style: none;
	padding-left: 1.7em;
}

.entry-content ul > li {
	position: relative;
	margin-bottom: 0.3em;
}

.entry-content ul > li::before {
	content: "";
	position: absolute;
	left: -1.5em;
	top: 0.45em;
	width: 0.75em;
	height: 0.75em;
	border: 2px solid var(--ink);
	background: var(--lime);
}

.entry-content ol > li::marker {
	font-family: var(--font-mono);
	font-weight: 700;
	color: var(--accent);
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 1rem 1.4rem;
	font-family: var(--font-mono);
	font-size: 0.98rem;
	background: rgba(221, 242, 71, 0.35);
	border-left: 4px solid var(--accent);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content table {
	width: 100%;
	margin: 1.6em 0;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.entry-content td,
.entry-content th {
	padding: 0.55em 0.75em;
	text-align: left;
	border: 1px solid var(--grid);
}

.entry-content th {
	font-family: var(--font-mono);
	font-weight: 700;
	background: var(--paper);
}

.entry-content figure {
	margin: 1.6em 0;
}

.entry-content figcaption {
	margin-top: 0.4em;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--muted);
}

.entry-content img {
	height: auto;
}

.entry-content code {
	padding: 0.1em 0.35em;
	font-family: var(--font-mono);
	font-size: 0.88em;
	background: var(--paper);
}

.entry-content pre {
	overflow-x: auto;
	padding: 1rem;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	color: var(--on-dark);
	background: var(--graphite);
}

.entry-content pre code {
	padding: 0;
	background: none;
}

.entry-content hr {
	height: 0;
	margin: 2em 0;
	border: 0;
	border-top: 2px dashed var(--ink);
}

.entry-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	border-top: 1px solid var(--grid);
}

.entry-footer a {
	margin-left: 0.4em;
	color: var(--accent);
}

.post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.2rem;
	margin-top: 2.2rem;
}

.post-nav a {
	display: block;
	padding: 1rem 1.2rem;
	text-decoration: none;
	color: var(--ink);
	background: var(--card);
	border: 2px solid var(--ink);
}

.post-nav a:hover {
	color: var(--on-dark);
	background: var(--ink);
}

.post-nav .nav-next {
	text-align: right;
}

.post-nav small {
	display: block;
	margin-bottom: 0.3rem;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	color: var(--accent);
}

.post-nav strong {
	font-family: var(--font-head);
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1.25;
}

.pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 2.6rem;
}

.pager .page-numbers {
	display: inline-block;
	min-width: 2.6rem;
	padding: 0.45rem 0.7rem;
	font-family: var(--font-mono);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--ink);
	background: var(--card);
	border: 2px solid var(--ink);
}

.pager a.page-numbers:hover {
	color: var(--on-dark);
	background: var(--ink);
}

.pager .page-numbers.current {
	color: var(--on-dark);
	background: var(--accent);
	border-color: var(--accent);
}

.pager .page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* ---------- Сайдбар: тёмная вставка ---------- */
.sidebar {
	min-width: 0;
	padding: 1.6rem 1.5rem;
	color: var(--on-dark);
	background-color: var(--graphite);
	background-image:
		linear-gradient(rgba(242, 245, 247, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(242, 245, 247, 0.07) 1px, transparent 1px);
	background-size: 28px 28px;
}

.sidebar .widget + .widget {
	margin-top: 2rem;
}

.sidebar .widget-title {
	margin: 0 0 0.9rem;
	padding-bottom: 0.5rem;
	font-size: 1.5rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	border-bottom: 2px solid var(--accent);
}

.sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar li {
	padding: 0.55rem 0;
	font-size: 0.95rem;
	line-height: 1.4;
	border-bottom: 1px dashed rgba(242, 245, 247, 0.22);
}

.sidebar a {
	color: var(--on-dark);
	text-decoration: none;
}

.sidebar a:hover {
	color: var(--lime);
}

.sidebar .wp-block-latest-posts__post-date,
.sidebar .post-date {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--on-dark-2);
}

/* ---------- Комментарии ---------- */
.comments {
	margin-top: 2.6rem;
}

.comments-title,
.comment-reply-title {
	margin: 0 0 1rem;
	font-size: 1.7rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	padding-left: 1.6rem;
}

.comment-body {
	margin-bottom: 1rem;
	padding: 1rem 1.2rem;
	background: var(--card);
	border-left: 3px solid var(--accent);
}

.comment-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	margin-bottom: 0.4rem;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--muted);
}

.comment-head b {
	color: var(--ink);
}

.comment-wait {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--accent);
}

.comment-reply-link {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--accent);
}

.comment-respond {
	margin-top: 1.8rem;
	padding: 1.6rem;
	background: var(--card);
	border: 2px solid var(--ink);
}

.comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-family: var(--font-mono);
	font-size: 0.85rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	width: 100%;
	padding: 0.6rem 0.8rem;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: #fff;
	border: 2px solid var(--ink);
	border-radius: 0;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
}

.comment-form input[type="submit"],
.search-form button,
.cut-btn,
.cookie-banner button {
	display: inline-block;
	padding: 0.65em 1.4em;
	font-family: var(--font-head);
	font-size: 1.05rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--on-dark);
	background: var(--accent);
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.comment-form input[type="submit"]:hover,
.search-form button:hover,
.cut-btn:hover,
.cookie-banner button:hover {
	color: var(--on-dark);
	background: var(--ink);
}

.must-log-in,
.logged-in-as,
.comment-notes {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--muted);
}

.search-form {
	display: flex;
	gap: 0.6rem;
	margin: 0 0 2rem;
}

.search-form label {
	flex: 1;
}

/* ---------- 404 ---------- */
.lost {
	padding: 1rem 0 2rem;
}

.lost-code {
	margin: 0;
	font-family: var(--font-head);
	font-size: clamp(6rem, 18vw, 12rem);
	font-weight: 600;
	line-height: 0.9;
}

.lost-code span {
	color: var(--accent);
}

.lost p {
	font-family: var(--font-mono);
}

/* ---------- Подвал: махагон и латунная линия ---------- */
.site-footer {
	color: var(--on-dark);
	background: var(--mahogany);
	border-top: 2px solid var(--brass);
}

.footer-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 3rem;
	padding: 2.8rem 0 2rem;
}

.footer-col {
	min-width: 0;
}

.footer-col:nth-child(2) {
	text-align: center;
}

.footer-col .widget-title {
	margin: 0 0 0.6rem;
	font-size: 1.6rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--brass);
}

.footer-col p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--on-dark-2);
}

.footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1rem;
	line-height: 2;
}

.footer-col a {
	color: var(--on-dark);
	text-decoration: none;
}

.footer-col p a {
	color: var(--brass);
	text-decoration: underline;
}

.footer-col a:hover,
.footer-col a:focus-visible {
	color: var(--brass-2);
	text-decoration: underline;
}

.copyright {
	margin: 0;
	padding: 1rem 0 1.8rem;
	font-size: 1rem;
	text-align: center;
	color: var(--on-dark-2);
	border-top: 1px solid var(--brass-3);
}

/* ---------- Cookie ---------- */
.cookie-banner[hidden] {
	display: none;
}

.cookie-banner {
	position: fixed;
	right: 1.2rem;
	bottom: 1.2rem;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 560px;
	padding: 1rem 1.3rem;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--on-dark);
	background: var(--graphite);
	border-left: 4px solid var(--accent);
	box-shadow: var(--shadow);
}

.cookie-banner p {
	margin: 0;
}
/* ---------- Внутренние страницы: лист слоновой кости ---------- */
.page-head h1 {
	font-weight: 400;
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}

.breadcrumbs,
.entry-meta {
	color: var(--muted);
}

.breadcrumbs a {
	color: var(--ink);
}

.breadcrumbs .sep,
.entry-meta a {
	color: var(--brass-dark);
}

.sheet {
	background: var(--ivory-2);
	border: 1px solid var(--line);
	box-shadow: none;
}

.sheet::before {
	border: 0;
}

.entry-content {
	font-size: 1.12rem;
}

.entry-content a {
	color: var(--brass-dark);
	text-decoration: underline;
}

.entry-content h2 {
	font-size: 2.1rem;
	font-weight: 400;
	border-bottom: 1px solid var(--line);
}

.entry-content h3 {
	font-size: 1.6rem;
	font-weight: 400;
}

.entry-content ul > li::before {
	top: 0.6em;
	width: 0.45em;
	height: 0.45em;
	border: 0;
	background: var(--brass);
	transform: rotate(45deg);
}

.entry-content ol > li::marker {
	color: var(--brass-dark);
}

.entry-content blockquote {
	font-family: var(--font-head);
	font-size: 1.2rem;
	background: var(--ivory);
	border-left: 3px solid var(--brass);
}

.entry-content th {
	background: var(--ivory);
}

.entry-content td,
.entry-content th {
	border-color: var(--line);
}

.sidebar {
	color: var(--on-dark);
	background: var(--malachite);
	background-image: none;
	border: 1px solid var(--brass);
}

.sidebar .widget-title {
	font-size: 1.6rem;
	font-weight: 400;
	color: #F3EBDA;
	border-bottom: 1px solid var(--brass);
}

.sidebar li {
	border-bottom: 1px solid rgba(198, 162, 78, 0.3);
}

.sidebar a {
	color: var(--on-dark);
}

.sidebar a:hover {
	color: var(--brass-2);
}

.post-nav a,
.pager .page-numbers {
	background: var(--ivory-2);
	border: 1px solid var(--line);
	box-shadow: none;
}

.post-nav strong {
	font-family: var(--font-head);
	font-size: 1.25rem;
	font-weight: 400;
}

.post-nav small {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--brass-dark);
}

.post-nav a:hover,
.pager a.page-numbers:hover {
	color: var(--on-dark);
	background: var(--malachite);
}

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

.comment-respond {
	background: var(--ivory-2);
	border: 1px solid var(--line);
}

.comment-body {
	background: var(--ivory-2);
	border-left-color: var(--brass);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	background: #FBF6EC;
	border: 1px solid var(--line);
}

.comment-form input[type="submit"],
.search-form button,
.cut-btn,
.cookie-banner button {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brass-2);
	background: var(--malachite);
	border: 1px solid var(--brass);
	box-shadow: none;
}

.comment-form input[type="submit"]:hover,
.search-form button:hover,
.cut-btn:hover,
.cookie-banner button:hover {
	color: var(--ink);
	background: var(--brass);
}

.lost-code {
	font-family: var(--font-head);
	font-weight: 400;
	color: var(--ink);
}

.lost-code span {
	color: var(--brass-dark);
}

/* Подвал */
.site-footer {
	padding-top: 1rem;
	color: var(--on-dark);
	background: var(--night-2);
	border-top: 0;
}

.footer-col .footer-name {
	margin: 0 0 0.8rem;
	font-family: var(--font-head);
	font-size: 2.9rem;
	line-height: 1.05;
	color: #F3EBDA;
}

.footer-col .footer-desc {
	max-width: 22rem;
	font-size: 1.15rem;
	line-height: 1.35;
	color: var(--on-dark);
}

.footer-col .widget-title {
	margin: 0 0 0.9rem;
	font-family: var(--font-body);
	font-size: 1.1rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--brass);
}

.footer-col:nth-child(2) {
	text-align: left;
}

.footer-col:nth-child(2) .widget-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col li {
	margin: 0;
	padding: 0;
	line-height: 1.45;
}

.footer-col ul a {
	font-size: 1.1rem;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--brass);
}

.footer-col ul a:hover,
.footer-col ul a:focus-visible {
	color: #F3EBDA;
	text-decoration: underline;
}

.footer-col p {
	font-size: 1.15rem;
	line-height: 1.4;
	color: var(--on-dark);
}

.footer-col p a {
	color: var(--brass-2);
}

.copyright {
	font-size: 1.05rem;
	text-align: center;
	color: var(--on-dark);
	border-top: 1px solid var(--brass);
}

.cookie-banner {
	color: var(--on-dark);
	background: var(--night);
	border: 1px solid var(--brass);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.split {
		grid-template-columns: minmax(0, 1fr);
	}
	.half,
	.half--start,
	.half--end {
		padding-left: 32px;
		padding-right: 32px;
	}
	.loupe {
		padding-left: 0;
		padding-right: 0;
	}
	.loupe-text {
		padding-left: 32px;
	}
	.loupe-figure {
		max-width: 900px;
	}
	.watch {
		margin-top: 0;
	}
}

@media (max-width: 959px) {
	.header-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.brand-mark,
	.brand-logo {
		width: 72px;
	}
	.nav-toggle {
		display: inline-block;
		margin-top: 0.4rem;
	}
	.main-nav {
		grid-column: 1 / -1;
		justify-self: stretch;
		padding-top: 0;
	}
	.main-nav[data-open="false"] {
		display: none;
	}
	.main-nav ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.3rem;
	}
	.main-nav li + li::before {
		content: none;
	}
	.layout-with-sidebar .feed {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.layout-with-sidebar {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 2.5rem;
	}
	.footer-cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 760px) {
	.feed,
	.layout-with-sidebar .feed {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.8rem;
	}
	.card-thumb {
		aspect-ratio: 16 / 10;
	}
	.swatches {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.6rem 1.2rem;
	}
	/* Подписи к рисункам уходят списком под рисунок */
	.watch figcaption,
	.loupe-figure figcaption {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem 1.2rem;
		padding: 1rem 0 1.6rem;
	}
	.loupe-figure figcaption {
		padding: 1rem 16px 1.6rem;
	}
	.watch-label,
	.loupe-label {
		position: static;
		max-width: none;
		font-size: 0.95rem;
		text-align: left;
	}
	.watch-label::before,
	.loupe-label::before {
		content: "◆ ";
		font-size: 0.7em;
		vertical-align: 0.15em;
	}
	.watch img {
		mask-image: none;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 17px;
	}
	.shell,
	.half,
	.half--start,
	.half--end {
		padding-left: 16px;
		padding-right: 16px;
	}
	.loupe {
		padding-left: 0;
		padding-right: 0;
	}
	.loupe-text {
		padding-left: 16px;
		padding-right: 16px;
	}
	.header-row {
		padding-top: 1.4rem;
		padding-bottom: 1.6rem;
	}
	.brand {
		column-gap: 0.9rem;
	}
	.brand-mark,
	.brand-logo {
		width: 54px;
	}
	.brand-name {
		font-size: 2.5rem;
	}
	.brand-desc {
		grid-column: 1 / -1;
		margin-top: 0.9rem;
		font-size: 1.05rem;
	}
	.site-header {
		background:
			linear-gradient(90deg, rgba(11, 21, 18, 0.85), rgba(11, 21, 18, 0.55)),
			url("images/marble.jpg") center / cover no-repeat,
			var(--night);
	}
	.anatomy {
		padding-top: 2.8rem;
	}
	.half {
		padding-top: 2.8rem;
		padding-bottom: 3rem;
	}
	.loupe {
		padding-bottom: 0;
	}
	.sec-lead {
		font-size: 1.15rem;
	}
	.registry-list li {
		min-height: 56px;
		font-size: 1.3rem;
	}
	.registry-list img {
		width: 38px;
		height: 38px;
	}
	.swatches b {
		font-size: 1.15rem;
	}
	.swatches span {
		font-size: 0.95rem;
	}
	.footer-col .footer-name {
		font-size: 2.3rem;
	}
	.sheet {
		padding: 1.6rem 1.1rem 1.8rem;
	}
	.sidebar {
		padding: 1.3rem 1.2rem;
	}
	.comment-respond {
		padding: 1.2rem 1.1rem;
	}
	.post-nav {
		grid-template-columns: minmax(0, 1fr);
	}
	.search-form {
		flex-direction: column;
	}
	.cookie-banner {
		left: 0.6rem;
		right: 0.6rem;
		bottom: 0.6rem;
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	* {
		transition: none !important;
	}
}
