/*
 * Journal: archive cards and the entry page. Ported from "Journal.dc.html",
 * "Journal Entry.dc.html" and the journal teaser on the home page design.
 * The page shell (header, footer, pills) is journal-common.css.
 */

/* Cover-cropped images fill their frame; WordPress can print width/height
 * attributes that would otherwise cap them. */
.fpl-c .fpl-j-card__img,
.fpl-c .fpl-j-hero__img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
}

/* Archive heading */
.fpl-j-head {
	padding: 72px clamp(20px, 5vw, 64px) 48px;
}
.fpl-j-head.is-compact {
	padding-bottom: 28px;
}
.fpl-j-head__inner {
	max-width: 1160px;
	margin: 0 auto;
}
.fpl-j-head__row {
	display: flex;
	align-items: baseline;
	gap: 20px;
	flex-wrap: wrap;
}
.fpl-c .fpl-j-head__title {
	font-weight: 800;
	letter-spacing: -0.02em;
	font-size: clamp(44px, 6vw, 76px);
	line-height: 1.1;
	margin: 10px 0 0;
}
.fpl-j-head__hand {
	font-size: 24px;
}
.fpl-j-head__intro {
	font-size: 17px;
	line-height: 1.65;
	color: #6b5b45;
	max-width: 62ch;
	margin: 16px 0 0;
}
.fpl-j-head__intro p {
	margin: 0 0 10px;
}

/* Archive cards */
.fpl-j-list {
	padding: 0 clamp(20px, 5vw, 64px) 88px;
}
.fpl-j-list__inner {
	max-width: 1160px;
	margin: 0 auto;
}
.fpl-j-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 30px;
}
.fpl-c a.fpl-j-card {
	text-decoration: none;
	color: #3a2f24;
	background: #fffdf7;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 12px 28px rgba(58, 47, 36, 0.16);
	display: flex;
	flex-direction: column;
	min-width: 0;
	transition: transform 0.2s, box-shadow 0.2s;
}
.fpl-c a.fpl-j-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(58, 47, 36, 0.26);
	color: #3a2f24;
}
.fpl-j-card__media {
	position: relative;
	height: 220px;
	background: #f1e4cd;
	overflow: hidden;
}
.fpl-j-card--plain .fpl-j-card__media {
	height: 88px;
	background: #f1e4cd repeating-linear-gradient(0deg, transparent 0, transparent 21px, rgba(168, 132, 90, 0.16) 22px);
}
.fpl-j-card__pill {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
}
.fpl-j-card__scrim {
	position: absolute;
	inset: auto 0 0 0;
	height: 70px;
	background: linear-gradient(transparent, rgba(28, 21, 16, 0.55));
}
.fpl-c .fpl-j-card__caption {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 10px;
	font-size: 21px;
	line-height: 1.2;
	color: #f7efe2;
}
.fpl-j-card--plain .fpl-j-card__scrim {
	display: none;
}
.fpl-c .fpl-j-card--plain .fpl-j-card__caption {
	color: #6b5b45;
	left: auto;
	right: 16px;
}
.fpl-j-card__body {
	padding: 18px 22px 22px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}
.fpl-c .fpl-j-card__title {
	font-weight: 800;
	letter-spacing: -0.01em;
	font-size: 22px;
	line-height: 1.2;
	margin: 0;
}
.fpl-j-card__teaser {
	margin: 8px 0 12px;
	font-size: 15px;
	line-height: 1.6;
	color: #6b5b45;
}
.fpl-j-card__more {
	margin-top: auto;
	padding-top: 4px;
	font-weight: 700;
	letter-spacing: 2px;
	font-size: 13px;
	color: #6b5b45;
}
.fpl-j-card:hover .fpl-j-card__more {
	color: #b06a2e;
}

