/*
Theme Name: strokoff monokai
Theme URI: http://strokoff.ru
Author: Денис Строков
Author URI: http://strokoff.ru
Description: Личная хроника веб-разработчика в эстетике редактора Monokai: инфографика, пет-проекты, интерактивный пайплайн, GitHub и таймлайн.
Version: 2.0.0
Text Domain: wpstrokoff-taste
*/

/* ---------- Токены ---------- */

:root {
	--bg: #1b1c18;
	--bg-elev: #20211d;
	--panel: #272822;
	--panel-2: #2d2e27;
	--panel-3: #34352c;

	--ink: #f8f8f2;
	--ink-soft: #d6d6cb;
	--muted: #a3a397;
	--comment: #938e7c;

	--line: #3a3b32;
	--line-2: #4a4b40;
	--sel: #49483e;

	--pink: #f92672;
	--green: #a6e22e;
	--orange: #fd971f;
	--purple: #ae81ff;
	--blue: #66d9ef;
	--yellow: #e6db74;

	--pink-soft: rgba(249, 38, 114, 0.14);
	--green-soft: rgba(166, 226, 46, 0.12);
	--orange-soft: rgba(253, 151, 31, 0.12);

	--wrap: 1200px;
	--gut: 20px;
	--nav: 64px;
	--status: 34px;
	--r-sm: 4px;
	--r-md: 8px;
	--r-lg: 12px;

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

	--font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
	--font-body: "Onest", "Segoe UI", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (min-width: 720px) {
	:root {
		--gut: 32px;
	}
}

@media (min-width: 1024px) {
	:root {
		--gut: 44px;
		--nav: 72px;
	}
}

/* ---------- База ---------- */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav) + 18px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding-bottom: var(--status);
	background-color: var(--bg);
	background-image:
		radial-gradient(900px 520px at 12% -8%, rgba(249, 38, 114, 0.09), transparent 62%),
		radial-gradient(760px 480px at 92% 4%, rgba(174, 129, 255, 0.07), transparent 60%),
		linear-gradient(rgba(248, 248, 242, 0.022) 1px, transparent 1px),
		linear-gradient(90deg, rgba(248, 248, 242, 0.022) 1px, transparent 1px);
	background-size: auto, auto, 28px 28px, 28px 28px;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.menu-open {
	overflow: hidden;
}

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

p,
ul,
ol,
dl,
dd,
figure {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration-color: var(--line-2);
	text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.03em;
}

::selection {
	background: var(--sel);
	color: var(--yellow);
}

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

[hidden] {
	display: none !important;
}

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

.skip-link {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 300;
	transform: translateY(-160%);
	padding: 10px 16px;
	border: 1px solid var(--pink);
	border-radius: var(--r-sm);
	background: var(--panel);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 12px;
	text-decoration: none;
}

.skip-link:focus {
	transform: none;
}

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

/* ---------- Заголовки секций ---------- */

.section {
	padding-block: clamp(64px, 8vw, 116px);
	scroll-margin-top: calc(var(--nav) + 8px);
}

.section--tight {
	padding-block: clamp(48px, 6vw, 84px);
}

.buffer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
	margin-bottom: clamp(24px, 3.4vw, 40px);
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.4;
	color: var(--comment);
}

.buffer-head__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--panel);
	color: var(--ink-soft);
	white-space: nowrap;
}

.buffer-head__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--pink);
}

.buffer-head__meta {
	text-align: right;
}

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: clamp(28px, 3.6vw, 46px);
}

.section__head > div {
	max-width: 720px;
}

.section__head h2 {
	margin-top: 12px;
	font-size: clamp(30px, 4.4vw, 54px);
	line-height: 1;
}

.section__head h2 em {
	font-style: normal;
	color: var(--pink);
}

.section__note {
	max-width: 42ch;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
}

.section__note a {
	color: var(--blue);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.4;
	color: var(--orange);
}

.kicker::before {
	content: "//";
	color: var(--comment);
}

/* ---------- Кнопки, чипы, ссылки ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--r-sm);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out),
		border-color 160ms var(--ease-out), color 160ms var(--ease-out),
		box-shadow 160ms var(--ease-out);
}

.btn--primary {
	background: var(--pink);
	border-color: var(--pink);
	color: #1b1c18;
}

.btn--primary:hover {
	background: #ff4d8d;
	border-color: #ff4d8d;
	box-shadow: 0 0 0 4px var(--pink-soft);
	transform: translateY(-1px);
}

.btn--ghost {
	background: transparent;
	border-color: var(--line-2);
	color: var(--ink);
}

.btn--ghost:hover {
	border-color: var(--yellow);
	color: var(--yellow);
	transform: translateY(-1px);
}

.btn--lg {
	min-height: 52px;
	padding-inline: 24px;
	font-size: 16px;
}

.btn--sm {
	min-height: 36px;
	padding-inline: 13px;
	font-size: 13px;
}

.btn .arrow {
	width: 16px;
	height: 16px;
	transition: transform 160ms var(--ease-out);
}

.btn:hover .arrow {
	transform: translateX(3px);
}

.link {
	color: var(--blue);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.link:hover {
	color: var(--yellow);
}

/* ---------- Навигация ---------- */

.nav {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--nav);
	border-bottom: 1px solid var(--line);
	background: rgba(27, 28, 24, 0.84);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	transition: box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.nav.is-scrolled {
	border-bottom-color: var(--line-2);
	box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.85);
}

.nav__bar {
	display: flex;
	align-items: center;
	gap: 22px;
	height: 100%;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	color: var(--ink);
	text-decoration: none;
}

.brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--pink);
	border-radius: var(--r-sm);
	background: var(--pink-soft);
	color: var(--pink);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: -0.04em;
	transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.brand:hover .brand__mark {
	background: var(--pink);
	color: #1b1c18;
}

.brand__path {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--ink-soft);
}

.nav__links {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-left: auto;
}

.nav__link {
	position: relative;
	padding-block: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1;
	color: var(--muted);
	text-decoration: none;
	transition: color 150ms var(--ease-out);
}

.nav__link::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 1px;
	width: 100%;
	height: 1px;
	background: var(--pink);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 180ms var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active {
	color: var(--ink);
}

.nav__link:hover::before,
.nav__link.is-active::before {
	transform: scaleX(1);
	transform-origin: left;
}

.nav__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.nav__status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1;
	color: var(--green);
	white-space: nowrap;
}

.nav__status .status__dot {
	margin: 0;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: transparent;
	color: var(--ink-soft);
	transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out),
		transform 150ms var(--ease-out);
}

.icon-btn svg {
	width: 17px;
	height: 17px;
}

.icon-btn:hover {
	border-color: var(--yellow);
	color: var(--yellow);
	transform: translateY(-1px);
}

.nav__cta {
	display: none;
}

.nav__cta-desktop {
	display: inline-flex;
}

.nav__toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: transparent;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}

