/*
 * Asher Haim Editorial — front-end styles.
 * Visual language: light grotesque type, navy ink, yellow strips,
 * #d9d9d9 hairlines, 1300px grid with 15/30/40px gutters.
 * Font faces are printed by theme.json (Font Face API).
 */

/* ── Tokens ────────────────────────────────────────────────── */
:root {
	--ink: #1a1a1a;
	--ink-2: #404040;
	--muted: #666;
	--navy: #1d2954;
	--navy-2: #192347;
	--blue: #3f66a3;
	--yellow: #ffd53d;
	--yellow-ink: #403002;
	--rule: #d9d9d9;
	--paper: #fff;
	--paper-2: #f6f6f6;

	--sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--container: 1300px;
	--gutter: 15px;
	--read: 720px;
	--header-h: 64px;
	--ease: cubic-bezier(.4, 0, .2, 1);
	--fast: 160ms;
	--slow: 320ms;

	color-scheme: light;
}
@media (min-width: 600px)  { :root { --gutter: 30px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 90px; } }

/* Smooth page-to-page navigation (Chrome/Edge/Safari 18.2+). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: var(--ease); }

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
	hanging-punctuation: first;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	font-weight: 350;
	line-height: 1.6;
	font-feature-settings: "kern", "liga", "calt", "cv11";
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}
@media (min-width: 1024px) { body { font-size: 1.125rem; } }

img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--fast) var(--ease); }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 1px; }
.site-main:focus { outline: none; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; left: 1rem; top: -4rem; z-index: 100;
	background: var(--navy); color: #fff; padding: .75rem 1rem; font-weight: 500;
	transition: top var(--fast) var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

.icon { width: 1.5rem; height: 1.5rem; flex: none; }

/* ── Layout primitives ─────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.meta {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem;
	font-size: .875rem; line-height: 1.4; color: var(--muted); font-weight: 400;
}
.meta--muted { margin-top: .5rem; }
.label { color: var(--navy); font-weight: 500; }
a.label:hover { text-decoration: underline; text-underline-offset: 3px; }

.empty-note { color: var(--muted); padding-block: 1.5rem; }

/* Module header (Simons m-module-header) */
.module-header {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem;
	padding-bottom: 1rem; margin-bottom: 0; border-bottom: 1px solid var(--rule);
}
.module-header__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); font-weight: 300; letter-spacing: -0.015em; line-height: 1.15; }
.module-header--small .module-header__title { font-size: 1.25rem; font-weight: 400; }
.module-header__more { font-size: .9375rem; font-weight: 500; color: var(--navy); white-space: nowrap; }
.module-header__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.module-header--border { border-top: 1px solid var(--rule); padding-top: 1.25rem; }

.link-arrow, .button-link {
	display: inline-flex; align-items: center; gap: .5rem;
	font-size: .9375rem; font-weight: 500; color: var(--navy);
}
.link-arrow .icon, .button-link .icon { width: 1.1em; height: 1.1em; transition: transform var(--fast) var(--ease); }
.link-arrow:hover .icon, .button-link:hover .icon { transform: translateX(3px); }
.button-link { margin-top: 1.75rem; padding: .8rem 1.25rem; background: var(--navy); color: #fff; }
.button-link:hover { background: var(--navy-2); color: #fff; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--rule);
	transition: transform var(--slow) var(--ease);
	view-transition-name: site-header;
}
.site-header.is-hidden { transform: translateY(-100%); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.site-brand { margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: 0; line-height: 1; }
.site-brand .custom-logo { width: auto; max-height: 40px; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); }
.wordmark:hover { color: var(--navy); }
.wordmark__mark {
	width: 28px; height: 28px; flex: none; background: var(--navy);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 62%, 52% 62%, 52% 38%, 0 38%);
	transition: transform var(--slow) var(--ease);
}
.wordmark:hover .wordmark__mark { transform: rotate(-90deg); }
.wordmark__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
@media (min-width: 1024px) { .wordmark__name { font-size: 1.375rem; } .wordmark__mark { width: 32px; height: 32px; } }

/* Логотип-подпись: пропорции 1000×394, высота задаётся, ширина подстраивается. */
.wordmark__logo { display: block; height: 30px; width: auto; }
@media (min-width: 700px) { .wordmark__logo { height: 34px; } }
@media (min-width: 1024px) { .wordmark__logo { height: 40px; } }
.site-footer__brand .wordmark__logo { height: 38px; }
@media (min-width: 1024px) { .site-footer__brand .wordmark__logo { height: 44px; } }

