/* ==========================================================================
   oye-crunch/post-listing
   Editorial cream listing: one lead story, then a repeating six-item rhythm
   (two-up, wide horizontal, three compact). Posts without a featured image
   become typographic cards. Uses shared tokens/components.
   Breakpoints: 48em, 64em.
   ========================================================================== */

.oye-blog {
	color: var(--oye-aubergine, #210D35);
	font-family: var(--oye-font-body, system-ui, sans-serif);
	overflow-x: clip;
	padding-bottom: clamp(2.64rem, 6.8vw, 4.84rem);
}

:where(.oye-blog) :where(h1, h2, h3, p, ul, ol) {
	margin: 0;
}

/* Meta row (category + date) ------------------------------------------------- */

.oye-blog-meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.875rem;
	gap: 0.25rem 0.75rem;
}

.oye-blog-meta time {
	color: var(--oye-aubergine-soft, #5B4A6E);
}

.oye-blog-meta__cat {
	color: inherit;
	display: inline-block;
	font-weight: 700;
	padding-block: 0.25rem;
	text-decoration: underline;
	text-decoration-color: var(--oye-lilac, #E6D6F3);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.2em;
}

.oye-blog-meta__flag {
	background-color: var(--oye-lime, #D7F75B);
	font-size: 0.8125rem;
	font-weight: 700;
	padding: 0.125rem 0.5rem;
	transform: rotate(-3deg);
}

/* Intro ----------------------------------------------------------------------- */

.oye-blog-intro {
	padding-block: clamp(2rem, 5.1vw, 3.96rem) 1.5rem;
}

.oye-blog-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	font-size: 0.875rem;
	gap: 0.25rem 0.5rem;
	list-style: none;
	margin-bottom: 0.875rem;
	padding: 0;
}

.oye-blog-breadcrumb li + li::before {
	color: var(--oye-aubergine-soft, #5B4A6E);
	content: "/";
	margin-inline-end: 0.5rem;
}

.oye-blog-breadcrumb a {
	color: inherit;
	display: inline-block;
	padding-block: 0.25rem;
	text-underline-offset: 0.2em;
}

.oye-blog-intro__title {
	font-family: var(--oye-font-display, Georgia, serif);
	font-size: clamp(2.429rem, 8.415vw, 5.544rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 0.92;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.oye-blog-intro__page {
	display: block;
	font-family: var(--oye-font-body, system-ui, sans-serif);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
	margin-top: 0.75rem;
}

.oye-blog-intro__desc {
	font-size: clamp(1.0625rem, 2vw, 1.25rem);
	line-height: 1.55;
	margin-top: 1.25rem;
	max-width: 48ch;
}

.oye-blog-intro__desc > * + * {
	margin-top: 0.75em;
}

.oye-blog-intro .oye-placeholder {
	margin-top: 1rem;
}

.oye-blog-cats {
	border-top: 1.5px solid var(--oye-aubergine, #210D35);
	margin-top: 1.75rem;
	padding-top: 1rem;
}

.oye-blog-cats ul {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin-inline: calc(-1 * max(1rem, env(safe-area-inset-left)));
	overflow-x: auto;
	padding: 0.25rem max(1rem, env(safe-area-inset-left));
	scrollbar-width: none;
}

.oye-blog-cats ul::-webkit-scrollbar {
	display: none;
}

.oye-blog-chip {
	align-items: center;
	border: 1.5px solid color-mix(in srgb, var(--oye-aubergine, #210D35) 35%, transparent);
	border-radius: 999px;
	color: inherit;
	display: inline-flex;
	font-size: 0.9375rem;
	font-weight: 600;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	text-decoration: none;
	white-space: nowrap;
}

.oye-blog-chip:hover {
	border-color: var(--oye-aubergine, #210D35);
}

.oye-blog-chip[aria-current="page"] {
	background-color: var(--oye-aubergine, #210D35);
	border-color: var(--oye-aubergine, #210D35);
	color: var(--oye-cream, #FFF7EA);
}

/* Lead story ------------------------------------------------------------------ */

.oye-blog-lead {
	padding-block: 1.5rem clamp(2.2rem, 5.1vw, 3.52rem);
}

.oye-blog-lead__article {
	display: grid;
	gap: 1.75rem;
}

.oye-blog-lead__media {
	display: block;
	isolation: isolate;
	position: relative;
}

.oye-blog-lead__paper {
	background-color: var(--oye-lilac, #E6D6F3);
	clip-path: polygon(1% 2%, 14% 0.6%, 30% 2.2%, 47% 0.4%, 63% 2%, 80% 0.5%, 99% 1.8%, 98.2% 20%, 99.6% 41%, 98% 62%, 99.4% 82%, 98.6% 99%, 80% 98%, 61% 99.6%, 42% 98.1%, 23% 99.5%, 1% 98.4%, 1.8% 78%, 0.3% 56%, 1.6% 34%, 0.4% 16%);
	inset: 4% -3% -4% 5%;
	position: absolute;
	transform: rotate(2deg);
	z-index: -1;
}

.oye-blog-lead__img {
	aspect-ratio: 3 / 2;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.oye-blog-lead__copy {
	align-content: start;
	min-width: 0;
	display: grid;
	gap: 1rem;
	justify-items: start;
}

.oye-blog-lead__title {
	font-family: var(--oye-font-display, Georgia, serif);
	font-size: clamp(2.07rem, 4.59vw, 3.366rem);
	hyphens: auto;
	overflow-wrap: break-word;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 0.98;
	text-wrap: balance;
}

.oye-blog-lead__title a,
.oye-blog-card__title a {
	color: inherit;
	text-decoration: none;
}

.oye-blog-lead__title a:hover,
.oye-blog-card__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
}

.oye-blog-lead__excerpt {
	font-size: 1.125rem;
	line-height: 1.6;
	max-width: 52ch;
}

.oye-blog-readmore {
	align-items: center;
	color: inherit;
	display: inline-flex;
	font-weight: 700;
	min-height: 2.75rem;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.oye-blog-lead--text .oye-blog-lead__copy {
	border-top: 3px solid var(--oye-aubergine, #210D35);
	padding-top: 1.5rem;
}

/* Secondary stories ----------------------------------------------------------- */

.oye-blog-stories__title {
	border-top: 3px solid var(--oye-aubergine, #210D35);
	font-family: var(--oye-font-display, Georgia, serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 750;
	margin-bottom: 1.75rem;
	padding-top: 1rem;
}

.oye-blog-grid {
	display: grid;
	gap: 2.5rem 2rem;
	grid-template-columns: minmax(0, 1fr);
	list-style: none;
	padding: 0;
}

.oye-blog-card {
	margin: 0;
	min-width: 0;
}

.oye-blog-card article {
	display: grid;
	gap: 0.875rem;
}

.oye-blog-card__media {
	display: block;
}

.oye-blog-card__img {
	aspect-ratio: 4 / 3;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.oye-blog-card__copy {
	display: grid;
	gap: 0.5rem;
}

.oye-blog-card__title {
	font-family: var(--oye-font-display, Georgia, serif);
	hyphens: auto;
	overflow-wrap: break-word;
	font-size: clamp(1.375rem, 2.6vw, 1.75rem);
	font-weight: 750;
	letter-spacing: -0.015em;
	line-height: 1.1;
	text-wrap: balance;
}

.oye-blog-card__excerpt {
	line-height: 1.55;
	max-width: 52ch;
}

/* Typographic card when there is no featured image. */
.oye-blog-card--text article {
	border-inline-start: 4px solid var(--oye-lilac, #E6D6F3);
	padding-inline-start: 1rem;
}

/* --------------------------------------------------------------------------
   Pagination + empty
   -------------------------------------------------------------------------- */

.oye-blog-pages {
	padding-top: clamp(2.2rem, 5.1vw, 3.52rem);
}

.oye-blog-pages ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	list-style: none;
	padding: 0;
}

.oye-blog-pages .page-numbers {
	align-items: center;
	border: 1.5px solid color-mix(in srgb, var(--oye-aubergine, #210D35) 30%, transparent);
	border-radius: var(--oye-radius-md, 0.375rem);
	box-sizing: border-box;
	color: inherit;
	display: inline-flex;
	font-family: var(--oye-font-display, Georgia, serif);
	font-size: 1.125rem;
	font-weight: 700;
	justify-content: center;
	min-height: 2.75rem;
	min-width: 2.75rem;
	padding-inline: 0.75rem;
	text-decoration: none;
}

.oye-blog-pages .page-numbers.prev,
.oye-blog-pages .page-numbers.next {
	font-family: var(--oye-font-body, system-ui, sans-serif);
	font-size: 0.9375rem;
	font-weight: 600;
}

.oye-blog-pages .page-numbers.current {
	background-color: var(--oye-aubergine, #210D35);
	border-color: var(--oye-aubergine, #210D35);
	color: var(--oye-cream, #FFF7EA);
}

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

.oye-blog-empty {
	padding-block: 1.5rem;
}

.oye-blog-empty__note {
	background-color: var(--oye-white, #FFFFFF);
	box-shadow: 5px 7px 0 color-mix(in srgb, var(--oye-aubergine, #210D35) 12%, transparent);
	display: grid;
	gap: 1rem;
	justify-items: start;
	max-width: 32rem;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	transform: rotate(-1deg);
}

.oye-blog-empty__title {
	font-family: var(--oye-font-display, Georgia, serif);
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 750;
	line-height: 1.1;
}

/* --------------------------------------------------------------------------
   Responsive: the six-item rhythm
   -------------------------------------------------------------------------- */

@media (min-width: 48em) {
	.oye-blog-cats ul {
		flex-wrap: wrap;
		margin-inline: 0;
		overflow: visible;
		padding-inline: 0;
	}

	.oye-blog-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	/* 1 + 2: two-up, staggered. */
	.oye-blog-card--slot-1,
	.oye-blog-card--slot-2 {
		grid-column: span 3;
	}

	.oye-blog-card--slot-2 {
		margin-top: 3rem;
	}

	/* 3: wide horizontal story. */
	.oye-blog-card--slot-3 {
		background-color: var(--oye-white, #FFFFFF);
		box-shadow: 0 0 0 2px var(--oye-aubergine, #210D35);
		grid-column: 1 / -1;
		padding: clamp(1rem, 2.5vw, 1.5rem);
	}

	.oye-blog-card--slot-3 article {
		align-items: center;
		gap: clamp(1.5rem, 3vw, 2.5rem);
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	}

	.oye-blog-card--slot-3.oye-blog-card--text article {
		border: 0;
		grid-template-columns: minmax(0, 1fr);
		padding: 0;
	}

	.oye-blog-card--slot-3 .oye-blog-card__img {
		aspect-ratio: 16 / 10;
	}

	.oye-blog-card--slot-3 .oye-blog-card__title {
		font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	}

	/* 4–6: three compact. */
	.oye-blog-card--slot-4,
	.oye-blog-card--slot-5,
	.oye-blog-card--slot-6 {
		grid-column: span 2;
	}

	.oye-blog-card--slot-4 .oye-blog-card__img,
	.oye-blog-card--slot-5 .oye-blog-card__img,
	.oye-blog-card--slot-6 .oye-blog-card__img {
		aspect-ratio: 1;
	}

	.oye-blog-card--slot-5 {
		margin-top: 2rem;
	}

	.oye-blog-card--slot-4 .oye-blog-card__title,
	.oye-blog-card--slot-5 .oye-blog-card__title,
	.oye-blog-card--slot-6 .oye-blog-card__title {
		font-size: 1.3125rem;
	}
}

@media (min-width: 64em) {
	.oye-blog-lead__article {
		align-items: center;
		column-gap: clamp(2.2rem, 4.25vw, 4.4rem);
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	}

	.oye-blog-lead__title {
		font-size: clamp(2.07rem, 3.213vw, 3.366rem);
	}

	.oye-blog-lead--text .oye-blog-lead__article {
		grid-template-columns: minmax(0, 1fr);
	}

	.oye-blog-lead--text .oye-blog-lead__title {
		font-size: clamp(2.429rem, 4.59vw, 4.356rem);
		max-width: 18ch;
	}
}

@media (forced-colors: active) {
	.oye-blog-lead__paper {
		display: none;
	}

	.oye-blog-chip[aria-current="page"] {
		outline: 2px solid CanvasText;
	}
}

/* ==========================================================================
   Blog header redesign: badge + title + italic subtitle + rule.
   ========================================================================== */

.oye-blog-intro {
	padding-block: clamp(1.75rem, 5vw, 3rem) 1rem;
}

.oye-blog-intro__masthead {
	align-items: center;
	border-bottom: 2px solid var(--oye-aubergine, #210D35);
	display: grid;
	gap: 1rem 1.5rem;
	grid-template-columns: auto minmax(0, 1fr);
	padding-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.oye-blog-intro__badge {
	transform: rotate(-6deg);
	width: clamp(4.5rem, 10vw, 6.5rem);
}

.oye-blog-intro__badge svg,
.oye-blog-intro__badge-img {
	display: block;
	height: auto;
	width: 100%;
}

.oye-blog-intro .oye-blog-intro__title {
	font-size: clamp(1.875rem, 4.05vw, 2.925rem);
	letter-spacing: -0.03em;
	line-height: 1.02;
}

.oye-blog-intro .oye-blog-intro__desc {
	color: var(--oye-aubergine-soft, #5B4A6E);
	font-family: var(--oye-font-display, Georgia, serif);
	font-size: clamp(1rem, 1.8vw, 1.1875rem);
	font-style: italic;
	margin-top: 0.375rem;
	max-width: 60ch;
}

.oye-blog-intro .oye-blog-cats {
	border-top: 0;
	margin-top: 1.25rem;
	padding-top: 0;
}

@media (max-width: 29.99em) {
	.oye-blog-intro__masthead {
		align-items: start;
	}
}
