/*
Theme Name: Kitefield
Theme URI: https://kitefieldhq.com/
Author: Kitefield
Description: A small block theme for Kitefield. Warm, plainspoken, and confident: Judson Bold headlines, brand color in big blocks, and the kite in flight.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.3.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kitefield
*/

/* Colors, fonts, and sizes live in theme.json. This file holds layout and the
   components the content uses. Each section layout has its own job, so the
   page doesn't repeat one pattern: hero, intro letter, 2 colored lane panels,
   quiet aside, gold statement band, numbered stages, journey line, questions,
   and the closing call to action. */

:root {
	--kf-gutter: clamp(1.25rem, 5vw, 3rem);
	--kf-wide: var(--wp--style--global--wide-size, 74rem);
	--kf-measure: 40rem;
	/* Full-width backgrounds, with content lined up to the wide column. */
	--kf-inline: max(var(--kf-gutter), calc((100% - var(--kf-wide)) / 2));
	--kf-accent: var(--wp--preset--color--teal);
	--kf-band: var(--wp--preset--color--ink);
}

.kf-lane-get { --kf-accent: var(--wp--preset--color--teal); --kf-band: var(--wp--preset--color--ink); }
.kf-lane-keep { --kf-accent: var(--wp--preset--color--blue); --kf-band: var(--wp--preset--color--blue); }
.kf-lane-simplify { --kf-accent: var(--wp--preset--color--rust); --kf-band: var(--wp--preset--color--gold); }

/* ---------- Basics ---------- */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	text-decoration-color: var(--wp--preset--color--teal);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}
a:hover {
	text-decoration-color: currentColor;
}

:where(a, button, input, select, textarea, summary, .wp-element-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--teal);
	outline-offset: 3px;
}

::selection {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
}

strong {
	font-weight: 700;
}

/* A marker pen on a printed page: gold behind the words in text, teal in headlines. */
mark.kf-mark {
	background: linear-gradient(transparent 58%, color-mix(in srgb, var(--wp--preset--color--gold) 55%, transparent) 58%);
	color: inherit;
	padding: 0 0.08em;
}
:where(h1, h2, h3) mark.kf-mark {
	background: none;
	padding: 0;
	color: var(--wp--preset--color--teal);
}
.kf-hero-lane :where(h1, h2) mark.kf-mark,
.kf-cta :where(h1, h2) mark.kf-mark {
	color: var(--wp--preset--color--gold-light);
}
.kf-hero-lane.kf-lane-simplify :where(h1, h2) mark.kf-mark {
	color: var(--wp--preset--color--rust);
}

/* Judson Bold headlines, set tight. */
h1, h2, h3 {
	letter-spacing: -0.025em;
}

/* Buttons: plain words, bold, generous. 19px bold counts as large text, so paper on teal passes on hover. */
.wp-element-button,
.wp-block-button__link {
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 1.1875rem !important;
	font-weight: 700;
	letter-spacing: 0 !important;
	padding: 0.85em 1.5em !important;
	border-radius: 4px !important;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--teal) !important;
	border-color: var(--wp--preset--color--teal) !important;
	color: var(--wp--preset--color--paper) !important;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 2px solid var(--wp--preset--color--ink);
}

/* ---------- Section frame ---------- */

.kf-hero,
.kf-section,
.kf-cta,
.kf-page-head,
.kf-guides {
	box-sizing: border-box;
	width: 100%;
	padding-inline: var(--kf-inline);
}
.wp-block-post-content > .kf-hero,
.wp-block-post-content > .kf-section,
.wp-block-post-content > .kf-cta {
	margin-top: 0;
}

.kf-section {
	padding-top: clamp(3.5rem, 8vw, 6.5rem);
	padding-bottom: clamp(0.5rem, 2vw, 1rem);
}
.kf-section > * {
	max-width: var(--kf-measure);
}
.kf-section > h2 {
	max-width: 22ch;
	margin-bottom: 1.5rem;
}

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

.kf-hero {
	position: relative;
	padding-top: clamp(3rem, 9vw, 7.5rem);
	padding-bottom: clamp(3rem, 7vw, 6rem);
}
.kf-hero > h1 {
	margin: 0;
}
.kf-hero > p:not(.kf-meta) {
	max-width: 36rem;
	margin-top: 1.75rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}
