/*
Theme Name: eIMPREZA Clay
Theme URI: https://eimpreza.pl/blog/
Description: Motyw potomny Fresh Blog Lite dla bloga eIMPREZA.pl - miekki, "clay" (claymorphism) wyglad, semantyczny HTML, porzadek pod SEO. Szablony blokowe + theme.json, bez zaleznosci od JavaScript poza rdzeniem WordPressa.
Author: eIMPREZA.pl
Template: fresh-blog-lite
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eimpreza-clay
*/

/* =====================================================================
   0. Tokens
   ===================================================================== */
:root {
	--ep-bg: #f4f0ff;
	--ep-ink: #1d1840;
	--ep-ink-2: #4a4574;
	--ep-line: #e6e0fb;
	--ep-violet: #6a4cff;
	--ep-violet-d: #4d32d9;
	--ep-pink: #ff4fa3;
	--ep-cyan: #22b8ff;
	--ep-mint: #3ed6a5;
	--ep-sun: #ffc857;
	--ep-r-xl: 36px;
	--ep-r-lg: 28px;
	--ep-r-md: 20px;
	--ep-r-sm: 14px;
	/* "clay": bright rim on top, soft inner shade at the bottom, big blurry drop shadow */
	--ep-clay: inset 0 2px 0 rgba(255, 255, 255, 0.95), inset 0 -10px 18px rgba(106, 76, 255, 0.07), 0 22px 40px -18px rgba(62, 40, 170, 0.35), 0 6px 14px -6px rgba(62, 40, 170, 0.16);
	--ep-clay-hover: inset 0 2px 0 rgba(255, 255, 255, 0.95), inset 0 -10px 18px rgba(106, 76, 255, 0.09), 0 34px 54px -20px rgba(62, 40, 170, 0.42), 0 10px 20px -8px rgba(62, 40, 170, 0.2);
	--ep-pill: inset 0 2px 1px rgba(255, 255, 255, 0.55), inset 0 -3px 6px rgba(20, 0, 120, 0.28), 0 12px 20px -8px rgba(106, 76, 255, 0.6);
	--ep-font-head: var(--wp--preset--font-family--heading, "Plus Jakarta Sans", "Inter", sans-serif);
}

/* =====================================================================
   1. Base
   ===================================================================== */
html {
	scroll-behavior: smooth;
}

