/*
Theme Name: Tresza
Theme URI: https://www.tresza.com
Author: Tresza
Description: A custom editorial block theme for Tresza – An Online Journal. Cream and forest-green palette, Source Serif 4 and Inter typography, and ready-made homepage sections for travel stories, reflections, video, podcast and newsletter.
Version: 1.1.6
Requires at least: 6.6
Tested up to: 6.8
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: tresza
Tags: blog, full-site-editing, block-patterns, custom-colors, editor-style, one-column, three-columns
*/

/* ---------- Base ---------- */

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
}

:where(h1, h2, h3, h4) em {
	font-style: italic;
	font-weight: 400;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--wp--preset--color--terracotta);
	outline-offset: 2px;
}

img {
	height: auto;
}

/* Decorative overhangs (e.g. the About leaf sprig) must never cause sideways scrolling. */
.wp-site-blocks {
	overflow-x: clip;
}

/* ---------- Top bar ---------- */

.tresza-topbar {
	font-size: 0.8125rem;
}

.tresza-topbar .wp-block-social-links .wp-social-link svg {
	width: 1.15em;
	height: 1.15em;
}

.tresza-topbar__tagline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
}

.tresza-topbar__tagline::before,
.tresza-topbar__tagline::after {
	content: "";
	width: 3.5rem;
	height: 1px;
	background: currentColor;
	opacity: 0.45;
}

.tresza-topbar a {
	color: inherit;
	text-decoration: none;
}

.tresza-topbar a:hover {
	text-decoration: underline;
	color: inherit;
}

.tresza-subscribe-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.tresza-subscribe-link a::before {
	content: "";
	width: 1.05em;
	height: 1.05em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='1.5'/%3E%3Cpath d='M3.5 6l8.5 7 8.5-7'/%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 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='1.5'/%3E%3Cpath d='M3.5 6l8.5 7 8.5-7'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

.tresza-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.tresza-brand .wp-block-site-title {
	margin: 0;
	padding-left: 0.32em; /* balance the letter-spacing */
}

.tresza-brand .wp-block-site-tagline {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.45rem 0 0;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	white-space: nowrap;
}

.tresza-brand .wp-block-site-tagline::before,
.tresza-brand .wp-block-site-tagline::after {
	content: "";
	flex: 1;
	min-width: 0.75rem;
	height: 1px;
	background: currentColor;
}

.tresza-header__divider {
	align-self: stretch;
	width: 1px;
	min-height: 2.75rem;
	background: var(--wp--preset--color--line);
}

.tresza-header .wp-block-navigation .wp-block-navigation-item__content {
	position: relative;
	padding: 0.5rem 0;
}

.tresza-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--terracotta);
}

.tresza-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.15rem;
	height: 2px;
	background: var(--wp--preset--color--terracotta);
}

.tresza-header .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--terracotta);
	border: 0;
	padding: 0.35rem;
	margin: 0;
}

.tresza-header .wp-block-search__button svg {
	width: 1.6rem;
	height: 1.6rem;
}

.tresza-header .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--white);
}

