/*
 * Fallback for WordPress global styles (theme.json output).
 *
 * The live site strips the `global-styles-inline-css` block (a common
 * "performance" optimization that breaks block themes), which removes every
 * "--wp--preset" and "--wp--custom" variable, the base element styles, and
 * the core layout rules that foothill.css and the block markup depend on.
 *
 * This file mirrors what WordPress generates from theme.json so the theme
 * renders correctly either way. Values must be kept in sync with theme.json.
 * Low-specificity :where() selectors let the real global styles win when
 * they are present.
 */

:root {
	/* Color presets */
	--wp--preset--color--base: #F7F2E8;
	--wp--preset--color--surface: #FFFDF8;
	--wp--preset--color--surface-alt: #F1EADB;
	--wp--preset--color--border: #E5DAC6;
	--wp--preset--color--border-strong: #C9BCA2;
	--wp--preset--color--ink: #33302A;
	--wp--preset--color--body: #5C5648;
	--wp--preset--color--muted: #8B8272;
	--wp--preset--color--terracotta: #B25B33;
	--wp--preset--color--terracotta-dark: #8F4626;
	--wp--preset--color--cream: #FBF3EA;
	--wp--preset--color--olive: #6B7052;
	--wp--preset--color--gold: #A08434;
	--wp--preset--color--footer-text: #D8CFBE;

	/* Font family presets */
	--wp--preset--font-family--nunito-sans: "Nunito Sans", sans-serif;
	--wp--preset--font-family--lora: Lora, serif;

	/* Font size presets */
	--wp--preset--font-size--small: 13.5px;
	--wp--preset--font-size--medium: 14.5px;
	--wp--preset--font-size--large: 16.5px;
	--wp--preset--font-size--x-large: 17.5px;
	--wp--preset--font-size--xx-large: 23px;

	/* Spacing presets */
	--wp--preset--spacing--20: 14px;
	--wp--preset--spacing--30: 24px;
	--wp--preset--spacing--40: 28px;
	--wp--preset--spacing--50: var(--wp--custom--gutter);
	--wp--preset--spacing--60: 56px;
	--wp--preset--spacing--70: 64px;
	--wp--preset--spacing--80: 80px;

	/* Custom tokens */
	--wp--custom--gutter: 48px;
	--wp--custom--radius--card: 14px;
	--wp--custom--radius--card-large: 16px;
	--wp--custom--radius--input: 10px;
	--wp--custom--radius--pill: 999px;
	--wp--custom--shadow--floating-card: 0 8px 24px rgba(51, 48, 42, .10);
	--wp--custom--shadow--card-hover: 0 6px 18px rgba(51, 48, 42, .08);
	--wp--custom--photo-stripes: repeating-linear-gradient(45deg, #EDE3D0, #EDE3D0 14px, #E6DAC3 14px, #E6DAC3 28px);
	--wp--custom--photo-stripes-map: repeating-linear-gradient(45deg, #E3E0D5, #E3E0D5 14px, #DAD6C7 14px, #DAD6C7 28px);

	/* Layout sizes */
	--wp--style--global--content-size: 760px;
	--wp--style--global--wide-size: 1000px;
}

/* Base element styles (theme.json "styles") */

:where(body) {
	margin: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--nunito-sans);
	font-size: 15.5px;
	line-height: 1.65;
}

:where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--wp--preset--font-family--lora);
	font-weight: 600;
	line-height: 1.15;
	color: var(--wp--preset--color--ink);
}

:where(h1) {
	font-size: clamp(32px, 5.5vw + 12px, 46px);
	line-height: 1.15;
}

:where(h2) {
	font-size: clamp(26px, 3.5vw + 12px, 34px);
}

:where(h3) {
	font-size: clamp(20px, 2vw + 12px, 24px);
}

:where(h4) {
	font-size: 20px;
}

:where(a:where(:not(.wp-element-button))) {
	color: var(--wp--preset--color--terracotta);
	text-decoration: none;
}

:where(a:where(:not(.wp-element-button))):hover {
	color: var(--wp--preset--color--terracotta-dark);
}

:where(.wp-element-button, .wp-block-button__link) {
	display: inline-block;
	box-sizing: border-box;
	background: var(--wp--preset--color--terracotta);
	color: var(--wp--preset--color--cream);
	font-family: var(--wp--preset--font-family--nunito-sans);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	border: 0;
	border-radius: 999px;
	padding: 14px 28px;
	text-decoration: none;
	cursor: pointer;
}

:where(.wp-element-button, .wp-block-button__link):hover {
	background: var(--wp--preset--color--terracotta-dark);
	color: var(--wp--preset--color--cream);
}

/* Core layout rules normally emitted with global styles */

.wp-site-blocks > * {
	margin-block-start: 24px;
	margin-block-end: 0;
}

.wp-site-blocks > :first-child {
	margin-block-start: 0;
}

:where(.is-layout-flow) > * {
	margin-block-start: 24px;
	margin-block-end: 0;
}

:where(.is-layout-flow) > :first-child {
	margin-block-start: 0;
}

:where(.is-layout-flow) > :last-child {
	margin-block-end: 0;
}

:where(.is-layout-constrained) > * {
	margin-block-start: 24px;
	margin-block-end: 0;
}

:where(.is-layout-constrained) > :first-child {
	margin-block-start: 0;
}

:where(.is-layout-constrained) > :last-child {
	margin-block-end: 0;
}

:where(.is-layout-constrained) > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto !important;
	margin-right: auto !important;
}

:where(.is-layout-constrained) > .alignwide {
	max-width: var(--wp--style--global--wide-size);
}

:where(.is-layout-flex) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
}
