/* PixelTaken: blog, single posts and plain pages (the templates in template-parts/).
   Rules start with .pt-main so they beat the site-wide heading and link styles that
   Elementor's Site Settings print as ".elementor-kit-N h1" and ".elementor-kit-N a". */

.pt-wrap {
	max-width: calc(1080px + 2 * clamp(20px, 4vw, 40px));
	margin-inline: auto;
	padding-inline: clamp(20px, 4vw, 40px);
}

.pt-wrap--narrow {
	max-width: calc(760px + 2 * clamp(20px, 4vw, 40px));
}

.pt-section {
	padding-block: clamp(34px, 5vw, 54px) clamp(48px, 6.5vw, 72px);
}

/* --- the band that opens a page ------------------------------------------ */

.pt-hero {
	padding-block: clamp(40px, 6vw, 64px);
	border-bottom: 1px solid #eeeef4;
	background: #faf9fe;
	text-align: center;
}

.pt-main .pt-eyebrow {
	margin: 0;
	color: #d01a62; /* the accent is 4.4:1 on this tinted band, this shade 5:1 */
	font: 600 12px/1.3 "IBM Plex Mono", ui-monospace, monospace;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.pt-main .pt-eyebrow a {
	color: inherit;
}

.pt-main .pt-eyebrow a:hover {
	color: #c4185c;
}

.pt-main .pt-eyebrow span {
	margin-inline: .35em;
	color: #c9c6d6;
}

.pt-main .pt-hero__title {
	margin: 12px 0 0;
	color: #13131b;
	font: 800 clamp(30px, 4.4vw, 44px)/1.1 "Sora", system-ui, sans-serif;
	letter-spacing: -.03em;
	text-wrap: balance;
}

.pt-main .pt-hero__lead {
	max-width: 58ch;
	margin: 14px auto 0;
	color: #5a5a6b;
	font-size: 16.5px;
	line-height: 1.6;
}

/* An article opens left-aligned, in the same column as its text. */
.pt-hero--post {
	text-align: left;
}

.pt-main .pt-hero--post .pt-hero__title {
	font-size: clamp(27px, 3.9vw, 40px);
	line-height: 1.15;
}

.pt-main .pt-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	color: #6c6c80;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.37;
}

/* --- category filter and search ------------------------------------------ */

.pt-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	margin-bottom: 28px;
}

.pt-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pt-main .pt-chips a {
	padding: 7px 14px;
	border: 1px solid #e3e1ee;
	border-radius: 999px;
	background: #fff;
	color: #4a4a58;
	font: 600 13px/1.37 "Manrope", system-ui, sans-serif;
	transition: border-color .18s, color .18s;
}

.pt-main .pt-chips a:hover {
	border-color: #e01e6a;
	color: #c4185c;
}

.pt-main .pt-chips a[aria-current] {
	border-color: #13131b;
	background: #13131b;
	color: #fff;
}

.pt-search {
	position: relative;
	flex: 0 1 250px;
}

.pt-search svg {
	position: absolute;
	top: 50%;
	left: 12px;
	width: 15px;
	height: 15px;
	margin-top: -7.5px;
	color: #8b8b9c;
	pointer-events: none;
}

.pt-main .pt-search input {
	width: 100%;
	padding: 9px 12px 9px 36px;
	border: 1.5px solid #e3e3ec;
	border-radius: 10px;
	background: #fff;
	color: #13131b;
	font: 500 14px/1.37 "Manrope", system-ui, sans-serif;
}

.pt-main .pt-search input:focus {
	border-color: #e01e6a;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(224, 30, 106, .12);
}

@media (max-width: 600px) {
	.pt-search {
		flex-basis: 100%;
	}
}

/* --- list of posts -------------------------------------------------------- */

.pt-posts--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.pt-posts--grid a.pt-post {
	min-width: 0;
}

.pt-posts--grid .pt-post__cover {
	height: auto;
	aspect-ratio: 16 / 9;
}

