/* import serif */
@font-face {
	font-display: swap;
	font-family: 'Cormorant Garamond';
	font-weight: 300 700;
	src: local(''),
		url('../fonts/CormorantGaramond-subset.woff2') format('woff2');
}

h1 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 700;
	font-size: 5.625rem;
	line-height: 1em;
}

h2 {
	font-family: 'Geologica', serif;
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.2em;
}

.page-intro {
	background: rgb(var(--color-magenta));
	color: rgb(var(--color-white));
	text-align: center;
	margin: 0 auto;
	padding: 3rem 1rem;
	max-width: var(--layout-wide-content);
	position: relative;
	text-wrap: balance;
}

.page-intro::before {
	content: ' ';
	background: rgb(var(--color-magenta));
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(50% - 50vw);
	right: calc(50% - 50vw);
	z-index: -1;
}

.page-intro::after {
	content: ' ';
	position: absolute;
	left: calc(50% - 4rem);
	border: solid 4rem transparent;
	border-top-color: rgb(var(--color-magenta));
	bottom: -7.9rem;
	pointer-events: none;
	z-index: 10;
}

/* cards */

.block-cards {
	position: relative;
	max-width: var(--layout-wide);
	width: calc(100% - 2em);
	margin: 0 auto;
	padding: 10rem 1rem;
}

.block-cards::before {
	content: ' ';
	position: absolute;
	background: rgb(var(--color-ltgray));
	top: 0;
	bottom: 0;
	left: calc(50% - 50vw);
	right: calc(50% - 50vw);
	z-index: -1;
}

.articles {
	display: grid;
	gap: 5rem 2rem;
	padding: 0;
	justify-content: center;
	grid-template-columns: repeat(auto-fit, clamp(0em, 20em, 100%));
}

.articles article {
	box-sizing: border-box;
	background: rgb(var(--color-white));
}

.articles article a {
	color: inherit;
	text-decoration: none;
	display: block;
	position: relative;
}

.articles article:not(.has-post-thumbnail) a {
	padding-top: 62.5%;
	background: url(../img/post-fallback.svg) no-repeat;
	background-size: 100% auto;
} 

.articles article figure {
	width: 100%;
	aspect-ratio: 1.6;
	box-shadow: inset 0 -1.25rem 0.25rem -1rem rgba(0, 0, 0, 0.1);
}

.articles article figure.is-svg img {
	padding: 1rem;
	box-sizing: border-box;
}

.articles article figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 50% 50%;
}

.articles article a .content {
	padding: 1rem;
}

.articles article .post-meta {
	position: absolute;
	left: 0;
	max-width: 100%;
	bottom: 100%;
	background: rgb(var(--color-purple));
	color: rgb(var(--color-white));
	font-size: 0.75em;
	padding: 0.5em 1.75em;
}

.articles article .link-out {
	margin-top: 1rem;
}