/*
Theme Name: Розовый лонгрид
Author: Content Factory
Description: Светлая быстрая тема для статей, подборок и длинного чтения. Адаптивная, без внешних шрифтов и тяжёлых конструкторов.
Version: 1.0.22
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: rose-longread
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--rose-bg: #fff8ee;
	--rose-surface: #fffdf9;
	--rose-surface-soft: #fff3f6;
	--rose-blush: #fbe5ec;
	--rose-accent: #c86f8d;
	--rose-accent-dark: #874058;
	--rose-accent-deep: #6f3046;
	--rose-ink: #342d31;
	--rose-muted: #756a6e;
	--rose-line: #ead7dd;
	--rose-line-light: #f2e5e9;
	--rose-success: #3f7454;
	--rose-shadow-sm: 0 7px 25px rgba(86, 57, 68, .06);
	--rose-shadow: 0 18px 55px rgba(86, 57, 68, .10);
	--rose-radius-sm: 12px;
	--rose-radius: 22px;
	--rose-radius-lg: 32px;
	--rose-content: 760px;
	--rose-wide: 1180px;
	--rose-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--rose-reading: Iowan Old Style, Charter, "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at 8% 0%, rgba(251, 229, 236, .55), transparent 32rem),
		var(--rose-bg);
	color: var(--rose-ink);
	font-family: var(--rose-ui);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img {
	max-width: 100%;
	height: auto;
}

figure { margin: 0; }

a {
	color: var(--rose-accent-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover { color: var(--rose-accent-deep); }

button,
input,
textarea,
select { font: inherit; }

button,
input[type="submit"] { cursor: pointer; }

:focus-visible {
	outline: 3px solid rgba(200, 111, 141, .36);
	outline-offset: 3px;
}

.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;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--rose-shadow);
}

.rose-shell {
	width: min(calc(100% - 40px), var(--rose-wide));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 120;
	border-bottom: 1px solid rgba(234, 215, 221, .78);
	background: rgba(255, 248, 238, .90);
	backdrop-filter: blur(16px);
}

.admin-bar .site-header { top: 32px; }

.site-header-spacer { display: none; }

.site-header__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 28px;
	align-items: center;
	min-height: 76px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.custom-logo-link {
	display: inline-flex;
	flex: 0 0 auto;
}

.custom-logo {
	display: block;
	width: auto;
	max-height: 50px;
}

.site-title {
	margin: 0;
	font-family: var(--rose-reading);
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
}

.site-title a {
	color: var(--rose-ink);
	text-decoration: none;
}

.site-description {
	margin: 3px 0 0;
	font-size: .75rem;
	line-height: 1.3;
	color: var(--rose-muted);
}

.primary-navigation {
	justify-self: center;
}

.mobile-navigation { display: none; }

.primary-navigation ul,
.mobile-navigation ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation a,
.mobile-navigation a {
	display: block;
	padding: 9px 12px;
	border-radius: 999px;
	color: var(--rose-ink);
	font-size: .91rem;
	font-weight: 650;
	text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a,
.mobile-navigation a:hover,
.mobile-navigation .current-menu-item > a,
.mobile-navigation .current-menu-ancestor > a {
	background: var(--rose-blush);
	color: var(--rose-accent-dark);
}

.header-search {
	width: min(250px, 22vw);
}

.search-form {
	position: relative;
	display: flex;
	align-items: center;
}

.search-field {
	width: 100%;
	height: 42px;
	padding: 0 44px 0 15px;
	border: 1px solid var(--rose-line);
	border-radius: 999px;
	background: rgba(255, 253, 249, .88);
	color: var(--rose-ink);
}

.search-field::placeholder { color: #968a8f; }

.search-submit {
	position: absolute;
	right: 5px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--rose-accent-dark);
	color: #fff;
}

.menu-toggle {
	display: none;
	width: 43px;
	height: 43px;
	padding: 0;
	border: 1px solid var(--rose-line);
	border-radius: 50%;
	background: var(--rose-surface);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
	display: block;
	width: 18px;
	height: 2px;
	margin: 4px auto;
	border-radius: 2px;
	background: var(--rose-ink);
	content: "";
	transition: transform .2s ease, opacity .2s ease;
}

.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }

.menu-backdrop { display: none; }

.header-ad-zone {
	width: min(calc(100% - 40px), var(--rose-wide));
	margin: 0 auto;
}

.site-main { min-height: 55vh; }

.home-hero__eyebrow,
.archive-eyebrow,
.article-kind {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 14px;
	font-size: .73rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rose-accent-dark);
}

.home-hero__eyebrow::before,
.archive-eyebrow::before,
.article-kind::before {
	width: 22px;
	height: 1px;
	background: currentColor;
	content: "";
}

.section-block {
	padding: clamp(38px, 6vw, 70px) 0;
}

.section-block--soft {
	border-block: 1px solid var(--rose-line-light);
	background: rgba(255, 253, 249, .58);
}

.section-heading {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 20px;
	margin-bottom: 26px;
}

.section-heading h2 {
	margin: 0;
	font-family: var(--rose-reading);
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 650;
	line-height: 1.06;
	letter-spacing: -.035em;
}

.section-heading a {
	font-size: .9rem;
	font-weight: 750;
}

.post-category {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 14px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--rose-blush);
	color: var(--rose-accent-dark);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none;
}

.post-card__title {
	font-family: var(--rose-reading);
	font-weight: 650;
	letter-spacing: -.025em;
}

.post-card__title a {
	color: var(--rose-ink);
	text-decoration: none;
}

.post-card__title a:hover { color: var(--rose-accent-dark); }

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	align-items: center;
	margin-top: 22px;
	font-size: .78rem;
	color: var(--rose-muted);
}

.post-meta .post-author a { color: inherit; text-underline-offset: 3px; }
.post-meta .post-author a:hover { color: var(--rose-accent-dark); }

.post-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--rose-line);
	border-radius: var(--rose-radius);
	overflow: hidden;
	background: var(--rose-surface);
	box-shadow: var(--rose-shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--rose-shadow);
}

.post-card__image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--rose-blush);
}

.post-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
}

.post-card:hover .post-card__image img { transform: scale(1.03); }

.post-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	background:
		radial-gradient(circle at 25% 30%, rgba(255,255,255,.8), transparent 18%),
		linear-gradient(145deg, var(--rose-blush), #f5c9d6);
	color: var(--rose-accent-dark);
	font-family: var(--rose-reading);
	font-size: 2.3rem;
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.post-card__title {
	margin: 0;
	font-size: 1.45rem;
	line-height: 1.22;
}

.post-card__excerpt {
	margin: 13px 0 0;
	font-family: var(--rose-reading);
	font-size: .98rem;
	line-height: 1.62;
	color: var(--rose-muted);
}

.post-card .post-meta { margin-top: auto; padding-top: 18px; }

.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tag-cloud a {
	display: inline-flex;
	padding: 9px 14px;
	border: 1px solid var(--rose-line);
	border-radius: 999px;
	background: var(--rose-surface);
	color: var(--rose-muted);
	font-size: .86rem !important;
	font-weight: 650;
	text-decoration: none;
}

.tag-cloud a:hover {
	border-color: var(--rose-accent);
	background: var(--rose-blush);
	color: var(--rose-accent-dark);
}

.archive-header {
	padding: clamp(50px, 8vw, 92px) 0 34px;
	text-align: center;
}

.archive-header h1 {
	max-width: 900px;
	margin: 0 auto;
	font-family: var(--rose-reading);
	font-size: clamp(2.5rem, 6vw, 4.8rem);
	font-weight: 650;
	line-height: 1.02;
	letter-spacing: -.05em;
}

.archive-description {
	max-width: 720px;
	margin: 20px auto 0;
	font-family: var(--rose-reading);
	font-size: 1.15rem;
	color: var(--rose-muted);
}

.article-shell {
	padding: clamp(32px, 6vw, 72px) 0 80px;
}

.breadcrumbs {
	max-width: var(--rose-wide);
	margin: 0 auto 28px;
	font-size: .78rem;
	color: var(--rose-muted);
}

.breadcrumbs a { color: inherit; }
.breadcrumbs span { margin: 0 7px; }

.article-header {
	max-width: 920px;
	margin: 0 auto;
	text-align: center;
}

.article-title {
	margin: 0;
	font-family: var(--rose-reading);
	font-size: clamp(2.55rem, 6.6vw, 5.4rem);
	font-weight: 650;
	line-height: 1.01;
	letter-spacing: -.055em;
	text-wrap: balance;
}

.article-lead {
	max-width: 760px;
	margin: 25px auto 0;
	font-family: var(--rose-reading);
	font-size: clamp(1.15rem, 2vw, 1.42rem);
	line-height: 1.62;
	color: var(--rose-muted);
	text-wrap: pretty;
}

.article-header .post-meta {
	justify-content: center;
	margin-top: 24px;
}

.article-featured {
	width: min(100%, 1080px);
	margin: clamp(32px, 6vw, 58px) auto 0;
	border-radius: var(--rose-radius-lg);
	overflow: hidden;
	box-shadow: var(--rose-shadow);
}

.article-featured img {
	display: block;
	width: 100%;
	height: auto;
}

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, var(--rose-content)) 260px;
	gap: clamp(42px, 6vw, 76px);
	justify-content: center;
	align-items: start;
	margin-top: clamp(38px, 6vw, 64px);
}

.entry-content {
	min-width: 0;
	font-family: var(--rose-reading);
	font-size: clamp(1.08rem, .35vw + 1rem, 1.23rem);
	line-height: 1.78;
	color: #3a3236;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.45em; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.45em; padding-left: 1.35em; }
.entry-content li { margin: .48em 0; padding-left: .25em; }
.entry-content li::marker { color: var(--rose-accent); font-weight: 700; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--rose-ui);
	color: var(--rose-ink);
	text-wrap: balance;
	scroll-margin-top: 105px;
}

.entry-content h2 {
	margin: 2.3em 0 .75em;
	font-size: clamp(1.75rem, 3vw, 2.45rem);
	font-weight: 760;
	line-height: 1.18;
	letter-spacing: -.035em;
}

.entry-content h3 {
	margin: 1.9em 0 .65em;
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	font-weight: 740;
	line-height: 1.25;
	letter-spacing: -.025em;
}

.entry-content h4 {
	margin: 1.6em 0 .55em;
	font-size: 1.15rem;
	line-height: 1.3;
}

.entry-content a {
	color: var(--rose-accent-dark);
	text-decoration-color: rgba(135, 64, 88, .45);
}

.entry-content a:hover { text-decoration-color: currentColor; }

.entry-content blockquote {
	position: relative;
	margin: 2em 0;
	padding: 24px 28px 24px 34px;
	border: 0;
	border-radius: 0 var(--rose-radius) var(--rose-radius) 0;
	background: var(--rose-surface-soft);
	font-size: 1.1em;
	font-style: italic;
	line-height: 1.68;
}

.entry-content blockquote::before {
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	border-radius: 5px;
	background: var(--rose-accent);
	content: "";
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content figure,
.entry-content .wp-block-image {
	margin: 2em 0;
}

.entry-content figure img,
.entry-content .wp-block-image img {
	border-radius: 18px;
}

.entry-content figcaption {
	margin-top: 8px;
	font-family: var(--rose-ui);
	font-size: .76rem;
	line-height: 1.45;
	color: var(--rose-muted);
	text-align: center;
}

.entry-content hr {
	width: 110px;
	margin: 3em auto;
	border: 0;
	border-top: 1px solid var(--rose-line);
}

.entry-content table {
	width: 100%;
	margin: 2em 0;
	border-collapse: collapse;
	font-family: var(--rose-ui);
	font-size: .9rem;
	line-height: 1.5;
}

.entry-content th,
.entry-content td {
	padding: 12px 14px;
	border: 1px solid var(--rose-line);
	text-align: left;
	vertical-align: top;
}

.entry-content th { background: var(--rose-blush); }

.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .alignwide { width: min(100vw - 48px, 980px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

.article-rail {
	position: sticky;
	top: 104px;
	display: grid;
	gap: 22px;
}

.rail-card {
	padding: 20px;
	border: 1px solid var(--rose-line);
	border-radius: 18px;
	background: var(--rose-surface);
	box-shadow: var(--rose-shadow-sm);
}

.rail-card h2 {
	margin: 0 0 12px;
	font-size: .85rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.rail-card .tag-cloud { gap: 7px; }
.rail-card .tag-cloud a { padding: 6px 9px; font-size: .73rem !important; }

.article-footer {
	max-width: var(--rose-content);
	margin: 42px auto 0;
}

.article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	padding-top: 24px;
	border-top: 1px solid var(--rose-line);
}

.article-tags a {
	padding: 7px 11px;
	border: 1px solid var(--rose-line);
	border-radius: 999px;
	background: var(--rose-surface);
	font-size: .8rem;
	font-weight: 650;
	text-decoration: none;
}

/* Halve the complete gaps, including the final content margin and shell padding. */
.single-post .article-footer { margin-top: 21px; }
.single-post .article-shell { padding-bottom: 40px; }
.single-post .post-navigation { margin-top: 17px; }
.single-post .entry-content > p:last-child,
.single-post .entry-content > ul:last-child,
.single-post .entry-content > ol:last-child { margin-bottom: .725em; }
.single-post .entry-content > .cfz-book-card:last-child { margin-bottom: 1.1em; }
@media (min-width: 1070px) {
	.single-post .article-shell { padding-bottom: 32px; }
	.single-post .entry-content > p:last-child,
	.single-post .entry-content > ul:last-child,
	.single-post .entry-content > ol:last-child { margin-bottom: .6em; }
}

