/*
Theme Name: Purrfect Fire
Theme URI: https://blog.purrfectfire.com
Author: Purrfectfire
Description: A soft, literary block theme for stories, photography and life. Ivory paper, espresso type and terracotta accents, botanical sprigs, a hero-and-title-card post layout, and a distinct design for every post format.
Version: 2.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: purrfect-fire
Tags: blog, photography, block-patterns, full-site-editing, style-variations, one-column, three-columns
*/

/* ---------- Paper ---------- */

body {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.28 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--wp--custom--role--ornament);
	color: var(--wp--custom--role--on-dark);
}

:where(a) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.15s ease;
}

:focus-visible {
	outline: 2px solid var(--wp--custom--role--link);
	outline-offset: 3px;
}

/* ---------- Small-caps labels (categories, meta, "read more") ---------- */

.pf-label,
.pf-label a,
.wp-block-post-terms.pf-label a,
.wp-block-read-more,
.wp-block-query-pagination a,
.wp-block-query-pagination span,
.wp-block-post-navigation-link .post-navigation-link__label {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
}

.pf-label a,
.wp-block-post-terms.pf-label a {
	color: var(--wp--custom--role--label);
}

.wp-block-read-more {
	color: var(--wp--custom--role--link);
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	align-self: flex-start;
}

.wp-block-read-more:hover {
	color: var(--wp--custom--role--link-hover);
}

/* ---------- Ornament divider: line — ✦ — line ---------- */

.wp-block-separator.is-style-ornament {
	border: 0 !important;
	height: 14px;
	width: 11rem;
	max-width: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
	opacity: 1;
	background-color: var(--wp--custom--role--ornament) !important;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 176 14'%3E%3Crect x='0' y='6.5' width='74' height='1'/%3E%3Crect x='102' y='6.5' width='74' height='1'/%3E%3Cpath d='M88 0 L90 5 L95 7 L90 9 L88 14 L86 9 L81 7 L86 5 Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 176 14'%3E%3Crect x='0' y='6.5' width='74' height='1'/%3E%3Crect x='102' y='6.5' width='74' height='1'/%3E%3Cpath d='M88 0 L90 5 L95 7 L90 9 L88 14 L86 9 L81 7 L86 5 Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-block-separator.is-style-ornament.alignwide,
.wp-block-separator.is-style-ornament.alignfull {
	width: 100%;
	-webkit-mask-size: 100% 14px;
	mask-size: 100% 14px;
}

.wp-block-separator.is-style-hairline {
	border: 0 !important;
	border-top: 1px solid var(--wp--custom--role--rule) !important;
	opacity: 1;
}

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

.pf-header .wp-block-site-title a {
	text-decoration: none;
}

.pf-nav-bar {
	border-top: 1px solid var(--wp--custom--role--rule);
	border-bottom: 1px solid var(--wp--custom--role--rule);
}

.pf-nav-bar .wp-block-navigation {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.pf-nav-bar .wp-block-navigation-item__content {
	text-decoration: none;
}

.pf-nav-bar .wp-block-navigation-item__content:hover,
.pf-nav-bar .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--custom--role--ornament);
}

.pf-nav-bar .wp-block-navigation__submenu-container {
	background: var(--wp--custom--role--card) !important;
	border: 1px solid var(--wp--custom--role--rule) !important;
	letter-spacing: 0.12em;
}

.pf-nav-bar .wp-block-search__input {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--wp--custom--role--rule);
	font-family: var(--wp--preset--font-family--lora);
	color: inherit;
}

.pf-nav-bar .wp-block-search__button {
	background: transparent;
	color: inherit;
	border: 0;
	padding: 0.25rem;
}

/* ---------- Post cards ---------- */

.pf-card {
	position: relative;
	background: var(--wp--custom--role--card);
	border: 1px solid var(--wp--custom--role--rule);
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pf-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px -18px rgba(59, 51, 46, 0.45);
}

.pf-card .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
}

.pf-card .wp-block-post-featured-image img {
	transition: transform 0.6s ease;
}