.nav__toggle span {
	display: block;
	width: 18px;
	height: 1.5px;
	background: var(--ink);
	transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.nav.is-open .nav__toggle span:first-child {
	transform: translateY(3.25px) rotate(45deg);
}

.nav.is-open .nav__toggle span:last-child {
	transform: translateY(-3.25px) rotate(-45deg);
}

@media (max-width: 1219px) {
	.nav__links {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		height: calc(100vh - var(--nav));
		height: calc(100dvh - var(--nav));
		overflow-y: auto;
		margin: 0;
		padding: 20px var(--gut) 40px;
		border-top: 1px solid var(--line);
		background: var(--bg);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		pointer-events: none;
		transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out),
			visibility 180ms var(--ease-out);
	}

	.nav.is-open .nav__links {
		visibility: visible;
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}

	.nav__link {
		width: 100%;
		padding: 18px 0;
		border-bottom: 1px solid var(--line);
		font-size: 18px;
	}

	.nav__link::before {
		display: none;
	}

	.nav__cta {
		display: inline-flex;
		margin-top: 22px;
	}

	.nav__cta-desktop {
		display: none;
	}

	.nav__toggle {
		display: inline-flex;
	}

	.nav__status {
		display: none;
	}
}

@media (max-width: 480px) {
	.nav__github {
		display: none;
	}

	.brand__path {
		display: none;
	}
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100svh;
	padding-top: calc(var(--nav) + clamp(36px, 7vw, 76px));
	padding-bottom: clamp(48px, 7vw, 84px);
	overflow: hidden;
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
	align-items: center;
	gap: clamp(32px, 6vw, 76px);
}

.hero__prompt {
	margin-bottom: 20px;
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.5;
	color: var(--comment);
}

.hero__prompt-mark {
	color: var(--green);
}

.hero__prompt-text {
	color: var(--ink-soft);
}

.hero__name {
	margin-bottom: 26px;
	font-size: clamp(58px, 9.6vw, 132px);
	line-height: 0.86;
	letter-spacing: -0.055em;
}

.hero__line {
	display: block;
	white-space: nowrap;
}

.hero__line--pink {
	color: var(--pink);
}

.caret {
	display: inline-block;
	width: 0.08em;
	height: 0.78em;
	margin-left: 0.06em;
	background: var(--yellow);
	vertical-align: -0.02em;
	animation: caret 1.1s steps(1) infinite;
}

.hero__lead {
	max-width: 47ch;
	color: var(--ink-soft);
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.55;
}

.hero__lead strong {
	color: var(--yellow);
	font-weight: 600;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 32px;
}

.hero__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 44px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.hero__stats div {
	display: flex;
	flex-direction: column-reverse;
	gap: 4px;
	min-width: 0;
}

.hero__stats dt {
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.35;
	color: var(--comment);
}

.hero__stats dd {
	font-family: var(--font-mono);
	font-size: clamp(26px, 2.6vw, 36px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--ink);
}

.hero__stats div:nth-child(1) dd {
	color: var(--pink);
}

.hero__stats div:nth-child(2) dd {
	color: var(--green);
}

.hero__stats div:nth-child(3) dd {
	color: var(--orange);
}

.hero__stats div:nth-child(4) dd {
	color: var(--yellow);
}

.hero__stats dd small {
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 400;
	color: var(--muted);
	letter-spacing: 0;
}

/* Редактор в hero */

.editor {
	position: relative;
	border: 1px solid var(--line-2);
	border-radius: var(--r-md);
	background: var(--panel);
	box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.9);
	overflow: hidden;
}

.editor::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(140deg, rgba(249, 38, 114, 0.07), transparent 42%);
}

.editor__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 14px;
	height: 40px;
	border-bottom: 1px solid var(--line);
	background: var(--bg-elev);
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--comment);
}

.editor__tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	align-self: stretch;
	padding: 0 10px;
	margin-left: -14px;
	border-right: 1px solid var(--line);
	background: var(--panel);
	color: var(--ink-soft);
}

.editor__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--orange);
}

.editor__body {
	position: relative;
	padding: 16px 14px 0;
}

.code {
	counter-reset: line;
	display: grid;
	gap: 3px;
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.55;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.code li {
	counter-increment: line;
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 10px;
	color: var(--ink-soft);
}

.code li::before {
	content: counter(line);
	color: var(--comment);
	font-size: 10px;
	text-align: right;
	user-select: none;
}

.tok-key {
	color: var(--pink);
}

.tok-prop {
	color: var(--blue);
}

.tok-str {
	color: var(--yellow);
}

.tok-num {
	color: var(--purple);
}

.tok-bool {
	color: var(--orange);
}

.tok-com {
	color: var(--comment);
}

.tok-fn {
	color: var(--green);
}

.editor__profile {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 16px 0 0;
	padding: 14px 0;
	border-top: 1px solid var(--line);
}

.editor__photo {
	display: block;
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	overflow: hidden;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: var(--panel-2);
}

.editor__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.editor__who {
	min-width: 0;
}

.editor__name {
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.editor__role {
	margin-top: 2px;
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--muted);
}

.status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 7px;
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	color: var(--green);
}

.status__dot {
	position: relative;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 3px var(--green-soft);
}

.status--light {
	color: #bdf26c;
}

.editor__out {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 -14px;
	padding: 11px 14px;
	border-top: 1px solid var(--line);
	background: var(--bg-elev);
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.5;
	color: var(--ink-soft);
	min-height: 38px;
}

.editor__out-prompt {
	color: var(--green);
}

.editor__out .caret {
	width: 6px;
	height: 12px;
	margin-left: 1px;
	vertical-align: -1px;
}

.editor__statusbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 14px;
	border-top: 1px solid var(--line);
	background: var(--pink);
	color: #1b1c18;
	font-family: var(--font-mono);
	font-size: 9px;
	font-weight: 500;
}

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: calc(var(--status) + 14px);
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--comment);
}

.hero__scroll span {
	display: block;
	width: 1px;
	height: 26px;
	background: linear-gradient(var(--pink), transparent);
}

.hero [data-enter] {
	animation: hero-in 820ms var(--ease) both;
	animation-delay: calc(var(--d, 0) * 70ms);
}

@keyframes hero-in {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes caret {
	0%,
	49% {
		opacity: 1;
	}
	50%,
	100% {
		opacity: 0;
	}
}

/* ---------- KPI ---------- */

.kpi-strip {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--panel);
	overflow: hidden;
}

.kpi {
	position: relative;
	padding: 20px 18px 18px;
	border-left: 1px solid var(--line);
	min-width: 0;
}

.kpi:first-child {
	border-left: 0;
}

.kpi::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--c, var(--pink));
	opacity: 0.85;
}

.kpi__label {
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	color: var(--comment);
}

.kpi__value {
	margin-top: 10px;
	font-family: var(--font-mono);
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.05em;
	color: var(--c, var(--ink));
}

.kpi__value small {
	font-size: 0.42em;
	font-weight: 400;
	color: var(--muted);
	letter-spacing: 0;
}

.kpi__meta {
	margin-top: 8px;
	font-size: 11px;
	line-height: 1.4;
	color: var(--muted);
}

/* ---------- Панели данных ---------- */

.data-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 14px;
	margin-top: 14px;
}

.panel {
	position: relative;
	min-width: 0;
	padding: clamp(18px, 2.2vw, 26px);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--panel);
}

.panel--chart {
	grid-column: span 8;
}

.panel--types {
	grid-column: span 4;
	display: flex;
	flex-direction: column;
}

.panel--matrix {
	grid-column: span 12;
}

