/* Страницы: главная, стих, архивы, шаблоны страниц, 404. */

/* Главная */

.ptk-hero {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: calc(100vh - var(--ptk-header));
	overflow: hidden;
}

.ptk-hero__left {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 10px 40px 0 max(20px, calc(100% - 560px));
}

.ptk-script {
	margin: 40px 0 0;
	font-family: var(--ptk-font-script);
	font-size: 200px;
	font-weight: 500;
	line-height: 200px;
	letter-spacing: 2.5px;
}

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

.ptk-hero__subtitle {
	margin: 40px 0 0;
	font-family: var(--ptk-font-heading);
	font-size: 21px;
	font-weight: 600;
	line-height: 21px;
}

.ptk-hero__intro {
	max-width: 470px;
	margin: 20px 0 0;
	font-family: var(--ptk-font-text);
	font-size: 14px;
	font-weight: 500;
	font-style: italic;
	line-height: 21px;
	color: var(--ptk-text);
}

.ptk-hero__intro p {
	margin: 0 0 0.9rem;
}

.ptk-hero__author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
}

.ptk-hero__portrait {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
}

.ptk-hero__author-line {
	margin: 0;
	font-family: var(--ptk-font-text);
	font-size: 15px;
	font-weight: 500;
	font-style: italic;
	line-height: 20px;
	letter-spacing: 0.2px;
}

.ptk-hero__art {
	position: absolute;
	top: 800px;
	left: 2px;
	z-index: 0;
	width: 100%;
	max-width: none;
	height: auto;
	pointer-events: none;
}

.ptk-hero__left > :not(.ptk-hero__art) {
	position: relative;
	z-index: 1;
}

.ptk-hero__mobile-actions {
	display: none;
}

.ptk-hero__right {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 95px 0 10px;
	background: var(--ptk-black);
	color: var(--ptk-white);
}

.ptk-hero__poem {
	display: flow-root;
	width: calc(100% - 123px);
	max-width: 447px;
	margin-left: 123px;
	font-family: var(--ptk-font-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 0.3px;
	word-spacing: 4px;
	color: var(--ptk-white);
}

.ptk-hero__poem p {
	margin: 0 0 20px;
}

.ptk-hero__poem a {
	color: var(--ptk-white);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.35);
}

.ptk-hero__sign {
	width: calc(100% - 123px);
	max-width: 447px;
	margin: 20px 0 0 123px;
	font-family: var(--ptk-font-heading);
	font-size: 16px;
	font-weight: 500;
	line-height: 16px;
	text-align: right;
	color: var(--ptk-white);
}

