/* CDA foundation · warm paper, editorial type, restrained interaction */
html,
body {
	overflow-x: clip;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--c-paper);
	color: var(--c-ink);
	font-family: var(--font-body);
	font-size: var(--text-body);
	line-height: 1.65;
}

main {
	overflow: clip;
}

/* WordPress injects the theme block gap (1.5rem) as margins between top-level
   template blocks and template-part wrappers; it read as stray coloured strips
   under the header, between sections, above the record outline band and before
   the footer. Every top-level block carries its own padding instead. */
.wp-site-blocks > *,
main.wp-block-group,
main.wp-block-group > * {
	margin-block: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-display);
	font-style: normal;
	font-weight: 700;
	letter-spacing: -0.03em;
	min-width: 0;
	overflow-wrap: anywhere;
}

h1 { font-size: var(--text-h1); line-height: 0.94; }
h2 { font-size: var(--text-h2); line-height: 1; }
h3 { font-size: var(--text-h3); line-height: 1.08; }
h4 { font-size: var(--text-h4); line-height: 1.15; }

p,
li {
	max-width: 75ch;
}

img {
	height: auto;
	max-width: 100%;
}

a {
	text-underline-offset: 0.2em;
	transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), text-decoration-color var(--dur-fast) var(--ease-out);
}

a:hover {
	color: var(--c-rust-hover);
}

a:active {
	color: var(--c-rust);
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 4px;
}

.cda-shell {
	margin-inline: auto;
	width: min(calc(100% - var(--space-8)), var(--container));
}

.cda-section {
	padding-block: clamp(var(--space-10), 8.5vw, var(--space-11));
}

.cda-section--tight {
	padding-block: clamp(var(--space-9), 7vw, var(--space-10));
}

.cda-section__heading {
	max-width: var(--reading-width);
}

.cda-section__heading h2 {
	margin: 0;
}

.cda-section__heading > p {
	color: var(--c-muted);
	font-size: var(--text-body);
	line-height: 1.65;
	margin-bottom: 0;
	max-width: 60ch;
}

.cda-field-label,
.cda-kicker,
.cda-eyebrow,
.cda-hero__folio {
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.cda-field-label,
.cda-eyebrow,
.cda-hero__folio {
	color: var(--c-rust);
}

.cda-kicker,
.cda-muted {
	color: var(--c-muted);
}

.wp-block-button__link {
	align-items: center;
	background: var(--c-rust);
	border: var(--rule-thin) solid var(--c-rust);
	border-radius: var(--radius-xs);
	color: var(--c-paper);
	display: inline-flex;
	font-size: var(--text-sm);
	font-weight: 700;
	justify-content: center;
	min-height: 3rem;
	padding: 0 var(--space-5);
	text-decoration: none;
	white-space: nowrap;
}

.wp-block-button__link:hover {
	background: var(--c-rust-hover);
	border-color: var(--c-rust-hover);
	color: var(--c-paper);
}

.wp-block-button__link:active {
	transform: translateY(1px);
}

.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--c-ink);
	color: var(--c-ink);
}

.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--c-ink);
	color: var(--c-paper);
}

:where(.wp-block-button__link, button)[aria-disabled="true"],
:where(.wp-block-button__link, button):disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

@media (max-width: 74.99rem) {
	.cda-shell {
		width: min(calc(100% - var(--space-8)), var(--container));
	}
}

@media (max-width: 47.99rem) {
	body {
		font-size: 1.0625rem;
	}

	.cda-shell {
		width: min(calc(100% - 2.5rem), var(--container));
	}

	.cda-section,
	.cda-section--tight {
		padding-block: clamp(var(--space-8), 16vw, 4.5rem);
	}
}

@media (max-width: 22.5rem) {
	.cda-shell {
		width: min(calc(100% - 2rem), var(--container));
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