.kf-hero .wp-block-buttons {
	margin-top: 2.25rem;
}
.kf-meta {
	margin-top: 1rem;
	font-size: 1.0625rem;
	color: var(--wp--preset--color--slate);
}
.kf-meta a {
	color: var(--wp--preset--color--ink);
	white-space: nowrap;
}

/* Home: the big two-line promise, with the kite flying across. */
.kf-hero-home > h1 {
	font-size: clamp(3.1rem, 8.4vw, 7rem);
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.04em;
	position: relative;
	z-index: 1;
}
.kf-hero-mark {
	position: absolute;
	margin: 0;
	pointer-events: none;
	top: 0.75rem;
	right: var(--kf-gutter);
	width: 7.5rem;
}
.kf-hero-mark img,
.kf-hero-mark .components-resizable-box__container {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1;
}
@media (max-width: 699px) {
	.kf-hero-home {
		padding-top: 7.5rem;
	}
}
@media (min-width: 700px) {
	/* The kite flies in the open space beside the paragraph, clear of the headline. */
	.kf-hero-mark {
		top: auto;
		bottom: clamp(1.5rem, 4vw, 3.5rem);
		right: var(--kf-inline);
		width: clamp(12rem, 25vw, 23rem);
	}
	.kf-hero-home > p:not(.kf-meta) {
		max-width: min(36rem, 55%);
	}
}

/* Lane pages: the lane's own color, full width. */
.kf-hero-lane {
	background: var(--kf-band);
	color: var(--wp--preset--color--paper);
}
.kf-hero-lane > h1 {
	color: var(--wp--preset--color--paper);
	max-width: 19ch;
	text-wrap: balance;
	font-size: clamp(2.8rem, 6.6vw, 5.75rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.04em;
}
.kf-hero-lane > p:not(.kf-meta) {
	max-width: 40rem;
}
/* Simplify's page is gold, like its box on Home: dark text and an ink button. */
.kf-hero-lane.kf-lane-simplify,
.kf-hero-lane.kf-lane-simplify > h1,
.kf-hero-lane.kf-lane-simplify .kf-meta,
.kf-hero-lane.kf-lane-simplify .kf-meta a {
	color: var(--wp--preset--color--ink);
}
.kf-hero-lane.kf-lane-simplify .kf-meta a {
	text-decoration-color: var(--wp--preset--color--ink);
}
.kf-hero-lane.kf-lane-simplify .wp-block-button__link {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}
.kf-hero-lane.kf-lane-simplify a:focus-visible {
	outline-color: var(--wp--preset--color--ink);
}
.kf-hero-lane .kf-meta,
.kf-hero-lane .kf-meta a {
	color: var(--wp--preset--color--paper);
}
.kf-hero-lane .kf-meta a {
	text-decoration-color: var(--wp--preset--color--gold-light);
}
.kf-hero-lane .wp-block-button__link,
.kf-cta .wp-block-button__link {
	background: var(--wp--preset--color--gold);
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--ink);
}
.kf-hero-lane .wp-block-button__link:hover,
.kf-hero-lane .wp-block-button__link:focus-visible,
.kf-cta .wp-block-button__link:hover,
.kf-cta .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--paper) !important;
	border-color: var(--wp--preset--color--paper) !important;
	color: var(--wp--preset--color--ink) !important;
}
.kf-hero-lane a:focus-visible,
.kf-cta a:focus-visible {
	outline-color: var(--wp--preset--color--gold);
}

/* Simple pages (partners, contact, privacy). */
.kf-hero-page > h1,
.kf-page-head h1 {
	font-size: clamp(2.5rem, 5.5vw, 4.25rem);
	font-weight: 700;
	max-width: 22ch;
}

/* ---------- Intro: reads like a short letter ---------- */

.kf-layout-intro > p {
	max-width: 38rem;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
}

/* ---------- Boxes: how we can help (2 side by side, then 1 wide) ---------- */

