html {
	scroll-behavior: smooth;
}

:root {
	--lud-surface-1: rgba(255, 253, 248, 0.84);
	--lud-surface-2: rgba(247, 243, 234, 0.62);
	--lud-surface-3: rgba(251, 250, 243, 0.98);
	--lud-surface-base: #fbfaf3;
	--lud-surface-panel: rgba(249, 246, 239, 0.88);
	--lud-surface-panel-soft: rgba(246, 242, 233, 0.74);
	--lud-surface-panel-deep: rgba(243, 238, 227, 0.82);
	--lud-line-soft: rgba(47, 79, 79, 0.22);
	--lud-line-soft-2: rgba(47, 79, 79, 0.16);
	--lud-line-strong: rgba(47, 79, 79, 0.38);
	--lud-line-active: rgba(58, 79, 94, 0.34);
	--lud-radius-sm: 4px;
	--lud-radius-md: 8px;
	--lud-ink-soft: rgba(104, 104, 104, 0.9);
	--lud-editorial-shell-max: 58rem;
	--lud-editorial-shell-pad: clamp(1.25rem, 2.2vw, 2rem);
	--lud-editorial-measure: 47ch;
	--lud-editorial-lead-measure: 42ch;
	--lud-editorial-body-size: clamp(1.04rem, 1rem + 0.12vw, 1.08rem);
	--lud-editorial-body-leading: 1.84;
	--lud-editorial-lead-size: clamp(1.08rem, 1.03rem + 0.18vw, 1.18rem);
	--lud-editorial-lead-leading: 1.86;
	--lud-editorial-text: #686868;
	--lud-editorial-ink: #2b2b2b;
	--lud-editorial-link: #3a4f5e;
	--lud-editorial-link-hover: #3a4f5e;
	--lud-editorial-link-line: rgba(58, 79, 94, 0.28);
	--lud-editorial-link-line-hover: rgba(58, 79, 94, 0.48);
	--lud-editorial-divider: #2f4f4f;
	--lud-editorial-focus: rgba(58, 79, 94, 0.18);
	--lud-ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
	--lud-link-color: var(--lud-editorial-link);
	--lud-link-hover: var(--lud-editorial-link-hover);
	--lud-link-line: var(--lud-editorial-link-line);
	--lud-link-line-hover: var(--lud-editorial-link-line-hover);
	--lud-focus-ring: var(--lud-editorial-focus);
	--wp--preset--color--institutional: var(--lud-editorial-link);
}

body {
	background: var(--wp--preset--color--base);
	color: var(--lud-editorial-text);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.wp-site-blocks {
	padding-bottom: 1px;
	overflow-x: clip;
}

.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > main,
.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0 !important;
}

.lud-home-hero-grid > p:empty,
.lud-footer-details p:empty,
.lud-site-footer p:empty {
	display: none !important;
}

.lud-front-page-shell,
.lud-page-shell,
.lud-single-shell,
.lud-archive-shell {
	position: relative;
}

.lud-home-kicker,
.lud-site-header-kicker {
	margin: 0 0 0.9rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.lud-site-brand-lockup {
	display: grid;
	gap: 0.2rem;
}

.lud-site-header-kicker {
	margin-bottom: 0.7rem;
	opacity: 0.9;
}

.lud-site-logo,
.wp-block-site-title.lud-site-logo,
.wp-block-site-title {
	margin: 0;
	line-height: 1;
	letter-spacing: -0.02em;
}

.wp-block-site-title a,
.wp-block-site-title a:visited {
	color: var(--lud-editorial-ink);
	text-decoration: none;
	transition: color 180ms ease, opacity 180ms ease;
}

.wp-block-site-title a:hover,
.wp-block-site-title a:focus-visible {
	opacity: 0.82;
}

a,
button,
input,
textarea,
select {
	transition:
		color 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease,
		opacity 180ms ease,
		text-decoration-color 180ms ease,
		box-shadow 180ms ease;
}

a {
	color: var(--lud-link-color);
	text-decoration-color: var(--lud-link-line);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--lud-link-hover);
	text-decoration-color: var(--lud-link-line-hover);
}

:where(.wp-site-blocks :focus) {
	outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.wp-block-button .wp-block-button__link:focus-visible,
.wp-block-navigation .wp-block-navigation-item__content:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(58, 79, 94, 0.16);
	border-radius: 0.7rem;
}

.wp-block-navigation .wp-block-navigation-item__content:focus-visible {
	border-radius: 999px;
}

.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.86rem 1.22rem;
	border: 1px solid var(--lud-editorial-link);
	border-radius: 6px;
	background: var(--lud-editorial-link);
	color: #fff;
	font-size: 0.94rem;
	font-weight: 500;
	line-height: 1.4;
	text-transform: none;
	box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--lud-editorial-link);
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible {
	background: var(--lud-editorial-link-hover);
	border-color: var(--lud-editorial-link-hover);
}

.wp-block-post-title,
.wp-block-query-title,
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
	text-wrap: balance;
}

.wpcf7 form {
	margin-top: var(--wp--preset--spacing--30);
	max-width: 46rem;
}

.wpcf7 input,
.wpcf7 textarea {
	display: block;
	width: 100%;
	padding: 1rem 1.05rem;
	border: 1px solid var(--lud-line-strong);
	border-radius: 6px;
	background: rgba(255, 253, 248, 0.98);
	box-sizing: border-box;
	font: inherit;
	color: var(--lud-editorial-ink);
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: rgba(104, 104, 104, 0.8);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
	border-color: var(--lud-editorial-link);
	background: rgba(255, 254, 249, 1);
	outline: none;
	box-shadow: 0 0 0 3px rgba(58, 79, 94, 0.12);
}

.wpcf7 textarea {
	min-height: 180px;
	resize: vertical;
}

.wpcf7 p {
	margin-bottom: 1rem;
}

.wpcf7 .wpcf7-submit {
	width: auto;
	cursor: pointer;
	background: var(--lud-editorial-link);
	color: #fff;
	border: 1px solid var(--lud-editorial-link);
	border-radius: 6px;
	padding: 0.86rem 1.22rem;
	font-weight: 500;
}

.wpcf7 .wpcf7-submit:hover,
.wpcf7 .wpcf7-submit:focus-visible {
	background: var(--lud-editorial-link-hover);
	border-color: var(--lud-editorial-link-hover);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