/* Mobile overlay menu */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--cream) !important;
	padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 1.25rem;
	font-size: 1rem;
}

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

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline-arrow > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--terracotta);
	border: 1.5px solid currentColor;
	padding: calc(0.85rem - 1.5px) calc(1.6rem - 1.5px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline-arrow > .wp-block-button__link:hover {
	background: var(--wp--preset--color--terracotta);
	border-color: var(--wp--preset--color--terracotta);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-arrow > .wp-block-button__link::after,
.wp-block-button.is-style-outline-arrow > .wp-block-button__link::after,
.is-style-arrow-link a::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.6em;
	transition: transform 0.2s ease;
}

.wp-block-button.is-style-arrow > .wp-block-button__link:hover::after,
.wp-block-button.is-style-outline-arrow > .wp-block-button__link:hover::after,
.is-style-arrow-link a:hover::after {
	transform: translateX(3px);
}

.wp-block-button.is-style-arrow > .wp-block-button__link {
	background: var(--wp--preset--color--terracotta);
	color: var(--wp--preset--color--white);
}

.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tresza-button-small .wp-block-button__link {
	font-size: 0.75rem;
	padding: 0.6rem 1rem;
}

.wp-block-button.tresza-button-small.is-style-outline-arrow > .wp-block-button__link {
	padding: calc(0.6rem - 1.5px) calc(1rem - 1.5px);
}

/* ---------- Text styles ---------- */

.is-style-eyebrow,
.is-style-eyebrow-center {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.is-style-eyebrow::after {
	content: "";
	width: 3.5rem;
	height: 1px;
	background: currentColor;
	opacity: 0.7;
}

.is-style-eyebrow-center {
	justify-content: center;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.24em;
}

.is-style-eyebrow-center::before,
.is-style-eyebrow-center::after {
	content: "";
	width: clamp(2rem, 6vw, 4rem);
	height: 1px;
	background: var(--wp--preset--color--forest);
	opacity: 0.6;
}

.is-style-arrow-link {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.is-style-arrow-link a {
	text-decoration: none;
}

.wp-block-heading.is-style-with-rule::after {
	content: "";
	display: inline-block;
	width: 3rem;
	height: 1px;
	margin-left: 1.25rem;
	vertical-align: middle;
	background: var(--wp--preset--color--terracotta);
}

.wp-block-separator.is-style-accent {
	width: 3rem;
	max-width: 3rem;
	border-top: 2px solid var(--wp--preset--color--terracotta) !important;
	margin-left: 0;
	opacity: 1;
}

/* ---------- Hero ---------- */

.tresza-hero.wp-block-cover .wp-block-cover__inner-container {
	width: 100%;
}

.tresza-hero h1 {
	max-width: 13em;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
}

.tresza-hero .tresza-hero__intro {
	max-width: 30rem;
}

/* Photo hero: keep the person clear of the headline (add "tresza-hero--photo-right" to the cover). */
.tresza-hero.tresza-hero--photo-right {
	background-color: var(--wp--preset--color--forest);
}

@media (min-width: 782px) {
	.tresza-hero.tresza-hero--photo-right > .wp-block-cover__image-background {
		left: 24%;
		width: 76%;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
		mask-image: linear-gradient(90deg, transparent 0, #000 22%);
	}
}

@media (max-width: 781px) {
	.tresza-hero.tresza-hero--photo-right > .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(22, 50, 24, 0.55) 0%, rgba(22, 50, 24, 0.8) 100%) !important;
	}
}

/* ---------- Pillars ---------- */

.tresza-pillars > .wp-block-column {
	text-align: center;
}

.tresza-pillars .wp-block-image img {
	width: 4rem;
	height: 4rem;
}

.tresza-pillars p {
	max-width: 17rem;
	margin-inline: auto;
}

.tresza-pillars h3 a {
	color: inherit;
	text-decoration: none;
}

.tresza-pillars h3 a:hover {
	color: var(--wp--preset--color--terracotta);
}

@media (min-width: 782px) {
	.tresza-pillars > .wp-block-column + .wp-block-column {
		border-left: 1px solid var(--wp--preset--color--line);
	}
}

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

.tresza-card,
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	box-shadow: var(--wp--custom--shadow);
	overflow: hidden;
	height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tresza-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 2px 4px rgba(31, 31, 31, 0.05), 0 14px 32px rgba(31, 31, 31, 0.1);
}

.tresza-card {
	display: flex;
	flex-direction: column;
}

.tresza-card__media {
	position: relative;
}

.tresza-card__media .wp-block-post-featured-image {
	margin: 0;
}

.tresza-card__media .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* Cards without a featured image still get a tidy panel */
.tresza-card__media:not(:has(img)) {
	aspect-ratio: 16 / 10;
	background: url("assets/images/hills.svg") center / cover no-repeat;
}

.tresza-card__media .wp-block-post-terms a {
	background: var(--wp--preset--color--cream);
}

.tresza-card__media .wp-block-post-terms {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	margin: 0;
}

.wp-block-post-terms.is-style-pill,
.tresza-card__media .wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.wp-block-post-terms.is-style-pill a,
.tresza-card__media .wp-block-post-terms a {
	display: inline-block;
	padding: 0.3rem 0.65rem;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--terracotta);
	border-radius: 3px;
	line-height: 1.3;
}

.wp-block-post-terms.is-style-pill a:hover,
.tresza-card__media .wp-block-post-terms a:hover {
	background: var(--wp--preset--color--terracotta);
	color: var(--wp--preset--color--white);
}

.tresza-card .wp-block-post-terms__separator,
.wp-block-post-terms.is-style-pill .wp-block-post-terms__separator {
	display: none;
}