/* Entry hero */
.fpl-j-hero {
	position: relative;
	height: min(56vh, 520px);
	min-height: 320px;
	overflow: hidden;
	background: #2e2318;
}
.fpl-j-hero--plain {
	height: auto;
	min-height: 0;
	padding-top: 90px;
}
.fpl-j-hero__img {
	position: absolute;
	inset: 0;
}
.fpl-j-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(28, 21, 16, 0.1), rgba(28, 21, 16, 0.6));
}
.fpl-j-hero--plain .fpl-j-hero__scrim {
	display: none;
}
.fpl-j-hero__text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0 clamp(20px, 5vw, 64px) 44px;
}
.fpl-j-hero--plain .fpl-j-hero__text {
	position: relative;
}
.fpl-j-hero__inner {
	max-width: 820px;
	margin: 0 auto;
	color: #f7efe2;
}
.fpl-c .fpl-j-hero__title {
	font-weight: 800;
	letter-spacing: -0.02em;
	font-size: clamp(34px, 4.6vw, 58px);
	line-height: 1.05;
	margin: 16px 0 8px;
	color: #f7efe2;
	text-wrap: balance;
}
.fpl-j-hero__line {
	font-size: 14.5px;
	letter-spacing: 1px;
	color: rgba(247, 239, 226, 0.9);
}
.fpl-c .fpl-j-hero__caption {
	font-size: 23px;
	color: #f0c98a;
	margin-top: 6px;
	transform: rotate(-1deg);
	transform-origin: left center;
}

/* Quick facts */
.fpl-j-facts {
	padding: 0 clamp(20px, 5vw, 64px);
	transform: translateY(-34px);
	position: relative;
	z-index: 2;
	margin-bottom: -34px;
}
.fpl-j-facts__bar {
	max-width: 820px;
	margin: 0 auto;
	background: #fffdf7;
	border-radius: 8px;
	box-shadow: 0 16px 36px rgba(58, 47, 36, 0.18);
	display: flex;
	flex-wrap: wrap;
}
.fpl-j-fact {
	flex: 1 1 130px;
	min-width: 120px;
	padding: 18px 14px;
	text-align: center;
	border-right: 2px dashed #eadfc4;
}
.fpl-j-fact:last-child {
	border-right: 0;
}
.fpl-j-fact__value {
	font-weight: 800;
	font-size: 20px;
	color: #b06a2e;
}
.fpl-j-fact__label {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #7a6248;
	margin-top: 3px;
}

/* Entry body */
.fpl-j-body {
	padding: 56px clamp(20px, 5vw, 64px) 72px;
}
.fpl-j-body--facts {
	padding-top: 40px;
}
.fpl-j-body__inner {
	max-width: 720px;
	margin: 0 auto;
	font-size: 17.5px;
	line-height: 1.8;
	color: #463a2c;
	overflow-wrap: break-word;
}
.fpl-j-prose > p:first-child {
	margin: 0 0 24px;
	font-size: 20px;
	line-height: 1.7;
	color: #3a2f24;
	font-weight: 500;
}
.fpl-j-prose p {
	margin: 0 0 24px;
}
.fpl-c .fpl-j-prose h2,
.fpl-c .fpl-j-prose h3,
.fpl-c .fpl-j-prose h4 {
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: #3a2f24;
	margin: 38px 0 14px;
}
.fpl-c .fpl-j-prose h2 {
	font-size: 28px;
}
.fpl-c .fpl-j-prose h3 {
	font-size: 23px;
}
.fpl-c .fpl-j-prose h4 {
	font-size: 19px;
}
.fpl-j-prose ul,
.fpl-j-prose ol {
	margin: 0 0 24px;
	padding-left: 1.4em;
}
.fpl-j-prose blockquote,
.fpl-j-prose .wp-block-quote,
.fpl-j-prose .wp-block-pullquote {
	margin: 38px 0;
	padding: 22px 28px;
	border: 0;
	border-left: 5px solid #f0c98a;
	background: rgba(240, 201, 138, 0.16);
	border-radius: 0 8px 8px 0;
	font-size: 24px;
	line-height: 1.55;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #3a2f24;
	font-style: italic;
	text-align: left;
}
.fpl-j-prose blockquote p {
	margin: 0;
}
.fpl-j-prose blockquote cite {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-style: normal;
	letter-spacing: 1px;
	color: #6b5b45;
}
/* Images in an entry are polaroids with washi tape, like the design. */
.fpl-j-prose figure.wp-block-image,
.fpl-j-prose figure.wp-caption,
.fpl-j-prose p > img:only-child {
	position: relative;
	margin: 38px 0;
	background: #fffdf7;
	padding: 12px 12px 14px;
	transform: rotate(-1deg);
	border-radius: 3px;
	box-shadow: 0 14px 30px rgba(58, 47, 36, 0.18);
	max-width: 100%;
}
.fpl-j-prose figure.wp-block-image:nth-of-type(even),
.fpl-j-prose figure.wp-caption:nth-of-type(even) {
	transform: rotate(1deg);
}
.fpl-j-prose figure.wp-block-image::before,
.fpl-j-prose figure.wp-caption::before {
	content: "";
	position: absolute;
	top: -13px;
	left: 40%;
	width: 110px;
	height: 26px;
	background: rgba(224, 197, 148, 0.7);
	transform: rotate(-3deg);
	border-radius: 2px;
	z-index: 2;
}
.fpl-j-prose figure img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
	border-radius: 2px;
}
.fpl-j-prose figure figcaption,
.fpl-j-prose .wp-caption-text {
	font-family: "Caveat", cursive;
	font-size: 22px;
	line-height: 1.3;
	color: #6b5b45;
	text-align: center;
	padding-top: 10px;
	margin: 0;
}
.fpl-j-prose iframe,
.fpl-j-prose video {
	max-width: 100%;
}
.fpl-j-prose .wp-block-embed__wrapper {
	position: relative;
}
.fpl-j-prose .wp-block-embed.is-type-video .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}
.fpl-j-prose .wp-block-embed.is-type-video iframe {
	width: 100%;
	height: 100%;
	border-radius: 8px;
}
.fpl-j-prose .alignwide,
.fpl-j-prose .alignfull {
	max-width: 100%;
}