.article-author {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	padding: 30px;
	border: 1px solid var(--rose-line);
	border-radius: 24px;
	background: linear-gradient(120deg, #fff0f5, var(--rose-surface) 75%);
	box-shadow: var(--rose-shadow-sm);
}

.article-author__mark {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	border: 1px solid #e9c3d0;
	border-radius: 50%;
	background: #f8dfe8;
	color: var(--rose-accent-deep);
	font-family: var(--rose-reading);
	font-size: 1.75rem;
	font-weight: 650;
}

.article-author__eyebrow {
	margin: 0 0 5px;
	color: var(--rose-accent-dark);
	font-size: .68rem;
	font-weight: 750;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.article-author__name {
	margin: 0;
	font-family: var(--rose-reading);
	font-size: clamp(1.5rem, 2.4vw, 1.9rem);
	font-weight: 650;
	line-height: 1.2;
}

.article-author__bio {
	margin: 11px 0 16px;
	color: var(--rose-muted);
	font-size: .95rem;
	line-height: 1.65;
}

.article-author__bio::first-letter { text-transform: uppercase; }
.article-author__link {
	display: inline-flex;
	gap: 9px;
	align-items: center;
	padding-block: 4px;
	color: var(--rose-accent-deep);
	font-size: .85rem;
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
.article-author__link:hover { color: var(--rose-accent-dark); }
.article-author + .article-tags { margin-top: 24px; }

.post-navigation {
	display: block;
	width: min(calc(100% - 40px), var(--rose-wide));
	margin: 34px auto 0;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next { display: flex; min-width: 0; }
.post-navigation .nav-previous { grid-column: 1; }
.post-navigation .nav-next { grid-column: 2; text-align: right; }

.post-navigation a {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 15px;
	min-width: 0;
	padding: 24px 26px;
	border: 1px solid var(--rose-line);
	border-radius: 22px;
	background: var(--rose-surface);
	box-shadow: var(--rose-shadow-sm);
	color: var(--rose-ink);
	text-decoration: none;
	transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.post-navigation a:hover {
	border-color: var(--rose-accent);
	background: #fff4f7;
	transform: translateY(-2px);
}
.post-navigation a:focus-visible,
.article-author__link:focus-visible {
	outline: 3px solid var(--rose-accent-dark);
	outline-offset: 4px;
}

.post-navigation .nav-direction { display: flex; gap: 10px; align-items: center; }
.post-navigation .nav-next .nav-direction { justify-content: flex-end; }
.post-navigation .nav-arrow {
	display: grid;
	flex: 0 0 34px;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--rose-blush);
	color: var(--rose-accent-deep);
	font-size: 1.25rem;
	line-height: 1;
}
.post-navigation .nav-subtitle {
	font-family: var(--rose-ui);
	font-size: .7rem;
	font-weight: 750;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--rose-muted);
}
.post-navigation .nav-title {
	font-family: var(--rose-reading);
	font-size: clamp(1rem, 1.6vw, 1.25rem);
	font-weight: 650;
	line-height: 1.4;
	overflow-wrap: anywhere;
}


.related-posts {
	max-width: var(--rose-wide);
	margin: 70px auto 0;
	padding-top: 48px;
	border-top: 1px solid var(--rose-line);
}

.related-posts h2 {
	margin: 0 0 24px;
	font-family: var(--rose-reading);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 650;
	letter-spacing: -.03em;
}

.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 38px;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--rose-line);
	border-radius: 999px;
	background: var(--rose-surface);
	color: var(--rose-ink);
	font-size: .86rem;
	font-weight: 700;
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
	border-color: var(--rose-accent-dark);
	background: var(--rose-accent-dark);
	color: #fff;
}

.no-results {
	max-width: 700px;
	margin: 60px auto;
	padding: 38px;
	border: 1px solid var(--rose-line);
	border-radius: var(--rose-radius);
	background: var(--rose-surface);
	text-align: center;
	box-shadow: var(--rose-shadow-sm);
}

.no-results h1,
.error-404 h1 {
	font-family: var(--rose-reading);
	font-size: clamp(2.4rem, 6vw, 4.6rem);
	line-height: 1;
}

.site-footer {
	margin-top: 40px;
	border-top: 1px solid var(--rose-line);
	background: rgba(255, 253, 249, .74);
}

.site-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 40px;
	align-items: start;
	padding: 48px 0 34px;
}