.kf-layout-boxes > .kf-boxes {
	max-width: none;
	display: grid;
	gap: clamp(1rem, 2.5vw, 2rem);
	margin-top: 2.5rem;
}
.kf-box {
	background: var(--kf-band);
	color: var(--wp--preset--color--paper);
	padding: clamp(2rem, 5vw, 4rem);
}
.kf-box > * {
	max-width: 34rem;
}
.kf-box-head > * {
	margin: 0;
}
.kf-box .kf-box-label {
	font-style: italic;
	font-size: 1.25rem;
	color: var(--wp--preset--color--gold-light);
	margin-bottom: 0.6rem;
}
.kf-box h3 {
	text-wrap: balance;
	color: var(--wp--preset--color--paper);
	font-size: clamp(2rem, 3.6vw, 3.1rem);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.03em;
	margin-bottom: 1.5rem;
}
.kf-box > p {
	font-size: 1.3125rem;
	line-height: 1.55;
}
.kf-box .kf-more {
	margin-top: 2rem;
	font-weight: 700;
}
.kf-box .kf-more a {
	color: inherit;
	text-decoration-color: var(--wp--preset--color--gold-light);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}
.kf-box .kf-more a::after {
	content: "\00a0\2192";
}
.kf-box a:focus-visible {
	outline-color: var(--wp--preset--color--gold-light);
}
/* The gold box: dark text. */
.kf-box.kf-lane-simplify,
.kf-box.kf-lane-simplify h3,
.kf-box.kf-lane-simplify .kf-box-label {
	color: var(--wp--preset--color--ink);
}
.kf-box.kf-lane-simplify .kf-more a {
	text-decoration-color: var(--wp--preset--color--ink);
}
.kf-box.kf-lane-simplify a:focus-visible {
	outline-color: var(--wp--preset--color--ink);
}
@media (min-width: 900px) {
	.kf-layout-boxes > .kf-boxes {
		grid-template-columns: 1fr 1fr;
	}
	.kf-box-wide {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
		column-gap: clamp(2rem, 5vw, 4.5rem);
		align-items: start;
	}
	.kf-box-wide > * {
		grid-column: 2;
	}
	.kf-box-wide > .kf-box-head {
		grid-column: 1;
		grid-row: 1 / span 4;
	}
	.kf-box-wide h3 {
		margin-bottom: 0;
	}
	.kf-box-wide > p:not(.kf-more) {
		margin-top: 0;
	}
}

/* Grid sections line their children up on the grid, so WordPress's default
   space above each block (meant for stacked blocks) has to go. */
.kf-boxes > .kf-box,
.kf-box-wide > *,
.kf-layout-familiar > ul.wp-block-list > li {
	margin-block-start: 0;
}

/* ---------- Sound familiar: owner thoughts ---------- */