.tresza-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tresza-card__body .wp-block-post-title {
	font-weight: 600;
}

.tresza-card__body .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.tresza-card__body .tresza-meta {
	margin-top: auto;
}

.tresza-meta {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.tresza-meta time,
.tresza-comment-count {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.tresza-meta time::before,
.tresza-comment-count::before {
	content: "";
	width: 1.05em;
	height: 1.05em;
	background: var(--wp--preset--color--charcoal);
	opacity: 0.8;
}

.tresza-meta time::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='1.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%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 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='1.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tresza-comment-count {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.tresza-comment-count::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 12a8 7 0 1 1 3.2 5.6L4 19l1-3.4A6.6 6.6 0 0 1 4 12z'/%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 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 12a8 7 0 1 1 3.2 5.6L4 19l1-3.4A6.6 6.6 0 0 1 4 12z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tresza-grid .wp-block-post {
	display: flex;
}

.tresza-grid .wp-block-post > .tresza-card {
	width: 100%;
}

/* Pagination */
.wp-block-query-pagination {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wp-block-query-pagination a {
	text-decoration: none;
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--wp--custom--radius);
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--terracotta);
	color: var(--wp--preset--color--white);
}

/* ---------- Watch & listen ---------- */

.tresza-media-title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.tresza-media-title::before {
	content: "";
	flex: 0 0 auto;
	width: 2.25rem;
	height: 2.25rem;
	background: center / contain no-repeat;
}

.tresza-media-title--youtube::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 26'%3E%3Crect width='36' height='26' rx='6' fill='%23E1251B'/%3E%3Cpath d='M14 7.5v11l9.5-5.5z' fill='white'/%3E%3C/svg%3E");
	height: 1.65rem;
}

.tresza-media-title--spotify::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%231DB954'/%3E%3Cpath d='M8.5 12.3c4.8-1.4 10.4-1 14.6 1.4M9.4 16.2c4-1.1 8.6-.7 12 1.2M10.3 19.8c3.2-.8 6.6-.5 9.3 1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.tresza-video {
	position: relative;
	width: 100%;
	border-radius: var(--wp--custom--radius);
	overflow: hidden;
	margin: 0;
}

.tresza-video.wp-block-embed,
.tresza-spotify.wp-block-embed {
	margin: 0;
}

.tresza-video iframe {
	border-radius: var(--wp--custom--radius);
}

.tresza-spotify iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 12px;
}

@media (min-width: 782px) {
	.tresza-media > .wp-block-column + .wp-block-column {
		border-left: 1px solid var(--wp--preset--color--terracotta);
		padding-left: var(--wp--preset--spacing--40);
	}
}

/* ---------- About ---------- */

.tresza-portrait img {
	border-radius: 50%;
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
	box-shadow: 0 0 0 6px var(--wp--preset--color--sand);
}

.tresza-about-quote {
	position: relative;
	text-align: center;
}

.tresza-about-quote::before {
	content: "";
	position: absolute;
	top: -4.5rem;
	right: -3rem;
	width: 6.5rem;
	height: 6.5rem;
	background: url("assets/images/leaf-sprig.svg") center / contain no-repeat;
	pointer-events: none;
}

.tresza-about-quote p {
	position: relative;
}

.tresza-about-quote p::before,
.tresza-about-quote p::after {
	font-family: var(--wp--preset--font-family--serif);
	font-style: normal;
	font-weight: 700;
	font-size: 3rem;
	line-height: 0;
	color: var(--wp--preset--color--terracotta);
	position: relative;
}

.tresza-about-quote p::before {
	content: "\201C";
	top: 0.35em;
	margin-right: 0.15em;
}

.tresza-about-quote p::after {
	content: "\201D";
	top: 0.55em;
	margin-left: 0.15em;
}

@media (min-width: 782px) {
	.tresza-about > .wp-block-column:last-child {
		border-left: 1px solid var(--wp--preset--color--terracotta);
		padding-left: var(--wp--preset--spacing--40);
	}
}

/* ---------- Newsletter ---------- */

