/**
 * Native blog components.
 *
 * All selectors are intentionally scoped to the posts index and native posts.
 */

:where(.blog-page, .blog-single-page) {
	--blog-background: #f6f4fe;
	--blog-purple: #5f1be9;
	--blog-hero-purple: #5b24de;
	--blog-purple-light: #7a4fdf;
	--blog-pink: #fc21a5;
	--blog-text: #1e1e1e;
	--blog-muted: #5c5668;
	--blog-surface: #ffffff;
	--blog-border: #7a4fdf;
	--blog-reading-width: 720px;
	background: var(--blog-background);
	color: var(--blog-text);
	overflow-x: clip;
}

/* Posts index hero. */
.blog-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	min-height: 194px;
	padding: clamp(42px, 5vw, 70px) 0;
	place-items: center;
	overflow: hidden;
	background: var(--blog-background);
}

.blog-hero__inner {
	position: relative;
	z-index: 1;
}

.blog-hero h1 {
	width: min(100%, 760px);
	margin: 0 auto;
	color: var(--blog-purple);
	font-family: "Quicksand", sans-serif;
	font-size: clamp(30px, 3.15vw, 46px);
	font-weight: 700;
	line-height: 1.16;
	text-align: center;
	text-wrap: balance;
}

.blog-hero__shapes,
.blog-single-hero__shapes {
	position: absolute;
	z-index: 0;
	left: 50%;
	width: min(1262px, 100vw);
	max-width: none;
	height: auto;
	transform: translateX(-50%);
	pointer-events: none;
	user-select: none;
}

.blog-hero__shapes {
	top: 50%;
	transform: translate(-50%, -50%);
}

/* Instagram callout. */
.blog-instagram-cta {
	background: var(--blog-purple);
	color: var(--blog-surface);
}

.blog-instagram-cta__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(28px, 5vw, 66px);
	min-height: 126px;
	padding-block: 24px;
}

.blog-instagram-cta p {
	width: min(100%, 470px);
	margin: 0;
	font-family: "Quicksand", sans-serif;
	font-size: clamp(18px, 1.55vw, 24px);
	font-weight: 700;
	line-height: 1.15;
	text-wrap: balance;
}

.blog-instagram-cta__button {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 52px;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--blog-pink);
	color: #281035;
	font-family: "Quicksand", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 8px 20px rgb(38 10 98 / 18%);
	transition: filter 180ms ease, box-shadow 180ms ease;
}

.blog-instagram-cta__button:hover {
	filter: brightness(.96);
	box-shadow: 0 10px 24px rgb(38 10 98 / 24%);
}

.blog-instagram-cta__icon {
	position: relative;
	display: block;
	width: 27px;
	height: 27px;
	border: 2px solid currentcolor;
	border-radius: 8px;
}

.blog-instagram-cta__icon::before {
	position: absolute;
	inset: 5px;
	border: 2px solid currentcolor;
	border-radius: 50%;
	content: "";
}

.blog-instagram-cta__icon::after {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentcolor;
	content: "";
}

/* Posts listing and grid. */
.blog-listing {
	padding: clamp(66px, 7vw, 96px) 0 clamp(88px, 9vw, 132px);
	background: var(--blog-background);
}

.blog-listing__title {
	margin: 0 0 clamp(38px, 5vw, 64px);
	color: var(--blog-purple);
	font-family: "Quicksand", sans-serif;
	font-size: clamp(31px, 3vw, 44px);
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	text-wrap: balance;
}

.blog-post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: clamp(24px, 3vw, 34px);
}