/* Linked destination */
.fpl-c a.fpl-j-dest {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 30px 0 0;
	padding: 20px 24px;
	background: #fffdf7;
	border: 2px dashed #d9c6a2;
	border-radius: 8px;
	text-decoration: none;
	color: #3a2f24;
	line-height: 1.4;
}
.fpl-c a.fpl-j-dest:hover {
	border-color: #e5b96f;
	color: #3a2f24;
}
.fpl-j-dest__eyebrow {
	flex: 1 0 100%;
	font-weight: 700;
	letter-spacing: 3px;
	font-size: 12px;
	color: #7a6248;
}
.fpl-j-dest__name {
	font-weight: 800;
	font-size: 22px;
	letter-spacing: -0.01em;
}
.fpl-j-dest__place {
	font-weight: 700;
	letter-spacing: 2px;
	font-size: 12px;
	color: #6b5b45;
}
.fpl-j-dest__more {
	margin-left: auto;
	font-weight: 700;
	letter-spacing: 2px;
	font-size: 12.5px;
	color: #b06a2e;
}

.fpl-c .fpl-j-signoff {
	font-size: 26px;
	line-height: 1.3;
	transform: rotate(-1deg);
	transform-origin: left center;
	margin-top: 34px;
}

/* Previous and next */
.fpl-j-nav {
	padding: 0 clamp(20px, 5vw, 64px) 80px;
}
.fpl-j-nav__inner {
	max-width: 720px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
	border-top: 2px dashed #d9c6a2;
	padding-top: 28px;
	font-weight: 700;
	letter-spacing: 2px;
	font-size: 13px;
}
.fpl-j-nav__side {
	flex: 1 1 200px;
	min-width: 0;
}
.fpl-j-nav__side--end {
	text-align: right;
}
.fpl-c .fpl-j-nav a {
	color: #6b5b45;
	text-decoration: none;
}
.fpl-c .fpl-j-nav a:hover {
	color: #b06a2e;
}
.fpl-c .fpl-j-nav a.fpl-j-nav__all {
	color: #b06a2e;
	border-bottom: 2px solid #e5b96f;
	order: 0;
}
@media (max-width: 640px) {
	.fpl-j-nav__inner {
		flex-direction: column;
		align-items: stretch;
	}
	.fpl-j-nav__side,
	.fpl-j-nav__side--end {
		text-align: left;
		flex-basis: auto;
	}
	.fpl-c .fpl-j-nav a.fpl-j-nav__all {
		align-self: flex-start;
	}
	.fpl-j-dest__more {
		margin-left: 0;
	}
}
/* Long titles on phones: let the hero grow instead of clipping the pill. */
@media (max-width: 700px) {
	.fpl-j-hero {
		height: auto;
		min-height: 380px;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
	}
	.fpl-j-hero__text {
		position: relative;
		padding-top: 96px;
	}
	.fpl-j-fact {
		border-right: 0;
		border-bottom: 2px dashed #eadfc4;
		flex-basis: 50%;
	}
	.fpl-j-fact:last-child {
		border-bottom: 0;
	}
}