.tresza-newsletter__icon {
	flex: 0 0 auto;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: var(--wp--preset--color--olive);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tresza-newsletter__icon::before {
	content: "";
	width: 1.9rem;
	height: 1.9rem;
	background: var(--wp--preset--color--white);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4'%3E%3Crect x='3' y='5' width='18' height='14' rx='1.5'/%3E%3Cpath d='M3.5 6l8.5 7 8.5-7'/%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 24 24' fill='none' stroke='black' stroke-width='1.4'%3E%3Crect x='3' y='5' width='18' height='14' rx='1.5'/%3E%3Cpath d='M3.5 6l8.5 7 8.5-7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tresza-signup {
	display: flex;
	width: 100%;
	max-width: 30rem;
	margin-left: auto;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	border-radius: var(--wp--custom--radius);
	overflow: hidden;
}

.tresza-signup input[type="email"] {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 0.95rem 1.1rem;
	font: inherit;
	font-size: 0.9375rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--charcoal);
}

.tresza-signup button {
	border: 0;
	cursor: pointer;
	padding: 0 1.5rem;
	background: var(--wp--preset--color--terracotta);
	color: var(--wp--preset--color--white);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.tresza-signup button::after {
	content: "\2192";
	margin-left: 0.6em;
}

.tresza-signup button:hover {
	background: var(--wp--preset--color--terracotta-dark);
}

.tresza-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tresza-signup-msg {
	max-width: 30rem;
	margin: 0.75rem 0 0 auto;
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--white);
}

.tresza-signup-msg.is-error {
	font-family: var(--wp--preset--font-family--sans);
	font-style: normal;
	font-size: var(--wp--preset--font-size--small);
	color: #ffd9c7;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

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

.tresza-footer a {
	color: inherit;
	text-decoration: none;
}

.tresza-footer a:hover {
	text-decoration: underline;
}

.tresza-footer .wp-block-site-title {
	font-size: 1.25rem;
}

.tresza-footer .wp-block-site-title a {
	color: var(--wp--preset--color--cream);
}

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

.tresza-single-header .wp-block-post-title {
	font-size: var(--wp--preset--font-size--huge);
	line-height: 1.12;
}

.tresza-single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	color: var(--wp--preset--color--muted);
}

.tresza-single-meta .wp-block-post-date,
.tresza-single-meta .wp-block-post-author-name {
	font-size: var(--wp--preset--font-size--small);
}

.tresza-featured.alignwide {
	max-width: var(--wp--style--global--wide-size) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.tresza-featured img {
	border-radius: var(--wp--custom--radius);
}

.tresza-single-header .wp-block-post-terms {
	justify-content: center;
}

.tresza-prose {
	font-size: 1.125rem;
	line-height: 1.8;
}

.tresza-prose > p:first-of-type::first-letter {
	float: left;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 3.6em;
	line-height: 0.85;
	padding: 0.08em 0.1em 0 0;
	color: var(--wp--preset--color--terracotta);
}

.tresza-prose h2,
.tresza-prose h3 {
	margin-top: 2.5rem;
}

.tresza-prose a {
	text-underline-offset: 0.18em;
}

.tresza-prose .wp-block-embed {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.tresza-prose .wp-block-image img {
	border-radius: var(--wp--custom--radius);
}

.tresza-tags .wp-block-post-terms {
	font-size: 0.75rem;
}

.tresza-post-nav a {
	text-decoration: none;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--charcoal);
}

.tresza-post-nav a:hover {
	color: var(--wp--preset--color--terracotta);
}

.tresza-post-nav .post-navigation-link-previous::before,
.tresza-post-nav .post-navigation-link-next::before {
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--terracotta);
}

.tresza-post-nav .post-navigation-link-previous::before {
	content: "\2190  Previous story";
}

.tresza-post-nav .post-navigation-link-next::before {
	content: "Next story  \2192";
}

/* Comments */
.wp-block-comments input:not([type="submit"]),
.wp-block-comments textarea {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--white);
	padding: 0.75rem;
	font: inherit;
	width: 100%;
}

.wp-block-comments .wp-block-comment-template li {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-bottom: 1rem;
}

/* ---------- Search page & 404 ---------- */

.tresza-search .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius) 0 0 var(--wp--custom--radius);
	background: var(--wp--preset--color--white);
	padding: 0.8rem 1rem;
}

