@charset "UTF-8";
/*
 * kutok.by — «Запозненае прызнанне»
 * Дызайн-сістэма: зімовая папера, каралавы акцэнт з вокладкі кнігі.
 */

/* ───────────────────────────── 1. Шрыфты ───────────────────────────── */

@font-face {
	font-family: 'Playfair Display';
	src: url('/assets/fonts/playfair.woff2') format('woff2');
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Playfair Display';
	src: url('/assets/fonts/playfair-italic.woff2') format('woff2');
	font-weight: 400 600;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: 'Literata';
	src: url('/assets/fonts/literata.woff2') format('woff2');
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'InterVar';
	src: url('/assets/fonts/inter.woff2') format('woff2');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* ───────────────────────────── 2. Токены ───────────────────────────── */

:root {
	--font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--font-prose: 'Literata', Georgia, 'Times New Roman', serif;
	--font-ui: 'InterVar', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	/* Плыўная тыпаграфічная шкала (320px → 1440px) */
	--t--2: clamp(0.72rem, 0.70rem + 0.09vw, 0.78rem);
	--t--1: clamp(0.84rem, 0.81rem + 0.14vw, 0.93rem);
	--t-0:  clamp(1rem, 0.96rem + 0.20vw, 1.13rem);
	--t-1:  clamp(1.15rem, 1.07rem + 0.38vw, 1.4rem);
	--t-2:  clamp(1.38rem, 1.22rem + 0.78vw, 1.9rem);
	--t-3:  clamp(1.7rem, 1.38rem + 1.55vw, 2.7rem);
	--t-4:  clamp(2.1rem, 1.5rem + 2.9vw, 3.9rem);
	--t-5:  clamp(2.7rem, 1.5rem + 5.8vw, 6.2rem);

	--wrap: 74rem;
	--wrap-prose: 42rem;
	--gap: clamp(1.25rem, 0.9rem + 1.7vw, 2.5rem);
	--section-y: clamp(2.75rem, 2rem + 3.4vw, 5rem);
	--radius: 4px;
	--radius-lg: 10px;

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	color-scheme: light;

	/* Светлая тэма — зімовая папера.
	   --coral — акцэнт для буйнога тэксту і графікі (WCAG 3:1),
	   --coral-text — цямнейшы адценак для дробнага тэксту (WCAG 4.5:1). */
	--coral: #c84a31;
	--coral-text: #b63f25;
	--coral-bright: #db5f45;
	--coral-tint: #fbeee9;
	--btn-primary-fg: #ffffff;
	--ink: #16212c;
	--ink-2: #43535f;
	--ink-3: #5f707c;
	--paper: #fcfcfb;
	--paper-2: #f4f7fa;
	--surface: #ffffff;
	--frost: #e7eff7;
	--winter: #6b93bd;
	--line: #e3e9ee;
	--line-strong: #cfd8e0;
	--shadow-1: 0 1px 2px rgba(22, 33, 44, 0.05), 0 4px 14px rgba(22, 33, 44, 0.05);
	--shadow-2: 0 2px 6px rgba(22, 33, 44, 0.07), 0 18px 44px rgba(22, 33, 44, 0.11);
	--shadow-book: drop-shadow(24px 34px 32px rgba(22, 40, 62, 0.25)) drop-shadow(6px 10px 10px rgba(22, 40, 62, 0.12));
	--grain-opacity: 0.035;
}

/* Цёмная тэма — толькі па відавочным выбары карыстальніка. */
:root[data-theme='dark'] {
	color-scheme: dark;
	--coral: #f08063;
	--coral-text: #f08063;
	--coral-bright: #f5947b;
	--coral-tint: #2b1a16;
	--btn-primary-fg: #1a1008;
	--ink: #e9eef4;
	--ink-2: #b0bdc9;
	--ink-3: #7d8b98;
	--paper: #0d141b;
	--paper-2: #111a23;
	--surface: #16212c;
	--frost: #172533;
	--winter: #7ba7d1;
	--line: #22303d;
	--line-strong: #33434f;
	--shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.3);
	--shadow-2: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 44px rgba(0, 0, 0, 0.45);
	--shadow-book: drop-shadow(24px 34px 36px rgba(0, 0, 0, 0.62)) drop-shadow(6px 10px 12px rgba(0, 0, 0, 0.42));
	--grain-opacity: 0.05;
}


