/* ARTICLE */
.page-head {
	min-height: var(--site-bar-height);
}

@media (max-width:36em), (pointer:coarse) {
	.page-head {
		padding-top: calc(1.5 * var(--site-bar-height) );
	}
	.page-intro {
		margin-top: 1rem;
	}
}

.hero-image {
	gap: 0;
	height: max(16rem, 25vh);
	margin-top: calc(-1 * (var(--spacing) + var(--site-bar-height, 0px)));

	&::before {
		content: '';
		position: absolute;
		inset: 0;
		z-index: -1;
		background-position: var(--hero-pos, center);
		background-size: var(--hero-size, cover);
		background-image: var(--hero-image);
		mask: linear-gradient(to bottom, #000 65%, #0000 95%);
	}
}

.page-title {
	z-index: 1;
	font-weight: var(--font-weight-thin);
	line-height: 1;
	margin-inline: auto;
	text-align: center;
	.inverted {
		background-color: transparent;
	}
}

.page-intro {
	padding: var(--spacing);
	font-family: var(--font-display);
	font-size: var(--sizefl-4);
	font-weight: var(--font-weight-thin);
	font-stretch: condensed;
	color: hsl(var(--title-hue), 40%, 20%);
	background-color: hsl(var(--title-hue), 12%, 86%);
	box-shadow: inset 0 0 0.6ex hsl(var(--title-hue) 10% 20%);
	p, ul, ol, dl, address, blockquote {
		font: inherit;
	}
}

.page-section,
.related-wrapper {
	margin-inline: var(--sizefl-4);
	/* mediabox fullsize */
	--space-inside-pull: calc(-1 * (var(--space-inside) + var(--sizefl-4)));
}

.related-wrapper {
	container: related / inline-style;
	margin-top: var(--spacing);
}

.page-section .page-intro {
	color: var(--color-title);
	--title-hue: var(--quart-hue);
}

.page-section > :first-child {
	&.media-box {
		padding-top: 0.01px;
		margin-top: -1px;
	}
	&.layout {
		[id]:first-child {
			margin-top: var(--spacing);
		}
	}
}

.page-main header .subtitle {
	margin-inline: auto;
	text-align: center;
}
.page-main .article-head {
	padding-top: var(--spacing);
}

.page-intro {
	z-index: 1;
}

.layout[data-images] .media-box:not(.-hero) img {
	display: block;
	width: min(calc(1% * var(--img-width, 100)), 65cqw);
	height: auto;
	margin-inline: auto;
}

body:not([class*=variant]) .layout > :where(p, ul, ol) {
	max-width: max(75%, 80ch);
	margin-inline: auto;
}

/* Block Rating/Review */
.reviews {
	blockquote {
		font-size: var(--font-size-0);
		min-height: 10rem;
		display: grid;
    grid-template-areas: "text" "name" "link";
		grid-template-rows: 1fr auto auto;
		&:nth-child(odd) {
			margin-right: 1rem;
		}
		&:nth-child(even) {
			margin-left: 1rem;
		}
	}
	.review-body {
		grid-area: text;
		position: relative;
		line-height: 1.2;
		> * {
			font-style: italic;
			padding-inline: 3rem 2rem;
		}
		&::before {
			position: absolute;
			content: "“";
			top: -.2ex;
			left: 0;
			color: var(--color-title, var(--h2-color));
			font-family: "Times new Roman", Times, serif;
			font-weight: bold;
			font-style: normal;
			font-size: 20rem;
			line-height: 1;
			opacity: .1;
		}
	}
	cite {
		grid-area: name;
	}
	.review-link {
		grid-area: link;
	}
	cite,
	.review-link {
		font-style: normal;
  	place-self: end;
		padding-inline: 2rem;
	}
}

.breakout-variant-wrapper .page-section > .layout {
	--pad: 1rem;
	--pull: -.6rem;
	:is(h3,h4,h5) {
		margin-block: 1ex;
	}
	ol {
		list-style-type: none;
	}
	li + li {
		margin-top: var(--pad);
	}
}
