/* Journal archive, articles, and Gutenberg editorial pages. */
.doen-journal-site,
.doen-editorial-page {
	background-color: var(--doen-color-paper);
	background-image: url("../../images/doen-paper.jpg");
	background-repeat: repeat;
	background-size: 480px auto;
}

.doen-journal,
.doen-article,
.doen-content-page {
	min-height: 70vh;
	overflow: clip;
}

.doen-editorial-heading {
	padding: 76px var(--doen-gutter-page) 70px;
	text-align: center;
}

.doen-editorial-heading__eyebrow {
	font-size: 1.05rem;
	letter-spacing: 0.2rem;
	margin: 0 0 19px;
	text-transform: uppercase;
}

.doen-editorial-heading h1 {
	font-family: var(--doen-font-script);
	font-size: clamp(5.5rem, 7vw, 9.6rem);
	font-weight: 400;
	letter-spacing: -0.15rem;
	line-height: 0.92;
	margin: 0 auto;
	max-width: 1240px;
	overflow-wrap: anywhere;
	text-transform: none;
}

.doen-editorial-heading__rule {
	align-items: center;
	display: flex;
	font-size: 1.3rem;
	gap: 8px;
	justify-content: center;
	margin: 30px auto 0;
	width: 135px;
}

.doen-editorial-heading__rule::before,
.doen-editorial-heading__rule::after {
	background: var(--doen-color-ink);
	content: "";
	height: 1px;
	width: 52px;
}

/* Journal archive */
.doen-journal-grid {
	display: grid;
	gap: 88px clamp(58px, 8vw, 120px);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 auto;
	max-width: 1260px;
	padding: 28px 48px 130px;
}

.doen-journal-card {
	align-self: start;
	min-width: 0;
}

.doen-journal-card:nth-child(4n + 1) {
	margin-left: 8%;
	width: 76%;
}

.doen-journal-card:nth-child(4n + 2) {
	margin-top: 46px;
	width: 100%;
}

.doen-journal-card:nth-child(4n + 3) {
	width: 88%;
}

.doen-journal-card:nth-child(4n) {
	margin-left: auto;
	margin-top: 84px;
	width: 76%;
}

.doen-journal-card__link {
	color: inherit;
	display: block;
	text-decoration: none;
}

.doen-journal-card__media {
	margin: 0;
	overflow: hidden;
	padding: 10px;
	position: relative;
}

.doen-journal-card__media::after {
	background: center / 100% 100% no-repeat url("../../images/home/product-frame-1.png");
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.doen-journal-card:nth-child(even) .doen-journal-card__media::after {
	background-image: url("../../images/home/product-frame-2.png");
}

.doen-journal-card__media img {
	aspect-ratio: 6 / 4;
	object-fit: cover;
	transition:
		filter var(--doen-duration-long) var(--doen-ease-standard),
		transform var(--doen-duration-drawer) var(--doen-ease-standard);
	width: 100%;
}

.doen-journal-card:nth-child(3n) .doen-journal-card__media img {
	aspect-ratio: 4 / 5;
}

.doen-journal-card__link:hover .doen-journal-card__media img {
	filter: sepia(0.08);
	transform: scale(1.012);
}

.doen-journal-card__title {
	font-family: var(--doen-font-ui);
	font-size: 1.2rem;
	font-weight: 400;
	letter-spacing: 0.13rem;
	line-height: 1.55;
	margin: 14px auto 0;
	max-width: 90%;
	text-align: center;
	text-transform: uppercase;
}

.doen-journal-card__date {
	display: block;
	font-size: 0.95rem;
	letter-spacing: 0.09rem;
	margin-top: 7px;
	text-align: center;
	text-transform: uppercase;
}

.doen-journal-pagination {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 12px;
	justify-content: center;
	margin: -58px auto 110px;
	min-height: 96px;
	padding-inline: var(--doen-gutter-page);
}

.doen-journal-pagination[hidden] {
	display: none;
}

.doen-journal-pagination__next,
.doen-journal-pagination__auto {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--doen-color-ink);
	display: inline-flex;
	font-size: 1.1rem;
	justify-content: center;
	letter-spacing: 0.15rem;
	min-height: 44px;
	padding: 8px 16px;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-transform: uppercase;
	text-underline-offset: 7px;
}

.doen-journal-pagination__auto {
	font-size: 1rem;
	opacity: 0.72;
}

.doen-journal-pagination.is-loading .doen-journal-pagination__next {
	opacity: 0.5;
	pointer-events: none;
}

.doen-journal-empty {
	padding-block: 30px 140px;
	text-align: center;
}

.doen-journal-empty h2 {
	font-family: var(--doen-font-script);
	font-size: clamp(3.6rem, 6vw, 6rem);
	text-transform: none;
}

/* Single Journal story */
.doen-article__hero {
	margin: 0 auto;
	max-width: 1200px;
}