html {
	scroll-behavior: smooth;
	/* каб якар не хаваўся пад «шапкай» */
	scroll-padding-top: 4.75rem;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-prose);
	font-size: var(--t-0);
	line-height: 1.72;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Ледзь прыкметнае зерне — «папера» замест плоскай залівы */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: var(--grain-opacity);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.015em;
	margin: 0;
	text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--coral-text); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--coral-bright); }

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

:focus-visible {
	outline: 2px solid var(--coral);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection { background: var(--coral); color: #fff; }

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 200;
	padding: 0.7rem 1.1rem;
	background: var(--coral);
	color: #fff;
	font-family: var(--font-ui);
	font-size: var(--t--1);
	border-radius: var(--radius);
	transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ───────────────────────────── 4. Раскладка ───────────────────────────── */

.wrap {
	width: min(100% - 2 * var(--gap), var(--wrap));
	margin-inline: auto;
}

.section {
	position: relative;
	z-index: 2;
	padding-block: var(--section-y);
}

.section--tint { background: var(--paper-2); }

.section__head {
	max-width: var(--wrap-prose);
	margin-bottom: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-ui);
	font-size: var(--t--2);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--coral-text);
	margin-bottom: 1.1rem;
}
.eyebrow::after {
	content: '';
	flex: 0 0 2.5rem;
	height: 1px;
	background: currentColor;
	opacity: 0.5;
}

.section__title { font-size: var(--t-3); }

.section__lede {
	margin-top: 1.1rem;
	font-size: var(--t-1);
	line-height: 1.6;
	color: var(--ink-2);
}

/* ───────────────────────────── 5. Шапка ───────────────────────────── */

.header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
	border-bottom: 1px solid transparent;
}

.header.is-stuck {
	background: color-mix(in srgb, var(--paper) 82%, transparent);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom-color: var(--line);
	box-shadow: var(--shadow-1);
}

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap);
	min-height: 4rem;
}

.brand {
	display: flex;
	align-items: baseline;
	gap: 0.55rem;
	font-family: var(--font-display);
	font-size: var(--t-0);
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.brand:hover { color: var(--coral); }
.brand__mark {
	color: var(--coral);
	font-size: 1.3em;
	line-height: 0;
	position: relative;
	top: 0.08em;
}
.brand__sub {
	font-family: var(--font-ui);
	font-size: var(--t--2);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }

.nav__link {
	position: relative;
	font-family: var(--font-ui);
	font-size: var(--t--1);
	font-weight: 500;
	color: var(--ink-2);
	text-decoration: none;
	padding-block: 0.35rem;
	white-space: nowrap;
}
.nav__link::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1.5px;
	background: var(--coral);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.32s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }

.header__tools { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: color-mix(in srgb, var(--surface) 70%, transparent);
	color: var(--ink-2);
	cursor: pointer;
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.icon-btn:hover { color: var(--coral); border-color: var(--coral); transform: translateY(-1px); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.theme-toggle .icon-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: block; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: none; }


.nav-toggle { display: none; }

/* ───────────────────────────── 6. Герой ───────────────────────────── */

.hero {
	position: relative;
	z-index: 2;
	/* вышыня «шапкі» (4rem) плюс невялікі зазор */
	padding-top: clamp(4.9rem, 4.4rem + 1.3vw, 5.9rem);
	padding-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem);
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	inset: -20% -10% auto -10%;
	height: 130%;
	z-index: -1;
	background:
		radial-gradient(58% 48% at 78% 12%, color-mix(in srgb, var(--frost) 92%, transparent) 0%, transparent 68%),
		radial-gradient(50% 46% at 8% 88%, color-mix(in srgb, var(--coral-tint) 78%, transparent) 0%, transparent 66%);
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	align-items: center;
	gap: clamp(2rem, 1rem + 5vw, 5rem);
}

.hero__kicker {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	font-family: var(--font-ui);
	font-size: var(--t--2);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--coral-text);
	margin-bottom: clamp(0.8rem, 1.4vw, 1.2rem);
}
.hero__kicker::before {
	content: '';
	width: clamp(1.5rem, 4vw, 3rem);
	height: 2px;
	background: currentColor;
}

.hero__title {
	font-size: var(--t-5);
	font-weight: 700;
	color: var(--coral);
	line-height: 0.94;
	letter-spacing: -0.025em;
	margin-bottom: clamp(0.9rem, 1.5vw, 1.4rem);
}
.hero__title span { display: block; }