.footer-brand .site-title { font-size: 1.55rem; }
.footer-brand p { max-width: 480px; margin: 10px 0 0; color: var(--rose-muted); }

.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-navigation a { color: var(--rose-muted); font-size: .87rem; text-decoration: none; }
.footer-navigation a:hover { color: var(--rose-accent-dark); }

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 0 28px;
	border-top: 1px solid var(--rose-line-light);
	font-size: .75rem;
	color: var(--rose-muted);
}

.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	width: 0;
	height: 3px;
	background: var(--rose-accent);
	box-shadow: 0 0 8px rgba(200, 111, 141, .45);
	pointer-events: none;
}

.admin-bar .reading-progress { top: 32px; }

/* Desktop scale refinement. Tablet and mobile rules below remain unchanged. */
@media (min-width: 1070px) {
	.section-block { padding: 52px 0; }
	.section-heading h2 { font-size: clamp(2rem, 2.6vw, 2.75rem); }
	.archive-header { padding: 64px 0 30px; }
	.archive-header h1 { font-size: clamp(2.8rem, 3.8vw, 4rem); }
	.article-shell { padding: 54px 0 64px; }
	.breadcrumbs { margin-bottom: 22px; }
	.article-header { max-width: 1040px; }
	.article-title { font-size: clamp(3rem, 4vw, 4.1rem); }
	.article-lead { max-width: 820px; margin-top: 21px; font-size: 1.2rem; }
	.article-header .post-meta { margin-top: 20px; }
	.article-featured { margin-top: 42px; }
	.article-layout { gap: clamp(42px, 4vw, 60px); margin-top: 46px; }
	.entry-content { font-size: 1.125rem; line-height: 1.7; }
	.entry-content p,
	.entry-content ul,
	.entry-content ol { margin-bottom: 1.2em; }
	.entry-content h2 { margin-top: 1.8em; font-size: clamp(1.875rem, 2.2vw, 2.1875rem); }
	.entry-content h3 { margin-top: 1.55em; font-size: clamp(1.4375rem, 1.65vw, 1.6875rem); }
	.related-posts { margin-top: 58px; padding-top: 38px; }
	.related-posts h2 { font-size: clamp(2rem, 2.6vw, 2.65rem); }
	.no-results {
		max-width: 640px;
		margin: 40px auto;
		padding: 30px 32px;
	}
	.no-results h1,
	.error-404 h1 {
		margin: 0 0 14px;
		font-size: clamp(2.2rem, 3vw, 3.2rem);
		line-height: 1.08;
	}
	.no-results > p:not(.archive-eyebrow),
	.error-404 > p:not(.archive-eyebrow) {
		margin: 0 auto 16px;
		font-size: 1.0625rem;
		line-height: 1.6;
	}
	.no-results .search-form,
	.error-404 .search-form {
		max-width: 480px;
		margin: 20px auto 0;
	}
}