.pt-post__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 8px;
	color: #5f5d6b;
	font-size: 13.5px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.pt-main .pt-pages {
	display: block;
	margin: 36px 0 0;
}

.pt-pages .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pt-main .pt-pages .page-numbers {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #e3e1ee;
	border-radius: 11px;
	background: #fff;
	color: #2a2a38;
	font: 700 14px/1 "Sora", system-ui, sans-serif;
	transition: border-color .18s, color .18s;
}

.pt-main .pt-pages a.page-numbers:hover {
	border-color: #e01e6a;
	color: #c4185c;
}

.pt-main .pt-pages .page-numbers.current {
	border-color: #e01e6a;
	background: #e01e6a;
	color: #fff;
}

.pt-main .pt-pages .page-numbers.dots {
	min-width: 0;
	padding: 0 2px;
	border-color: transparent;
	background: none;
	color: #6e6e80;
}

.pt-main .pt-empty {
	margin: 40px 0;
	color: #5a5a6b;
	text-align: center;
}

/* --- article --------------------------------------------------------------- */

.pt-article__cover {
	margin: 0 0 clamp(28px, 4vw, 40px);
}

.pt-article__cover img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #eaeaf2;
	border-radius: 16px;
	box-shadow: 0 22px 44px -26px rgba(22, 22, 50, .34);
}

.pt-main .pt-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: clamp(28px, 4vw, 40px) 0 0;
	padding-top: 24px;
	border-top: 1px solid #eeeef4;
}

.pt-main .pt-tags a {
	padding: 5px 11px;
	border-radius: 7px;
	background: #f5f4fa;
	color: #4a4a58;
	font: 600 12.5px/1.37 "Manrope", system-ui, sans-serif;
	transition: background-color .18s, color .18s;
}

.pt-main .pt-tags a:hover {
	background: rgba(224, 30, 106, .1);
	color: #c4185c;
}

.pt-related {
	padding-block: clamp(44px, 6vw, 64px);
	border-top: 1px solid #eeeef4;
	background: #faf9fe;
}

.pt-related__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 26px;
}

.pt-main .pt-related__head h2 {
	margin: 0;
	color: #13131b;
	font: 800 clamp(24px, 3vw, 30px)/1.2 "Sora", system-ui, sans-serif;
	letter-spacing: -.025em;
}

.pt-main .pt-related__head a {
	color: #d01a62;
	font: 700 14px/1.26 "Sora", system-ui, sans-serif;
}

.pt-main .pt-related__head a:hover {
	color: #c4185c;
}

/* --- long-form text -------------------------------------------------------- */