.blog-post-card {
	display: grid;
	grid-template-columns: minmax(190px, 43%) minmax(0, 1fr);
	min-width: 0;
	min-height: 270px;
	overflow: hidden;
	border: 1.5px solid var(--blog-border);
	border-radius: 18px;
	background: transparent;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.blog-post-card:hover {
	border-color: var(--blog-purple);
	box-shadow: 0 12px 30px rgb(77 40 163 / 10%);
}

.blog-post-card__media {
	position: relative;
	display: block;
	min-height: 100%;
	overflow: hidden;
	background: #e9e3fb;
}

.blog-post-card__image {
	width: 100%;
	height: 100%;
	min-height: 270px;
	object-fit: cover;
	transition: filter 180ms ease;
}

.blog-post-card__media:hover .blog-post-card__image {
	filter: saturate(1.04);
}

.blog-post-card__fallback {
	position: absolute;
	inset: 0;
	isolation: isolate;
	display: grid;
	place-items: center;
	overflow: hidden;
	background:
		linear-gradient(145deg, rgb(255 255 255 / 54%), transparent 58%),
		linear-gradient(135deg, #d9ccfb, #eee9fc);
	color: var(--blog-purple);
	font-family: "Montserrat Alternates", sans-serif;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: .02em;
}

.blog-post-card__fallback::before,
.blog-post-card__fallback::after {
	position: absolute;
	z-index: -1;
	width: 126px;
	height: 126px;
	border: 3px solid var(--blog-pink);
	border-radius: 30px;
	content: "";
	transform: rotate(45deg);
}

.blog-post-card__fallback::before {
	top: -68px;
	left: -62px;
}

.blog-post-card__fallback::after {
	right: -72px;
	bottom: -76px;
	border-color: var(--blog-purple-light);
	background: rgb(122 79 223 / 10%);
}

.blog-post-card__content {
	display: flex;
	min-width: 0;
	padding: clamp(22px, 2.4vw, 30px);
	flex-direction: column;
	align-items: flex-start;
}

.blog-post-card__title {
	margin: 0 0 12px;
	color: var(--blog-purple);
	font-family: "Quicksand", sans-serif;
	font-size: clamp(20px, 1.55vw, 24px);
	font-weight: 700;
	line-height: 1.18;
	overflow-wrap: anywhere;
}

.blog-post-card__title a {
	color: inherit;
}

.blog-post-card__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

.blog-post-card__excerpt {
	margin: 0 0 22px;
	color: var(--blog-muted);
	font-family: "Montserrat Alternates", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.48;
	overflow-wrap: anywhere;
}

.blog-post-card__button,
.blog-back-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 46px;
	border: 1.5px solid currentcolor;
	border-radius: 999px;
	color: var(--blog-purple);
	font-family: "Quicksand", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.blog-post-card__button {
	margin-top: auto;
	padding: 10px 19px 10px 22px;
}

.blog-post-card__button:hover,
.blog-back-button:hover {
	background: var(--blog-purple);
	color: var(--blog-surface);
	box-shadow: 0 8px 18px rgb(95 27 233 / 16%);
}

.blog-post-card__arrow {
	font-size: 24px;
	font-weight: 500;
	line-height: .7;
}

.blog-empty-state {
	width: min(100%, 620px);
	margin: 0 auto;
	padding: 34px;
	border: 1.5px solid rgb(122 79 223 / 38%);
	border-radius: 18px;
	background: rgb(255 255 255 / 48%);
	text-align: center;
}

.blog-empty-state p {
	margin: 0;
	color: var(--blog-muted);
	font-family: "Quicksand", sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.6;
}

/* Native WordPress pagination. */
.blog-pagination {
	margin-top: clamp(42px, 5vw, 66px);
}

.blog-pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.blog-pagination .page-numbers {
	display: inline-grid;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 12px;
	border: 1.5px solid var(--blog-purple-light);
	border-radius: 999px;
	place-items: center;
	color: var(--blog-purple);
	font-family: "Quicksand", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.blog-pagination .page-numbers.current,
.blog-pagination a.page-numbers:hover {
	background: var(--blog-purple);
	color: var(--blog-surface);
}

.blog-pagination .page-numbers.dots {
	border-color: transparent;
}

/* Individual post. */
.blog-single-page {
	background: var(--blog-background);
}

.blog-single {
	background: var(--blog-background);
}

.blog-single-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	min-height: 310px;
	padding: clamp(52px, 6vw, 82px) 0 148px;
	place-items: start center;
	overflow: hidden;
	background: var(--blog-hero-purple);
}

.blog-single--without-thumbnail .blog-single-hero {
	min-height: 250px;
	padding-bottom: clamp(68px, 7vw, 94px);
	place-items: center;
}

.blog-single-hero__inner {
	position: relative;
	z-index: 2;
}

.blog-single-hero__title {
	width: min(100%, 820px);
	margin: 0 auto;
	color: var(--blog-surface);
	font-family: "Quicksand", sans-serif;
	font-size: clamp(32px, 3.4vw, 50px);
	font-weight: 700;
	line-height: 1.12;
	text-align: center;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.blog-single-hero__shapes {
	z-index: 1;
	bottom: -70px;
	opacity: .95;
}

.blog-single__featured {
	position: relative;
	z-index: 3;
	width: min(calc(100% - 40px), 680px);
	margin: -128px auto 0;
}

.blog-single__featured-image {
	width: 100%;
	height: auto;
	aspect-ratio: 579 / 299;
	border-radius: 18px;
	object-fit: cover;
	box-shadow: 0 16px 38px rgb(44 26 89 / 14%);
}

.blog-single__body {
	width: min(calc(100% - 40px), var(--blog-reading-width));
	margin: 0 auto;
	padding: clamp(54px, 6vw, 78px) 0 clamp(88px, 9vw, 128px);
}

.blog-single--without-thumbnail .blog-single__body {
	padding-top: clamp(58px, 7vw, 86px);
}

.blog-entry-content {
	color: var(--blog-text);
	font-family: "Quicksand", sans-serif;
	font-size: clamp(17px, 1.2vw, 18px);
	font-weight: 500;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.blog-entry-content > :first-child {
	margin-top: 0;
}

.blog-entry-content > :last-child {
	margin-bottom: 0;
}

.blog-entry-content p,
.blog-entry-content ul,
.blog-entry-content ol,
.blog-entry-content blockquote,
.blog-entry-content figure,
.blog-entry-content table,
.blog-entry-content pre,
.blog-entry-content .wp-block-embed,
.blog-entry-content .wp-block-columns,
.blog-entry-content .wp-block-group,
.blog-entry-content .wp-block-cover {
	margin-top: 0;
	margin-bottom: 1.55em;
}

.blog-entry-content h2,
.blog-entry-content h3 {
	color: var(--blog-purple);
	font-family: "Montserrat Alternates", sans-serif;
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
}

.blog-entry-content h2 {
	margin: 1.85em 0 .7em;
	font-size: clamp(25px, 2.5vw, 32px);
}

.blog-entry-content h3 {
	margin: 1.6em 0 .65em;
	font-size: clamp(21px, 2vw, 26px);
}

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

.blog-entry-content li + li {
	margin-top: .45em;
}

.blog-entry-content a {
	color: var(--blog-purple);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.blog-entry-content a:hover {
	color: #4310b0;
}

.blog-entry-content img,
.blog-entry-content video,
.blog-entry-content iframe,
.blog-entry-content object,
.blog-entry-content embed {
	max-width: 100%;
}

.blog-entry-content img {
	height: auto;
	border-radius: 12px;
}

.blog-entry-content figure {
	max-width: 100%;
}

.blog-entry-content figcaption,
.blog-entry-content .wp-element-caption {
	margin-top: 9px;
	color: var(--blog-muted);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.blog-entry-content blockquote {
	padding: 8px 0 8px 24px;
	border-left: 4px solid var(--blog-pink);
	color: #3f3552;
	font-size: 1.08em;
	font-style: italic;
}

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

.blog-entry-content .wp-block-quote cite,
.blog-entry-content .wp-block-pullquote cite {
	display: block;
	margin-top: 12px;
	font-size: .85em;
	font-style: normal;
	font-weight: 700;
}

.blog-entry-content .wp-block-pullquote {
	padding: 28px;
	border-top: 3px solid var(--blog-purple-light);
	border-bottom: 3px solid var(--blog-purple-light);
	text-align: center;
}

.blog-entry-content .wp-block-pullquote blockquote {
	margin-bottom: 0;
	padding-left: 0;
	border-left: 0;
}

.blog-entry-content .wp-block-button__link {
	display: inline-block;
	padding: 13px 22px;
	border-radius: 999px;
	background: var(--blog-purple);
	color: var(--blog-surface);
	text-decoration: none;
}

.blog-entry-content .wp-block-button__link:hover {
	background: #4310b0;
	color: var(--blog-surface);
}

.blog-entry-content .wp-block-separator {
	margin: 2.2em auto;
	border: 0;
	border-top: 2px solid rgb(122 79 223 / 28%);
}

.blog-entry-content .wp-block-table {
	max-width: 100%;
	overflow-x: auto;
}

.blog-entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92em;
}

.blog-entry-content th,
.blog-entry-content td {
	padding: 10px 12px;
	border: 1px solid rgb(92 86 104 / 26%);
	text-align: left;
}

.blog-entry-content pre {
	max-width: 100%;
	padding: 18px;
	overflow-x: auto;
	border-radius: 10px;
	background: #241b3b;
	color: #ffffff;
	font-size: 14px;
	line-height: 1.6;
}

.blog-entry-content code {
	padding: .12em .3em;
	border-radius: 4px;
	background: rgb(95 27 233 / 8%);
	font-size: .92em;
}

.blog-entry-content pre code {
	padding: 0;
	background: transparent;
	color: inherit;
}

.blog-entry-content .wp-block-embed__wrapper {
	position: relative;
	max-width: 100%;
	overflow: hidden;
}

.blog-entry-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.blog-entry-content .wp-embed-aspect-16-9 iframe {
	width: 100%;
	height: 100%;
}

.blog-entry-content :where(.alignwide, .alignfull) {
	width: 100%;
	max-width: 100%;
	margin-right: auto;
	margin-left: auto;
}

.blog-entry-content .alignleft {
	float: left;
	max-width: 48%;
	margin: 0 24px 18px 0;
}

.blog-entry-content .alignright {
	float: right;
	max-width: 48%;
	margin: 0 0 18px 24px;
}

.blog-entry-content .aligncenter {
	margin-right: auto;
	margin-left: auto;
}

.blog-page-links {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 36px;
	padding-top: 22px;
	border-top: 1px solid rgb(122 79 223 / 24%);
	flex-wrap: wrap;
	font-family: "Quicksand", sans-serif;
	font-weight: 700;
}

.blog-page-links a,
.blog-page-links > span:not(:first-child) {
	display: inline-grid;
	min-width: 38px;
	min-height: 38px;
	border: 1px solid var(--blog-purple-light);
	border-radius: 50%;
	place-items: center;
}

.blog-back-button {
	margin-top: clamp(48px, 6vw, 72px);
	padding: 11px 24px;
	gap: 14px;
}

.blog-back-button > span:first-child {
	font-size: 24px;
	font-weight: 500;
	line-height: .7;
}

:where(.blog-page, .blog-single-page) a:focus-visible {
	outline: 3px solid var(--blog-pink);
	outline-offset: 4px;
}

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

	.blog-post-card {
		width: min(100%, 720px);
	}
}

@media (max-width: 768px) {
	.blog-hero {
		min-height: 178px;
		padding-block: 44px;
	}

	.blog-hero__shapes {
		width: 920px;
		opacity: .72;
	}

	.blog-hero h1 {
		width: min(100%, 560px);
		font-size: clamp(28px, 7vw, 38px);
	}

	.blog-instagram-cta__inner {
		min-height: 0;
		padding-block: 28px;
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}

	.blog-instagram-cta p {
		width: min(100%, 520px);
	}

	.blog-listing {
		padding-top: 58px;
	}

	.blog-listing__title {
		margin-bottom: 36px;
	}

	.blog-post-card {
		display: flex;
		min-height: 0;
		flex-direction: column;
	}

	.blog-post-card__media {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	.blog-post-card__image {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	.blog-post-card__fallback {
		position: absolute;
	}

	.blog-post-card__content {
		min-height: 250px;
		padding: 24px;
	}

	.blog-single-hero {
		min-height: 270px;
		padding: 48px 0 120px;
	}

	.blog-single--without-thumbnail .blog-single-hero {
		min-height: 220px;
		padding-block: 52px;
	}

	.blog-single-hero__title {
		width: min(100%, 590px);
	}

	.blog-single-hero__shapes {
		bottom: -50px;
		width: 920px;
		opacity: .78;
	}

	.blog-single__featured {
		margin-top: -102px;
	}

	.blog-single__body {
		padding-top: 48px;
	}
}

@media (max-width: 480px) {
	.blog-hero {
		min-height: 166px;
	}

	.blog-hero__shapes {
		width: 660px;
		opacity: .42;
	}

	.blog-hero h1 {
		font-size: clamp(26px, 8.5vw, 34px);
		line-height: 1.18;
	}

	.blog-instagram-cta p {
		font-size: 18px;
		line-height: 1.3;
	}

	.blog-instagram-cta__button {
		width: min(100%, 180px);
		min-height: 50px;
	}

	.blog-listing {
		padding: 52px 0 82px;
	}

	.blog-listing__title {
		font-size: 30px;
	}

	.blog-post-card__content {
		min-height: 0;
	}

	.blog-post-card__title {
		font-size: 22px;
	}

	.blog-post-card__button {
		min-width: 146px;
		margin-top: 4px;
	}

	.blog-pagination .nav-links {
		gap: 6px;
	}

	.blog-pagination .page-numbers {
		min-width: 42px;
		min-height: 42px;
		padding: 7px 10px;
	}

	.blog-single-hero {
		min-height: 238px;
		padding: 42px 0 102px;
	}

	.blog-single--without-thumbnail .blog-single-hero {
		min-height: 195px;
		padding-block: 46px;
	}

	.blog-single-hero__title {
		font-size: clamp(28px, 8.8vw, 37px);
		line-height: 1.15;
	}

	.blog-single-hero__shapes {
		bottom: -28px;
		width: 660px;
		opacity: .62;
	}

	.blog-single__featured {
		width: calc(100% - 32px);
		margin-top: -84px;
	}

	.blog-single__featured-image {
		border-radius: 14px;
	}

	.blog-single__body {
		width: calc(100% - 40px);
		padding: 42px 0 80px;
	}

	.blog-single--without-thumbnail .blog-single__body {
		padding-top: 50px;
	}

	.blog-entry-content {
		font-size: 17px;
		line-height: 1.72;
	}

	.blog-entry-content .alignleft,
	.blog-entry-content .alignright {
		float: none;
		max-width: 100%;
		margin: 0 auto 1.55em;
	}

	.blog-back-button {
		min-width: 142px;
		min-height: 48px;
		margin-top: 48px;
	}
}

@media (max-width: 340px) {
	.blog-hero h1 {
		font-size: 25px;
	}

	.blog-instagram-cta__inner,
	.blog-listing .site-shell {
		padding-inline: 16px;
	}

	.blog-post-card__content {
		padding: 21px 18px;
	}

	.blog-single__featured {
		width: calc(100% - 24px);
	}

	.blog-single__body {
		width: calc(100% - 32px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.blog-instagram-cta__button,
	.blog-post-card,
	.blog-post-card__image,
	.blog-post-card__button,
	.blog-back-button {
		scroll-behavior: auto;
		transition: none;
	}
}