.pf-card:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.pf-card .wp-block-post-title a {
	text-decoration: none;
}

.pf-card .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.pf-card .wp-block-post-terms a {
	position: relative;
	z-index: 2;
}

.pf-card-body {
	flex: 1;
}

.pf-card-body .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.pf-grid .wp-block-post-template > li {
	margin: 0;
}

/* ---------- Single post ---------- */

.pf-framed img,
.wp-block-image.is-style-framed img,
.wp-block-post-featured-image.is-style-framed img {
	background: #fff;
	padding: 10px;
	box-shadow: 0 1px 2px rgba(59, 51, 46, 0.08), 0 18px 36px -24px rgba(59, 51, 46, 0.5);
}

.wp-block-image.is-style-polaroid img {
	background: #fff;
	padding: 10px 10px 42px;
	box-shadow: 0 18px 36px -24px rgba(59, 51, 46, 0.5);
	transform: rotate(-1.2deg);
}

.wp-block-image.is-style-polaroid figcaption {
	margin-top: -34px;
	position: relative;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-style: italic;
	font-size: 1.1rem;
}

.single-format-standard .pf-dropcap > p:first-of-type::first-letter {
	float: left;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 4.6em;
	line-height: 0.8;
	padding: 0.08em 0.1em 0 0;
	color: var(--wp--custom--role--ornament);
}

.single-format-standard .pf-dropcap > p:first-of-type:has(> img:first-child, > div)::first-letter {
	float: none;
	font-size: inherit;
	color: inherit;
	padding: 0;
}

/* ---------- Quotes ---------- */

.wp-block-pullquote {
	position: relative;
}

.wp-block-pullquote::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	background:
		radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.25), transparent 45%),
		var(--wp--custom--role--seal);
	box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
}

.wp-block-quote.is-style-plain {
	border: 0;
	padding-left: 0;
	text-align: center;
}

/* ---------- Boxes ---------- */

.is-style-paper-card {
	background: var(--wp--custom--role--card);
	border: 1px solid var(--wp--custom--role--rule);
	outline: 1px solid var(--wp--custom--role--rule);
	outline-offset: -7px;
}

/* ---------- Buttons ---------- */

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--custom--role--ornament);
	border-color: var(--wp--custom--role--ornament);
	color: var(--wp--custom--role--on-dark);
}

/* ---------- Footer ---------- */

.pf-footer a {
	text-decoration: none;
}

.pf-footer a:hover {
	color: var(--wp--custom--role--link);
}

.pf-footer .wp-block-navigation {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* ---------- Comments ---------- */

.wp-block-comment-template li + li {
	border-top: 1px solid var(--wp--custom--role--rule);
	padding-top: var(--wp--preset--spacing--40);
}

.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
	background: var(--wp--custom--role--card);
	border: 1px solid var(--wp--custom--role--rule);
	border-radius: 2px;
	font-family: inherit;
	color: inherit;
	padding: 0.6rem 0.75rem;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
	}

	.pf-card:hover,
	.pf-card:hover .wp-block-post-featured-image img,
	.wp-block-image.is-style-polaroid img {
		transform: none;
	}
}

/* ---------- Surfaces (driven by style variations) ---------- */

.pf-nav-bar .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--custom--role--surface) !important;
	color: var(--wp--custom--role--on-surface) !important;
	font-size: 1rem;
}

.pf-nav-bar .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.75rem;
}

.pf-footer {
	background-color: var(--wp--custom--role--footer-bg);
	color: var(--wp--custom--role--footer-text);
}

.pf-footer .wp-block-site-title a,
.pf-footer .wp-block-navigation a {
	color: var(--wp--custom--role--footer-text);
}

.pf-section-title {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 0.85rem !important;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--custom--role--meta);
}

/* ---------- Post navigation ---------- */

.pf-post-nav {
	border-top: 1px solid var(--wp--custom--role--rule);
}

.pf-post-nav .wp-block-post-navigation-link {
	max-width: 48%;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 1.25rem;
	line-height: 1.3;
}