.kf-layout-familiar > ul.wp-block-list {
	max-width: 60rem;
	margin-top: 1.5rem;
}
.kf-layout-familiar > ul.wp-block-list > li {
	padding: 0.25rem 0 0.25rem 2rem !important;
	margin-bottom: 1.25rem !important;
	font-size: clamp(1.375rem, 2.2vw, 1.75rem);
	font-style: italic;
	line-height: 1.35;
}
.kf-layout-familiar > ul.wp-block-list > li::before {
	content: "\201C" !important;
	font-style: normal;
	font-weight: 700 !important;
	font-size: 2.25rem;
	line-height: 1;
	color: var(--wp--preset--color--teal) !important;
	top: -0.05rem;
}
@media (min-width: 900px) {
	.kf-layout-familiar > ul.wp-block-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: clamp(2rem, 5vw, 4rem);
	}
}
.kf-layout-familiar > p {
	margin-top: 1rem;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

/* ---------- Try this today: 3 quick self-checks ---------- */

.kf-layout-checks > p:first-of-type {
	font-size: var(--wp--preset--font-size--large);
}
.kf-section.kf-layout-checks > ol.wp-block-list {
	max-width: none;
	margin-top: 2.25rem;
	display: grid;
	gap: 0 clamp(2rem, 4vw, 3.5rem);
}
.kf-section.kf-layout-checks > ol.wp-block-list > li {
	margin: 0;
	padding: 1.5rem 0 1.75rem;
	border-top: 2px solid var(--wp--preset--color--teal);
}
.kf-section.kf-layout-checks > ol.wp-block-list > li::before {
	position: static;
	display: block;
	margin-bottom: 0.75rem;
	font-size: clamp(2.75rem, 5vw, 3.75rem);
	line-height: 0.9;
	color: var(--wp--preset--color--teal);
}
.kf-section.kf-layout-checks > ol.wp-block-list > li > strong:first-child {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 1.5rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
}
.kf-layout-checks > p:last-child {
	margin-top: 1.5rem;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}
@media (min-width: 900px) {
	.kf-section.kf-layout-checks > ol.wp-block-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Split: the story on the left, the promises on the right ---------- */

.kf-layout-split > ul.wp-block-list {
	margin-top: 1.5rem;
}
.kf-layout-split > ul.wp-block-list > li {
	padding: 1.1rem 0 !important;
	margin: 0 !important;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--rule) 70%, transparent);
}
.kf-layout-split > ul.wp-block-list > li::before {
	content: none !important;
}
.kf-layout-split > ul.wp-block-list > li > strong:first-child {
	display: block;
	margin-bottom: 0.2rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.5rem;
	line-height: 1.2;
}
@media (min-width: 960px) {
	.kf-layout-split {
		display: grid;
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		column-gap: clamp(2.5rem, 6vw, 6rem);
		align-items: start;
	}
	.kf-layout-split > h2 {
		grid-column: 1 / -1;
	}
	.kf-layout-split > p {
		grid-column: 1;
	}
	.kf-layout-split > ul.wp-block-list {
		grid-column: 2;
		grid-row: 2 / span 10;
		margin-top: 0;
	}
}

/* ---------- Beliefs: heading on the left, 3 short statements on the right ---------- */

.kf-layout-beliefs > p > strong:first-child {
	display: block;
	margin-bottom: 0.3rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	line-height: 1.15;
}
.kf-layout-beliefs > p {
	margin-bottom: 2rem;
}
@media (min-width: 960px) {
	.kf-layout-beliefs {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
		column-gap: clamp(2.5rem, 6vw, 6rem);
		align-items: start;
	}
	.kf-layout-beliefs > h2 {
		grid-column: 1;
		grid-row: 1 / span 10;
	}
	.kf-layout-beliefs > p {
		grid-column: 2;
		max-width: 36rem;
	}
	.kf-layout-beliefs > p:first-of-type {
		margin-top: 0.4rem;
	}
}

/* ---------- Lanes: the 2 ways we help ---------- */

.kf-layout-lanes > .kf-lane-panels {
	max-width: none;
	gap: 0;
	margin-top: 2rem;
	align-items: stretch !important;
}
.kf-lane-panel {
	background: var(--kf-band);
	color: var(--wp--preset--color--paper);
	padding: clamp(2rem, 4.5vw, 4rem);
}
.kf-lane-panel h3 {
	margin: 0 0 1rem;
	color: var(--wp--preset--color--paper);
	font-size: clamp(2rem, 3.1vw, 2.6rem);
	font-weight: 700;
	line-height: 1.02;
}
.kf-lane-panel .kf-lede {
	font-size: 1.375rem;
	line-height: 1.35;
}
.kf-lane-get .kf-lede {
	color: var(--wp--preset--color--gold);
}
.kf-lane-keep .kf-lede {
	color: var(--wp--preset--color--paper);
}
.kf-lane-panel a {
	color: var(--wp--preset--color--paper);
	text-decoration-color: var(--wp--preset--color--gold);
}
.kf-lane-panel a:focus-visible {
	outline-color: var(--wp--preset--color--gold);
}
.kf-lane-panel ul.wp-block-list {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0;
}
.kf-lane-panel ul.wp-block-list > li {
	padding: 0.55rem 0 0.55rem 1.6rem;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--paper) 22%, transparent);
	position: relative;
}
.kf-lane-panel ul.wp-block-list > li::before {
	content: "\2192";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--gold);
}
.kf-lane-panel .kf-start {
	margin-top: 2rem;
	font-size: 1.125rem;
}
.kf-lane-panel .kf-more {
	margin-top: 1.5rem;
	font-weight: 700;
	font-size: 1.1875rem;
}
.kf-lane-panel .kf-more a::after {
	content: "\00a0\2192";
}