.hero__byline {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
	padding-top: clamp(0.8rem, 1.4vw, 1.1rem);
	border-top: 1px solid var(--line-strong);
	margin-bottom: clamp(0.9rem, 1.5vw, 1.3rem);
}
.hero__author {
	font-family: var(--font-display);
	font-size: var(--t-1);
	font-weight: 600;
	letter-spacing: -0.01em;
}
.hero__edition {
	font-family: var(--font-ui);
	font-size: var(--t--1);
	color: var(--ink-3);
}

.hero__lede {
	max-width: 34rem;
	font-size: var(--t-1);
	line-height: 1.62;
	color: var(--ink-2);
	margin-bottom: clamp(1.3rem, 2.2vw, 1.9rem);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Вокладка кнігі */
.hero__cover {
	position: relative;
	justify-self: center;
	width: min(100%, 28rem);
	perspective: 1400px;
}
/* Рэндэр ужо мае патрэбны лёгкі паварот; drop-shadow паўтарае
   празрысты сілуэт кнігі, а не прамавугольнік файла. */
.hero__cover img {
	width: 100%;
	filter: var(--shadow-book);
	transform: translateZ(0);
	transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
	will-change: transform;
}
.hero__cover:hover img { transform: translateY(-8px) scale(1.012); }

/* мяккі след на «падлозе» */
.hero__cover::after {
	content: '';
	position: absolute;
	left: 12%;
	right: 6%;
	bottom: -1.5%;
	height: 7%;
	z-index: -1;
	background: radial-gradient(50% 50% at 50% 50%, rgba(22, 40, 62, 0.26), transparent 72%);
	filter: blur(12px);
}

.hero__scroll {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
	font-family: var(--font-ui);
	font-size: var(--t--2);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-3);
	text-decoration: none;
}
.hero__scroll:hover { color: var(--coral); }
.hero__scroll svg {
	width: 1rem; height: 1rem;
	fill: none; stroke: currentColor; stroke-width: 1.6;
	stroke-linecap: round; stroke-linejoin: round;
	animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(4px); }
}

/* ───────────────────────────── 7. Кнопкі ───────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.85rem 1.6rem;
	font-family: var(--font-ui);
	font-size: var(--t--1);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 0.24s var(--ease), color 0.24s var(--ease),
		border-color 0.24s var(--ease), transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.btn svg {
	width: 1.05rem; height: 1.05rem; flex: none;
	fill: none; stroke: currentColor; stroke-width: 1.7;
	stroke-linecap: round; stroke-linejoin: round;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
	background: var(--coral);
	border-color: var(--coral);
	color: var(--btn-primary-fg);
	box-shadow: 0 6px 18px color-mix(in srgb, var(--coral) 30%, transparent);
}
.btn--primary:hover {
	background: var(--coral-bright);
	border-color: var(--coral-bright);
	color: var(--btn-primary-fg);
	box-shadow: 0 10px 26px color-mix(in srgb, var(--coral) 38%, transparent);
}

.btn--ghost {
	background: transparent;
	border-color: var(--line-strong);
	color: var(--ink);
}
.btn--ghost:hover { border-color: var(--coral); color: var(--coral); background: color-mix(in srgb, var(--coral) 6%, transparent); }

.btn--small { padding: 0.55rem 1rem; font-size: var(--t--2); }

/* ───────────────────────────── 8. Эпіграф ───────────────────────────── */

.epigraph { position: relative; overflow: hidden; }

.epigraph__inner {
	max-width: 52rem;
	margin-inline: auto;
	text-align: center;
	position: relative;
}

.epigraph__mark {
	font-family: var(--font-display);
	font-size: clamp(4rem, 10vw, 8rem);
	line-height: 0.6;
	color: var(--coral);
	opacity: 0.24;
	margin-bottom: clamp(0.25rem, 1vw, 0.6rem);
	user-select: none;
}

.epigraph__text {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 400;
	font-size: var(--t-2);
	line-height: 1.44;
	letter-spacing: -0.005em;
	color: var(--ink);
	margin-bottom: clamp(1rem, 2vw, 1.6rem);
	text-wrap: pretty;
}

.epigraph__by {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	font-family: var(--font-ui);
	font-size: var(--t--2);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-3);
}
.epigraph__by::before {
	content: '';
	width: 2rem;
	height: 1px;
	background: var(--coral);
}

/* ───────────────────────────── 9. Аўтар ───────────────────────────── */