.pf-post-nav .wp-block-post-navigation-link a {
	text-decoration: none;
}

.pf-post-nav .post-navigation-link__label {
	display: block;
	color: var(--wp--custom--role--meta);
	margin-bottom: 0.35rem;
}

.wp-block-post-comments-form .wp-block-button__link,
.wp-block-post-comments-form input[type="submit"] {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 0.8rem;
}

.wp-block-query-pagination-numbers {
	display: flex;
	gap: 0.9rem;
}

/* ==========================================================================
   Post-format cards (markup from inc/formats.php)
   ========================================================================== */

.pf-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 1.4rem 1.5rem 1.6rem;
}

.pf-card__body > * {
	margin: 0;
}

.pf-card__title {
	font-size: 1.65rem;
	line-height: 1.2;
}

h3.pf-card__title {
	font-size: 1.35rem;
}

.pf-card__link {
	color: inherit;
	text-decoration: none;
}

.pf-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.pf-card__link:hover {
	color: var(--wp--custom--role--ornament);
}

.pf-card__label {
	display: flex;
	align-items: center;
	gap: 0.55em;
	color: var(--wp--custom--role--label);
}

.pf-icon {
	flex: none;
}

.pf-card__date {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 1.05rem;
	font-style: italic;
	color: var(--wp--custom--role--meta);
}

.pf-card__excerpt {
	overflow-wrap: anywhere;
	font-size: 0.98rem;
	line-height: 1.65;
}

.pf-card__media {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wp--custom--role--dark);
}

.pf-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.pf-card:hover .pf-card__media img {
	transform: scale(1.03);
}

.pf-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	align-self: flex-start;
	margin-top: auto !important;
	padding-bottom: 2px;
	border-bottom: 1px solid currentColor;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--custom--role--link);
}

/* Wax seal */

.pf-seal {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	color: rgba(242, 239, 230, 0.55);
	background:
		radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.28), transparent 45%),
		var(--wp--custom--role--seal);
	box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.18);
}

/* Letter — Substack cross-posts */

.pf-card--letter {
	border-top: 0;
}

.pf-card--letter::before {
	content: "";
	height: 6px;
	flex: none;
	background: repeating-linear-gradient(
		-45deg,
		var(--wp--custom--role--ornament) 0 10px,
		transparent 10px 16px,
		var(--wp--custom--role--secondary) 16px 26px,
		transparent 26px 32px
	);
}

.pf-card--letter .pf-seal {
	position: relative;
	z-index: 2;
	margin: -2.9rem 0 -0.4rem auto;
}

.pf-card--letter .pf-card__media + .pf-card__body .pf-seal {
	margin-top: -2.9rem;
}

.pf-card--letter .pf-card__body:first-child .pf-seal {
	margin-top: 0;
}

.pf-card__subtitle {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 1.2rem;
	font-style: italic;
	line-height: 1.35;
}

/* Note — asides */

.pf-card--note {
	background-color: var(--wp--custom--role--card);
	background-image:
		linear-gradient(90deg, transparent 1.9rem, rgba(212, 0, 0, 0.35) 1.9rem, rgba(212, 0, 0, 0.35) calc(1.9rem + 1px), transparent calc(1.9rem + 1px)),
		repeating-linear-gradient(transparent 0 calc(1.9rem - 1px), rgba(19, 93, 128, 0.14) calc(1.9rem - 1px) 1.9rem);
	background-position: 0 0, 0 0.55rem;
}

.pf-card--note .pf-card__body {
	padding-left: 2.8rem;
	gap: 0.5rem;
}

.pf-note__text {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 1.3rem;
	font-style: italic;
	line-height: 1.9rem;
}

/* Status — dispatches */

.pf-card--status {
	background: var(--wp--custom--role--dark);
	color: var(--wp--custom--role--on-dark);
	border-color: transparent;
}

.pf-card--status .pf-card__label {
	color: var(--wp--custom--role--on-dark-accent);
}

.pf-card--status .pf-card__date {
	color: inherit;
	opacity: 0.7;
}