/* ---------- Aside: a quiet note, set apart by rules ---------- */

.kf-layout-aside {
	padding-top: clamp(2.5rem, 6vw, 4rem);
}
.kf-layout-aside > h2,
.kf-layout-aside > p {
	max-width: none;
}
.kf-layout-aside > h2 {
	font-size: 1.625rem;
	margin: 0 0 0.75rem;
	max-width: 28ch;
}
@media (min-width: 900px) {
	.kf-layout-aside {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		column-gap: clamp(2rem, 5vw, 5rem);
		align-items: baseline;
	}
	.kf-layout-aside > p {
		max-width: 44rem;
		margin-top: 0;
	}
}
.kf-layout-aside::after {
	content: "";
	grid-column: 1 / -1;
	display: block;
	height: 1px;
	margin-top: clamp(2.5rem, 6vw, 4rem);
	background: var(--wp--preset--color--rule);
	opacity: 0.6;
}

/* ---------- Quote: one statement on a gold band ---------- */

.kf-layout-quote {
	background: var(--wp--preset--color--gold);
	padding-block: clamp(3.5rem, 8vw, 6rem);
	margin-top: clamp(3.5rem, 8vw, 6.5rem) !important;
}
.kf-layout-quote > .kf-quote-text {
	max-width: 54rem;
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(1.9rem, 4vw, 3.25rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink);
}

/* ---------- Lists ---------- */

.kf-section ul.wp-block-list:not(.kf-journey) {
	list-style: none;
	padding-left: 0;
}
.kf-section ul.wp-block-list:not(.kf-journey) > li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.7rem;
}
.kf-section ul.wp-block-list:not(.kf-journey) > li::before {
	content: "\2013";
	position: absolute;
	left: 0;
	color: var(--kf-accent);
	font-weight: 700;
}
.kf-section .kf-lane-panel ul.wp-block-list > li::before {
	content: "\2192";
	color: var(--wp--preset--color--gold);
	font-weight: 400;
}

.kf-section ol.wp-block-list {
	list-style: none;
	padding-left: 0;
	counter-reset: kf-step;
}
.kf-section ol.wp-block-list > li {
	counter-increment: kf-step;
	position: relative;
	padding: 0 0 1.1rem 3rem;
}
.kf-section ol.wp-block-list > li::before {
	content: counter(kf-step);
	position: absolute;
	left: 0;
	top: -0.2rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	color: var(--kf-accent);
}

/* The customer journey: one line with a stop for each moment. */
.kf-section ul.kf-journey {
	list-style: none;
	padding: 0;
	margin: 2.5rem 0;
	max-width: none;
	display: flex;
	flex-direction: column;
}
.kf-journey > li {
	position: relative;
	padding: 0 0 1rem 1.75rem;
	border-left: 2px solid var(--kf-accent);
	margin-left: 0.4rem;
	font-size: 1.125rem;
}
.kf-journey > li::before {
	content: "";
	position: absolute;
	left: -0.45rem;
	top: 0.35rem;
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 50%;
	background: var(--wp--preset--color--paper);
	border: 2px solid var(--kf-accent);
	box-sizing: border-box;
}
.kf-journey > li:nth-child(2) {
	font-weight: 700;
}
.kf-journey > li:nth-child(2)::before {
	background: var(--kf-accent);
}
@media (min-width: 900px) {
	.kf-section ul.kf-journey {
		flex-direction: row;
	}
	.kf-journey > li {
		flex: 1;
		border-left: 0;
		border-top: 2px solid var(--kf-accent);
		margin: 0;
		padding: 1.1rem 0.5rem 0 0;
		font-size: 1.0625rem;
	}
	.kf-journey > li::before {
		left: 0;
		top: -0.5rem;
	}
}

/* Guarantee and early check-in: the bold lead gets the marker. */
.kf-callout > strong:first-child {
	background: linear-gradient(transparent 58%, color-mix(in srgb, var(--wp--preset--color--gold) 55%, transparent) 58%);
}