@media (max-width: 1060px) {
	.site-header__inner { grid-template-columns: auto 1fr auto; gap: 15px; }
	.primary-navigation--desktop { display: none; }
	.mobile-navigation {
		position: fixed;
		top: var(--rose-drawer-top, 76px);
		right: 0;
		bottom: auto;
		left: auto;
		z-index: 115;
		display: block;
		width: min(72vw, 320px);
		height: auto;
		max-height: min(calc(100vh - var(--rose-drawer-top, 76px) - 16px), 70vh);
		max-height: min(calc(100dvh - var(--rose-drawer-top, 76px) - 16px), 70dvh);
		padding: 20px;
		border: 0 solid var(--rose-line);
		border-width: 0 0 1px 1px;
		border-radius: 0 0 0 24px;
		background: var(--rose-surface);
		box-shadow: -18px 18px 45px rgba(86, 57, 68, .13);
		overflow-y: auto;
		overscroll-behavior: contain;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateX(105%);
		transition: transform .24s ease, opacity .2s ease, visibility 0s linear .24s;
	}
	.menu-open .mobile-navigation {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(0);
		transition-delay: 0s;
	}
	.mobile-navigation ul { align-items: stretch; flex-direction: column; }
	.mobile-navigation a { padding: 13px 15px; border-radius: 12px; font-size: 1rem; }
	.menu-toggle { display: block; justify-self: end; }
	.header-search { display: none; }
	.menu-backdrop {
		position: fixed;
		top: var(--rose-drawer-top, 76px);
		right: 0;
		bottom: auto;
		left: 0;
		z-index: 110;
		display: block;
		height: calc(100vh - var(--rose-drawer-top, 76px));
		height: calc(100dvh - var(--rose-drawer-top, 76px));
		border: 0;
		background: rgba(52, 45, 49, .18);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity .2s ease, visibility 0s linear .2s;
	}
	.menu-open .menu-backdrop {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition-delay: 0s;
	}
	.article-layout { grid-template-columns: minmax(0, var(--rose-content)); }
	.article-rail { display: none; }
}