.doen-article__hero img {
	aspect-ratio: 12 / 6.1;
	object-fit: cover;
	width: 100%;
}

.doen-article__hero figcaption {
	font-family: var(--doen-font-script);
	font-size: 1.6rem;
	margin-top: 12px;
}

.doen-article__body,
.doen-content-page__body {
	font-family: var(--doen-font-serif);
	font-size: 1.7rem;
	line-height: 1.85;
	margin: 0 auto;
	max-width: 760px;
	padding: 82px 24px 110px;
}

.doen-entry-content > * {
	max-width: 100%;
}

.doen-entry-content > p,
.doen-entry-content > ul,
.doen-entry-content > ol {
	margin-bottom: 30px;
}

.doen-entry-content h2,
.doen-entry-content h3 {
	font-family: var(--doen-font-script);
	font-size: clamp(4rem, 6vw, 6.8rem);
	font-weight: 400;
	letter-spacing: -0.08rem;
	line-height: 1;
	margin: 78px -8vw 30px;
	text-align: center;
	text-transform: none;
}

.doen-entry-content h3 {
	font-size: clamp(3.2rem, 4vw, 4.8rem);
}

.doen-entry-content h4,
.doen-entry-content h5,
.doen-entry-content h6 {
	margin: 42px 0 18px;
}

.doen-entry-content blockquote,
.doen-entry-content .wp-block-quote {
	border: 0;
	font-family: var(--doen-font-script);
	font-size: 3rem;
	line-height: 1.35;
	margin: 64px -8vw;
	padding: 28px 8vw;
	text-align: center;
}

.doen-entry-content blockquote cite {
	display: block;
	font-family: var(--doen-font-ui);
	font-size: 1rem;
	font-style: normal;
	letter-spacing: 0.12rem;
	margin-top: 18px;
	text-transform: uppercase;
}

.doen-entry-content .alignwide {
	margin-left: 50%;
	max-width: 1200px;
	transform: translateX(-50%);
	width: calc(100vw - (2 * var(--doen-gutter-page)));
}

.doen-entry-content .alignfull {
	margin-left: 50%;
	max-width: none;
	transform: translateX(-50%);
	width: 100vw;
}

.doen-entry-content figure {
	margin-bottom: 46px;
	margin-top: 46px;
}

.doen-entry-content figcaption,
.doen-entry-content .wp-element-caption {
	font-family: var(--doen-font-script);
	font-size: 1.5rem;
	line-height: 1.4;
	margin-top: 10px;
	text-align: left;
}

.doen-entry-content .wp-block-gallery {
	gap: 8px;
}

.doen-entry-content .wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.doen-entry-content .wp-block-table table,
.doen-entry-content > table {
	min-width: 560px;
}

.doen-entry-content details,
.doen-entry-content .wp-block-details {
	border-bottom: 1px solid rgb(50 50 50 / 36%);
	margin: 0;
	padding: 0;
}

.doen-entry-content details:first-of-type {
	border-top: 1px solid rgb(50 50 50 / 36%);
}

.doen-entry-content summary {
	cursor: pointer;
	font-family: var(--doen-font-ui);
	font-size: 1.2rem;
	letter-spacing: 0.1rem;
	list-style: none;
	min-height: 56px;
	padding: 17px 42px 14px 8px;
	position: relative;
	text-transform: uppercase;
}

.doen-entry-content summary::-webkit-details-marker {
	display: none;
}

.doen-entry-content summary::after {
	content: "+";
	font-size: 2rem;
	position: absolute;
	right: 8px;
	top: 12px;
}

.doen-entry-content details[open] summary::after {
	content: "−";
}

.doen-entry-content details > :not(summary) {
	margin-inline: 8px;
}