/* ---------- Stages: how a lane works, in order ---------- */

.kf-layout-stages {
	counter-reset: kf-stage;
}
.kf-layout-stages > .kf-stage {
	max-width: 56rem;
	counter-increment: kf-stage;
	position: relative;
	padding: 2.25rem 0 1.5rem;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--rule) 70%, transparent);
}
.kf-stage > * {
	max-width: var(--kf-measure);
}
.kf-stage::before {
	content: counter(kf-stage);
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(3rem, 6vw, 4.5rem);
	font-weight: 700;
	line-height: 0.9;
	color: var(--kf-accent);
	margin-bottom: 0.75rem;
}
@media (min-width: 900px) {
	.kf-layout-stages > .kf-stage {
		display: grid;
		grid-template-columns: 7rem minmax(0, 1fr);
		column-gap: 1rem;
	}
	.kf-stage::before {
		grid-row: 1 / span 20;
		margin: 0;
	}
	.kf-stage > * {
		grid-column: 2;
	}
}
.kf-stage h3 {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
}
.kf-stage .kf-stage-meta {
	margin-top: 0.35rem;
	font-style: italic;
	color: var(--wp--preset--color--slate);
}

/* ---------- Questions ---------- */

.kf-section .wp-block-details {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--rule) 70%, transparent);
	padding: 1.1rem 0;
	margin: 0;
}
.kf-section .wp-block-details:last-of-type {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--rule) 70%, transparent);
}
.kf-section .wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	list-style: none;
	position: relative;
	padding-right: 2.25rem;
}
.kf-section .wp-block-details summary::-webkit-details-marker {
	display: none;
}
.kf-section .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: -0.3rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--kf-accent);
}
.kf-section .wp-block-details[open] summary::after {
	content: "\2212";
}
.kf-section .wp-block-details > :not(summary) {
	margin-top: 0.75rem;
}

/* ---------- Field Guides list ---------- */

.kf-guides-list .wp-block-post-template {
	list-style: none;
	padding: 0;
	margin: 0;
}
.kf-guides-list .wp-block-post {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--rule) 70%, transparent);
	padding: 1.1rem 0;
}
.kf-guides-list .wp-block-post-title {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
}
.kf-guides-list .wp-block-post-title a {
	text-decoration: none;
}
.kf-guides-list .wp-block-post-title a:hover {
	text-decoration: underline;
}
.kf-guides-list .wp-block-post-excerpt {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Closing call to action ---------- */

.kf-cta {
	margin-top: clamp(4rem, 9vw, 7rem) !important;
	padding-block: clamp(4rem, 9vw, 7rem);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}
.kf-cta > * {
	max-width: 40rem;
}
.kf-cta > h2 {
	color: var(--wp--preset--color--paper);
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	font-weight: 700;
	max-width: 18ch;
	margin-bottom: 1.25rem;
}
.kf-cta > p:not(.kf-meta) {
	font-size: var(--wp--preset--font-size--large);
}
.kf-cta .wp-block-buttons {
	margin-top: 2rem;
}
.kf-cta .kf-meta,
.kf-cta .kf-meta a,
.kf-cta a {
	color: var(--wp--preset--color--paper);
}
.kf-cta a {
	text-decoration-color: var(--wp--preset--color--gold);
}

/* The closing section's second column: every way to reach us. */
.kf-cta ul.kf-contact-list {
	list-style: none;
	padding: 0;
	margin: 2.5rem 0 0;
}
.kf-cta ul.kf-contact-list > li {
	padding: 1rem 0;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--paper) 25%, transparent);
	font-size: 1.25rem;
}
.kf-cta ul.kf-contact-list > li:last-child {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--paper) 25%, transparent);
}
.kf-cta ul.kf-contact-list > li > strong:first-child {
	display: block;
	font-style: italic;
	font-weight: 400;
	font-size: 1.0625rem;
	color: var(--wp--preset--color--gold-light);
}
@media (min-width: 900px) {
	.kf-cta:has(> .kf-contact-list) {
		display: grid;
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		column-gap: clamp(3rem, 7vw, 7rem);
		align-items: start;
	}
	.kf-cta:has(> .kf-contact-list) > * {
		grid-column: 1;
	}
	.kf-cta:has(> .kf-contact-list) > .kf-contact-list {
		grid-column: 2;
		grid-row: 1 / span 6;
		margin: 0.5rem 0 0;
		max-width: 26rem;
	}
	.kf-cta > .kf-contact-list,
	.kf-cta > .kf-contact-list > li {
		margin-block-start: 0;
	}
}