.author__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 1rem + 5vw, 4.5rem);
	align-items: start;
}

.author__portrait { position: relative; }
.author__portrait img {
	width: 100%;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-2);
}
/* тонкая каралавая рамка са зрухам — рыфма да ліній на вокладцы */
.author__portrait::before {
	content: '';
	position: absolute;
	inset: clamp(0.7rem, 1.6vw, 1.2rem) calc(-1 * clamp(0.7rem, 1.6vw, 1.2rem)) calc(-1 * clamp(0.7rem, 1.6vw, 1.2rem)) clamp(0.7rem, 1.6vw, 1.2rem);
	border: 1px solid var(--coral);
	border-radius: var(--radius-lg);
	opacity: 0.5;
	z-index: -1;
}

.author__lead {
	font-family: var(--font-display);
	font-size: var(--t-2);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.012em;
	margin-bottom: 1.4rem;
}

.author__bio { color: var(--ink-2); max-width: 36rem; }

.timeline {
	list-style: none;
	margin: clamp(1.4rem, 2.5vw, 2.1rem) 0 0;
	padding: 0;
	position: relative;
}
.timeline::before {
	content: '';
	position: absolute;
	left: 0.3rem;
	top: 0.6rem;
	bottom: 0.6rem;
	width: 1px;
	background: linear-gradient(var(--coral), color-mix(in srgb, var(--coral) 15%, transparent));
}

.timeline__item {
	position: relative;
	padding-left: 2rem;
	padding-bottom: 1rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 50%;
	background: var(--paper);
	border: 1.5px solid var(--coral);
}
.timeline__item--mark::before { background: var(--coral); }

.timeline__year {
	display: block;
	font-family: var(--font-ui);
	font-size: var(--t--2);
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--coral-text);
	margin-bottom: 0.15rem;
	font-variant-numeric: tabular-nums;
}
.timeline__text { color: var(--ink-2); font-size: var(--t--1); line-height: 1.6; }

.author__contact {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: clamp(1.3rem, 2.2vw, 1.9rem);
	padding: 0.75rem 1.15rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	font-family: var(--font-ui);
	font-size: var(--t--1);
	color: var(--ink);
	text-decoration: none;
	box-shadow: var(--shadow-1);
	transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.author__contact:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-1px); }
.author__contact svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ───────────────────────────── 10. Змест ───────────────────────────── */

/* Шматслупковая раскладка, каб нумарацыя ішла зверху ўніз па слупку:
   01–07 злева, 08–14 справа — як у друкаваным змесце. */
.toc {
	columns: 2;
	column-gap: clamp(2rem, 5vw, 4rem);
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
}

.toc__item {
	break-inside: avoid;
	border-bottom: 1px solid var(--line);
}

.toc__row {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding: clamp(0.85rem, 1.6vw, 1.15rem) 0.25rem;
	text-decoration: none;
	color: inherit;
	transition: color 0.22s var(--ease), padding 0.28s var(--ease), background 0.22s var(--ease);
}

.toc__num {
	flex: none;
	font-family: var(--font-ui);
	font-size: var(--t--2);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--ink-3);
	letter-spacing: 0.06em;
	transition: color 0.22s var(--ease);
}

.toc__title {
	flex: 1 1 auto;
	font-family: var(--font-prose);
	font-size: var(--t-0);
	line-height: 1.35;
	color: var(--ink-2);
	transition: color 0.22s var(--ease);
}

.toc__meta {
	flex: none;
	font-family: var(--font-ui);
	font-size: var(--t--2);
	color: var(--ink-3);
	white-space: nowrap;
}

/* Даступны раздзел — акцэнт і стрэлка */
.toc__item--open { border-bottom-color: var(--coral); }
.toc__item--open .toc__num { color: var(--coral-text); }
.toc__item--open .toc__title { color: var(--ink); font-weight: 600; }
.toc__row:hover { background: color-mix(in srgb, var(--coral) 5%, transparent); padding-inline: 0.65rem 0.4rem; }
.toc__row:hover .toc__title,
.toc__row:hover .toc__num { color: var(--coral); }

.toc__go {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: var(--font-ui);
	font-size: var(--t--2);
	font-weight: 600;
	color: var(--coral-text);
	white-space: nowrap;
}
.toc__go svg {
	width: 0.85rem; height: 0.85rem;
	fill: none; stroke: currentColor; stroke-width: 2;
	stroke-linecap: round; stroke-linejoin: round;
	transition: transform 0.28s var(--ease-out);
}
.toc__row:hover .toc__go svg { transform: translateX(3px); }