@media (max-width: 900px) {
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__top { grid-template-columns: 1fr; }
	.footer-navigation ul { justify-content: flex-start; }
	.article-title { font-size: clamp(2.5rem, 7.5vw, 3.75rem); }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.admin-bar .reading-progress { top: 46px; }
}

@media (max-width: 600px) {
	.site-header,
	.admin-bar .site-header {
		position: fixed;
		top: var(--rose-admin-offset, 0px);
		right: 0;
		left: 0;
		width: 100%;
	}
	.site-header-spacer {
		display: block;
		height: var(--rose-header-height, 66px);
	}
	.admin-bar .reading-progress { top: var(--rose-admin-offset, 0px); }
}

@media (max-width: 640px) {
	:root { --rose-radius-lg: 22px; }
	.rose-shell { width: min(calc(100% - 28px), var(--rose-wide)); }
	.site-header__inner { min-height: 66px; }
	.mobile-navigation { width: min(76vw, 300px); }
	.site-description { display: none; }
	.custom-logo { max-height: 42px; }
	.section-heading { align-items: flex-start; flex-direction: column; }
	.post-grid { grid-template-columns: 1fr; }
	.article-shell { padding-top: 24px; }
	.breadcrumbs { display: none; }
	.article-title { font-size: clamp(2.15rem, 10.5vw, 3rem); }
	.article-lead { color: #655a5f; font-size: 1.1rem; }
	.article-featured { margin-top: 30px; }
	.article-layout { margin-top: 34px; }
	.entry-content { font-size: 1.075rem; line-height: 1.74; }
	.entry-content h2 { margin-top: 2em; }
	.entry-content blockquote { padding: 20px 20px 20px 27px; }
	.entry-content .alignwide,
	.entry-content .alignfull { width: calc(100vw - 28px); }
	.post-navigation { width: min(calc(100% - 28px), var(--rose-wide)); }
	.post-navigation .nav-links { gap: 12px; }
	.post-navigation a { gap: 12px; padding: 16px 12px; border-radius: 17px; }
	.post-navigation .nav-direction { gap: 6px; }
	.post-navigation .nav-arrow { width: 26px; height: 26px; flex-basis: 26px; font-size: 1.05rem; }
	.post-navigation .nav-subtitle { font-size: .6rem; letter-spacing: .025em; }
	.post-navigation .nav-title { font-size: .92rem; line-height: 1.45; }
	.article-author { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 22px 18px; }
	.article-author__mark { width: 48px; height: 48px; font-size: 1.2rem; }
	.article-author__bio { font-size: .9rem; }
	.site-footer__bottom { flex-direction: column; }
	.no-results { margin: 32px auto; padding: 22px; }
	.no-results h1,
	.error-404 h1 { font-size: clamp(2rem, 9vw, 2.65rem); line-height: 1.08; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
	.site-header,
	.site-footer,
	.article-rail,
	.related-posts,
	.post-navigation,
	.cfz-ad,
	.reading-progress { display: none !important; }
	body { background: #fff; color: #000; }
	.rose-shell { width: 100%; }
	.article-layout { display: block; }
	.entry-content { max-width: none; font-size: 12pt; }
	a { color: #000; }
}

.article-lead p { margin: 0; }
.footer-widget { margin-top: 18px; }
.footer-widget__title { margin: 0 0 8px; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; }
.footer-widget ul { margin: 0; padding: 0; list-style: none; }
.footer-widget li + li { margin-top: 5px; }
.footer-widget a { color: var(--rose-muted); font-size: .86rem; text-decoration: none; }

/* A compact editorial entrance with a real article and all populated rubrics. */
.home-hero { padding: 30px 0 22px; border-bottom: 1px solid var(--rose-line-light); }
.home-hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.home-hero__intro { min-width: 0; }
.home-hero .home-hero__eyebrow { margin-bottom: 12px; }
.home-hero h1 { max-width: 600px; margin: 0; font: 650 clamp(2rem, 3.2vw, 2.7rem)/1.1 var(--rose-reading); letter-spacing: -.035em; text-wrap: balance; }
.home-hero__text { max-width: 540px; margin: 16px 0 0; color: var(--rose-muted); font-size: 1.05rem; line-height: 1.6; }
.home-hero__browse { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; margin-top: 18px; padding: 9px 18px; border: 1px solid var(--rose-accent-dark); border-radius: 999px; color: var(--rose-surface); background: var(--rose-accent-dark); font-size: .9rem; font-weight: 700; text-decoration: none; }
.home-hero__browse:hover { background: var(--rose-accent-deep); color: var(--rose-surface); }
.home-hero__search { display: none; }
.home-pick { min-width: 0; border: 1px solid var(--rose-line); border-radius: var(--rose-radius); overflow: hidden; background: var(--rose-surface); box-shadow: var(--rose-shadow-sm); }
.home-pick__link { display: block; height: 100%; color: var(--rose-ink); text-decoration: none; }
.home-pick__image { height: 174px; overflow: hidden; background: var(--rose-blush); }
.home-pick__image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.home-pick__body { padding: 18px 22px; }
.home-pick__label { margin: 0 0 6px; color: var(--rose-accent-dark); font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.home-pick__title { margin: 0; font: 650 1.4rem/1.2 var(--rose-reading); letter-spacing: -.02em; }
.home-pick__excerpt { margin: 8px 0 0; color: var(--rose-muted); font-size: .85rem; line-height: 1.5; }
.home-pick__read { display: inline-flex; gap: 12px; margin-top: 10px; color: var(--rose-accent-dark); font-size: .82rem; font-weight: 750; }
.home-pick__link:hover .home-pick__title { color: var(--rose-accent-dark); }
.home-pick:focus-within { outline: 3px solid var(--rose-accent-dark); outline-offset: 3px; }
.home-pick__link:focus-visible { outline: none; }
.home-topics { margin-top: 24px; }
.home-topics__label { margin: 0 0 9px; color: var(--rose-muted); font-size: .8rem; font-weight: 650; }
.home-topics ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.home-topics li { min-width: 0; }
.home-topics a { display: flex; align-items: center; min-height: 40px; padding: 7px 14px; border: 1px solid var(--rose-line); border-radius: 999px; background: var(--rose-surface); color: var(--rose-accent-dark); font-size: .84rem; font-weight: 650; line-height: 1.4; text-decoration: none; }
.home-topics a:hover { border-color: var(--rose-accent); background: var(--rose-blush); }
.home-materials { padding-top: 28px; scroll-margin-top: 130px; }
.home-materials .section-heading { margin-bottom: 20px; }
.home-materials .section-heading h2 { font-size: clamp(1.65rem, 2.3vw, 2rem); }
@media (max-width: 1060px) {
	.home-hero__search { display: block; max-width: 420px; margin-top: 16px; }
	.home-hero__browse { display: none; }
	.home-hero__search .search-field { height: 46px; }
	.home-hero__search .search-submit { width: 34px; height: 34px; right: 6px; }
}
@media (max-width: 900px) {
	.home-hero__inner { grid-template-columns: 1fr; gap: 22px; }
	.home-hero h1 { max-width: 650px; font-size: 2.1rem; }
	.home-hero__text { max-width: 650px; }
	.home-pick__link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
	.home-pick__image { height: 100%; min-height: 178px; }
	.home-pick__image img { object-position: 65% 50%; }
	.home-pick__excerpt { margin-top: 7px; }
	.home-topics { margin-top: 20px; }
}
@media (max-width: 640px) {
	.home-hero { padding: 22px 0 20px; }
	.home-hero .home-hero__eyebrow { font-size: .66rem; margin-bottom: 10px; }
	.home-hero h1 { font-size: 1.85rem; line-height: 1.12; }
	.home-hero__text { margin-top: 12px; font-size: .95rem; line-height: 1.5; }
	.home-hero__search { max-width: none; margin-top: 14px; }
	.home-pick__body { padding: 14px; }
	.home-pick__title { font-size: 1.13rem; line-height: 1.25; }
	.home-pick__excerpt { display: none; }
	.home-pick__image { min-height: 166px; }
	.home-pick__read { margin-top: 9px; }
	.home-topics ul { gap: 7px; }
	.home-topics a { min-height: 40px; padding: 7px 11px; font-size: .78rem; }
	.home-materials { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { html:focus-within { scroll-behavior: auto; } }

/* Every populated category is reachable from the header on every page. */
.primary-navigation { min-width: 0; max-width: 100%; }
.primary-navigation ul { flex-wrap: wrap; justify-content: center; gap: 0 2px; }
.primary-navigation a { padding: 8px 9px; font-size: .81rem; line-height: 1.35; white-space: nowrap; }
.search-toggle { display: none; width: 43px; height: 43px; padding: 0; border: 1px solid var(--rose-line); border-radius: 50%; background: var(--rose-surface); color: var(--rose-accent-dark); }
.mobile-navigation__search { margin-bottom: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--rose-line); }
.mobile-navigation__search p { margin: 0 0 8px; color: var(--rose-muted); font-size: .8rem; font-weight: 700; }
.mobile-navigation__search .search-field { min-width: 0; font-size: 16px; }
@media (max-width: 1060px) {
	.site-header__inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
	.search-toggle { display: grid; place-items: center; }
	.mobile-navigation { width: min(88vw, 360px); max-height: calc(100dvh - var(--rose-drawer-top, 76px) - 12px); }
	.mobile-navigation a { padding: 10px 12px; font-size: .94rem; }
}

/* Keep category choices near the first screen; full editorial copy stays visible below. */
.category-archive-header { padding: 28px 0 16px; }
.category-archive-header .breadcrumbs { margin-bottom: 14px; }
.category-archive-header .archive-eyebrow { margin-bottom: 10px; }
.category-archive-header h1 { font-size: clamp(1.95rem, 3.5vw, 2.6rem); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
.category-intro { max-width: 720px; margin: 14px auto 0; color: var(--rose-muted); font-size: 1rem; line-height: 1.55; }
.category-about-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 8px; padding: 4px 0; font-size: .83rem; font-weight: 650; }
.category-materials { padding: 20px 0 32px; }
.category-about { width: min(calc(100% - 40px), var(--rose-content)); margin: 0 auto 44px; padding: 28px 0 0; border-top: 1px solid var(--rose-line); scroll-margin-top: 132px; }
.category-about h2 { margin: 0 0 20px; font: 650 clamp(1.5rem, 2.5vw, 2rem)/1.2 var(--rose-reading); letter-spacing: -.025em; overflow-wrap: anywhere; }
.category-about__text { color: var(--rose-muted); font-family: var(--rose-reading); font-size: 1.1rem; line-height: 1.75; overflow-wrap: break-word; }
.category-about__text p { margin: 0 0 1.25em; }
.category-about__text > :last-child { margin-bottom: 0; }
@media (max-width: 640px) {
	.category-archive-header { padding-top: 22px; }
	.category-archive-header h1 { font-size: 1.95rem; }
	.category-intro { margin-top: 12px; font-size: .95rem; }
	.category-about { width: min(calc(100% - 28px), var(--rose-content)); margin-bottom: 32px; padding-top: 24px; }
	.category-about__text { font-size: 1.03rem; line-height: 1.7; }
}

/* Site identity: retain a compact header for the full editorial brand. */
.site-header .site-branding { max-width: 220px; }
.site-header .site-title__name { display: block; font-size: 1.5rem; line-height: 1.05; }
.site-header .site-title__subtitle { display: block; font-size: .95rem; line-height: 1.3; margin-top: 3px; letter-spacing: .015em; }
.site-header .site-description { display: none; }
@media (max-width: 600px) {
 .site-header .site-title__name { font-size: 1.3rem; }
 .site-header .site-title__subtitle { font-size: .85rem; margin-top: 1px; }
}