.tresza-search .wp-block-search__button {
	margin-left: 0;
	border-radius: 0 var(--wp--custom--radius) var(--wp--custom--radius) 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 781px) {
	.tresza-topbar__tagline,
	.tresza-header__divider,
	.tresza-header .tresza-subscribe-button {
		display: none !important;
	}

	.tresza-topbar__row {
		justify-content: space-between !important;
	}

	.tresza-brand .wp-block-site-title {
		font-size: 1.5rem;
	}

	.tresza-pillars > .wp-block-column + .wp-block-column {
		border-top: 1px solid var(--wp--preset--color--line);
		padding-top: var(--wp--preset--spacing--30);
	}

	.tresza-media > .wp-block-column + .wp-block-column,
	.tresza-about > .wp-block-column:last-child {
		border-top: 1px solid var(--wp--preset--color--line);
		padding-top: var(--wp--preset--spacing--40);
	}

	.tresza-portrait {
		max-width: 14rem;
		margin-inline: auto;
	}

	.tresza-signup {
		margin-left: 0;
		max-width: none;
	}

	.tresza-signup-msg {
		margin-left: 0;
	}

	.tresza-hero h1 {
		font-size: 2.25rem !important;
	}

	.is-style-eyebrow-center {
		font-size: 0.8125rem;
		letter-spacing: 0.16em;
		gap: 0.75rem;
	}

	.is-style-eyebrow-center::before,
	.is-style-eyebrow-center::after {
		width: 1.5rem;
	}

	.tresza-about-quote::before {
		display: none;
	}

	.tresza-newsletter__icon {
		display: none;
	}
}

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

.tresza-post-nav .post-navigation-link-previous:not(:has(a))::before,
.tresza-post-nav .post-navigation-link-next:not(:has(a))::before {
	display: none;
}

/* ---------- About page (templates/page-about.html) ---------- */

.tresza-about-page {
	--tza-pad: clamp(3.5rem, 8vw, 6.5rem);
}

.tresza-about-page p {
	margin-top: 0;
}

.tresza-about-page .tza-section {
	padding-top: var(--tza-pad);
	padding-bottom: var(--tza-pad);
}

.tresza-about-page .tza-prose p {
	font-size: 1.125rem;
	line-height: 1.8;
	margin-bottom: 1.15rem;
}

.tresza-about-page .tza-prose a,
.tresza-about-page .tza-quote a {
	color: var(--wp--preset--color--terracotta);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.tresza-about-page .tza-prose a:hover {
	color: var(--wp--preset--color--terracotta-dark);
}

/* Hero */
.tresza-about-page .tza-hero {
	background: var(--wp--preset--color--cream);
}

@media (min-width: 782px) {
	.tresza-about-page .tza-hero {
		background: linear-gradient(90deg, var(--wp--preset--color--cream) 0 64%, var(--wp--preset--color--sand) 64% 100%);
	}
}

.tresza-about-page .tza-hero__cols {
	gap: clamp(2.5rem, 6vw, 6rem);
	margin: 0;
}

.tresza-about-page .tza-rule {
	width: 3rem;
	height: 2px;
	margin: 0 0 1.75rem;
	background: var(--wp--preset--color--terracotta);
	border: 0;
}

.tresza-about-page .tza-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(2.9rem, 6.2vw, 5rem);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--charcoal);
}

.tresza-about-page .tza-subtitle {
	margin: 0.9rem 0 2rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.3rem, 2.3vw, 1.85rem);
	font-style: italic;
	line-height: 1.3;
	color: var(--wp--preset--color--terracotta);
}

.tresza-about-page .tza-lead {
	max-width: 33rem;
	margin: 0;
	padding-left: 1.4rem;
	border-left: 2px solid var(--wp--preset--color--olive);
	font-size: 1.1875rem;
	line-height: 1.75;
	color: var(--wp--preset--color--muted);
}

.tresza-about-page .tza-photo {
	position: relative;
	max-width: 27rem;
	margin: 0 0 0 auto;
}

.tresza-about-page .tza-photo::before {
	content: "";
	position: absolute;
	inset: 1.5rem -1.5rem -1.5rem 1.5rem;
	border: 1.5px solid var(--wp--preset--color--terracotta);
	border-radius: 14rem 14rem 1rem 1rem;
	pointer-events: none;
}

.tresza-about-page .tza-photo img {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 14rem 14rem 1rem 1rem;
	box-shadow: 0 18px 40px rgba(31, 31, 31, 0.16);
}

/* Quote band */
.tresza-about-page .tza-quote {
	text-align: center;
}

.tresza-about-page .tza-quote__text {
	max-width: 46rem;
	margin: 0 auto 1.75rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-style: italic;
	line-height: 1.4;
}

.tresza-about-page .tza-quote__text .tza-hl {
	color: #f2d9a7;
}