.panel--rhythm {
	grid-column: span 7;
}

.panel--records {
	grid-column: span 5;
}

.panel__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 20px;
}

.panel__title {
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.panel__note {
	margin-top: 5px;
	max-width: 52ch;
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}

.panel__badge {
	flex: 0 0 auto;
	padding: 4px 8px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--comment);
	white-space: nowrap;
}

.panel__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	color: var(--comment);
}

/* График по годам */

.chart-toggle {
	display: inline-flex;
	padding: 2px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--bg-elev);
	font-family: var(--font-mono);
	font-size: 10px;
}

.chart-toggle button {
	padding: 6px 9px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: var(--muted);
	font: inherit;
	cursor: pointer;
	transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.chart-toggle button:hover {
	color: var(--ink);
}

.chart-toggle button[aria-pressed="true"] {
	background: var(--panel-3);
	color: var(--yellow);
}

.chart-view {
	position: relative;
	height: 258px;
}

.chart--bars {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 100%;
	padding-top: 26px;
	border-bottom: 1px solid var(--line-2);
}

.chart__bar {
	position: relative;
	display: flex;
	flex: 1 1 0;
	align-items: flex-end;
	height: 100%;
	min-width: 0;
	text-decoration: none;
}

.chart__fill {
	width: 100%;
	height: var(--h, 0%);
	min-height: 2px;
	border-radius: 2px 2px 0 0;
	background: linear-gradient(180deg, var(--pink), rgba(249, 38, 114, 0.28));
	transform-origin: bottom;
	transition: filter 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.chart__bar:hover .chart__fill,
.chart__bar:focus-visible .chart__fill {
	filter: brightness(1.25) saturate(1.15);
}

.chart__bar.is-zero {
	pointer-events: none;
}

.chart__bar.is-zero .chart__fill {
	min-height: 2px;
	background: var(--line);
}

.chart__tip {
	position: absolute;
	left: 50%;
	bottom: calc(var(--h, 0%) + 8px);
	z-index: 4;
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 5px 7px;
	border: 1px solid var(--line-2);
	border-radius: var(--r-sm);
	background: var(--bg-elev);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.chart__tip b {
	color: var(--yellow);
	font-weight: 500;
}

.chart__bar:hover .chart__tip,
.chart__bar:focus-visible .chart__tip {
	opacity: 1;
	transform: translate(-50%, 0);
}

.chart__avg {
	position: absolute;
	left: 0;
	right: 0;
	bottom: var(--avg, 0%);
	border-top: 1px dashed var(--line-2);
	pointer-events: none;
}

.chart__avg span {
	position: absolute;
	right: 0;
	top: -16px;
	padding-left: 6px;
	background: var(--panel);
	color: var(--comment);
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
}

.chart__axis {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--comment);
}

.chart--cum {
	display: none;
	height: 100%;
}

.chart-svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.chart-line {
	fill: none;
	stroke: var(--yellow);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.chart-area {
	fill: url(#cumGradient);
	stroke: none;
}

.chart-dot {
	fill: var(--panel);
	stroke: var(--yellow);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
}

.chart-dot:hover {
	fill: var(--yellow);
}

.panel--chart[data-mode="cum"] .chart--bars,
.panel--chart[data-mode="cum"] .chart__axis {
	display: none;
}

.panel--chart[data-mode="cum"] .chart--cum {
	display: block;
}

/* Пончик состава */

.donut {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	flex: 1;
}

.donut__wrap {
	position: relative;
	width: 132px;
	height: 132px;
}

.donut__svg {
	display: block;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.donut__seg {
	fill: none;
	stroke-width: 12;
	stroke-linecap: butt;
	transition: opacity 150ms var(--ease-out), stroke-width 150ms var(--ease-out);
}

.donut__seg:hover {
	opacity: 0.8;
	stroke-width: 16;
}

.donut__center {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	text-align: center;
	pointer-events: none;
}

.donut__total {
	font-family: var(--font-mono);
	font-size: 26px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
}

.donut__caption {
	margin-top: 4px;
	font-family: var(--font-mono);
	font-size: 9px;
	color: var(--comment);
}

.type-list {
	display: grid;
	gap: 2px;
}

.type-row {
	display: grid;
	grid-template-columns: 9px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 8px 6px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: var(--ink-soft);
	font-family: var(--font-body);
	font-size: 12px;
	text-align: left;
	cursor: pointer;
	transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.type-row:hover {
	background: var(--panel-2);
	color: var(--ink);
}

.type-row__dot {
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--c);
}

.type-row__count {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--ink);
}

.type-row__pct {
	width: 42px;
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--comment);
	text-align: right;
}

/* Матрица годы × типы */

.matrix-scroll {
	overflow-x: auto;
	padding-bottom: 2px;
}

.matrix {
	display: grid;
	grid-template-columns: 92px repeat(var(--years), minmax(26px, 1fr));
	gap: 3px;
	min-width: 760px;
	align-items: center;
}

.matrix__corner {
	min-height: 20px;
}

.matrix__year {
	font-family: var(--font-mono);
	font-size: 8px;
	line-height: 1.2;
	color: var(--comment);
	text-align: center;
	white-space: nowrap;
}

.matrix__label {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	color: var(--muted);
	white-space: nowrap;
}

.matrix__label span {
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--c);
	flex: 0 0 auto;
}

.matrix__cell {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	border: 1px solid transparent;
	border-radius: 3px;
	background: rgba(var(--c), var(--a, 0));
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 8px;
	line-height: 1;
	text-decoration: none;
	transition: border-color 120ms var(--ease-out), transform 120ms var(--ease-out);
}

.matrix__cell.is-empty {
	background: var(--panel-2);
	color: var(--comment);
	pointer-events: none;
}

.matrix__cell:not(.is-empty):hover,
.matrix__cell:not(.is-empty):focus-visible {
	border-color: var(--yellow);
	transform: translateY(-1px);
}

/* Ритм: месяцы и дни недели */

.rhythm {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(18px, 3vw, 34px);
}

.rhythm__title {
	margin-bottom: 14px;
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	color: var(--comment);
}

.rhythm__bars {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 112px;
	padding-top: 18px;
	border-bottom: 1px solid var(--line-2);
}

.rhythm__bar {
	position: relative;
	display: flex;
	flex: 1;
	align-items: flex-end;
	height: 100%;
	min-width: 0;
}

.rhythm__bar i {
	display: block;
	width: 100%;
	height: var(--h, 0%);
	min-height: 2px;
	border-radius: 2px 2px 0 0;
	background: rgba(253, 151, 31, 0.5);
	transform-origin: bottom;
	transition: background-color 150ms var(--ease-out);
}

.rhythm__bar.is-max i {
	background: var(--orange);
}

.rhythm__bar:hover i {
	background: var(--yellow);
}

.rhythm__bar b {
	position: absolute;
	left: 50%;
	bottom: calc(var(--h, 0%) + 5px);
	transform: translateX(-50%);
	font-family: var(--font-mono);
	font-size: 8px;
	font-weight: 400;
	color: var(--ink);
	opacity: 0;
	white-space: nowrap;
	pointer-events: none;
	transition: opacity 120ms var(--ease-out);
}

.rhythm__bar:hover b {
	opacity: 1;
}

.rhythm__labels {
	display: flex;
	gap: 3px;
	margin-top: 7px;
}

.rhythm__labels span {
	flex: 1;
	font-family: var(--font-mono);
	font-size: 8px;
	line-height: 1.2;
	color: var(--comment);
	text-align: center;
	overflow: hidden;
}

.rhythm__best {
	margin-top: 14px;
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.5;
	color: var(--muted);
}

.rhythm__best b {
	color: var(--yellow);
	font-weight: 500;
}

/* Рекорды в виде объекта */

.records {
	display: grid;
	gap: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.5;
}

.records div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
}

.records div:last-child {
	border-bottom: 0;
}

.records dt {
	color: var(--blue);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.records dd {
	color: var(--ink-soft);
	text-align: right;
}

.records div:nth-child(2n) dt {
	color: var(--purple);
}

.records div:nth-child(3n) dt {
	color: var(--green);
}

.records div:nth-child(4n) dt {
	color: var(--orange);
}

/* ---------- Пет-проекты ---------- */

.projects {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--bg-elev);
}

.projects__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.project {
	display: flex;
	flex-direction: column;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--panel);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out),
		box-shadow 180ms var(--ease-out);
}