body {
	background: var(--ep-bg);
	color: var(--ep-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* soft colour clouds behind everything (no images, no JS) */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(620px 420px at 6% -4%, rgba(255, 79, 163, 0.2), transparent 70%),
		radial-gradient(720px 520px at 100% 8%, rgba(34, 184, 255, 0.18), transparent 70%),
		radial-gradient(820px 620px at 45% 108%, rgba(106, 76, 255, 0.16), transparent 70%);
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.ep-main {
	padding-block: 28px 24px;
}

a {
	text-underline-offset: 3px;
}

:where(a, button, input, summary, [tabindex]):focus-visible {
	outline: 3px solid #ffb000;
	outline-offset: 3px;
	border-radius: 8px;
}

::selection {
	background: #cfc4ff;
	color: var(--ep-ink);
}

.screen-reader-text:focus {
	background: #fff;
	color: var(--ep-ink);
	box-shadow: var(--ep-clay);
	border-radius: 12px;
}

/* =====================================================================
   2. Header
   ===================================================================== */
.ep-header-wrap {
	padding-block: 18px 0;
}

.ep-header {
	align-items: center;
	background: #fff;
	border-radius: 999px;
	box-shadow: var(--ep-clay);
	gap: 16px;
	padding: 10px 12px 10px 24px;
}

.ep-brand {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}

.ep-brand img {
	display: block;
	height: 52px;
	width: auto;
}

.ep-header .wp-block-navigation {
	--navigation-layout-gap: 4px;
	font-family: var(--ep-font-head);
}

.ep-header .wp-block-navigation__container {
	gap: 4px;
	align-items: center;
}

.ep-header .wp-block-navigation-item__content {
	border-radius: 999px;
	color: var(--ep-ink);
	font-size: 0.95rem;
	font-weight: 700;
	padding: 10px 16px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.ep-header .wp-block-navigation-item__content:hover {
	background: #efeaff;
	color: var(--ep-violet-d);
}

.ep-header .ep-nav-cta > .wp-block-navigation-item__content {
	background: linear-gradient(180deg, #7f63ff, var(--ep-violet));
	box-shadow: var(--ep-pill);
	color: #fff;
	margin-left: 6px;
	padding: 11px 20px;
}

.ep-header .ep-nav-cta > .wp-block-navigation-item__content:hover {
	background: linear-gradient(180deg, #8b72ff, #7458ff);
	color: #fff;
	transform: translateY(-1px);
}

.ep-header .wp-block-navigation__responsive-container-open {
	background: #efeaff;
	border-radius: 50%;
	color: var(--ep-violet-d);
	height: 46px;
	width: 46px;
	align-items: center;
	justify-content: center;
}

/* mobile overlay menu (core toggles .is-menu-open) */
.wp-block-navigation__responsive-container.is-menu-open {
	background: #fff;
	padding: 20px 20px 28px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch;
	padding-top: 56px;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: stretch;
	gap: 10px;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	background: #f4f0ff;
	border-radius: 20px;
	box-sizing: border-box;
	display: block;
	font-size: 1.15rem;
	padding: 16px 22px !important;
	text-align: left;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .ep-nav-cta > .wp-block-navigation-item__content {
	background: linear-gradient(180deg, #7f63ff, var(--ep-violet));
	box-shadow: var(--ep-pill);
	color: #fff;
	margin: 10px 0 0;
	text-align: center;
}

.wp-block-navigation__responsive-container-close {
	background: #efeaff;
	border-radius: 50%;
	color: var(--ep-violet-d);
	height: 46px;
	width: 46px;
}

@media (min-width: 601px) and (max-width: 860px) {
	.ep-header {
		padding-left: 18px;
	}
	.ep-header .wp-block-navigation-item__content {
		padding: 9px 11px;
	}
	.ep-header .wp-block-navigation-item:nth-child(3) {
		display: none;
	}
}

@media (max-width: 600px) {
	.ep-header {
		padding: 8px 10px 8px 18px;
	}
	.ep-brand img {
		height: 38px;
	}
}

/* =====================================================================
   3. Buttons, chips, small bits
   ===================================================================== */
.ep-btn {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-family: var(--ep-font-head);
	font-size: 0.98rem;
	font-weight: 800;
	gap: 0.5em;
	line-height: 1.1;
	padding: 0.95em 1.55em;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ep-btn:hover {
	transform: translateY(-2px);
}

.ep-btn:active {
	transform: translateY(1px);
}

.ep-btn--light {
	background: #fff;
	box-shadow: inset 0 2px 0 #fff, inset 0 -5px 10px rgba(106, 76, 255, 0.16), 0 14px 22px -8px rgba(20, 0, 120, 0.55);
	color: var(--ep-violet-d);
}

.ep-btn--ghost {
	background: rgba(255, 255, 255, 0.16);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
	color: #fff;
}

.ep-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.26);
	color: #fff;
}

.ep-btn--primary {
	background: linear-gradient(180deg, #7f63ff, var(--ep-violet));
	box-shadow: var(--ep-pill);
	color: #fff;
}

.ep-btn--primary:hover {
	color: #fff;
}

.ep-btn--soft {
	background: #fff;
	box-shadow: var(--ep-clay);
	color: var(--ep-violet-d);
}

.wp-block-button__link,
.wp-element-button {
	box-shadow: var(--ep-pill);
	font-family: var(--ep-font-head);
	text-decoration: none;
}

.ep-eyebrow {
	background: rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
	display: inline-block;
	font-family: var(--ep-font-head);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0;
	padding: 7px 16px;
	text-transform: uppercase;
}

.ep-eyebrow--dark {
	background: #fff;
	box-shadow: var(--ep-clay);
	color: var(--ep-violet-d);
}

.ep-eyebrow--dark a {
	color: inherit;
	text-decoration: none;
}

/* category / tag pills */
.wp-block-post-terms a,
.wp-block-categories a {
	background: #ece7ff;
	border-radius: 999px;
	color: var(--ep-violet-d);
	display: inline-block;
	font-family: var(--ep-font-head);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
	padding: 7px 13px;
	position: relative;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
	z-index: 2;
}

.wp-block-post-terms a:hover,
.wp-block-categories a:hover {
	background: var(--ep-violet);
	color: #fff;
}

.wp-block-post-terms__separator {
	display: none;
}

.wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wp-block-post-time-to-read,
.wp-block-post-date,
.wp-block-post-author-name {
	color: var(--ep-ink-2);
	font-size: 0.875rem;
	margin: 0;
}

.wp-block-post-time-to-read::before {
	background: currentColor;
	content: "";
	display: inline-block;
	height: 1.05em;
	margin-right: 0.4em;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
	vertical-align: -0.16em;
	width: 1.05em;
}

/* =====================================================================
   4. Home hero
   ===================================================================== */
.ep-hero {
	background: linear-gradient(120deg, #4f34e6 0%, #7a3df0 48%, #c13fd0 100%);
	border-radius: var(--ep-r-xl);
	box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3), inset 0 -16px 30px rgba(20, 0, 120, 0.3), 0 34px 60px -26px rgba(79, 52, 230, 0.65);
	color: #fff;
	margin-block: 0;
	overflow: hidden;
	padding: clamp(32px, 6vw, 76px) clamp(24px, 5.5vw, 72px);
	position: relative;
}

.ep-hero__inner {
	max-width: 620px;
	position: relative;
	z-index: 2;
}

.ep-hero h1 {
	color: #fff;
	font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.7rem);
	line-height: 1.06;
	margin: 0.55em 0 0.4em;
	text-wrap: balance;
}

.ep-hero__lead {
	color: rgba(255, 255, 255, 0.94);
	font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.25rem);
	line-height: 1.55;
	margin: 0 0 1.6em;
	max-width: 52ch;
}

.ep-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ep-hero__art {
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

/* clay spheres */
.ep-blob {
	animation: ep-float 9s ease-in-out infinite;
	background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95) 0 5%, var(--c1) 24%, var(--c2) 80%);
	border-radius: 50%;
	box-shadow: inset -14px -18px 30px rgba(0, 0, 0, 0.2), inset 10px 12px 22px rgba(255, 255, 255, 0.35), 0 30px 40px -18px rgba(20, 0, 120, 0.6);
	display: block;
	position: absolute;
}

.ep-blob--pink {
	--c1: #ffd0ea;
	--c2: #ff4fa3;
	height: clamp(120px, 20vw, 230px);
	right: 5%;
	top: -6%;
	width: clamp(120px, 20vw, 230px);
}

.ep-blob--cyan {
	--c1: #c8efff;
	--c2: #22b8ff;
	animation-delay: -3s;
	bottom: -8%;
	height: clamp(80px, 12vw, 150px);
	right: 30%;
	width: clamp(80px, 12vw, 150px);
}

.ep-blob--sun {
	--c1: #fff3c8;
	--c2: #ffc857;
	animation-delay: -6s;
	bottom: 16%;
	height: clamp(48px, 7vw, 92px);
	right: 3%;
	width: clamp(48px, 7vw, 92px);
}

/* clay ticket */
.ep-ticket {
	align-items: center;
	animation: ep-float 10s ease-in-out -2s infinite;
	background:
		radial-gradient(circle at 0 50%, transparent 13px, #fff 13.5px) left / 51% 100% no-repeat,
		radial-gradient(circle at 100% 50%, transparent 13px, #fff 13.5px) right / 51% 100% no-repeat;
	display: flex;
	filter: drop-shadow(0 26px 22px rgba(20, 0, 120, 0.45));
	gap: 14px;
	height: 92px;
	padding: 0 26px;
	position: absolute;
	right: 17%;
	top: 34%;
	transform: rotate(-9deg);
	width: 250px;
}

.ep-ticket b {
	color: var(--ep-violet-d);
	font-family: var(--ep-font-head);
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.ep-ticket i {
	border-left: 3px dotted #cfc4ff;
	height: 60%;
}

.ep-ticket em {
	color: var(--ep-ink-2);
	font-size: 0.78rem;
	font-style: normal;
	font-weight: 700;
}

@keyframes ep-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-14px);
	}
}

.ep-ticket {
	animation-name: ep-float-tilt;
}

@keyframes ep-float-tilt {
	0%,
	100% {
		transform: rotate(-9deg) translateY(0);
	}
	50% {
		transform: rotate(-6deg) translateY(-12px);
	}
}

@media (max-width: 900px) {
	.ep-ticket {
		display: none;
	}
	.ep-blob--cyan {
		right: 12%;
	}
}

@media (max-width: 600px) {
	.ep-hero {
		border-radius: 28px;
	}
	.ep-blob--pink {
		opacity: 0.55;
		right: -12%;
	}
	.ep-blob--cyan {
		opacity: 0.6;
		right: 34%;
	}
	.ep-blob--sun {
		display: none;
	}
}

/* =====================================================================
   5. Topics + section titles
   ===================================================================== */
.ep-topics {
	align-items: center;
	gap: 10px 14px;
	margin-block: 34px 0;
}

.ep-topics__label {
	color: var(--ep-ink-2);
	font-family: var(--ep-font-head);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	margin: 0;
	text-transform: uppercase;
}

.ep-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ep-chips li {
	margin: 0;
}

.ep-chips a {
	background: #fff;
	box-shadow: var(--ep-clay);
	font-size: 0.85rem;
	padding: 9px 16px;
}

.ep-section-title {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	margin: 44px 0 22px;
}

/* =====================================================================
   6. Post grid + cards
   ===================================================================== */
.ep-grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.ep-grid > li {
	display: flex;
	margin: 0 !important;
}

@media (max-width: 1000px) {
	.ep-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ep-grid {
		gap: 22px;
		grid-template-columns: minmax(0, 1fr);
	}
}

.ep-card {
	background: #fff;
	border-radius: var(--ep-r-lg);
	box-shadow: var(--ep-clay);
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 10px;
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	width: 100%;
}

.ep-card:hover {
	box-shadow: var(--ep-clay-hover);
	transform: translateY(-5px);
}

.ep-card__media {
	margin: 0 !important;
}

.ep-card__media a {
	display: block;
}

.ep-card__media img {
	aspect-ratio: 16 / 10;
	border-radius: var(--ep-r-md);
	box-shadow: inset 0 0 0 1px rgba(29, 24, 64, 0.06);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.ep-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 16px 12px 10px;
}

.ep-card__body > * {
	margin: 0 !important;
}

.ep-card__title {
	font-size: 1.2rem;
	line-height: 1.28;
}

.ep-card__title a {
	color: var(--ep-ink);
	text-decoration: none;
}

.ep-card__title a::after {
	border-radius: var(--ep-r-lg);
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1;
}

.ep-card:hover .ep-card__title a {
	color: var(--ep-violet-d);
}

.ep-card__excerpt p {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	color: var(--ep-ink-2);
	display: -webkit-box;
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0;
	overflow: hidden;
}

.ep-card__meta {
	align-items: center;
	gap: 4px 14px;
	margin-top: auto !important;
	padding-top: 6px;
}

/* the newest post on page 1 of the blog home is a wide "featured" card */
body.home:not(.paged) .ep-query .ep-grid > li:first-child {
	grid-column: 1 / -1;
}

body.home:not(.paged) .ep-query .ep-grid > li:first-child .ep-card {
	flex-direction: row;
	gap: 8px;
	padding: 14px;
}

body.home:not(.paged) .ep-query .ep-grid > li:first-child .ep-card__media {
	flex: 1.15 1 0;
	min-width: 0;
}

body.home:not(.paged) .ep-query .ep-grid > li:first-child .ep-card__media img {
	aspect-ratio: 4 / 3;
	border-radius: 24px;
	height: 100%;
}

body.home:not(.paged) .ep-query .ep-grid > li:first-child .ep-card__body {
	flex: 1 1 0;
	gap: 14px;
	justify-content: center;
	min-width: 0;
	padding: 22px 30px 22px 26px;
}

body.home:not(.paged) .ep-query .ep-grid > li:first-child .ep-card__body::before {
	color: #c2185b;
	content: "Najnowszy wpis";
	font-family: var(--ep-font-head);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.home:not(.paged) .ep-query .ep-grid > li:first-child .ep-card__title {
	font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
	line-height: 1.15;
}

body.home:not(.paged) .ep-query .ep-grid > li:first-child .ep-card__excerpt p {
	-webkit-line-clamp: 5;
	font-size: 1.05rem;
}

@media (max-width: 820px) {
	body.home:not(.paged) .ep-query .ep-grid > li:first-child .ep-card {
		flex-direction: column;
	}
	body.home:not(.paged) .ep-query .ep-grid > li:first-child .ep-card__media img {
		aspect-ratio: 16 / 10;
		height: auto;
	}
	body.home:not(.paged) .ep-query .ep-grid > li:first-child .ep-card__body {
		padding: 18px 12px 10px;
	}
}

/* pagination */
.ep-pagination {
	gap: 8px;
	margin-top: 44px;
}

.ep-pagination a,
.ep-pagination .page-numbers {
	background: #fff;
	border-radius: 999px;
	box-shadow: var(--ep-clay);
	color: var(--ep-ink);
	font-family: var(--ep-font-head);
	font-weight: 800;
	padding: 10px 18px;
	text-decoration: none;
}

.ep-pagination .page-numbers.current {
	background: linear-gradient(180deg, #7f63ff, var(--ep-violet));
	box-shadow: var(--ep-pill);
	color: #fff;
}

.ep-pagination a:hover {
	color: var(--ep-violet-d);
}

.ep-empty {
	background: #fff;
	border-radius: var(--ep-r-lg);
	box-shadow: var(--ep-clay);
	padding: 28px;
	text-align: center;
}

/* =====================================================================
   7. Archive / search / 404 heads
   ===================================================================== */
.ep-archive-head {
	margin-block: 6px 30px;
}

.ep-archive-title {
	font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem);
	margin: 0.5em 0 0.25em;
}

.ep-archive-desc {
	color: var(--ep-ink-2);
	font-size: 1.1rem;
	margin: 0 0 1.2em;
	max-width: 62ch;
}

.ep-archive-head .ep-section-title {
	margin-top: 0;
}

.ep-404 {
	background: #fff;
	border-radius: var(--ep-r-xl);
	box-shadow: var(--ep-clay);
	padding: clamp(28px, 5vw, 60px);
}

.ep-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 1.4em 0 0;
}

.wp-block-search__inside-wrapper {
	background: #fff;
	border: 0;
	border-radius: 999px;
	box-shadow: var(--ep-clay);
	max-width: 520px;
	padding: 6px;
}

.wp-block-search__input {
	background: transparent;
	border: 0 !important;
	border-radius: 999px;
	font-size: 1rem;
	padding: 10px 18px;
}

.wp-block-search__button {
	background: linear-gradient(180deg, #7f63ff, var(--ep-violet));
	border: 0;
	border-radius: 999px;
	box-shadow: var(--ep-pill);
	color: #fff;
	font-family: var(--ep-font-head);
	font-weight: 800;
	margin: 0;
	padding: 10px 22px;
}

/* =====================================================================
   8. Single post
   ===================================================================== */
.ep-article__head {
	margin: 12px auto 30px;
	max-width: 900px;
	text-align: center;
}

.ep-article__head > * {
	margin-block: 0;
}

.ep-crumbs {
	color: var(--ep-ink-2);
	font-size: 0.85rem;
	margin-bottom: 18px;
}

.ep-crumbs a {
	color: var(--ep-violet-d);
	text-decoration: none;
}

.ep-crumbs a:hover {
	text-decoration: underline;
}

.ep-crumbs .breadcrumb_last {
	color: var(--ep-ink-2);
}

.ep-article__cats {
	justify-content: center;
	margin-bottom: 16px;
}

.ep-article__title {
	font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem);
	letter-spacing: -0.025em;
	line-height: 1.08;
	margin-bottom: 0.5em !important;
	text-wrap: balance;
}

.ep-meta {
	align-items: center;
	gap: 6px 20px;
	justify-content: center;
}

.ep-meta__author {
	color: var(--ep-ink) !important;
	font-weight: 700;
}

.ep-meta__author::before {
	background: linear-gradient(135deg, var(--ep-cyan), var(--ep-violet) 55%, var(--ep-pink));
	border-radius: 50%;
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 4px 8px -2px rgba(106, 76, 255, 0.5);
	content: "";
	display: inline-block;
	height: 1.5em;
	margin-right: 0.55em;
	vertical-align: -0.4em;
	width: 1.5em;
}

.ep-meta__author a {
	color: inherit;
	text-decoration: none;
}

.ep-cover {
	background: #fff;
	border-radius: 44px;
	box-shadow: var(--ep-clay);
	padding: 12px;
}

.ep-cover .wp-block-post-featured-image {
	margin: 0;
}

.ep-cover img {
	aspect-ratio: 16 / 9;
	border-radius: 34px;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* reading typography */
.ep-content {
	color: #29244f;
	font-size: 1.125rem;
	line-height: 1.8;
	margin-top: 46px;
}

.ep-content > * {
	margin-block: 0 1.3em;
}

.ep-content a {
	color: var(--ep-violet-d);
	text-decoration-thickness: 2px;
	text-decoration-color: rgba(106, 76, 255, 0.35);
	text-underline-offset: 3px;
}

.ep-content a:hover {
	text-decoration-color: currentColor;
}

.ep-content h2,
.ep-content h3,
.ep-content h4 {
	scroll-margin-top: 28px;
}

.ep-content h2 {
	font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2.1rem);
	line-height: 1.2;
	margin-block: 2.1em 0.65em;
}

.ep-content h2::before {
	background: radial-gradient(circle at 32% 28%, #fff 0 8%, #ff9fd0 30%, var(--ep-violet) 100%);
	border-radius: 50%;
	box-shadow: 0 4px 8px -2px rgba(106, 76, 255, 0.55);
	content: "";
	display: inline-block;
	height: 0.5em;
	margin-right: 0.5em;
	vertical-align: 0.06em;
	width: 0.5em;
}

.ep-content h3 {
	font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
	margin-block: 1.8em 0.5em;
}

.ep-content ul,
.ep-content ol {
	padding-left: 1.4em;
}

.ep-content li {
	margin-block: 0.45em;
	padding-left: 0.25em;
}

.ep-content li::marker {
	color: var(--ep-violet);
	font-weight: 800;
}

.ep-content strong {
	color: var(--ep-ink);
}

.ep-content img {
	border-radius: var(--ep-r-md);
	height: auto;
	max-width: 100%;
}

.ep-content figure {
	margin-block: 2em;
}

.ep-content figcaption {
	color: var(--ep-ink-2);
	font-size: 0.875rem;
	margin-top: 0.7em;
	text-align: center;
}

.ep-content blockquote {
	background: #fff;
	border-left: 6px solid var(--ep-pink);
	border-radius: var(--ep-r-lg);
	box-shadow: var(--ep-clay);
	font-size: 1.1em;
	margin-block: 2em;
	padding: 22px 28px;
}

.ep-content blockquote p:last-child {
	margin-bottom: 0;
}

.ep-content code {
	background: #ece7ff;
	border-radius: 8px;
	font-size: 0.9em;
	padding: 0.15em 0.45em;
}

.ep-content pre {
	background: var(--ep-ink);
	border-radius: var(--ep-r-md);
	color: #efeaff;
	overflow-x: auto;
	padding: 20px 24px;
}

.ep-content pre code {
	background: none;
	color: inherit;
	padding: 0;
}

.ep-content hr {
	background: var(--ep-line);
	border: 0;
	height: 3px;
	margin-block: 2.6em;
}

/* generated blocks: key takeaways + table of contents */
.ep-content .key-takeaways,
.ep-content .table-of-contents {
	border-radius: var(--ep-r-lg);
	margin-block: 2em;
	box-sizing: border-box;
	margin-inline: auto;
	max-width: var(--wp--style--global--content-size, 720px) !important;
	padding: 24px 28px;
}

.ep-content .key-takeaways {
	background: linear-gradient(135deg, #eee8ff, #ffe8f4);
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -10px 18px rgba(106, 76, 255, 0.06), 0 22px 38px -22px rgba(62, 40, 170, 0.4);
}

.ep-content .table-of-contents {
	background: #fff;
	box-shadow: var(--ep-clay);
}

.ep-content .key-takeaways h2,
.ep-content .table-of-contents h2 {
	font-size: 1.15rem;
	letter-spacing: 0;
	margin: 0 0 0.8em;
}

.ep-content .key-takeaways h2::before,
.ep-content .table-of-contents h2::before {
	display: none;
}

.ep-content .key-takeaways ul,
.ep-content .table-of-contents ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ep-content .key-takeaways li {
	margin: 0.75em 0;
	padding-left: 2.1em;
	position: relative;
}

.ep-content .key-takeaways li::before {
	background: linear-gradient(180deg, #57e3b7, var(--ep-mint));
	border-radius: 50%;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 8px -2px rgba(62, 214, 165, 0.7);
	content: "";
	height: 1.35em;
	left: 0;
	position: absolute;
	top: 0.28em;
	width: 1.35em;
}

.ep-content .key-takeaways li::after {
	border: solid #fff;
	border-width: 0 0.16em 0.16em 0;
	content: "";
	height: 0.55em;
	left: 0.5em;
	position: absolute;
	top: 0.5em;
	transform: rotate(45deg);
	width: 0.28em;
}

.ep-content .table-of-contents ul {
	counter-reset: toc;
}

.ep-content .table-of-contents li {
	counter-increment: toc;
	margin: 0.4em 0;
	padding: 0;
}

.ep-content .table-of-contents a {
	align-items: baseline;
	display: flex;
	font-weight: 600;
	gap: 0.7em;
	text-decoration: none;
}

.ep-content .table-of-contents a::before {
	background: #ece7ff;
	border-radius: 999px;
	color: var(--ep-violet-d);
	content: counter(toc);
	flex: 0 0 auto;
	font-family: var(--ep-font-head);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
	min-width: 1.9em;
	padding: 0.4em 0.5em;
	text-align: center;
}

.ep-content .table-of-contents a:hover {
	text-decoration: underline;
}

.ep-content .autoseo-infographic-container {
	margin-block: 2.2em;
}

.ep-content .autoseo-infographic-container img {
	border-radius: var(--ep-r-lg);
	box-shadow: var(--ep-clay);
	display: block;
	margin-inline: auto;
}

/* tables (wrapper added in functions.php) */
.ep-table-wrap {
	background: #fff;
	border-radius: var(--ep-r-md);
	box-shadow: var(--ep-clay);
	margin-block: 2em;
	overflow-x: auto;
}

.ep-content table {
	border-collapse: collapse;
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0;
	min-width: 520px;
	width: 100%;
}

.ep-content th {
	background: #ece7ff;
	color: var(--ep-ink);
	font-weight: 800;
	padding: 13px 18px;
	text-align: left;
}

.ep-content td {
	border-top: 1px solid var(--ep-line);
	padding: 13px 18px;
	vertical-align: top;
}

/* after the article */
.ep-after {
	margin-top: 44px;
}

.ep-after > * {
	margin-block: 0 26px;
}

.ep-tags {
	align-items: center;
}

.ep-tags .wp-block-post-terms__prefix {
	color: var(--ep-ink-2);
	font-family: var(--ep-font-head);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ep-tags a {
	background: #fff;
	box-shadow: var(--ep-clay);
	font-size: 0.82rem;
}

.ep-postnav {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr 1fr;
}

.ep-postnav > * {
	margin: 0 !important;
}

.ep-postnav .wp-block-post-navigation-link {
	background: #fff;
	border-radius: var(--ep-r-lg);
	box-shadow: var(--ep-clay);
	font-family: var(--ep-font-head);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	padding: 18px 22px;
	position: relative;
}

.ep-postnav .wp-block-post-navigation-link:empty {
	display: none;
}

.ep-postnav a {
	color: var(--ep-ink);
	display: block;
	text-decoration: none;
}

.ep-postnav a::after {
	content: "";
	inset: 0;
	position: absolute;
}

.ep-postnav .post-navigation-link__label {
	color: var(--ep-violet-d);
	display: block;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

@media (max-width: 640px) {
	.ep-postnav {
		grid-template-columns: 1fr;
	}
}

.ep-related {
	margin-top: 30px;
}

.ep-comments {
	margin-top: 20px;
}

.ep-comments .comment-respond,
.ep-comment {
	background: #fff;
	border-radius: var(--ep-r-lg);
	box-shadow: var(--ep-clay);
	padding: 22px;
}

.ep-comment {
	margin-bottom: 16px;
}

.ep-comments .comment-reply-title {
	font-size: 1.15rem;
	margin-bottom: 12px;
}

/* =====================================================================
   9. Footer
   ===================================================================== */
.ep-footer-wrap {
	padding-block: 48px 26px;
}

.ep-cta-band {
	background: linear-gradient(120deg, #4f34e6 0%, #7a3df0 55%, #c13fd0 100%);
	border-radius: var(--ep-r-xl);
	box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3), inset 0 -16px 30px rgba(20, 0, 120, 0.3), 0 34px 60px -26px rgba(79, 52, 230, 0.65);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	gap: 22px 40px;
	align-items: center;
	justify-content: space-between;
	margin: 0 auto 26px;
	max-width: var(--wp--style--global--wide-size, 1200px);
	overflow: hidden;
	padding: clamp(28px, 4.5vw, 52px) clamp(24px, 5vw, 60px);
	position: relative;
}

.ep-cta-band__text {
	flex: 1 1 420px;
	position: relative;
	z-index: 2;
}

.ep-cta-band__title {
	color: #fff;
	font-family: var(--ep-font-head);
	font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

.ep-cta-band__lead {
	color: rgba(255, 255, 255, 0.92);
	margin: 0;
	max-width: 58ch;
}

.ep-cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	position: relative;
	z-index: 2;
}

.ep-blob--a {
	--c1: #ffd0ea;
	--c2: #ff4fa3;
	height: 170px;
	right: -40px;
	top: -70px;
	width: 170px;
}

.ep-blob--b {
	--c1: #c8efff;
	--c2: #22b8ff;
	animation-delay: -4s;
	bottom: -50px;
	height: 110px;
	right: 32%;
	width: 110px;
}

.ep-footer {
	background: #1d1840;
	border-radius: var(--ep-r-xl);
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -14px 26px rgba(0, 0, 0, 0.25), 0 30px 50px -26px rgba(29, 24, 64, 0.7);
	color: #d9d4ff;
	margin: 0 auto;
	max-width: var(--wp--style--global--wide-size, 1200px);
	padding: clamp(28px, 4.5vw, 52px) clamp(24px, 5vw, 60px) 28px;
}

.ep-footer a {
	color: #fff;
	text-decoration: none;
}

.ep-footer a:hover {
	color: #ffb8de;
	text-decoration: underline;
}

.ep-footer__grid {
	display: grid;
	gap: 34px 40px;
	grid-template-columns: 1.6fr 1fr 1fr 0.8fr;
}

@media (max-width: 900px) {
	.ep-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
	.ep-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.ep-footer__grid {
		grid-template-columns: 1fr;
	}
}

.ep-footer__brand p {
	font-size: 0.95rem;
	margin: 0 0 0.8em;
	max-width: 44ch;
}

.ep-footer__logo {
	display: inline-block;
	line-height: 0;
	margin-bottom: 18px;
}

.ep-footer__logo img {
	display: block;
	height: 46px;
	width: auto;
}

.ep-footer__title {
	color: #fff;
	font-family: var(--ep-font-head);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.ep-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ep-footer__col li {
	margin: 0 0 9px;
}

.ep-footer__col a {
	font-size: 0.95rem;
}

.ep-legal {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: #b9b3e6;
	font-size: 0.8rem;
	line-height: 1.6;
	margin: 36px 0 0;
	padding-top: 20px;
}

/* =====================================================================
   10. Motion + print
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
	.ep-card:hover {
		transform: none;
	}
}

@media print {
	body::before,
	.ep-header-wrap,
	.ep-hero__art,
	.ep-footer-wrap,
	.ep-related,
	.ep-comments {
		display: none !important;
	}
	.ep-card,
	.ep-cover {
		box-shadow: none;
	}
}