.pf-card--status .pf-card__link:hover {
	color: var(--wp--custom--role--on-dark-accent);
}

.pf-status__head {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.pf-status__head p {
	margin: 0;
}

.pf-status__thumb {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid currentColor;
}

.pf-status__text {
	font-size: 0.98rem;
	line-height: 1.65;
	opacity: 0.9;
}

/* Quote */

.pf-card--quote .pf-card__body {
	justify-content: center;
	padding: 2.25rem 1.9rem;
	text-align: center;
	align-items: center;
}

.pf-quote-mark {
	display: block;
	height: 2.4rem;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 6rem;
	line-height: 1;
	color: var(--wp--custom--role--ornament);
}

.pf-card__quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 1.5rem;
	font-style: italic;
	line-height: 1.35;
}

.pf-card__quote p {
	margin: 0;
}

.pf-card__cite {
	color: var(--wp--custom--role--label);
}

.pf-card--quote.has-image {
	min-height: 24rem;
	border: 0;
	color: var(--wp--custom--role--on-dark);
	background:
		linear-gradient(rgba(59, 51, 46, 0.55), rgba(59, 51, 46, 0.82)),
		var(--pf-bg) center / cover;
}

.pf-card--quote.has-image .pf-card__cite {
	color: var(--wp--custom--role--on-dark-accent);
}

/* Image — full-bleed photograph */

.pf-card--image {
	min-height: 27rem;
	border: 0;
	color: var(--wp--custom--role--on-dark);
	background: var(--wp--custom--role--dark);
}

.pf-card--image .pf-card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.pf-card--image .pf-card__body {
	position: relative;
	justify-content: flex-end;
	padding-top: 7rem;
	background: linear-gradient(transparent, rgba(59, 51, 46, 0.35) 35%, rgba(59, 51, 46, 0.88));
}

.pf-card--image .pf-card__label {
	color: var(--wp--custom--role--on-dark-accent);
}

.pf-card--image .pf-card__date {
	color: inherit;
	opacity: 0.75;
}

.pf-card--image .pf-card__link:hover {
	color: var(--wp--custom--role--on-dark-accent);
}

/* Gallery — mosaic */

.pf-mosaic {
	position: relative;
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 3px;
	aspect-ratio: 4 / 3;
	background: var(--wp--custom--role--card);
}

.pf-mosaic img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
}

.pf-mosaic > img:first-child {
	grid-row: span 2;
}

.pf-mosaic--1,
.pf-mosaic--2 {
	grid-template-columns: 1fr 1fr;
}

.pf-mosaic--1 > img:first-child {
	grid-column: span 2;
}

.pf-mosaic__count {
	position: absolute;
	right: 0.6rem;
	bottom: 0.6rem;
	padding: 0.25rem 0.6rem;
	background: rgba(59, 51, 46, 0.82);
	color: var(--wp--custom--role--on-dark);
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
}

/* Video */

.pf-card--video .pf-card__media {
	aspect-ratio: 16 / 9;
}

.pf-play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: auto;
	border-radius: 50%;
	background: rgba(242, 239, 230, 0.92);
	color: var(--wp--custom--role--dark);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.pf-play .pf-icon {
	width: 22px;
	height: 22px;
	margin-left: 3px;
	fill: currentColor;
}

.pf-card:hover .pf-play {
	background: var(--wp--custom--role--ornament);
	color: var(--wp--custom--role--on-dark);
	transform: scale(1.06);
}

/* Link */

.pf-card--link {
	outline: 1px solid var(--wp--custom--role--rule);
	outline-offset: -7px;
}

.pf-card--link .pf-card__body {
	padding: 1.9rem 1.75rem;
}