.tresza-about-page .tza-quote__reply {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 1rem;
}

.tresza-about-page .tza-quote__reply::before,
.tresza-about-page .tza-quote__reply::after {
	content: "";
	width: 2.5rem;
	height: 1px;
	background: currentColor;
	opacity: 0.55;
}

/* Callouts and emphasis */
.tresza-about-page .tza-section p.tza-callout {
	margin: 2.25rem 0 0;
	padding: 1.6rem 1.9rem;
	background: var(--wp--preset--color--white);
	border-left: 3px solid var(--wp--preset--color--terracotta);
	border-radius: 0 var(--wp--custom--radius) var(--wp--custom--radius) 0;
	box-shadow: var(--wp--custom--shadow);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.375rem;
	font-style: italic;
	line-height: 1.5;
	color: var(--wp--preset--color--charcoal);
}

.tresza-about-page .tza-prose p.tza-em {
	margin: 1.75rem 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.375rem;
	font-style: italic;
	line-height: 1.45;
	color: var(--wp--preset--color--forest);
}

/* Chapters */
.tresza-about-page .tza-chapter.is-alt {
	background: var(--wp--preset--color--white);
}

.tresza-about-page .tza-chapter__cols {
	gap: clamp(1.5rem, 5vw, 5rem);
	margin: 0;
}

.tresza-about-page .tza-num {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(3.5rem, 7vw, 5.5rem);
	font-weight: 600;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--wp--preset--color--terracotta);
}

.tresza-about-page .tza-num::after {
	content: "";
	display: block;
	width: 3rem;
	height: 2px;
	margin-top: 1.25rem;
	background: var(--wp--preset--color--terracotta);
}

@media (min-width: 782px) {
	.tresza-about-page .tza-num {
		position: sticky;
		top: 2rem;
	}
}

.tresza-about-page .tza-h2 {
	margin: 0 0 1.5rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.9rem, 3.4vw, 2.6rem);
	font-weight: 500;
	line-height: 1.15;
	color: var(--wp--preset--color--charcoal);
}

.tresza-about-page .tza-centered {
	text-align: center;
}

/* From a little dream to Tresza */
.tresza-about-page .tza-dream {
	background: var(--wp--preset--color--sand);
}

.tresza-about-page .tza-prose p.tza-statement {
	margin: 2.25rem auto;
	padding: 1.75rem 0;
	border-top: 1px solid var(--wp--preset--color--terracotta);
	border-bottom: 1px solid var(--wp--preset--color--terracotta);
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.4rem, 2.6vw, 1.85rem);
	font-style: italic;
	line-height: 1.4;
	text-align: center;
	color: var(--wp--preset--color--forest);
}

/* Closing and signature */
.tresza-about-page .tza-prose p.tza-toast {
	margin: 2.5rem 0 3rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-style: italic;
	line-height: 1.45;
	text-align: center;
	color: var(--wp--preset--color--charcoal);
}

.tresza-about-page .tza-sign {
	max-width: 30rem;
	margin: 0 auto;
	padding: 2.5rem 2rem;
	text-align: center;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius);
	box-shadow: var(--wp--custom--shadow);
}

.tresza-about-page .tza-sign p {
	margin: 0;
}

.tresza-about-page .tza-sign p.tza-sign__closing {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.2rem;
	font-style: italic;
	color: var(--wp--preset--color--muted);
}

.tresza-about-page .tza-sign p.tza-sign__name {
	margin: 0.35rem 0 0.9rem !important;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(3rem, 6vw, 4rem);
	font-style: italic;
	line-height: 1.1;
	color: var(--wp--preset--color--terracotta);
}

.tresza-about-page .tza-sign p.tza-sign__role {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--forest);
}

.tresza-about-page .tza-sign p.tza-sign__tagline {
	margin-top: 0.6rem !important;
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	color: var(--wp--preset--color--muted);
}

@media (max-width: 781px) {
	.tresza-about-page .tza-photo {
		max-width: 20rem;
		margin: 0 auto 1rem;
	}

	.tresza-about-page .tza-chapter__cols > .wp-block-column:first-child {
		flex-basis: auto !important;
	}

	.tresza-about-page .tza-num {
		font-size: 3.25rem;
	}

	.tresza-about-page .tza-section p.tza-callout {
		padding: 1.25rem 1.25rem;
		font-size: 1.2rem;
	}
}