.primary-nav { margin-left: auto; }
.primary-nav__list, .primary-nav ul { display: flex; list-style: none; gap: 2rem; }
.primary-nav a {
	position: relative; display: block; padding-block: .5rem;
	font-size: 1rem; font-weight: 400; color: var(--ink);
}
.primary-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--navy); transform: scaleX(0); transform-origin: left;
	transition: transform var(--slow) var(--ease);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--navy); font-weight: 500; }

.site-header__tools { display: flex; align-items: center; gap: .25rem; }
.icon-button {
	display: inline-grid; place-items: center; width: 44px; height: 44px;
	border: 0; background: transparent; color: var(--navy);
	transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.icon-button:hover { background: var(--paper-2); }
.icon-button[aria-expanded="true"] { background: var(--yellow); color: var(--yellow-ink); }
.menu-toggle .icon--close, .menu-toggle[aria-expanded="true"] .icon--menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (min-width: 900px) { .menu-toggle { display: none; } }
@media (max-width: 899.98px) {
	.site-header__tools { margin-left: auto; }
	.primary-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; z-index: -1;
		margin: 0; padding: 1rem var(--gutter) 2rem;
		background: var(--paper); border-bottom: 1px solid var(--rule);
		box-shadow: 0 24px 48px -24px rgba(29, 41, 84, .25);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease), visibility 0s linear var(--slow);
	}
	.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
	.primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.primary-nav__list, .primary-nav ul { flex-direction: column; gap: 0; }
	.primary-nav li + li { border-top: 1px solid var(--rule); }
	.primary-nav a { padding-block: 1rem; font-size: 1.25rem; font-weight: 300; }
	.primary-nav a::after { display: none; }
}

/* Search panel */
.site-search {
	border-top: 1px solid var(--rule); background: var(--paper);
	padding-block: 1.25rem;
	animation: drop-in var(--slow) var(--ease);
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } }
.search-form { display: flex; align-items: stretch; max-width: 760px; border-bottom: 2px solid var(--navy); }
.search-form__input {
	flex: 1; min-width: 0; border: 0; background: transparent; padding: .75rem 0;
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 300;
}
.search-form__input:focus { outline: none; }
.search-form__input::-webkit-search-cancel-button { display: none; }
.search-form__submit { border: 0; background: transparent; color: var(--navy); padding-inline: .5rem; }
.search-inline { margin-top: 1.5rem; }

/* Reading progress (scroll-driven animation, no JS) */
.reading-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
@supports (animation-timeline: scroll()) {
	.single-post .reading-progress {
		background: var(--navy); transform-origin: 0 50%; transform: scaleX(0);
		animation: progress linear both; animation-timeline: scroll(root block);
	}
	@keyframes progress { to { transform: scaleX(1); } }
}

/* Breadcrumbs */
.breadcrumbs { border-bottom: 1px solid var(--rule); font-size: .875rem; line-height: 1.4; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding-block: .9rem; gap: .25rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--rule); }
.breadcrumbs a { color: var(--navy); }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ── Hero strip (yellow, Simons o-strip) ───────────────────── */
.hero-strip { background: var(--yellow); color: var(--yellow-ink); }
.hero-strip__inner { display: grid; gap: 2rem; padding-block: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .hero-strip__inner { grid-template-columns: 5fr 7fr; gap: 3.5rem; } }
.hero-strip__eyebrow { font-size: .9375rem; font-weight: 500; margin-bottom: 1.25rem; }
.hero-strip__eyebrow .label { color: inherit; }
.hero-strip__title {
	font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); font-weight: 300; line-height: 1.08;
	letter-spacing: -0.03em; color: var(--ink);
}
.hero-strip__title a:hover { color: var(--navy); }
.hero-strip__dek { margin-top: 1.25rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 36rem; }
.hero-strip .meta { margin-top: 1.25rem; color: var(--yellow-ink); }
.hero-strip__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: rgba(0, 0, 0, .06); }
.hero-strip__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.hero-strip__media:hover img { transform: scale(1.025); }
@media (max-width: 899.98px) { .hero-strip__media { order: -1; } .hero-strip__media--art { display: none; } }
/* Abstract composition when the lead story has no image */
.hero-strip__media--art { background: var(--navy); position: relative; }
.hero-art { position: absolute; inset: 0; display: grid; grid-template: repeat(4, 1fr) / repeat(6, 1fr); }
.hero-art span { background: var(--paper); transition: transform 900ms var(--ease); }
.hero-art span:nth-child(1) { grid-area: 1 / 1 / 3 / 3; border-radius: 0 0 100% 0; }
.hero-art span:nth-child(2) { grid-area: 2 / 4 / 5 / 7; border-radius: 50%; background: var(--yellow); transform: scale(.82); }
.hero-art span:nth-child(3) { grid-area: 4 / 1 / 5 / 4; background: var(--blue); }
.hero-art span:nth-child(4) { grid-area: 1 / 5 / 2 / 7; background: transparent; border-bottom: 2px solid var(--paper); }
.hero-strip__media--art:hover .hero-art span:nth-child(2) { transform: scale(.9) translateX(-4%); }
.hero-strip__media--art:hover .hero-art span:nth-child(1) { transform: rotate(-6deg); }