.pt-prose {
	color: #3a3a48;
	font-size: 17px;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.pt-prose > :first-child {
	margin-top: 0;
}

.pt-prose > :last-child {
	margin-bottom: 0;
}

.pt-prose p,
.pt-prose ul,
.pt-prose ol,
.pt-prose figure,
.pt-prose table,
.pt-prose blockquote,
.pt-prose pre {
	margin: 0 0 1.25em;
}

.pt-main .pt-prose h2,
.pt-main .pt-prose h3,
.pt-main .pt-prose h4 {
	color: #13131b;
	font-family: "Sora", system-ui, sans-serif;
	text-wrap: balance;
}

.pt-main .pt-prose h2 {
	margin: 1.9em 0 .6em;
	font-size: clamp(23px, 2.9vw, 29px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.025em;
}

.pt-main .pt-prose h3 {
	margin: 1.7em 0 .5em;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.02em;
}

.pt-main .pt-prose h4 {
	margin: 1.6em 0 .45em;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -.01em;
}

/* Doubled class: block-level link colours saved in old posts are printed late, as
   ".wp-elements-… a", and would otherwise win. */
.pt-prose.pt-prose a:not(.wp-element-button):not(.elementor-button) {
	color: #c4185c;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.pt-prose.pt-prose a:not(.wp-element-button):not(.elementor-button):hover {
	color: #e01e6a;
}

.pt-prose strong {
	color: #22222c;
}

.pt-prose ul,
.pt-prose ol {
	padding-left: 1.35em;
}

.pt-prose li {
	margin: .35em 0;
}

.pt-prose li > ul,
.pt-prose li > ol {
	margin: .35em 0 0;
}

.pt-prose li::marker {
	color: #e01e6a;
	font-weight: 700;
}

.pt-prose blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid #e01e6a;
	color: #13131b;
	font-size: 1.06em;
}

.pt-prose blockquote p:last-child {
	margin-bottom: 0;
}

.pt-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.pt-prose figure img {
	display: block;
}

.pt-prose figcaption {
	margin-top: 10px;
	color: #6e6e80;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.pt-prose .wp-block-table {
	overflow-x: auto;
}

.pt-main .pt-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.pt-main .pt-prose table th,
.pt-main .pt-prose table td {
	padding: 11px 14px;
	border: 1px solid #eeeef4;
	background: none;
	text-align: left;
	vertical-align: top;
}

.pt-main .pt-prose table th,
.pt-main .pt-prose table thead td {
	background: #faf9fe;
	color: #13131b;
	font-weight: 700;
}

.pt-prose code {
	padding: .12em .4em;
	border-radius: 6px;
	background: #f5f4fa;
	color: #13131b;
	font: 500 .88em "IBM Plex Mono", ui-monospace, monospace;
}

.pt-prose pre {
	overflow: auto;
	padding: 18px 20px;
	border-radius: 12px;
	background: #13131b;
	color: #e9e9f2;
	font-size: 14px;
	line-height: 1.6;
}

.pt-prose pre code {
	padding: 0;
	background: none;
	color: inherit;
}

.pt-prose hr {
	margin: 2.4em 0;
	border: 0;
	border-top: 1px solid #eeeef4;
}

.pt-prose iframe,
.pt-prose video {
	max-width: 100%;
}

.pt-prose .wp-block-embed__wrapper iframe,
.pt-prose iframe[src*="youtube"],
.pt-prose iframe[src*="vimeo"] {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
}

/* A few old posts and pages were laid out in Elementor. Their sections sit flush with the
   text column, and text widgets coloured for the dark background follow the page colour. */
.pt-main .pt-prose .e-con.e-parent {
	--padding-inline-start: 0px;
	--padding-inline-end: 0px;
	--padding-left: 0px;
	--padding-right: 0px;
}

.pt-main .pt-prose .elementor .elementor-widget-text-editor {
	color: inherit;
}

.pt-main .pt-prose .elementor .elementor-widget-heading .elementor-heading-title {
	color: #13131b;
}

/* Palette colours picked for the old dark background. */
.pt-prose .has-white-color,
.pt-prose .has-cyan-bluish-gray-color,
.pt-prose .has-pale-cyan-blue-color,
.pt-prose .has-light-green-cyan-color {
	color: inherit !important;
}

/* --- buttons outside Elementor ------------------------------------------- */

.pt-main a.pt-button {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 15px 22px;
	border: 1.5px solid #e01e6a;
	border-radius: 13px;
	background: #e01e6a;
	box-shadow: 0 16px 30px -12px rgba(224, 30, 106, .65);
	color: #fff;
	font: 700 15px/1.26 "Sora", system-ui, sans-serif;
	transition: background-color .18s, border-color .18s, color .18s;
}

.pt-main a.pt-button:hover {
	border-color: #c4185c;
	background: #c4185c;
}

.pt-main a.pt-button--ghost {
	border-color: #e3e3ec;
	background: #fff;
	box-shadow: none;
	color: #2a2a38;
}

.pt-main a.pt-button--ghost:hover {
	border-color: #e01e6a;
	background: #fff;
	color: #c4185c;
}

.pt-notfound p {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
}