.toc__note {
	margin-top: clamp(1.1rem, 2vw, 1.6rem);
	font-family: var(--font-ui);
	font-size: var(--t--1);
	color: var(--ink-3);
}

/* ───────────────────────────── 11. Урывак ───────────────────────────── */

.excerpt__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	padding: clamp(1.6rem, 3.5vw, 3rem);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-2);
	position: relative;
	overflow: hidden;
}
.excerpt__card::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
	background: linear-gradient(var(--coral), var(--winter));
}

.excerpt__num {
	font-family: var(--font-ui);
	font-size: var(--t--2);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--coral-text);
	margin-bottom: 0.6rem;
}
.excerpt__title { font-size: var(--t-3); margin-bottom: 0.8rem; }
.excerpt__note { color: var(--ink-2); margin-bottom: 1.6rem; max-width: 34rem; }
.excerpt__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.excerpt__size {
	font-family: var(--font-ui);
	font-size: var(--t--2);
	color: var(--ink-3);
}

/* Мініяцюра вокладкі ў картцы ўрыўка */
.excerpt__cover { width: clamp(6rem, 9.5vw, 8rem); }
.excerpt__cover img {
	width: 100%;
	filter: drop-shadow(8px 12px 12px rgba(22, 40, 62, 0.18)) drop-shadow(2px 3px 4px rgba(22, 40, 62, 0.10));
}

.excerpt__glyph {
	display: grid;
	place-items: center;
	width: clamp(6rem, 12vw, 9rem);
	aspect-ratio: 3 / 4;
	border-radius: var(--radius);
	background: linear-gradient(150deg, var(--frost), color-mix(in srgb, var(--coral-tint) 70%, var(--surface)));
	border: 1px solid var(--line);
	font-family: var(--font-display);
	font-size: var(--t-2);
	font-weight: 700;
	color: var(--coral);
	box-shadow: var(--shadow-1);
}

/* ───────────────────────────── 12. Спампаваць ───────────────────────────── */

.downloads {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.dl {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: clamp(1.3rem, 2.4vw, 1.8rem);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	text-decoration: none;
	color: inherit;
	box-shadow: var(--shadow-1);
	transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.dl:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-2);
	border-color: var(--coral);
	color: inherit;
}

.dl__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.dl__format {
	font-family: var(--font-ui);
	font-size: var(--t--2);
	font-weight: 700;
	letter-spacing: 0.1em;
	padding: 0.25rem 0.55rem;
	border-radius: 3px;
	background: var(--coral-tint);
	color: var(--coral-text);
}

.dl__arrow {
	display: grid;
	place-items: center;
	width: 2rem; height: 2rem;
	border-radius: 50%;
	border: 1px solid var(--line);
	color: var(--ink-3);
	transition: transform 0.28s var(--ease-out), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.dl__arrow svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl:hover .dl__arrow { color: var(--coral); border-color: var(--coral); transform: translateY(2px); }

.dl__name {
	font-family: var(--font-display);
	font-size: var(--t-1);
	font-weight: 600;
	line-height: 1.25;
	margin-top: 0.4rem;
}
.dl__note { font-family: var(--font-ui); font-size: var(--t--1); color: var(--ink-2); }
.dl__size {
	margin-top: auto;
	padding-top: 0.8rem;
	font-family: var(--font-ui);
	font-size: var(--t--2);
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

.downloads__hint {
	margin-top: clamp(0.9rem, 1.8vw, 1.4rem);
	font-family: var(--font-ui);
	font-size: var(--t--1);
	color: var(--ink-3);
	max-width: 44rem;
}

/* ───────────────────────────── 13. Падвал ───────────────────────────── */

.footer {
	position: relative;
	z-index: 2;
	padding-block: clamp(2rem, 3vw, 3rem);
	border-top: 1px solid var(--line);
	background: var(--paper-2);
}

.footer__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
}

.footer__title {
	font-family: var(--font-display);
	font-size: var(--t-2);
	font-weight: 700;
	color: var(--coral);
	line-height: 1;
	margin-bottom: 0.5rem;
}
.footer__sub { font-family: var(--font-ui); font-size: var(--t--1); color: var(--ink-3); }
.footer a[href^='mailto:'] { font-family: var(--font-ui); font-size: var(--t--1); }

.footer__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer__links a {
	font-family: var(--font-ui);
	font-size: var(--t--1);
	color: var(--ink-2);
	text-decoration: none;
}
.footer__links a:hover { color: var(--coral); }

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-top: clamp(1.3rem, 2.2vw, 1.9rem);
	padding-top: 1.1rem;
	border-top: 1px solid var(--line);
	font-family: var(--font-ui);
	font-size: var(--t--2);
	color: var(--ink-3);
}