/* ── Latest list + rail ────────────────────────────────────── */
.layout-rail { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .layout-rail { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 4rem; } }
.layout-rail__aside { display: grid; gap: 3rem; align-content: start; }
@media (min-width: 1024px) { .layout-rail__aside { position: sticky; top: calc(var(--header-h) + 2rem); } }

.post-list { display: grid; }
.post-row {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2rem;
	padding-block: 1.75rem; border-bottom: 1px solid var(--rule);
}
.post-row:last-child { border-bottom: 0; }
.post-list--archive .post-row:last-child { border-bottom: 1px solid var(--rule); }
.post-row__title {
	margin-top: .6rem; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 400;
	line-height: 1.25; letter-spacing: -0.015em; max-width: 34em;
}
.post-row__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--slow) var(--ease), color var(--fast) var(--ease); }
.post-row__title a:hover { background-size: 100% 1px; }
.post-row__excerpt { margin-top: .6rem; color: var(--ink-2); font-size: 1rem; line-height: 1.55; max-width: 40em; }
.post-row__media { display: block; width: clamp(96px, 22vw, 240px); aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.post-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.post-row:hover .post-row__media img { transform: scale(1.04); }
@media (max-width: 599.98px) {
	.post-row__excerpt { display: none; }
	.post-row__media { width: 96px; }
}

/* Numbered list (Simons m-post--numbered) */
.numbered-list { list-style: none; }
.post-numbered { display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem; padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.post-numbered__n { font-size: 1.5rem; font-weight: 300; color: var(--muted); line-height: 1.1; font-variant-numeric: tabular-nums; }
.post-numbered__title { font-size: 1.0625rem; font-weight: 400; line-height: 1.35; }
.post-numbered .meta--muted { font-size: .8125rem; margin-top: .4rem; }

/* ── Yellow stripe feature row (Simons m-bg-stripe) ────────── */
.stripe-section {
	padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4.5rem);
	background: linear-gradient(var(--yellow) 0 clamp(210px, 26vw, 365px), transparent 0);
}
.module-header--on-stripe { border-bottom-color: rgba(64, 48, 2, .25); margin-bottom: 2rem; }
.module-header--on-stripe .module-header__title, .module-header--on-stripe .module-header__more { color: var(--yellow-ink); }

.card-grid { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.post-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); margin-bottom: 1.1rem; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy) 0 40%, var(--blue) 40% 70%, var(--yellow) 70%); opacity: .9; }
.post-card__title { margin-top: .6rem; font-size: clamp(1.25rem, 1.15rem + .4vw, 1.4rem); font-weight: 400; line-height: 1.25; }
.post-card__dek { margin-top: .6rem; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }

/* Topics */
.topic-grid { list-style: none; display: grid; gap: 0 2rem; margin-top: .5rem; }
@media (min-width: 640px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .topic-grid { grid-template-columns: repeat(4, 1fr); } }
.topic { display: grid; gap: .35rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); height: 100%; }
.topic__name { font-size: 1.25rem; font-weight: 400; color: var(--navy); }
.topic__desc { color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.topic__count { font-size: .8125rem; color: var(--muted); }
.topic:hover .topic__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ── Author box ────────────────────────────────────────────── */
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding: 1.75rem; background: var(--paper-2); align-items: start; }
.author-box__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--rule); }
.author-box--compact .author-box__photo { width: 56px; height: 56px; }
.author-box__eyebrow { font-size: .8125rem; color: var(--muted); }
.author-box__name { font-size: 1.25rem; font-weight: 500; color: var(--navy); line-height: 1.3; }
.author-box__job { font-size: .9375rem; color: var(--ink-2); margin-top: .15rem; }
.author-box__bio { margin-top: .75rem; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.author-box .link-arrow { margin-top: .9rem; }

/* ── Article ───────────────────────────────────────────────── */
.article-header { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.article-header__eyebrow { font-size: .9375rem; min-height: 1.4em; }
.article-header__title {
	margin-top: 1rem; max-width: 20em;
	font-size: clamp(2.125rem, 1.3rem + 3.2vw, 3.5rem); font-weight: 300;
	line-height: 1.08; letter-spacing: -0.03em;
}
.article-header__intro {
	margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--rule);
	font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.5rem); font-weight: 300; line-height: 1.4; color: var(--ink-2);
	max-width: 40em;
}
.article-hero { margin-top: clamp(2rem, 4vw, 3rem); }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.article-hero figcaption { margin-top: .75rem; font-size: .875rem; line-height: 1.45; color: var(--muted); max-width: 60em; }

.article-body { display: grid; gap: 2rem; padding-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: 3rem; }
@media (min-width: 1024px) {
	.article-body { grid-template-columns: 220px minmax(0, var(--read)); gap: clamp(3rem, 6vw, 6rem); }
	.article-body--page { grid-template-columns: minmax(0, var(--read)); justify-content: start; }
	.article-rail { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; scrollbar-width: thin; }
}
.article-rail { font-size: .875rem; line-height: 1.45; }
.article-meta { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 1024px) { .article-meta { grid-template-columns: 1fr; } }
.article-meta dt { color: var(--muted); font-size: .8125rem; }
.article-meta dd { margin: .15rem 0 0; font-weight: 400; }
.article-meta a { color: var(--navy); }