.project:hover {
	border-color: var(--c, var(--pink));
	transform: translateY(-3px);
	box-shadow: 0 24px 44px -32px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--c, var(--pink));
}

.project__head {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
}

.project__icon {
	display: inline-flex;
	width: 26px;
	height: 26px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--panel-2);
	flex: 0 0 auto;
}

.project__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project__domain {
	color: var(--ink-soft);
}

.project__live {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--green);
}

.project__live::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 3px var(--green-soft);
}

.project__art {
	position: relative;
	height: 158px;
	margin: 15px 0;
	padding: 13px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--bg);
	overflow: hidden;
}

.project__body {
	flex: 1;
}

.project__title {
	font-size: 25px;
	line-height: 1.04;
}

.project__desc {
	margin-top: 8px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.55;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 13px;
}

.tags li {
	padding: 3px 7px;
	border: 1px solid var(--line);
	border-radius: 3px;
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--ink-soft);
}

.project__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 16px;
	padding-top: 13px;
	border-top: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--comment);
}

.project__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--c, var(--pink));
}

.project__link span {
	transition: transform 160ms var(--ease-out);
}

.project:hover .project__link span {
	transform: translateX(3px);
}

/* Моки внутри карточек */

.mock-chart {
	display: flex;
	flex-direction: column;
	height: 100%;
	font-family: var(--font-mono);
}

.mock-chart__head {
	display: flex;
	justify-content: space-between;
	color: var(--comment);
	font-size: 9px;
	line-height: 1.4;
}

.mock-chart__bars {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	flex: 1;
	margin-top: 12px;
}

.mock-chart__bars span {
	flex: 1;
	height: var(--h);
	min-height: 4px;
	border-radius: 2px 2px 0 0;
	background: rgba(249, 38, 114, 0.38);
	transform: scaleY(0.82);
	transform-origin: bottom;
	transition: transform 420ms var(--ease);
}

.project:hover .mock-chart__bars span {
	transform: scaleY(1);
}

.mock-chart__bars span:nth-child(2n) {
	background: rgba(249, 38, 114, 0.2);
}

.mock-chart__bars span:last-child {
	background: var(--pink);
}

.mock-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	height: 100%;
}

.mock-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--panel-2);
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--ink-soft);
	transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out),
		transform 220ms var(--ease);
}

.mock-tile--1 {
	background: var(--pink-soft);
	color: #ff7ba8;
	border-color: rgba(249, 38, 114, 0.35);
}

.mock-tile--2 {
	background: rgba(174, 129, 255, 0.12);
	color: var(--purple);
	border-color: rgba(174, 129, 255, 0.3);
}

.mock-tile--3 {
	background: rgba(102, 217, 239, 0.1);
	color: var(--blue);
	border-color: rgba(102, 217, 239, 0.28);
}

.mock-tile--4 {
	background: var(--green-soft);
	color: var(--green);
	border-color: rgba(166, 226, 46, 0.3);
}

.project:hover .mock-tile {
	transform: translateY(-2px);
}

.mock-article {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	font-family: var(--font-mono);
}

.mock-article__tag {
	color: var(--green);
	font-size: 9px;
}

.mock-article__title {
	max-width: 24ch;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.18;
}

.mock-article__meta {
	color: var(--comment);
	font-size: 9px;
}

.mock-article__row {
	margin-top: 3px;
	padding-top: 5px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 9px;
	line-height: 1.4;
}

.mock-word {
	display: flex;
	flex-direction: column;
	height: 100%;
	font-family: var(--font-mono);
}

.mock-word__head {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	color: var(--comment);
	font-size: 9px;
	line-height: 1.4;
}

.mock-word__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 4px;
	flex: 1;
	margin-top: 10px;
}

.mock-word__grid span {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 2px;
	background: var(--panel-2);
	color: var(--ink-soft);
	font-size: 10px;
	line-height: 1;
	transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.mock-word__grid span.is-hit {
	border-color: rgba(102, 217, 239, 0.35);
	background: rgba(102, 217, 239, 0.12);
	color: var(--blue);
}

.project:hover .mock-word__grid span.is-hit {
	background: rgba(102, 217, 239, 0.22);
}

.mock-word__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 8px;
}

.mock-word__chips span {
	padding: 2px 5px;
	border: 1px solid var(--line);
	border-radius: 2px;
	color: var(--comment);
	font-size: 8px;
	line-height: 1.4;
}

/* ---------- Пайплайн ---------- */

.pipe {
	padding: clamp(16px, 2.2vw, 24px);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--panel);
}

.pipe__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.pipe__run {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 0 13px;
	border: 1px solid var(--green);
	border-radius: var(--r-sm);
	background: var(--green-soft);
	color: var(--green);
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.pipe__run:hover {
	background: var(--green);
	color: #1b1c18;
}

.pipe__run svg {
	width: 12px;
	height: 12px;
}

.pipe__run.is-running {
	background: var(--green);
	color: #1b1c18;
}

.pipe__hint {
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	color: var(--comment);
}

.pipe__tabs {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 6px;
	padding-bottom: 18px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--line);
}

.pipe__tab {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--bg-elev);
	color: var(--ink-soft);
	text-align: left;
	cursor: pointer;
	transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out),
		color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.pipe__tab::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	height: 2px;
	border-radius: var(--r-sm) var(--r-sm) 0 0;
	background: var(--stage);
	opacity: 0.45;
	transition: opacity 160ms var(--ease-out);
}

.pipe__tab:hover {
	border-color: var(--line-2);
	transform: translateY(-1px);
}

.pipe__tab.is-active {
	border-color: var(--stage);
	background: var(--panel-2);
	color: var(--ink);
}

.pipe__tab.is-active::before,
.pipe__tab.is-done::before {
	opacity: 1;
}

.pipe__tab.is-done .pipe__num {
	color: var(--green);
}

.pipe__num {
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	color: var(--comment);
}

.pipe__name {
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.pipe__short {
	font-size: 10px;
	line-height: 1.4;
	color: var(--muted);
}

.pipe__dur {
	margin-top: 4px;
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--comment);
}