/* ───────────────────────────── 14. Чыталка ───────────────────────────── */

.reader {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.reader__bar {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7rem 0;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid var(--line);
}

.reader__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-ui);
	font-size: var(--t--1);
	font-weight: 500;
	color: var(--ink-2);
	text-decoration: none;
	white-space: nowrap;
}
.reader__back:hover { color: var(--coral); }
.reader__back svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.reader__heading { min-width: 0; text-align: center; }
.reader__chapter {
	font-family: var(--font-display);
	font-size: var(--t-0);
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.reader__of { font-family: var(--font-ui); font-size: var(--t--2); color: var(--ink-3); }

.reader__stage { flex: 1 1 auto; padding-block: 1rem 2rem; }
.reader__frame {
	width: 100%;
	height: calc(100vh - 9rem);
	height: calc(100dvh - 9rem);
	min-height: 32rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-1);
}

/* На мабільных браўзерах убудаваны PDF не працуе — паказваем картку */
.reader__fallback { display: none; }

@media (max-width: 47.99em), (pointer: coarse) {
	.reader__frame { display: none; }
	.reader__fallback {
		display: block;
		padding: clamp(1.6rem, 5vw, 2.4rem);
		text-align: center;
		background: var(--surface);
		border: 1px solid var(--line);
		border-radius: var(--radius-lg);
		box-shadow: var(--shadow-1);
	}
	.reader__fallback .excerpt__glyph { margin: 0 auto 1.4rem; }
	.reader__fallback .excerpt__actions { justify-content: center; }
}

/* ───────────────────────────── 15. З'яўленне пры скроле ───────────────────────────── */

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
	transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
/* без JS кантэнт застаецца бачным */
.no-js .reveal { opacity: 1; transform: none; }

/* ───────────────────────────── 16. Адаптыў ───────────────────────────── */

@media (max-width: 61.99em) {
	.hero__grid { grid-template-columns: 1fr; gap: clamp(1.5rem, 5vw, 2.5rem); }
	/* на вузкіх экранах вокладка меншая, каб загаловак трапляў на першы экран */
	.hero__cover { grid-row: 1; width: min(60%, 15rem); }
	.hero__scroll { display: none; }
	.author__grid { grid-template-columns: 1fr; }
	.author__portrait { width: min(100%, 20rem); }
	.excerpt__card { grid-template-columns: 1fr; }
	.excerpt__glyph, .excerpt__cover { order: -1; }
}

@media (max-width: 47.99em) {
	.nav-toggle { display: grid; }

	.nav {
		position: fixed;
		inset: 0;
		z-index: 90;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 0.4rem;
		padding: 5.5rem var(--gap) var(--gap);
		background: var(--paper);
		border-left: 1px solid var(--line);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.42s var(--ease-out), visibility 0.42s;
		overflow-y: auto;
	}
	.nav.is-open { transform: none; visibility: visible; }

	.nav__link {
		font-family: var(--font-display);
		font-size: var(--t-3);
		font-weight: 600;
		color: var(--ink);
		padding-block: 0.5rem;
	}
	.nav__link::after { display: none; }
	.nav__link.is-active { color: var(--coral); }

	.brand__sub { display: none; }
	body.nav-open { overflow: hidden; }

	.epigraph__inner { text-align: left; }
	.epigraph__mark { text-align: left; }

	.footer__grid { flex-direction: column; }

	.toc { columns: 1; }
}

@media (max-width: 30em) {
	.hero__actions .btn { width: 100%; }
	.toc__meta { display: none; }
}

/* ───────────────────────────── 17. Рух і друк ───────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	.reveal { opacity: 1; transform: none; }
	.hero__cover img { transform: none; }
}

@media print {
	.header, .nav, .hero__scroll, .footer__links, .reader__bar { display: none !important; }
	body { background: #fff; color: #000; }
	body::before { display: none; }
	.section { padding-block: 1.5rem; }
	a { text-decoration: underline; }
}