/* ---------- Contact page: form left, what happens next right ---------- */

.kf-hero-aside {
	margin-top: 3rem;
}
.kf-hero-aside > h3 {
	margin: 0 0 1rem;
	font-size: 1.625rem;
}
.kf-hero-aside > h3:not(:first-child) {
	margin-top: 2.25rem;
}
.kf-hero-aside ol.wp-block-list {
	list-style: none;
	padding-left: 0;
	counter-reset: kf-step;
}
.kf-hero-aside ol.wp-block-list > li {
	counter-increment: kf-step;
	position: relative;
	padding: 0 0 1.1rem 2.75rem;
}
.kf-hero-aside ol.wp-block-list > li::before {
	content: counter(kf-step);
	position: absolute;
	left: 0;
	top: -0.15rem;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--teal);
}
.kf-hero-aside ul.kf-contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.kf-hero-aside ul.kf-contact-list > li {
	padding: 0.85rem 0;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--rule) 70%, transparent);
	font-size: 1.1875rem;
}
.kf-hero-aside ul.kf-contact-list > li:last-child {
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--rule) 70%, transparent);
}
.kf-hero-aside ul.kf-contact-list > li > strong:first-child {
	display: block;
	font-style: italic;
	font-weight: 400;
	font-size: 1.0625rem;
	color: var(--wp--preset--color--slate);
}
@media (min-width: 960px) {
	.kf-hero-page:has(> .kf-hero-aside) {
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		column-gap: clamp(3rem, 7vw, 7rem);
		align-items: start;
	}
	.kf-hero-page:has(> .kf-hero-aside) > * {
		grid-column: 1;
	}
	.kf-hero-page:has(> .kf-hero-aside) > .kf-hero-aside {
		grid-column: 2;
		grid-row: 1 / span 8;
		margin-top: 0.75rem;
		max-width: 28rem;
	}
}

/* ---------- Contact form (Contact Form 7) ---------- */