.pipe__tab.is-active .pipe__dur {
	color: var(--stage);
}

.pipe__track {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--line);
	overflow: hidden;
}

.pipe__track-fill {
	display: block;
	width: calc(var(--progress, 0) * 1%);
	height: 100%;
	background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--green), var(--blue));
	transition: width 420ms var(--ease);
}

.pipe__panel {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(22px, 4vw, 46px);
	align-items: start;
}

.pipe__panel[hidden] {
	display: none !important;
}

.pipe__panel.is-active {
	animation: panel-in 260ms var(--ease-out) both;
}

.pipe__kicker {
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	color: var(--stage, var(--pink));
}

.pipe__copy h3 {
	margin-top: 8px;
	font-size: clamp(28px, 3.4vw, 42px);
	line-height: 1.02;
}

.pipe__copy p {
	margin-top: 13px;
	max-width: 52ch;
	color: var(--ink-soft);
	font-size: 15px;
	line-height: 1.65;
}

.pipe__lists {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.pipe__list-title {
	margin-bottom: 8px;
	padding-bottom: 7px;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	color: var(--comment);
}

.pipe__list li {
	position: relative;
	padding: 6px 0 6px 15px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--ink-soft);
}

.pipe__list li::before {
	content: "";
	position: absolute;
	top: 12px;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--line-2);
}

.pipe__list--out li::before {
	background: var(--stage, var(--pink));
}

.pipe__artifacts {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.pipe__artifacts span {
	padding: 3px 7px;
	border: 1px solid var(--line);
	border-radius: 3px;
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--comment);
}

@keyframes panel-in {
	from {
		opacity: 0;
		transform: translateY(7px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- GitHub ---------- */

.github {
	border-top: 1px solid var(--line);
	background: var(--bg-elev);
}

.github__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 14px;
	align-items: start;
}

.gh-card {
	padding: clamp(18px, 2.2vw, 24px);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--panel);
}

.gh-profile__head {
	display: flex;
	align-items: center;
	gap: 13px;
}

.gh-profile__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line-2);
	border-radius: var(--r-sm);
	background: var(--bg);
	color: var(--ink);
	flex: 0 0 auto;
}

.gh-profile__mark svg {
	width: 22px;
	height: 22px;
}

.gh-profile__name {
	font-family: var(--font-mono);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.1;
}

.gh-profile__meta {
	margin-top: 4px;
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--comment);
}

.gh-profile__bio {
	margin-top: 14px;
	color: var(--ink-soft);
	font-size: 13px;
	line-height: 1.55;
}

.gh-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--line);
	overflow: hidden;
}

.gh-stats li {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px;
	background: var(--panel);
}

.gh-stats strong {
	font-family: var(--font-mono);
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--ink);
}

.gh-stats span {
	font-family: var(--font-mono);
	font-size: 8px;
	line-height: 1.4;
	color: var(--comment);
}

.gh-langs {
	margin-top: 18px;
}

.gh-langs__title {
	margin-bottom: 9px;
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	color: var(--comment);
}

.gh-langs li {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr) 34px;
	align-items: center;
	gap: 9px;
	padding: 5px 0;
}

.gh-langs__name {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--ink-soft);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gh-langs__bar {
	display: block;
	height: 5px;
	border-radius: 2px;
	background: var(--panel-2);
	overflow: hidden;
}

.gh-langs__bar span {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: var(--c, var(--green));
	transform-origin: left;
}

.gh-langs__count {
	font-family: var(--font-mono);
	font-size: 9px;
	color: var(--comment);
	text-align: right;
}

.gh-activity {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.gh-activity__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 9px;
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--comment);
}

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

.gh-day {
	aspect-ratio: 1 / 1;
	border-radius: 2px;
	background: var(--panel-2);
}

.gh-day.is-l1 {
	background: rgba(166, 226, 46, 0.28);
}

.gh-day.is-l2 {
	background: rgba(166, 226, 46, 0.55);
}

.gh-day.is-l3 {
	background: rgba(166, 226, 46, 0.82);
}

.gh-day.is-l4 {
	background: var(--green);
}

.gh-profile__updated {
	margin-top: 13px;
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--comment);
}

.gh-side {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gh-repos__list {
	margin-top: 2px;
}

.gh-repo {
	border-bottom: 1px solid var(--line);
}

.gh-repo:last-child {
	border-bottom: 0;
}

.gh-repo a {
	display: block;
	padding: 12px 0;
	text-decoration: none;
}

.gh-repo__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.gh-repo__name {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	color: var(--ink-soft);
	overflow-wrap: anywhere;
	transition: color 150ms var(--ease-out);
}

.gh-repo a:hover .gh-repo__name {
	color: var(--yellow);
}

.gh-repo__stars {
	flex: 0 0 auto;
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--orange);
}

.gh-repo__desc {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 11px;
	line-height: 1.45;
}

.gh-repo__bar {
	display: block;
	height: 3px;
	margin-top: 8px;
	border-radius: 2px;
	background: var(--panel-2);
	overflow: hidden;
}

.gh-repo__bar span {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--pink), var(--orange));
}

.gh-repo__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 6px;
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--comment);
}

.gh-repo__lang {
	color: var(--blue);
}

.gh-repo__link {
	color: var(--green);
}

.gh-recent__list {
	margin-top: 2px;
}

.gh-recent__list li {
	border-bottom: 1px solid var(--line);
}

.gh-recent__list li:last-child {
	border-bottom: 0;
}

.gh-recent__list a {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 9px;
	padding: 8px 0;
	text-decoration: none;
}

.gh-recent__label {
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--orange);
}

.gh-recent__repo {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--ink-soft);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gh-recent__list a:hover .gh-recent__repo {
	color: var(--yellow);
}

.gh-recent__date {
	font-family: var(--font-mono);
	font-size: 9px;
	color: var(--comment);
}

.github-fallback {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--panel);
}

.github-fallback p {
	max-width: 62ch;
	color: var(--ink-soft);
	font-size: 14px;
}

/* ---------- Хроника ---------- */

.timeline {
	padding-bottom: calc(clamp(64px, 8vw, 116px) + 20px);
}

.tl-tools {
	display: grid;
	gap: 14px;
	margin-bottom: 28px;
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--panel);
	color: var(--ink-soft);
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out),
		color 150ms var(--ease-out), transform 150ms var(--ease-out);
}

.chip span {
	color: var(--comment);
}

.chip:hover {
	border-color: var(--line-2);
	transform: translateY(-1px);
}

.chip.is-active {
	border-color: var(--pink);
	background: var(--pink-soft);
	color: var(--ink);
}

.chip.is-active span {
	color: var(--pink);
}

.tl-search {
	position: relative;
	display: block;
	max-width: 380px;
}

.tl-search input {
	width: 100%;
	min-height: 40px;
	padding: 0 12px 0 34px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--panel);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.4;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.tl-search input::placeholder {
	color: var(--comment);
}

.tl-search input:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(102, 217, 239, 0.1);
	outline: none;
}

.tl-search::before {
	content: "⌕";
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-52%);
	color: var(--comment);
	font-family: var(--font-mono);
	font-size: 16px;
	pointer-events: none;
}