.pf-link-badge {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 0.5rem !important;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: var(--wp--custom--role--link);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.pf-link-badge .pf-icon {
	width: 20px;
	height: 20px;
}

.pf-card--link:hover .pf-link-badge {
	background: var(--wp--custom--role--link);
	color: var(--wp--custom--role--on-dark);
}

/* Audio */

.pf-card--audio .pf-card__body {
	align-items: flex-start;
}

.pf-record {
	position: relative;
	display: grid;
	place-items: center;
	width: 7.5rem;
	height: 7.5rem;
	margin-bottom: 0.5rem !important;
	border-radius: 50%;
	background:
		repeating-radial-gradient(circle, #222c2b 0 1px, #17201f 1px 3px);
	box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
	transition: transform 1.2s ease;
}

.pf-record__label {
	display: block;
	width: 42%;
	height: 42%;
	border-radius: 50%;
	object-fit: cover;
	background: var(--wp--custom--role--ornament);
	border: 3px solid var(--wp--custom--role--on-dark);
}

.pf-card--audio:hover .pf-record {
	transform: rotate(200deg);
}

.pf-wave {
	display: flex;
	align-items: center;
	gap: 3px;
	width: 100%;
	height: 2.25rem;
}

.pf-wave i {
	flex: 1;
	border-radius: 2px;
	background: var(--wp--custom--role--link);
	opacity: 0.55;
}

/* Chat */

.pf-chat {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0.25rem 0 !important;
}

.pf-bubble {
	max-width: 85%;
	margin: 0;
	padding: 0.55rem 0.8rem;
	border-radius: 14px 14px 14px 3px;
	background: var(--wp--custom--role--surface);
	border: 1px solid var(--wp--custom--role--rule);
	font-size: 0.92rem;
	line-height: 1.5;
}

.pf-bubble b {
	display: block;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--custom--role--label);
}

.pf-bubble--right {
	align-self: flex-end;
	border-radius: 14px 14px 3px 14px;
	background: var(--wp--custom--role--secondary);
	border-color: transparent;
	color: var(--wp--custom--role--on-dark);
}

.pf-bubble--right b {
	color: var(--wp--custom--role--on-dark-accent);
}

/* ==========================================================================
   Single views per format
   ========================================================================== */

.pf-letter-hero {
	max-width: 44rem;
	margin: 0 auto;
	background: var(--wp--custom--role--card);
	border: 1px solid var(--wp--custom--role--rule);
	text-align: center;
}

.pf-letter-hero::before {
	content: "";
	display: block;
	height: 7px;
	background: repeating-linear-gradient(
		-45deg,
		var(--wp--custom--role--ornament) 0 12px,
		transparent 12px 19px,
		var(--wp--custom--role--secondary) 19px 31px,
		transparent 31px 38px
	);
}

.pf-letter-hero__media {
	margin: 0;
}

.pf-letter-hero__media img {
	display: block;
	width: 100%;
	height: auto;
}

.pf-letter-hero__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 0 clamp(1.5rem, 5vw, 3rem) clamp(2rem, 5vw, 3rem);
}

.pf-letter-hero__body > * {
	margin: 0;
}

.pf-letter-hero .pf-seal {
	width: 64px;
	height: 64px;
	margin-top: -32px;
}

.pf-letter-hero .pf-seal svg {
	width: 22px;
	height: 22px;
}

.pf-letter-hero__body:first-child .pf-seal {
	margin-top: 2rem;
}

.pf-letter-hero__subtitle {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--wp--preset--font-size--large);
	font-style: italic;
	line-height: 1.35;
}

.pf-letter-hero__byline {
	color: var(--wp--custom--role--meta);
}

.pf-quote-hero {
	position: relative;
	margin: 0 auto var(--wp--preset--spacing--60) !important;
	padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 7vw, 6rem);
	text-align: center;
	background: var(--wp--custom--role--card);
	border: 1px solid var(--wp--custom--role--rule);
}

.pf-quote-hero .pf-quote-mark {
	height: 3.5rem;
	font-size: 8rem;
}

.pf-quote-hero .wp-block-post-content p {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: var(--wp--preset--font-size--x-large);
	font-style: italic;
	line-height: 1.3;
}

.pf-quote-hero.has-image {
	border: 0;
	color: var(--wp--custom--role--on-dark);
	background:
		linear-gradient(rgba(59, 51, 46, 0.5), rgba(59, 51, 46, 0.8)),
		var(--pf-bg) center / cover;
}