.share { padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.share__title, .toc__title { font-size: .8125rem; color: var(--muted); margin-bottom: .6rem; }
.share__list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.share__list a, .share__copy { color: var(--navy); font-weight: 400; }
.share__list a:hover, .share__copy:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Кнопка «копировать» выглядит и ведёт себя как остальные ссылки: без иконки. */
.share__copy { display: inline; border: 0; background: none; padding: 0; font: inherit; color: var(--navy); cursor: pointer; }
.share__copy.is-done span { color: var(--ink); text-decoration: none; }

.toc { padding-top: 1.25rem; }
.toc__list { list-style: none; counter-reset: toc; }
.toc__item a { display: block; padding: .35rem 0 .35rem .85rem; border-left: 2px solid var(--rule); color: var(--ink-2); transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.toc__item--h3 a { padding-left: 1.6rem; font-size: .8125rem; }
.toc__item a:hover { color: var(--navy); }
.toc__item a.is-active { border-left-color: var(--navy); color: var(--navy); font-weight: 500; }
@media (max-width: 1023.98px) {
	.toc { padding: 1.25rem; background: var(--paper-2); margin-top: 1rem; }
	.share { border-bottom: 0; }
}

/* Article footer */
.article-footer { margin-top: 3rem; display: grid; gap: 2rem; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--rule); font-size: .875rem; color: var(--navy); transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.tag-list a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.article-cite { font-size: .8125rem; line-height: 1.5; color: var(--muted); padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.article-cite a { color: var(--navy); word-break: break-all; }

.post-nav { display: grid; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav__link { display: grid; gap: .3rem; }
.post-nav__link--next { text-align: right; grid-column: -2; }
.post-nav__label { font-size: .8125rem; color: var(--muted); }
.post-nav__title { font-size: 1.0625rem; line-height: 1.35; color: var(--navy); }
.post-nav__link:hover .post-nav__title { text-decoration: underline; text-underline-offset: 3px; }

.related { padding-block: clamp(2.5rem, 5vw, 4rem); background: var(--paper-2); }
.related .module-header { margin-bottom: 2rem; border-top: 0; padding-top: 0; }
.related .post-card__media { background: var(--rule); }

/* ── Entry content (block output) ──────────────────────────── */
.entry-content { font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.7; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.4em; font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
.entry-content h3 { margin-top: 2em; font-size: clamp(1.25rem, 1.15rem + .5vw, 1.4375rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.entry-content h4 { margin-top: 1.8em; font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }
.entry-content h2 + *, .entry-content h3 + *, .entry-content h4 + * { margin-top: .75em; }
.entry-content :is(h2, h3) { position: relative; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.entry-content .anchor { margin-left: .4em; color: var(--rule); font-weight: 300; opacity: 0; transition: opacity var(--fast) var(--ease), color var(--fast) var(--ease); text-decoration: none; }
.entry-content :is(h2, h3):hover .anchor, .entry-content .anchor:focus { opacity: 1; }
.entry-content .anchor:hover { color: var(--navy); }
.entry-content .anchor::before { content: "#"; }

.entry-content a:not(.anchor):not(.wp-element-button) {
	color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px;
	text-underline-offset: .2em; text-decoration-color: rgba(29, 41, 84, .35);
	transition: text-decoration-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.entry-content a:not(.anchor):not(.wp-element-button):hover { text-decoration-color: currentColor; background: rgba(255, 213, 61, .35); }
.entry-content strong, .entry-content b { font-weight: 600; }
.entry-content :is(ul, ol):not(.wp-block-gallery) { padding-left: 1.4em; }
.entry-content li + li { margin-top: .45em; }
.entry-content li::marker { color: var(--navy); }
.entry-content ol li::marker { font-weight: 500; font-variant-numeric: tabular-nums; }

.entry-content blockquote, .entry-content .wp-block-quote {
	margin-inline: 0; padding: .25em 0 .25em 1.5em; border-left: 4px solid var(--yellow);
	font-size: 1.1em; font-weight: 300; line-height: 1.55; color: var(--ink);
}
.entry-content blockquote cite, .entry-content .wp-block-quote cite { display: block; margin-top: .75em; font-size: .8125rem; font-style: normal; color: var(--muted); }
.entry-content .wp-block-quote.is-style-pull, .entry-content .wp-block-pullquote {
	border: 0; border-block: 1px solid var(--rule); padding: 1.5em 0; text-align: left;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 300; line-height: 1.3; letter-spacing: -0.02em; color: var(--navy);
}
.entry-content .wp-block-pullquote blockquote { border: 0; padding: 0; font-size: inherit; }

.entry-content figure figcaption, .entry-content .wp-element-caption { margin-top: .6rem; font-size: .875rem; line-height: 1.45; color: var(--muted); text-align: left; }
.entry-content .alignwide { margin-inline: 0; }
@media (min-width: 1200px) {
	.article .entry-content .alignwide { width: calc(100% + 220px + clamp(3rem, 6vw, 6rem)); margin-left: calc(-220px - clamp(3rem, 6vw, 6rem)); max-width: none; }
	.article--page .entry-content .alignwide { width: auto; margin-left: 0; }
}
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content::after { content: ""; display: table; clear: both; }

.entry-content code, .entry-content kbd { font-family: var(--mono); font-size: .875em; background: var(--paper-2); padding: .1em .35em; }
.entry-content pre, .entry-content .wp-block-code {
	font-family: var(--mono); font-size: .875rem; line-height: 1.6; background: var(--paper-2);
	padding: 1.25rem 1.5rem; overflow-x: auto; border-left: 3px solid var(--navy);
}
.entry-content pre code { background: none; padding: 0; }

.entry-content .wp-block-table, .entry-content .table-scroll { overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.entry-content th, .entry-content td { padding: .65rem .75rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.entry-content th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--paper-2); }

.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--rule); margin-block: 2.5em; }
.entry-content .wp-block-button__link, .entry-content .wp-element-button { display: inline-block; padding: .8rem 1.25rem; background: var(--navy); color: #fff; font-size: .9375rem; font-weight: 500; text-decoration: none; border-radius: 0; transition: background-color var(--fast) var(--ease); }
.entry-content .wp-block-button__link:hover { background: var(--navy-2); color: #fff; }
.entry-content .wp-block-image img { background: var(--paper-2); }
.entry-content .wp-block-embed iframe { width: 100%; }
.entry-content .wp-block-gallery { gap: .75rem; }

/* Block styles registered by the theme */
.entry-content .is-style-lead, .is-style-lead { font-size: 1.25em; font-weight: 300; line-height: 1.5; color: var(--ink-2); }
.key-points, .is-style-key-points {
	position: relative; padding: 1.5rem 1.75rem 1.75rem; background: #fffbea;
	border-top: 4px solid var(--yellow);
}
.is-style-key-points > * + * { margin-top: .75rem; }
.is-style-key-points h2, .is-style-key-points .key-points__title { margin: 0 !important; font-size: .9375rem !important; font-weight: 600 !important; letter-spacing: .02em !important; color: var(--yellow-ink); }
.is-style-key-points h2 .anchor { display: none; }
.is-style-key-points ul { padding-left: 1.2em; }
.is-style-key-points li { font-size: 1.0625rem; line-height: 1.55; }
.is-style-note { padding: 1.25rem 1.5rem; background: var(--paper-2); border-left: 3px solid var(--navy); font-size: .95em; }
.is-style-note > * + * { margin-top: .75rem; }
.entry-content ol.is-style-sources { font-size: .875rem; line-height: 1.5; color: var(--ink-2); padding-left: 1.6em; }
.entry-content ol.is-style-sources a { word-break: break-word; }
.entry-content .wp-block-details, .entry-content details.faq { border-bottom: 1px solid var(--rule); padding-block: 1rem; }
.entry-content details + details { margin-top: 0; }
.entry-content .wp-block-heading + .wp-block-details { border-top: 1px solid var(--rule); }
.entry-content summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-weight: 500; color: var(--ink); }
.entry-content summary::-webkit-details-marker { display: none; }
.entry-content summary::after { content: "+"; flex: none; font-size: 1.4em; line-height: 1; font-weight: 300; color: var(--navy); transition: transform var(--slow) var(--ease); }
.entry-content details[open] > summary::after { transform: rotate(45deg); }
.entry-content details > :not(summary) { margin-top: .75rem; }
@supports (interpolate-size: allow-keywords) {
	:root { interpolate-size: allow-keywords; }
	.entry-content details::details-content { height: 0; overflow: clip; transition: height var(--slow) var(--ease), content-visibility var(--slow) allow-discrete; }
	.entry-content details[open]::details-content { height: auto; }
}

/* Footnotes block */
.entry-content .wp-block-footnotes { font-size: .875rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.entry-content sup.fn a { text-decoration: none; font-weight: 600; }

.page-links { display: flex; gap: .5rem; margin-top: 2rem; }
.profile-links { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; }
.profile-links a { color: var(--navy); font-weight: 500; }
.profile-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Archives ──────────────────────────────────────────────── */
.archive-header { padding-bottom: 2rem; margin-bottom: .5rem; border-bottom: 1px solid var(--rule); }
.archive-header__eyebrow { font-size: .9375rem; font-weight: 500; color: var(--navy); }
.archive-header__title { margin-top: .5rem; font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.25rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.08; }
.archive-header__intro { margin-top: 1.25rem; max-width: 44em; font-size: 1.1875rem; font-weight: 300; line-height: 1.5; color: var(--ink-2); }
.archive-header__intro p + p { margin-top: .75em; }
.archive-header__meta { margin-top: 1rem; font-size: .875rem; color: var(--muted); }
.archive-header--author { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .archive-header--author { grid-template-columns: auto 1fr; gap: 2.5rem; align-items: start; } }
.archive-header__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.archive-header + .module-header { margin-top: 2.5rem; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: 2.5rem; font-size: .9375rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding-inline: .75rem; color: var(--navy); border: 1px solid transparent; transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.pagination a.page-numbers:hover { border-color: var(--rule); }
.pagination .current { background: var(--navy); color: #fff; }
.pagination .prev { margin-right: auto; }
.pagination .next { margin-left: auto; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); font-size: .9375rem; }
.related + .site-footer { margin-top: 0; border-top: 0; }
.site-footer__top { display: grid; gap: 2rem; padding-block: 3rem 2.5rem; }
@media (min-width: 900px) { .site-footer__top { grid-template-columns: 1fr 2fr; gap: 4rem; } }
.site-footer__tagline { margin-top: 1rem; max-width: 26em; color: var(--ink-2); line-height: 1.5; }
.site-footer__nav ul { list-style: none; columns: 2 12rem; column-gap: 2.5rem; }
.site-footer__nav li { break-inside: avoid; padding-block: .35rem; }
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }
.site-footer__social { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer__social a { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); }
.site-footer__social a:hover { color: var(--navy); }
.site-footer__social .icon { width: 1em; height: 1em; }

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	@view-transition { navigation: none; }
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
	.site-header, .breadcrumbs, .article-rail, .site-footer, .related, .post-nav, .author-box .link-arrow, .skip-link { display: none !important; }
	body { font-size: 11pt; color: #000; }
	.article-body { display: block; padding: 0; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; word-break: break-all; }
	.entry-content .anchor { display: none; }
}