.tl-status-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.tl-status {
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.4;
	color: var(--comment);
}

.tl-status b {
	color: var(--yellow);
	font-weight: 500;
}

.tl-reset {
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--pink);
	background: transparent;
	color: var(--pink);
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.6;
	cursor: pointer;
}

@media (min-width: 760px) {
	.tl-tools {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
	}

	.filters {
		grid-column: 1 / -1;
	}

	.tl-search {
		grid-column: 1;
	}

	.tl-status-row {
		grid-column: 2;
		justify-content: flex-end;
	}
}

.tl-layout {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}

.tl-aside {
	position: sticky;
	top: calc(var(--nav) + 24px);
	display: grid;
	gap: 16px;
}

.tl-aside__title {
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	color: var(--comment);
}

.tl-years {
	display: grid;
	gap: 1px;
	border-top: 1px solid var(--line);
}

.tl-year-link {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 24px;
	align-items: center;
	gap: 8px;
	padding: 7px 0;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	text-decoration: none;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.4;
	transition: color 150ms var(--ease-out);
}

.tl-year-link__bar {
	display: block;
	height: 4px;
	border-radius: 2px;
	background: var(--panel-2);
	overflow: hidden;
}

.tl-year-link__bar span {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: var(--line-2);
	transform-origin: left;
}

.tl-year-link__count {
	text-align: right;
	color: var(--comment);
}

.tl-year-link:hover,
.tl-year-link.is-active {
	color: var(--ink);
}

.tl-year-link.is-dim {
	opacity: 0.32;
}

.tl-year-link:hover .tl-year-link__bar span,
.tl-year-link.is-active .tl-year-link__bar span {
	background: var(--pink);
}

.tl-year-link.is-active .tl-year-link__count {
	color: var(--yellow);
}

.tl-aside__hint {
	font-size: 11px;
	line-height: 1.5;
	color: var(--comment);
}

.tl {
	position: relative;
	min-width: 0;
	padding-left: 34px;
}

.tl-rail {
	position: absolute;
	left: 8px;
	top: 0;
	bottom: 0;
	width: 2px;
	border-radius: 2px;
	background: var(--line);
	overflow: hidden;
}

.tl-rail__fill {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(var(--pink), var(--orange), var(--green));
	transform: scaleY(0);
	transform-origin: top;
}

.tl-group {
	position: relative;
	margin-bottom: clamp(38px, 5vw, 64px);
	scroll-margin-top: calc(var(--nav) + 22px);
}

.tl-group:last-child {
	margin-bottom: 0;
}

.tl-group__head {
	position: sticky;
	top: var(--nav);
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding: 12px 0 10px;
	border-bottom: 1px solid var(--line-2);
	background: linear-gradient(var(--bg) 72%, rgba(27, 28, 24, 0));
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.tl-group__head::before {
	content: "";
	position: absolute;
	left: -34px;
	top: 19px;
	width: 12px;
	height: 12px;
	border: 2px solid var(--bg);
	border-radius: 50%;
	background: var(--pink);
	transform: translateX(-50%);
	box-shadow: 0 0 0 4px var(--bg);
}

.tl-year__num {
	font-family: var(--font-display);
	font-size: clamp(34px, 4vw, 46px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.05em;
	color: var(--ink);
}

.tl-group__meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 6px 12px;
	min-width: 0;
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	color: var(--comment);
}

.tl-group__types {
	display: flex;
	gap: 3px;
	width: 92px;
	height: 6px;
	border-radius: 2px;
	overflow: hidden;
}

.tl-group__types span {
	display: block;
	height: 100%;
	background: var(--c);
	opacity: 0.8;
}

.tl-group__entries {
	padding-top: 6px;
}

.tl-entry {
	position: relative;
	display: grid;
	grid-template-columns: 116px minmax(0, 1fr);
	gap: 18px;
	padding: 18px 12px 18px 0;
	border-bottom: 1px solid var(--line);
	transition: background-color 160ms var(--ease-out);
}

.tl-entry:last-child {
	border-bottom: 0;
}

.tl-entry:hover {
	background: rgba(248, 248, 242, 0.018);
}

.tl-entry__node {
	position: absolute;
	left: -26px;
	top: 24px;
	width: 10px;
	height: 10px;
	border: 2px solid var(--line-2);
	border-radius: 50%;
	background: var(--bg);
	transform: translateX(-50%);
	transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out),
		transform 200ms var(--ease-out);
}

.tl-entry:hover .tl-entry__node {
	border-color: var(--c, var(--line-2));
	background: var(--c, var(--panel));
	transform: translateX(-50%) scale(1.25);
}

.tl-entry.is-project {
	--c: var(--pink);
}

.tl-entry.is-work {
	--c: var(--purple);
}

.tl-entry.is-article {
	--c: var(--green);
}

.tl-entry.is-freelance {
	--c: var(--orange);
}

.tl-entry__side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
}

.tl-entry__side time {
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	color: var(--comment);
}

.entry-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 6px;
	border: 1px solid var(--line);
	border-radius: 3px;
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--ink-soft);
}

.entry-badge::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 1px;
	background: var(--c, var(--line-2));
}

.entry-badge--project {
	border-color: rgba(249, 38, 114, 0.35);
	color: var(--pink);
}

.entry-badge--work {
	border-color: rgba(174, 129, 255, 0.35);
	color: var(--purple);
}

.entry-badge--wl {
	border-color: rgba(166, 226, 46, 0.3);
	color: var(--green);
}

.entry-badge--fl {
	border-color: rgba(253, 151, 31, 0.32);
	color: var(--orange);
}

.tl-entry__title {
	font-family: var(--font-body);
	font-size: clamp(18px, 1.9vw, 23px);
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -0.015em;
}

.tl-entry__title a {
	color: var(--ink);
	text-decoration: none;
	transition: color 150ms var(--ease-out);
}

.tl-entry__title a:hover {
	color: var(--yellow);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.entry-body {
	margin-top: 9px;
	max-width: 70ch;
	color: var(--ink-soft);
	font-size: 14px;
	line-height: 1.65;
	overflow-wrap: break-word;
}

.entry-body > * + * {
	margin-top: 9px;
}

.entry-body a {
	color: var(--blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-body a:hover {
	color: var(--yellow);
}

.entry-body ul,
.entry-body ol {
	padding-left: 20px;
	list-style: disc;
}

.entry-body ol {
	list-style: decimal;
}

.entry-body img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
}

.entry-body figure,
.entry-body .wp-caption {
	max-width: 100%;
	height: auto;
}

.entry-body code {
	padding: 1px 4px;
	border-radius: 3px;
	background: var(--panel-2);
	color: var(--yellow);
	font-family: var(--font-mono);
	font-size: 0.88em;
}

.entry-body pre {
	overflow: auto;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--bg);
	color: var(--ink-soft);
	font-family: var(--font-mono);
	font-size: 12px;
}

.entry-body blockquote {
	margin: 12px 0;
	padding-left: 14px;
	border-left: 2px solid var(--purple);
	color: var(--muted);
}

.entry-body h2,
.entry-body h3 {
	margin: 12px 0 4px;
	font-family: var(--font-body);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0;
}

.entry-body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.entry-body td,
.entry-body th {
	padding: 4px 7px;
	border: 1px solid var(--line);
	text-align: left;
}

.entry-body iframe,
.entry-body video,
.entry-body embed {
	max-width: 100%;
	border: 0;
}

.entry-body.is-clamped {
	position: relative;
	max-height: 210px;
	overflow: hidden;
}

.entry-body.is-clamped::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 64px;
	background: linear-gradient(to bottom, rgba(39, 40, 34, 0), var(--panel));
	pointer-events: none;
}

