/* ==========================================================================
   oye-crunch/single-post
   Reading first: ~70-character column in General Sans, Fraunces headings.
   A breakout grid lets core blocks use wide/full alignment. Native block
   markup is styled, never replaced.
   Breakpoints: 48em, 64em.
   ========================================================================== */

.oye-post-page {
	--oye-post-measure: 42rem;
	--oye-post-wide: 64rem;
	--oye-post-gutter: max(1rem, env(safe-area-inset-left));
	color: var(--oye-aubergine, #210D35);
	font-family: var(--oye-font-body, system-ui, sans-serif);
	overflow-x: clip;
}

/* Breakout grid shared by header, content and article footer. */
.oye-post-header__inner,
.oye-post-content,
.oye-post-footer,
.oye-post-callout {
	box-sizing: border-box;
}

.oye-post-header,
.oye-post-footer {
	display: grid;
	grid-template-columns:
		[full-start] minmax(var(--oye-post-gutter), 1fr)
		[wide-start] minmax(0, calc((var(--oye-post-wide) - var(--oye-post-measure)) / 2))
		[content-start] min(var(--oye-post-measure), 100% - 2 * var(--oye-post-gutter))
		[content-end] minmax(0, calc((var(--oye-post-wide) - var(--oye-post-measure)) / 2))
		[wide-end] minmax(var(--oye-post-gutter), 1fr)
		[full-end];
}

.oye-post-header > *,
.oye-post-footer > * {
	grid-column: content;
	min-width: 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.oye-post-header {
	padding-top: clamp(2rem, 5.1vw, 3.52rem);
}

.oye-post-header__inner {
	grid-column: wide;
}

.oye-post-header__kicker {
	display: flex;
	flex-wrap: wrap;
	font-size: 0.875rem;
	gap: 0.25rem 1rem;
	margin: 0 0 1rem;
}

.oye-post-header__kicker a {
	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-post-header__title {
	font-family: var(--oye-font-display, Georgia, serif);
	font-size: clamp(2.024rem, 5.355vw, 4.158rem);
	font-weight: 800;
	hyphens: auto;
	letter-spacing: -0.035em;
	line-height: 0.98;
	margin: 0;
	max-width: 18ch;
	overflow-wrap: break-word;
	text-wrap: balance;
}

.oye-post-header__standfirst {
	font-family: var(--oye-font-display, Georgia, serif);
	font-size: clamp(1.25rem, 2.6vw, 1.625rem);
	font-weight: 500;
	line-height: 1.35;
	margin: 1.25rem 0 0;
	max-width: 40ch;
}

.oye-post-header__byline {
	border-top: 1.5px solid var(--oye-aubergine, #210D35);
	color: var(--oye-aubergine-soft, #5B4A6E);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.9375rem;
	gap: 0.25rem 1.25rem;
	margin: 1.75rem 0 0;
	max-width: var(--oye-post-measure);
	padding-top: 0.875rem;
}

.oye-post-header__byline a {
	color: var(--oye-aubergine, #210D35);
	display: inline-block;
	font-weight: 700;
	padding-block: 0.25rem;
	text-underline-offset: 0.2em;
}

.oye-post-hero {
	grid-column: wide;
	margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
}

.oye-post-hero__img {
	aspect-ratio: 16 / 9;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.oye-post-hero figcaption {
	color: var(--oye-aubergine-soft, #5B4A6E);
	font-size: 0.875rem;
	line-height: 1.45;
	margin-top: 0.625rem;
}

/* --------------------------------------------------------------------------
   Article content (core blocks)
   -------------------------------------------------------------------------- */

/* Body: centred reading column with classic breakouts, so floats
   (alignleft/alignright) still wrap text, which grid would prevent. */
.oye-post-content {
	box-sizing: border-box;
	display: flow-root;
	font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
	line-height: 1.7;
	padding: clamp(2rem, 5vw, 3rem) var(--oye-post-gutter) 1rem;
}

.oye-post-content > * {
	box-sizing: border-box;
	margin-block: 0 1.25em;
	margin-inline: auto;
	max-width: var(--oye-post-measure);
}

/* Neutralise the browser's default figure indent (40px each side) so
   images, tables, quotes and embeds use their full grid track. */
.oye-post-content figure {
	margin-inline: 0;
}

.oye-post-content > .alignwide {
	max-width: var(--oye-post-wide);
}

.oye-post-content > .alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: none;
	width: 100vw;
}

.oye-post-content h2,
.oye-post-content h3,
.oye-post-content h4 {
	font-family: var(--oye-font-display, Georgia, serif);
	font-weight: 750;
	letter-spacing: -0.02em;
	line-height: 1.12;
	margin-top: 1.75em;
	margin-bottom: 0.5em;
	scroll-margin-top: 1.5rem;
	text-wrap: balance;
}

.oye-post-content h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.oye-post-content h3 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); }
.oye-post-content h4 { font-size: 1.25rem; }

.oye-post-content a {
	color: inherit;
	text-decoration-color: var(--oye-aubergine, #210D35);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.2em;
}

.oye-post-content a:hover {
	text-decoration-color: var(--oye-lilac, #E6D6F3);
	text-decoration-thickness: 3px;
}

.oye-post-content strong {
	font-weight: 650;
}

/* Lists */
.oye-post-content ul,
.oye-post-content ol {
	padding-inline-start: 1.375em;
}

.oye-post-content li + li {
	margin-top: 0.4em;
}

.oye-post-content ul li::marker {
	color: var(--oye-aubergine, #210D35);
	content: "\2665  ";
	font-size: 0.75em;
}

/* Images, galleries, captions */
.oye-post-content img {
	height: auto;
	max-width: 100%;
}

.oye-post-content .wp-block-image,
.oye-post-content .wp-block-gallery,
.oye-post-content .wp-block-video,
.oye-post-content .wp-block-embed {
	margin-block: 2em;
}

.oye-post-content figcaption,
.oye-post-content .wp-element-caption {
	color: var(--oye-aubergine-soft, #5B4A6E);
	font-size: 0.875rem;
	line-height: 1.45;
	margin-top: 0.5rem;
	text-align: start;
}

.oye-post-content .alignleft,
.oye-post-content .alignright {
	max-width: 50%;
}

.oye-post-content .alignleft {
	float: left;
	margin: 0.25em 1.5em 1em max(0px, calc((100% - var(--oye-post-measure)) / 2));
}

.oye-post-content .alignright {
	float: right;
	margin: 0.25em max(0px, calc((100% - var(--oye-post-measure)) / 2)) 1em 1.5em;
}

.oye-post-content .aligncenter,
.oye-post-content figure.aligncenter {
	margin-inline: auto;
	text-align: center;
}



/* Responsive embeds (core aspect-ratio classes). */
.oye-post-content .wp-block-embed__wrapper {
	position: relative;
}

.oye-post-content .wp-has-aspect-ratio .wp-block-embed__wrapper::before {
	content: "";
	display: block;
	padding-top: 56.25%;
}

.oye-post-content .wp-has-aspect-ratio iframe {
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

/* Quotes */
.oye-post-content blockquote,
.oye-post-content .wp-block-quote {
	border-inline-start: 4px solid var(--oye-aubergine, #210D35);
	font-family: var(--oye-font-display, Georgia, serif);
	font-size: 1.25em;
	font-style: italic;
	line-height: 1.4;
	margin-inline: 0;
	padding-inline-start: 1.25rem;
}

.oye-post-content blockquote cite,
.oye-post-content .wp-block-quote cite {
	display: block;
	font-family: var(--oye-font-body, system-ui, sans-serif);
	font-size: 0.75em;
	font-style: normal;
	font-weight: 600;
	margin-top: 0.5rem;
}

.oye-post-content .wp-block-pullquote {
	border: 0;
	border-block: 3px solid var(--oye-aubergine, #210D35);
	padding: 1.5rem 0;
	text-align: start;
}

.oye-post-content .wp-block-pullquote blockquote {
	border: 0;
	font-size: clamp(1.5rem, 3.4vw, 2.25rem);
	padding: 0;
}

.oye-post-content .wp-block-pullquote cite {
	font-size: 1rem;
}

/* Tables: scroll inside their figure on small screens. */
.oye-post-content .wp-block-table {
	overflow-x: auto;
}

.oye-post-content table {
	border-collapse: collapse;
	font-size: 0.9375rem;
	min-width: 28rem;
	width: 100%;
}

.oye-post-content th,
.oye-post-content td {
	border-bottom: 1px solid color-mix(in srgb, var(--oye-aubergine, #210D35) 22%, transparent);
	padding: 0.625rem 0.75rem;
	text-align: start;
	vertical-align: top;
}

.oye-post-content thead th {
	border-bottom: 2px solid var(--oye-aubergine, #210D35);
	font-weight: 700;
}

.oye-post-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: color-mix(in srgb, var(--oye-lilac, #E6D6F3) 25%, transparent);
}

/* Code */
.oye-post-content code {
	background-color: var(--oye-white, #FFFFFF);
	border-radius: var(--oye-radius-sm, 0.25rem);
	font-size: 0.9em;
	padding: 0.1em 0.35em;
}

.oye-post-content pre {
	background-color: var(--oye-aubergine, #210D35);
	border-radius: var(--oye-radius-md, 0.375rem);
	color: var(--oye-cream, #FFF7EA);
	font-size: 0.875rem;
	line-height: 1.6;
	overflow-x: auto;
	padding: 1rem 1.25rem;
}

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

/* Separator, buttons, details, footnotes, file */
.oye-post-content hr,
.oye-post-content .wp-block-separator {
	border: 0;
	border-top: 2px solid var(--oye-aubergine, #210D35);
	margin-block: 2.5em;
	opacity: 1;
	width: 6rem;
}

.oye-post-content .wp-block-separator.is-style-wide {
	width: 100%;
}

.oye-post-content .wp-block-button__link {
	align-items: center;
	display: inline-flex;
	padding: 0.625rem 1.25rem;
	background-color: var(--oye-aubergine, #210D35);
	border-radius: var(--oye-radius-md, 0.375rem);
	color: var(--oye-cream, #FFF7EA);
	font-size: 1rem;
	font-weight: 600;
	min-height: 2.75rem;
	text-decoration: none;
}

.oye-post-content .is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: var(--oye-aubergine, #210D35);
}

.oye-post-content .wp-block-details {
	border-block: 1.5px solid var(--oye-aubergine, #210D35);
	padding-block: 0.75rem;
}

.oye-post-content .wp-block-details summary {
	cursor: pointer;
	font-weight: 650;
	min-height: 2.75rem;
}

.oye-post-content .wp-block-footnotes {
	border-top: 1.5px solid color-mix(in srgb, var(--oye-aubergine, #210D35) 30%, transparent);
	font-size: 0.875rem;
	padding-top: 1rem;
}

.oye-post-content .wp-block-file {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Page links (<!--nextpage-->) */
.oye-post-pages {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 auto 2rem;
	max-width: var(--oye-post-measure);
	padding-inline: var(--oye-post-gutter);
}

/* --------------------------------------------------------------------------
   Callout
   -------------------------------------------------------------------------- */

.oye-post-callout {
	background-color: var(--oye-lilac, #E6D6F3);
	border-inline-start: 5px solid var(--oye-aubergine, #210D35);
	display: grid;
	gap: 0.5rem;
	margin: 1.5rem auto;
	max-width: calc(var(--oye-post-measure) + 2.5rem);
	padding: 1.25rem 1.5rem;
	width: calc(100% - 2 * var(--oye-post-gutter));
}

.oye-post-callout--top {
	margin-top: clamp(2rem, 5vw, 3rem);
}

.oye-post-callout__heading {
	font-family: var(--oye-font-display, Georgia, serif);
	font-size: 1.375rem;
	font-weight: 750;
	line-height: 1.2;
	margin: 0;
}

.oye-post-callout__text {
	line-height: 1.55;
	margin: 0;
}

.oye-post-callout__link {
	color: inherit;
	font-weight: 700;
	justify-self: start;
	min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	text-underline-offset: 0.25em;
}

/* --------------------------------------------------------------------------
   Article footer: share + author
   -------------------------------------------------------------------------- */

.oye-post-footer {
	padding-block: 1.5rem clamp(2.2rem, 5.1vw, 3.52rem);
	row-gap: 1.5rem;
}

.oye-post-share {
	border-top: 3px solid var(--oye-aubergine, #210D35);
	padding-top: 1rem;
}

.oye-post-share__label {
	font-weight: 700;
	margin: 0 0 0.625rem;
}

.oye-post-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.oye-post-share__list li[hidden] {
	display: none;
}

.oye-post-share__btn {
	align-items: center;
	background: transparent;
	border: 1.5px solid var(--oye-aubergine, #210D35);
	border-radius: 999px;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	text-decoration: none;
}

.oye-post-share__btn:hover {
	background-color: var(--oye-aubergine, #210D35);
	color: var(--oye-cream, #FFF7EA);
}

.oye-post-share__status {
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0.5rem 0 0;
	min-height: 1.4em;
}

.oye-post-author {
	align-items: flex-start;
	background-color: var(--oye-white, #FFFFFF);
	display: flex;
	gap: 1rem;
	padding: 1.25rem;
}

.oye-post-author__avatar {
	border-radius: 50%;
	flex: none;
	height: 4rem;
	width: 4rem;
}

.oye-post-author__name {
	font-weight: 600;
	margin: 0;
}

.oye-post-author__name a {
	color: inherit;
	display: inline-block;
	font-family: var(--oye-font-display, Georgia, serif);
	font-size: 1.25rem;
	font-weight: 750;
	padding-block: 0.125rem;
	text-decoration: none;
}

.oye-post-author__bio {
	line-height: 1.55;
	margin: 0.375rem 0 0;
}

/* --------------------------------------------------------------------------
   Product recommendation (quiet, secondary)
   -------------------------------------------------------------------------- */

.oye-post-products {
	margin-bottom: clamp(2.2rem, 5.1vw, 3.52rem);
	padding-inline: var(--oye-post-gutter);
}

.oye-post-products__inner {
	border: 1.5px dashed var(--oye-aubergine, #210D35);
	margin-inline: auto;
	max-width: calc(var(--oye-post-measure) + 2.5rem);
	padding: 1.25rem;
}

.oye-post-products__title {
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0 0 0.875rem;
}

.oye-post-products__list {
	display: grid;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.oye-post-product {
	align-items: center;
	display: flex;
	gap: 1rem;
}

.oye-post-product__img {
	background-color: var(--oye-lilac, #E6D6F3);
	flex: none;
	height: 5.5rem;
	object-fit: contain;
	padding: 0.25rem;
	width: 5.5rem;
}

.oye-post-product__copy {
	display: grid;
	gap: 0.25rem;
	justify-items: start;
	min-width: 0;
}

.oye-post-product__name {
	font-family: var(--oye-font-display, Georgia, serif);
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.oye-post-product__price {
	font-weight: 600;
	margin: 0;
}

.oye-post-product__price del {
	opacity: 0.6;
}

.oye-post-product__price ins {
	text-decoration: none;
}

.oye-post-product__link {
	font-size: 0.9375rem;
	margin-top: 0.25rem;
	min-height: 2.75rem;
	padding-inline: 1rem;
}

/* --------------------------------------------------------------------------
   Related articles
   -------------------------------------------------------------------------- */

.oye-post-related {
	background-color: var(--oye-cream, #FFF7EA);
	border-top: 3px solid var(--oye-aubergine, #210D35);
	padding-block: clamp(2.2rem, 5.1vw, 3.52rem);
}

.oye-post-related__title {
	font-family: var(--oye-font-display, Georgia, serif);
	font-size: clamp(1.75rem, 3.6vw, 2.475rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	margin: 0 0 1.75rem;
}

/* Plain fallback for other post types using single.html */
.oye-post-plain {
	padding-block: clamp(2rem, 5.1vw, 3.52rem);
}

@media (min-width: 48em) {
	.oye-post-products__list {
		grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	}
}

@media (max-width: 29.99em) {
	.oye-post-content .alignleft,
	.oye-post-content .alignright {
		float: none;
		margin-inline: auto;
		max-width: 100%;
	}
}

@media print {
	.oye-post-share,
	.oye-post-products,
	.oye-post-related {
		display: none;
	}
}

/* Alignment: the article header sits on the same column as the text. */
.oye-post-header__inner {
	grid-column: content;
}

.oye-post-header__title {
	max-width: 20ch;
}

.oye-post-header__byline {
	max-width: none;
}

/* Fix: figures, quotes and tables stay centred in the reading column
   (the earlier figure reset had pinned them to the left edge). Floated
   images keep their own column-aligned margins. */
.oye-post-content > :is(figure, blockquote, .wp-block-quote, .wp-block-table, .wp-block-image, .wp-block-pullquote, .wp-block-embed, .wp-block-gallery):not(.alignleft):not(.alignright):not(.alignfull) {
	margin-inline: auto;
}