.single-format-image .wp-block-post-content .wp-block-image img,
.single-format-image .wp-block-post-content > p > img {
	background: #fff;
	padding: 10px;
	box-shadow: 0 1px 2px rgba(59, 51, 46, 0.08), 0 18px 36px -24px rgba(59, 51, 46, 0.5);
}

.single-format-aside .wp-block-post-content > p,
.single-format-status .wp-block-post-content > p {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 1.45rem;
	font-style: italic;
	line-height: 1.55;
}

/* Classic [gallery] shortcode */

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 0.6rem;
	margin: 2rem 0;
}

.gallery br {
	display: none;
}

.gallery .gallery-item {
	margin: 0;
}

.gallery .gallery-icon img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border: 0;
}

.gallery .gallery-caption {
	padding-top: 0.3rem;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 0.95rem;
	font-style: italic;
	color: var(--wp--custom--role--meta);
}

@media (prefers-reduced-motion: reduce) {
	.pf-card:hover .pf-card__media img,
	.pf-card--audio:hover .pf-record,
	.pf-card:hover .pf-play {
		transform: none;
	}
}

/* ==========================================================================
   Brand: wordmark, kickers, script accent, sprigs, watercolour footer
   ========================================================================== */

.pf-wordmark {
	font-weight: 400;
}

.pf-wordmark a {
	text-decoration: none;
}

.pf-wordmark__accent {
	margin-left: 0.28em;
	color: var(--wp--custom--role--ornament);
}

.pf-kicker {
	margin: 0;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--wp--custom--role--meta);
}

.pf-kicker--ruled {
	white-space: nowrap;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.1rem;
	color: var(--wp--custom--role--on-surface);
}

.pf-kicker--ruled::before,
.pf-kicker--ruled::after,
.pf-family::before,
.pf-family::after {
	content: "";
	flex: none;
	width: clamp(1.5rem, 9vw, 7rem);
	height: 1px;
	background: linear-gradient(to left, var(--wp--custom--role--ornament), transparent);
}

.pf-kicker--ruled::after,
.pf-family::after {
	background: linear-gradient(to right, var(--wp--custom--role--ornament), transparent);
}

.pf-script {
	margin: 0;
	word-spacing: 0.2em;
	font-family: var(--wp--preset--font-family--dancing-script);
	font-size: 1.65rem;
	line-height: 1.3;
	color: var(--wp--custom--role--meta);
}

.pf-family {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: var(--wp--preset--spacing--40) !important;
	font-size: 0.78rem;
}

/* Spark divider: a four-point star with long, fading hairlines */