.entry-more {
	display: inline-block;
	margin-top: 8px;
	padding: 0 0 2px;
	border: 0;
	border-bottom: 1px solid var(--blue);
	background: transparent;
	color: var(--blue);
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.6;
	cursor: pointer;
}

.entry-more:hover {
	color: var(--yellow);
	border-bottom-color: var(--yellow);
}

.tl-entry[hidden],
.tl-group[hidden] {
	display: none !important;
}

.tl-empty {
	padding: 28px 0;
	color: var(--muted);
	font-size: 14px;
}

/* ---------- Навыки ---------- */

.skills {
	border-top: 1px solid var(--line);
}

.skills__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 14px;
	align-items: start;
}

.skills-cloud {
	min-width: 0;
	padding: clamp(18px, 2.4vw, 28px);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--panel);
}

.skills-cloud__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.4;
	color: var(--comment);
}

.skills-cloud__scale {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.skills-cloud__scale i {
	display: block;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--line-2);
}

.skills-cloud__scale i:nth-child(2) {
	width: 6px;
	height: 6px;
	background: rgba(249, 38, 114, 0.55);
}

.skills-cloud__scale i:nth-child(3) {
	width: 9px;
	height: 9px;
	background: var(--pink);
}

.skills-cloud__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 15px;
	padding: clamp(18px, 3vw, 30px) 0 clamp(14px, 2.4vw, 24px);
}

.skill {
	appearance: none;
	-webkit-appearance: none;
	padding: 1px 0;
	border: 0;
	border-bottom: 1px solid transparent;
	border-radius: 2px;
	background: transparent;
	color: var(--c, var(--ink));
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: calc(var(--s, 14) * 1px);
	line-height: 1.05;
	letter-spacing: -0.035em;
	cursor: pointer;
	transition: color 150ms var(--ease-out), opacity 200ms var(--ease-out),
		transform 150ms var(--ease-out), background-color 150ms var(--ease-out),
		border-color 150ms var(--ease-out);
}

.skill--top {
	font-weight: 600;
}

.skill:hover,
.skill:focus-visible {
	color: var(--yellow);
	border-bottom-color: var(--yellow);
	transform: translateY(-1px);
}

.skill.is-current {
	color: var(--yellow);
}

.skill.is-pinned {
	padding: 1px 5px;
	border-bottom-color: var(--c);
	background: var(--panel-2);
	color: var(--ink);
	box-shadow: 0 0 0 1px var(--c);
}

.skill.is-dim {
	opacity: 0.16;
}

.skill.is-dim:hover,
.skill.is-dim:focus-visible {
	opacity: 0.9;
}

.skills-cloud__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--comment);
}

.skills__side {
	position: sticky;
	top: calc(var(--nav) + 22px);
	display: grid;
	gap: 12px;
}

.skill-detail {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--bg);
}

.skill-detail__top {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--comment);
}

.skill-detail__top span {
	color: var(--green);
}

.skill-detail__name {
	margin-top: 14px;
	font-family: var(--font-mono);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.05em;
	color: var(--c, var(--pink));
	overflow-wrap: anywhere;
}

.skill-detail__meta {
	margin-top: 6px;
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1.5;
	color: var(--muted);
}

.skill-detail__meta span:first-child {
	color: var(--comment);
}

.skill-detail__meter {
	height: 6px;
	margin-top: 14px;
	border-radius: 2px;
	background: var(--panel-2);
	overflow: hidden;
}

.skill-detail__meter span {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: var(--c, var(--pink));
	transition: width 220ms var(--ease-out);
}

.skill-detail__hint {
	margin-top: 10px;
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.5;
	color: var(--comment);
}

.skills__filters {
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	background: var(--panel);
}

.skills__filters-title {
	margin-bottom: 9px;
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.4;
	color: var(--comment);
}

.skills__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.skills .skill-filter {
	min-height: 30px;
	padding: 0 9px;
	font-size: 10px;
}

.skills .skill-filter__dot {
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--c, var(--pink));
}

.skills .skill-filter.is-active {
	border-color: var(--c, var(--pink));
	background: var(--panel-2);
	color: var(--ink);
}

.skills .skill-filter.is-active span {
	color: var(--c, var(--pink));
}

.skills .skill-filter.is-active .skill-filter__dot {
	background: var(--c, var(--pink));
}

.skills__note {
	font-family: var(--font-mono);
	font-size: 9px;
	line-height: 1.55;
	color: var(--comment);
}

@media (max-width: 940px) {
	.skills__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.skills__side {
		position: static;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
	}

	.skills__note {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.skills-cloud__tags {
		gap: 2px 11px;
	}

	.skill {
		font-size: calc(var(--s, 14) * 0.84px);
	}

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

/* ---------- Контакты и подвал ---------- */

.site-end {
	background: var(--bg-elev);
	border-top: 1px solid var(--line);
}

.contact {
	padding-block: clamp(64px, 9vw, 112px);
}

.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.contact h2 {
	margin-top: 12px;
	font-size: clamp(36px, 5.2vw, 64px);
	line-height: 0.98;
}

.contact__copy p {
	margin-top: 16px;
	max-width: 46ch;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.6;
}

.contact .status {
	margin-top: 20px;
}

.terminal {
	border: 1px solid var(--line-2);
	border-radius: var(--r-md);
	background: var(--panel);
	overflow: hidden;
}

.terminal__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 13px;
	border-bottom: 1px solid var(--line);
	background: var(--bg);
	font-family: var(--font-mono);
	font-size: 9px;
	color: var(--comment);
}

.terminal__body {
	display: grid;
	gap: 8px;
	padding: 16px 13px;
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.5;
	color: var(--ink-soft);
}

.terminal__line {
	display: flex;
	align-items: baseline;
	gap: 7px;
}

.terminal__line b {
	color: var(--green);
	font-weight: 400;
}

.terminal__contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 13px 16px;
}

.terminal__contact .btn {
	justify-content: space-between;
	width: 100%;
}

.terminal__contact .btn span:last-child {
	font-family: var(--font-mono);
	font-size: 10px;
	opacity: 0.7;
}

.site-footer {
	border-top: 1px solid var(--line);
	background: var(--bg);
	padding-block: 28px;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.site-footer__brand {
	display: flex;
	align-items: center;
	gap: 13px;
}

.site-footer__brand p {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--comment);
}

.site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.site-footer__nav a {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--muted);
	text-decoration: none;
	transition: color 150ms var(--ease-out);
}

.site-footer__nav a:hover {
	color: var(--yellow);
}

.site-footer__note {
	font-family: var(--font-mono);
	font-size: 9px;
	color: var(--comment);
}

/* ---------- Нижняя статус-строка редактора ---------- */