.ptk-hero__sign a {
	color: var(--ptk-white);
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.ptk-hero__sign a:hover,
.ptk-hero__sign a:focus-visible {
	border-bottom-color: var(--ptk-white);
}

.ptk-hero__copyright {
	margin: 20px 0;
	font-family: var(--ptk-font-text);
	font-size: 12px;
	font-weight: 500;
	line-height: 12px;
	color: var(--ptk-white);
}

/* Стих */

.ptk-stage {
	display: grid;
	grid-template-columns: 380px minmax(0, 1fr);
	gap: 20px;
	margin-top: 80px;
}

.ptk-poem {
	padding-bottom: 20px;
}

.ptk-poem__head {
	text-align: center;
}

.ptk-poem__title {
	margin: 0;
	font-family: var(--ptk-font-heading);
	font-size: var(--ptk-h1);
	font-weight: 600;
	line-height: 1.3;
}

.ptk-poem__cats {
	margin: 4px 0 22px;
	font-family: var(--ptk-font-text);
	font-size: var(--ptk-small);
	font-weight: 500;
	color: var(--ptk-ink);
}

.ptk-poem__cats a:hover,
.ptk-poem__cats a:focus-visible {
	text-decoration: underline;
}

.ptk-poem__dedication {
	margin: 0 0 18px;
	font-family: var(--ptk-font-text);
	font-size: 13px;
	font-style: italic;
	color: var(--ptk-muted);
}

.ptk-poem__body {
	max-width: 485px;
	margin: 0 auto;
	font-family: var(--ptk-font-text);
	font-size: var(--ptk-text-size);
	font-weight: 500;
	line-height: var(--ptk-line-height);
	letter-spacing: 0.1px;
	word-spacing: 2px;
	color: var(--ptk-ink);
}

.ptk-poem__body p {
	margin: 0 0 1.1em;
}

.ptk-poem__date {
	margin: 26px 0 0;
	font-family: var(--ptk-font-text);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

.ptk-poem__genres {
	margin: 10px 0 0;
	font-family: var(--ptk-font-text);
	font-size: var(--ptk-small);
	text-align: center;
	color: var(--ptk-muted);
}

.ptk-poem__all {
	margin: 22px 0 0;
	text-align: center;
}

.ptk-poem__all a {
	font-size: 13px;
	color: var(--ptk-accent-dark);
	border-bottom: 1px solid rgba(179, 82, 74, 0.35);
}

.ptk-poem__all a:hover,
.ptk-poem__all a:focus-visible {
	border-bottom-color: currentColor;
}

.ptk-random {
	margin-top: 10px;
}

/* Архив и поиск */

.ptk-archive {
	margin-top: 80px;
}

.ptk-archive__icon {
	display: block;
	width: 140px;
	height: auto;
	margin: 0 auto 18px;
}

.ptk-archive__head {
	text-align: center;
}

.ptk-archive__title {
	margin: 0 0 8px;
	font-family: var(--ptk-font-heading);
	font-size: var(--ptk-h1);
	font-weight: 600;
}

.ptk-archive__desc {
	max-width: 640px;
	margin: 0 auto 24px;
	font-size: 14px;
	color: var(--ptk-text);
}

/* Шаблоны страниц */

.ptk-page {
	display: grid;
	grid-template-columns: 380px minmax(0, 1fr);
	gap: 20px;
	margin-top: 80px;
}

.ptk-page__body {
	min-width: 0;
}

.ptk-page__title {
	margin: 0 0 20px;
	font-family: var(--ptk-font-heading);
	font-size: 25px;
	font-weight: 600;
}

.ptk-page__book {
	display: block;
	width: 150px;
	height: auto;
	margin: 0 auto 10px;
}

.ptk-page__lead {
	font-size: 15px;
	line-height: 1.55;
}

.ptk-page__lead a {
	color: var(--ptk-accent-dark);
	text-decoration: underline;
}

.ptk-page__emails {
	margin: 0 0 10px;
	text-align: center;
}

.ptk-page__emails a {
	display: inline-block;
	margin: 0 10px;
	font-family: var(--ptk-font-text);
	font-size: 20px;
	font-weight: 600;
	color: var(--ptk-accent-dark);
}

.ptk-page__emails a:hover,
.ptk-page__emails a:focus-visible {
	text-decoration: underline;
}

/* Обо мне */

.ptk-about {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: 50px;
	margin-top: 80px;
}

.ptk-about__portrait {
	width: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.ptk-about__text {
	font-size: 15px;
	line-height: 1.55;
}

.ptk-about__text .wp-block-quote,
.ptk-project__text .wp-block-quote {
	margin: 20px 0;
	padding: 24px;
	border: 0;
	border-radius: var(--ptk-radius);
	background: var(--ptk-quote-bg);
}

.ptk-about__text .wp-block-quote p,
.ptk-project__text .wp-block-quote p {
	margin: 0 0 12px;
	font-size: 15px;
	font-style: normal;
	color: #646464;
}

.ptk-about__text .wp-block-quote cite,
.ptk-project__text .wp-block-quote cite {
	font-size: 12px;
	font-weight: 600;
	font-style: normal;
}

/* О проекте */

.ptk-project {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: start;
	gap: 50px;
	margin-top: 70px;
}

.ptk-project__aside {
	position: sticky;
	top: 20px;
}

.ptk-project__art {
	width: 100%;
	height: auto;
}

.ptk-project__text {
	font-size: 15px;
	line-height: 1.55;
}

.ptk-project__text h2 {
	margin-top: 28px;
}

.ptk-project__text p {
	margin: 0 0 0.7em;
}

/* Музыка */

.ptk-music {
	margin-top: 60px;
}

.ptk-music__intro {
	max-width: 640px;
	margin-bottom: 10px;
}

.ptk-player {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 30px 0 0;
	padding: 12px 16px;
	border: 1px solid #ececec;
	border-radius: var(--ptk-radius);
	background: var(--ptk-quote-bg);
}

.ptk-player__audio {
	width: 320px;
	max-width: 100%;
	height: 40px;
}

.ptk-player__info {
	flex: 1 1 auto;
	min-width: 0;
}

.ptk-player__now {
	margin: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ptk-player__hint {
	margin: 2px 0 0;
	font-size: 12px;
	color: var(--ptk-soft);
}

.ptk-player__all {
	flex: 0 0 auto;
	font-size: 13px;
}

.ptk-playlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ptk-playlist__item {
	border-bottom: 1px dotted var(--ptk-line);
}

.ptk-playlist__link {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 12px 4px;
	color: var(--ptk-ink);
	text-decoration: none;
}

.ptk-playlist__num {
	flex: 0 0 26px;
	font-size: 13px;
	color: var(--ptk-soft);
	text-align: right;
}

.ptk-playlist__title {
	flex: 1 1 auto;
	font-size: 14px;
}

.ptk-playlist__time {
	flex: 0 0 auto;
	font-size: 13px;
	color: var(--ptk-soft);
	font-variant-numeric: tabular-nums;
}

.ptk-playlist__link:hover .ptk-playlist__title,
.ptk-playlist__link:focus-visible .ptk-playlist__title {
	text-decoration: underline;
}

.ptk-playlist__link.is-active,
.ptk-playlist__link.is-active .ptk-playlist__num {
	color: var(--ptk-accent-dark);
}

.ptk-music .wp-block-audio {
	margin: 0 0 10px;
	padding: 12px 0;
	border-bottom: 1px dotted var(--ptk-line);
}

.ptk-music .wp-block-audio audio {
	width: 100%;
}

.ptk-music .wp-block-audio figcaption {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ptk-ink);
}

/* 404 и пустые состояния */

.ptk-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	padding: 60px 20px;
	text-align: center;
}

.ptk-message__script {
	margin: 0 0 20px;
	font-family: var(--ptk-font-script);
	font-size: 96px;
	line-height: 1;
}

.ptk-message__title {
	margin: 0 0 12px;
	font-family: var(--ptk-font-heading);
	font-size: 24px;
	font-weight: 600;
}

.ptk-message__text {
	max-width: 520px;
	margin: 0 0 24px;
	color: var(--ptk-text);
}

.ptk-message .ptk-searchform {
	width: min(420px, 100%);
	margin-bottom: 20px;
}

/* Адаптив */

@media (max-width: 1100px) and (min-width: 768px) {
	.ptk-stage,
	.ptk-page {
		grid-template-columns: 320px minmax(0, 1fr);
		gap: 16px;
		margin-top: 50px;
	}

	.ptk-about {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 30px;
	}
}

@media (max-width: 1024px) and (min-width: 768px) {
	.ptk-script {
		font-size: 122px;
	}

	.ptk-hero__left {
		padding-right: 10px;
		padding-left: 20px;
	}

	.ptk-hero__intro {
		max-width: none;
		padding-right: 80px;
	}

	.ptk-hero__right {
		padding: 95px 10px 10px 0;
	}

	.ptk-hero__poem {
		width: auto;
		max-width: none;
		margin: 20px;
	}

	.ptk-hero__sign {
		width: auto;
		max-width: none;
		margin: 20px 0 0;
	}

	.ptk-hero__art {
		top: auto;
		bottom: 0;
		left: 0;
	}
}

@media (max-width: 767px) {
	.ptk-hero {
		display: block;
		min-height: calc(100vh - 100px);
		overflow: hidden;
		background-image: var(--ptk-hero-art);
		background-repeat: no-repeat;
		background-position: bottom center;
		background-size: contain;
	}

	.ptk-hero__left {
		align-items: center;
		padding: 40px 10px 0;
		text-align: center;
		overflow: visible;
	}

	.ptk-script {
		margin: 0;
		font-size: 110px;
		line-height: 100px;
		letter-spacing: 2.5px;
	}

	.ptk-hero__subtitle {
		margin-top: 0;
		font-size: 14px;
		line-height: 14px;
	}

	.ptk-hero__intro,
	.ptk-hero__author {
		display: none;
	}

	.ptk-hero__mobile-actions {
		display: flex;
		flex-direction: column;
		gap: 10px;
		margin: 40px 0 0;
		width: auto;
	}

	.ptk-hero__mobile-actions .ptk-button {
		width: 153px;
		padding: 10px 0;
		font-size: 14px;
	}

	.ptk-hero__art {
		display: none;
	}

	.ptk-hero__right {
		position: absolute;
		inset: auto 0 0 0;
		padding: 0;
		background: transparent;
		color: var(--ptk-white);
	}

	.ptk-hero__poem,
	.ptk-hero__sign {
		display: none;
	}

	.ptk-hero__copyright {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 30px;
		margin: 0;
		text-align: center;
		font-size: 12px;
		line-height: 12px;
	}

	.ptk-stage,
	.ptk-page {
		display: flex;
		flex-direction: column;
		margin-top: 30px;
	}

	.ptk-stage > .ptk-sidebar,
	.ptk-page > .ptk-sidebar {
		order: 2;
		margin: 30px 0 0;
	}

	.ptk-sidebar__search,
	.ptk-sidebar__ornament,
	.ptk-quotes {
		display: none;
	}

	.ptk-sidebar__cats {
		columns: 2;
	}

	.ptk-sidebar__cats a {
		font-size: 13px;
		padding: 6px 0;
	}

	.ptk-poem__title {
		font-size: 20px;
	}

	.ptk-poem__cats {
		font-size: 10px;
	}

	.ptk-poem__body {
		font-size: 12px;
		line-height: 14px;
	}

	.ptk-about,
	.ptk-project {
		display: block;
		margin-top: 30px;
	}

	.ptk-project__aside {
		position: static;
	}

	.ptk-about__portrait {
		width: min(260px, 70%);
		margin: 0 auto 24px;
	}

	.ptk-project__art {
		width: min(420px, 100%);
		margin: 0 auto 24px;
	}

	.ptk-archive {
		margin-top: 30px;
	}

	.ptk-archive__title {
		font-size: 20px;
	}

	.ptk-page__title {
		font-size: 20px;
	}

	.ptk-page__emails a {
		font-size: 16px;
	}

	.ptk-music {
		margin-top: 30px;
	}

	.ptk-player {
		flex-wrap: wrap;
		gap: 10px;
	}

	.ptk-player__audio {
		width: 100%;
	}
}