/* Migrated brand and shop pages. */
.doen-brand-grid,
.doen-shop-grid {
	display: grid;
	gap: 64px 28px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doen-brand-card,
.doen-shop-card {
	min-width: 0;
	text-align: center;
}

.doen-brand-card a {
	color: inherit;
	display: block;
	text-decoration: none;
}

.doen-brand-card img,
.doen-shop-card img {
	display: block;
	object-fit: cover;
	width: 100%;
}

.doen-brand-card img {
	aspect-ratio: 4 / 5;
}

.doen-brand-card h2,
.doen-shop-card h2 {
	font-family: var(--doen-font-script);
	font-size: clamp(2.8rem, 4vw, 4.6rem);
	font-weight: 400;
	line-height: 1;
	margin: 22px 0 0;
}

.doen-brand-card a img {
	transition: opacity 300ms ease;
}

.doen-brand-card a:hover img,
.doen-brand-card a:focus-visible img {
	opacity: 0.78;
}

.doen-brand-portrait img {
	max-height: 720px;
	object-fit: contain;
}

.doen-shops-hero img {
	max-height: 850px;
	object-fit: cover;
}

.doen-shop-grid {
	margin-bottom: 86px;
	margin-top: 86px;
}

.doen-shop-card img {
	aspect-ratio: 4 / 5;
}

.doen-shop-card__region {
	font-family: var(--doen-font-ui);
	font-size: 1rem;
	letter-spacing: 0.12rem;
	margin: 22px 0 8px;
	text-transform: uppercase;
}

.doen-shop-card address {
	font-style: normal;
	line-height: 1.7;
	margin-top: 16px;
	text-transform: uppercase;
}

.doen-page-links {
	border-top: 1px solid rgb(50 50 50 / 36%);
	margin-top: 56px;
	padding-top: 18px;
}

.doen-article-navigation {
	border-bottom: 1px solid rgb(50 50 50 / 36%);
	border-top: 1px solid rgb(50 50 50 / 36%);
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 0 auto 100px;
	max-width: 1200px;
}

.doen-article-navigation > div {
	min-width: 0;
}

.doen-article-navigation > div:last-child {
	border-left: 1px solid rgb(50 50 50 / 36%);
	text-align: right;
}

.doen-article-navigation a {
	align-items: center;
	color: inherit;
	display: flex;
	font-size: 1.1rem;
	gap: 8px;
	justify-content: space-between;
	letter-spacing: 0.12rem;
	min-height: 76px;
	overflow-wrap: anywhere;
	padding: 20px;
	text-decoration: none;
	text-transform: uppercase;
}

/* Gutenberg content pages */
.doen-content-page {
	padding-bottom: 110px;
}

.doen-content-page__hero {
	margin: 0 auto;
	max-width: 1200px;
	padding-inline: 24px;
}

.doen-content-page__hero img {
	aspect-ratio: 16 / 7;
	object-fit: cover;
	width: 100%;
}

.doen-content-page__body {
	padding-top: 70px;
	padding-bottom: 0;
}

@media (max-width: 749px) {
	.doen-editorial-heading {
		padding: 52px 20px 45px;
	}

	.doen-editorial-heading h1 {
		font-size: clamp(4.5rem, 15vw, 6.2rem);
		line-height: 0.98;
	}

	.doen-journal-grid {
		gap: 55px;
		grid-template-columns: minmax(0, 1fr);
		padding: 12px 20px 90px;
	}

	.doen-journal-card,
	.doen-journal-card:nth-child(n) {
		margin: 0 auto;
		width: 92%;
	}

	.doen-journal-card:nth-child(even) {
		width: 78%;
	}

	.doen-journal-card:nth-child(3n) {
		margin-left: 0;
		width: 86%;
	}

	.doen-journal-card__media img,
	.doen-journal-card:nth-child(3n) .doen-journal-card__media img {
		aspect-ratio: 4 / 3;
	}

	.doen-journal-pagination {
		margin-top: -30px;
		margin-bottom: 70px;
	}

	.doen-article__hero {
		padding-inline: 0;
	}

	.doen-article__hero img {
		aspect-ratio: 4 / 5;
	}

	.doen-article__hero figcaption {
		padding-inline: 15px;
	}

	.doen-article__body,
	.doen-content-page__body {
		font-size: 1.6rem;
		padding: 50px 20px 80px;
	}

	.doen-entry-content h2,
	.doen-entry-content h3 {
		font-size: 4.4rem;
		margin: 58px 0 24px;
	}

	.doen-entry-content h3 {
		font-size: 3.5rem;
	}

	.doen-entry-content blockquote,
	.doen-entry-content .wp-block-quote {
		font-size: 2.5rem;
		margin: 48px 0;
		padding: 22px 0;
	}

	.doen-entry-content .alignwide {
		width: calc(100vw - 20px);
	}

	.doen-entry-content .wp-block-gallery {
		margin-inline: -20px;
	}

	.doen-brand-grid,
	.doen-shop-grid {
		gap: 52px;
		grid-template-columns: minmax(0, 1fr);
	}

	.doen-brand-card h2,
	.doen-shop-card h2 {
		font-size: 3.5rem;
		margin-top: 18px;
	}

	.doen-shop-grid {
		margin-bottom: 58px;
		margin-top: 58px;
	}

	.doen-article-navigation {
		grid-template-columns: 1fr;
		margin-bottom: 70px;
	}

	.doen-article-navigation > div:last-child {
		border-left: 0;
		border-top: 1px solid rgb(50 50 50 / 36%);
		text-align: left;
	}

	.doen-content-page {
		padding-bottom: 70px;
	}

	.doen-content-page__hero {
		padding-inline: 0;
	}

	.doen-content-page__hero img {
		aspect-ratio: 4 / 3;
	}

	.doen-content-page__body {
		padding-top: 48px;
		padding-bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.doen-journal-card__media img {
		transition: none;
	}
}