.statusbar {
	position: fixed;
	inset: auto 0 0;
	z-index: 95;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: var(--status);
	padding: 0 14px;
	border-top: 1px solid var(--line);
	background: rgba(32, 33, 29, 0.94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	font-family: var(--font-mono);
	font-size: 10px;
	line-height: 1;
	color: var(--comment);
}

.statusbar__left {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--green);
	white-space: nowrap;
}

.statusbar__mid {
	color: var(--ink-soft);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.statusbar__right {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.statusbar__right b {
	color: var(--yellow);
	font-weight: 500;
}

.statusbar .status__dot {
	width: 6px;
	height: 6px;
	box-shadow: none;
}

/* ---------- Анимации появления ---------- */

.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 720ms var(--ease), transform 720ms var(--ease);
	transition-delay: calc(var(--d, 0) * 60ms);
}

.js .reveal.is-in {
	opacity: 1;
	transform: none;
}

.js .chart__fill {
	transform: scaleY(0);
}

.panel.is-in .chart__fill {
	animation: bar-grow 780ms var(--ease) both;
	animation-delay: calc(var(--i, 0) * 26ms);
}

@keyframes bar-grow {
	from {
		transform: scaleY(0);
	}
	to {
		transform: scaleY(1);
	}
}

.js .chart-line {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.panel.is-in .chart-line {
	animation: line-draw 1400ms 220ms var(--ease) forwards;
}

@keyframes line-draw {
	to {
		stroke-dashoffset: 0;
	}
}

.js .chart-area {
	opacity: 0;
}

.panel.is-in .chart-area {
	animation: fade-in 900ms 500ms var(--ease) forwards;
}

@keyframes fade-in {
	to {
		opacity: 1;
	}
}

.js .donut__seg {
	opacity: 0;
}

.panel.is-in .donut__seg {
	animation: fade-in 700ms var(--ease) forwards;
	animation-delay: calc(200ms + var(--i, 0) * 80ms);
}

.js .rhythm__bar i {
	transform: scaleY(0);
}

.panel.is-in .rhythm__bar i {
	animation: bar-grow 700ms var(--ease) both;
	animation-delay: calc(var(--i, 0) * 22ms);
}

.js .matrix__cell {
	opacity: 0;
}

.panel.is-in .matrix__cell {
	animation: cell-in 420ms var(--ease) both;
	animation-delay: calc(var(--i, 0) * 7ms);
}

@keyframes cell-in {
	from {
		opacity: 0;
		transform: scale(0.86);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.js .gh-langs__bar span {
	transform: scaleX(0);
}

.js .reveal.is-in .gh-langs__bar span {
	animation: bar-x 720ms var(--ease) both;
	animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes bar-x {
	to {
		transform: scaleX(1);
	}
}

.js .tl-entry {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

.js .tl-entry.is-visible {
	opacity: 1;
	transform: none;
}

.js .tl-entry__node {
	opacity: 0;
	transform: translateX(-50%) scale(0.3);
	transition: opacity 320ms var(--ease), transform 420ms var(--ease),
		border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.js .tl-entry.is-visible .tl-entry__node {
	opacity: 1;
	transform: translateX(-50%) scale(1);
}

.js .tl-entry:hover .tl-entry__node,
.js .tl-entry.is-visible:hover .tl-entry__node {
	transform: translateX(-50%) scale(1.25);
}

/* ---------- Адаптив ---------- */

@media (max-width: 1120px) {
	.hero__grid {
		grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
	}

	.panel--chart {
		grid-column: span 7;
	}

	.panel--types {
		grid-column: span 5;
	}

	.panel--rhythm {
		grid-column: span 7;
	}

	.panel--records {
		grid-column: span 5;
	}

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

	.kpi:nth-child(4) {
		border-left: 0;
	}

	.kpi:nth-child(n + 4) {
		border-top: 1px solid var(--line);
	}

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

@media (max-width: 940px) {
	.hero {
		min-height: auto;
		padding-top: calc(var(--nav) + 44px);
	}

	.hero__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.hero__name {
		font-size: clamp(54px, 14vw, 96px);
	}

	.hero__scroll {
		display: none;
	}

	.section__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.section__note {
		max-width: 52ch;
	}

	.panel--chart,
	.panel--types,
	.panel--matrix,
	.panel--rhythm,
	.panel--records {
		grid-column: span 12;
	}

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

	.project {
		display: grid;
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		grid-template-rows: auto 1fr;
		column-gap: 20px;
	}

	.project__head {
		grid-column: 1 / -1;
	}

	.project__art {
		grid-row: 2;
		height: 100%;
		min-height: 176px;
		margin-bottom: 0;
	}

	.project__body {
		grid-row: 2;
	}

	.pipe__panel {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

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

	.tl-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.tl-aside {
		position: static;
	}

	.tl-aside__title,
	.tl-aside__hint {
		display: none;
	}

	.tl-years {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		border-top: 0;
	}

	.tl-year-link {
		display: inline-flex;
		grid-template-columns: none;
		gap: 6px;
		padding: 5px 9px;
		border: 1px solid var(--line);
		border-radius: var(--r-sm);
		background: var(--panel);
	}

	.tl-year-link__bar {
		display: none;
	}

	.tl-year-link__count {
		color: var(--comment);
	}
}

@media (max-width: 720px) {
	.section {
		padding-block: 64px;
	}

	.hero__actions {
		flex-direction: column;
	}

	.hero__actions .btn {
		width: 100%;
	}

	.hero__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

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

	.kpi:nth-child(odd) {
		border-left: 0;
	}

	.kpi:nth-child(n + 3) {
		border-top: 1px solid var(--line);
	}

	.kpi:nth-child(4) {
		border-left: 1px solid var(--line);
	}

	.kpi:nth-child(6) {
		border-left: 1px solid var(--line);
	}

	.donut {
		grid-template-columns: 116px minmax(0, 1fr);
	}

	.donut__wrap {
		width: 116px;
		height: 116px;
	}

	.rhythm {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

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

	.pipe__tab:last-of-type {
		grid-column: 1 / -1;
	}

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

	.project {
		display: flex;
	}

	.project__art {
		height: 158px;
		margin: 15px 0;
	}

	.tl-entry {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		padding-right: 0;
	}

	.tl-entry__side {
		flex-direction: row;
		align-items: center;
		gap: 10px;
	}

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

	.site-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.statusbar__mid {
		display: none;
	}
}

@media (max-width: 480px) {
	.statusbar__right span:not(:last-child) {
		display: none;
	}

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

	.gh-recent__list a {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.gh-recent__label {
		grid-column: 1 / -1;
	}
}

@media (max-width: 380px) {
	.hero__name {
		font-size: clamp(42px, 15vw, 58px);
	}

	.hero__actions .btn {
		width: 100%;
	}
}

/* ---------- Уменьшение движения ---------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-delay: 0ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.js .reveal,
	.js .tl-entry,
	.js .tl-entry__node,
	.js .chart-area,
	.js .donut__seg,
	.js .matrix__cell,
	.js .gh-langs__bar span,
	.js .chart__fill,
	.js .rhythm__bar i {
		opacity: 1;
		transform: none;
	}

	.js .chart-line {
		stroke-dasharray: none;
		stroke-dashoffset: 0;
	}

	.pipe__panel.is-active {
		animation: none;
	}
}