.wpcf7 {
	max-width: 36rem;
	margin-top: 2.5rem;
}
.wpcf7-form p {
	margin: 0 0 1.4rem;
}
.wpcf7-form label {
	display: block;
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.35;
}
.wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.45rem;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.8rem 0.9rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.1875rem;
	font-weight: 400;
	color: var(--wp--preset--color--ink);
	background: #fff;
	border: 1px solid var(--wp--preset--color--slate);
	border-radius: 4px;
}
.wpcf7-form textarea {
	min-height: 9rem;
	resize: vertical;
}
.wpcf7-form :is(input, select, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--teal);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--ink);
}
.wpcf7-form input[type="submit"] {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.1875rem;
	font-weight: 700;
	padding: 0.85em 1.75em;
	border-radius: 4px;
	border: 1px solid var(--wp--preset--color--ink);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	transition: background-color 0.15s ease;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form input[type="submit"]:focus-visible {
	background: var(--wp--preset--color--teal);
	border-color: var(--wp--preset--color--teal);
}
.wpcf7-spinner {
	vertical-align: middle;
}
/* Cloudflare Turnstile sits above Send, spaced like the fields. Its frame is at least
   300px wide, so on the narrowest phones it borrows the right gutter instead of
   causing a sideways scroll. */
.wpcf7-turnstile {
	margin: 0 0 1.4rem;
}
@media (max-width: 359px) {
	.wpcf7-turnstile {
		margin-inline-end: -20px;
	}
}
.wpcf7-not-valid-tip {
	margin-top: 0.4rem;
	font-size: 1rem;
	font-weight: 400;
	color: var(--wp--preset--color--rust);
}
.wpcf7-form .wpcf7-not-valid {
	border-color: var(--wp--preset--color--rust);
}
.wpcf7 form .wpcf7-response-output {
	margin: 1.25rem 0 0;
	padding: 0.9rem 1.1rem;
	border: 2px solid var(--wp--preset--color--teal);
	border-radius: 4px;
	font-size: 1.0625rem;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
	border-color: var(--wp--preset--color--rust);
}

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

.kf-header {
	padding: 1.25rem var(--kf-inline);
}
.kf-header-inner {
	gap: 1.5rem;
}
.kf-logo {
	margin: 0;
	line-height: 0;
	--kf-logo-w: 100px;
}
/* Fixed sizes (with !important) so the editor's image resize box matches the live page. */
.wp-block-image.kf-logo,
.wp-block-image.kf-logo .components-resizable-box__container,
.wp-block-image.kf-logo img {
	width: var(--kf-logo-w) !important;
	height: auto !important;
	max-width: none;
}
.kf-logo img {
	display: block;
	aspect-ratio: 842 / 524;
}
.kf-header-nav {
	gap: 2rem;
}
.kf-header .wp-block-navigation a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--teal);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}
.kf-header .wp-block-buttons .wp-block-button__link {
	font-size: 1.0625rem !important;
	padding: 0.65em 1.2em !important;
}
.kf-header .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	padding: var(--kf-gutter);
	background: var(--wp--preset--color--paper);
}
.kf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: 1.25rem;
	font-size: 1.75rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
}
/* "Let's talk" lives in the header button on wide screens and in the open menu on phones. */
.kf-header .kf-nav-contact {
	display: none !important;
}
.kf-header .is-menu-open .kf-nav-contact {
	display: flex !important;
	margin-top: 1rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--rule);
}
@media (max-width: 781px) {
	.kf-logo {
		--kf-logo-w: 80px;
	}
}
@media (max-width: 899px) {
	.kf-header .wp-block-buttons {
		display: none;
	}
}

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

.kf-footer {
	padding: clamp(3rem, 7vw, 4.5rem) var(--kf-inline) 2rem;
	font-size: var(--wp--preset--font-size--small);
}
.kf-footer a {
	color: var(--wp--preset--color--ink);
}
.kf-footer-logo {
	margin: 0 0 1rem;
	line-height: 0;
}
.wp-block-image.kf-footer-logo,
.wp-block-image.kf-footer-logo .components-resizable-box__container,
.wp-block-image.kf-footer-logo img {
	width: 120px !important;
	height: auto !important;
	max-width: none;
}
.kf-footer-logo img {
	display: block;
	aspect-ratio: 842 / 524;
}
/* The brand tagline: present, never loud. */
.kf-footer .kf-tagline {
	margin: 0 0 1rem;
	font-style: italic;
	font-size: 1.125rem;
	color: var(--wp--preset--color--slate);
}
.kf-footer h2 {
	margin: 0 0 0.8rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0;
}
.kf-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.kf-footer li {
	margin-bottom: 0.45rem;
}
.kf-footer-columns {
	gap: 2rem;
}
.kf-footer-base {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--rule) 60%, transparent);
	font-size: 1rem;
	color: var(--wp--preset--color--slate);
}

/* ---------- Simple pages (404, Field Guide posts, Field Guides list) ---------- */

.kf-page-head {
	padding-top: clamp(3rem, 8vw, 6rem);
	padding-bottom: 1.5rem;
}
.kf-label {
	font-style: italic;
	font-size: 1.125rem;
	color: var(--wp--preset--color--slate);
	margin-bottom: 0.75rem;
}
.kf-label a {
	color: inherit;
}
.kf-prose {
	box-sizing: border-box;
	max-width: calc(42rem + 2 * var(--kf-gutter));
	margin-inline: auto;
	padding-inline: var(--kf-gutter);
	padding-bottom: 3rem;
}
.kf-prose h2 {
	font-size: 2.125rem;
	margin-top: 2.75rem;
}

/* Visible build placeholder (local only; replaced in Step 3). */
.kf-placeholder {
	border: 1px dashed var(--wp--preset--color--slate);
	padding: 1rem 1.25rem;
	font-size: 1rem;
	font-style: italic;
	color: var(--wp--preset--color--slate);
}

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