.wp-block-separator.is-style-spark {
	border: 0 !important;
	width: 22rem;
	max-width: 100%;
	height: 24px;
	margin-left: auto !important;
	margin-right: auto !important;
	opacity: 1;
	background-color: var(--wp--custom--role--ornament) !important;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24'%3E%3Cdefs%3E%3ClinearGradient id='l'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1'/%3E%3C/linearGradient%3E%3ClinearGradient id='r' x1='1' x2='0'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect y='11.5' width='182' height='1' fill='url(%23l)'/%3E%3Crect x='218' y='11.5' width='182' height='1' fill='url(%23r)'/%3E%3Cpath d='M200 0L202.6 9.4 212 12 202.6 14.6 200 24 197.4 14.6 188 12 197.4 9.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24'%3E%3Cdefs%3E%3ClinearGradient id='l'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1'/%3E%3C/linearGradient%3E%3ClinearGradient id='r' x1='1' x2='0'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect y='11.5' width='182' height='1' fill='url(%23l)'/%3E%3Crect x='218' y='11.5' width='182' height='1' fill='url(%23r)'/%3E%3Cpath d='M200 0L202.6 9.4 212 12 202.6 14.6 200 24 197.4 14.6 188 12 197.4 9.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Botanical sprigs framing the masthead and footer */

.pf-header,
.pf-footer {
	position: relative;
}

.pf-header::before,
.pf-header::after,
.pf-footer::before,
.pf-footer::after {
	content: "";
	position: absolute;
	top: 0.5rem;
	width: 150px;
	height: 250px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 200' fill='none' stroke='%237A6F66' stroke-width='0.9' stroke-linecap='round'%3E%3Cpath d='M18 198C34 150 46 104 98 8'/%3E%3Cpath d='M58 126C44 118 36 104 38 92'/%3E%3Cpath d='M80 66C92 62 104 50 106 38'/%3E%3Cpath d='M34 160q-18-6-24-22q18 4 24 22z'/%3E%3Cpath d='M42 136q20-4 30-20q-20 2-30 20z'/%3E%3Cpath d='M38 92q-12-4-16-16q12 2 16 16z'/%3E%3Cpath d='M52 108q-18-8-22-26q16 6 22 26z'/%3E%3Cpath d='M64 82q18-6 26-22q-18 4-26 22z'/%3E%3Cpath d='M74 58q-14-10-16-26q14 8 16 26z'/%3E%3Cpath d='M106 38q-2-10 4-18q2 10-4 18z'/%3E%3Cpath d='M86 36q14-6 18-20q-14 4-18 20z'/%3E%3Ccircle cx='98' cy='8' r='2'/%3E%3C/svg%3E") top / contain no-repeat;
	opacity: var(--wp--custom--role--sprig);
	pointer-events: none;
}

.pf-header::before,
.pf-footer::before {
	left: clamp(0rem, 3vw, 3rem);
}

.pf-header::after,
.pf-footer::after {
	right: clamp(0rem, 3vw, 3rem);
	transform: scaleX(-1);
}

.pf-footer::before,
.pf-footer::after {
	top: auto;
	bottom: 0.5rem;
	transform: rotate(180deg) scaleX(-1);
}

.pf-footer::after {
	transform: rotate(180deg);
}

@media (max-width: 900px) {
	.pf-header::before,
	.pf-header::after,
	.pf-footer::before,
	.pf-footer::after {
		display: none;
	}
}

.pf-footer {
	background:
		radial-gradient(ellipse 60% 90% at 12% 100%, var(--wp--custom--role--wash-1), transparent 70%),
		radial-gradient(ellipse 55% 80% at 88% 0%, var(--wp--custom--role--wash-2), transparent 70%),
		var(--wp--custom--role--footer-bg);
}

.pf-footer .pf-kicker,
.pf-footer .pf-script {
	color: inherit;
	opacity: 0.8;
}

/* ==========================================================================
   Post and page hero: framed featured image, title card overlapping its foot
   ========================================================================== */

.pf-hero-image {
	margin-bottom: 0 !important;
}

.pf-hero-image img {
	max-height: 82vh;
}

.pf-title-card {
	position: relative;
	z-index: 2;
	width: min(40rem, calc(100% - 2rem));
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: var(--wp--preset--spacing--60) !important;
	padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 3rem);
	background: var(--wp--custom--role--surface);
	border: 1px solid var(--wp--custom--role--rule);
	box-shadow: 0 0 0 10px var(--wp--custom--role--card), 0 0 0 11px var(--wp--custom--role--rule), 0 30px 50px -24px rgba(59, 51, 46, 0.45);
}

.pf-title-card > * {
	max-width: none !important;
}

.pf-title-card .wp-block-post-title {
	font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.pf-hero-image + .pf-title-card {
	margin-top: clamp(-9rem, -11vw, -3rem) !important;
}

/* Without a hero image the card simply heads the page. */
main > .pf-title-card:first-child {
	margin-top: var(--wp--preset--spacing--30) !important;
}

@media (max-width: 600px) {
	.pf-kicker {
		letter-spacing: 0.18em;
		font-size: 0.75rem;
	}

	.pf-kicker--ruled {
		gap: 0.6rem;
	}

	.pf-kicker--ruled::before,
	.pf-kicker--ruled::after {
		width: 1.25rem;
	}
}
