:root {
	--paper: #f3efe6;
	--ink: #1c1b16;
	--muted: #5e5a50;
	--rule: #d4cfc3;
	--accent: #2c5f4e;
	--accent-ink: #f3efe6;
	--status: #8a3d1f;
	--danger: #8b2e2e;
	--focus: #2c5f4e;
	--code-bg: #e8e3d6;
	--max: 42rem;
	--wide: 58rem;
	--space: 1.25rem;
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	color: var(--ink);
	background: var(--paper);
	font-family: var(--font);
	font-size: 112.5%;
	line-height: 1.55;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--accent);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--ink);
}

:focus {
	outline: none;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.skip-link {
	position: absolute;
	left: 0.75rem;
	top: -3.5rem;
	z-index: 10;
	padding: 0.4rem 0.7rem;
	background: var(--ink);
	color: var(--paper);
	text-decoration: none;
}

.skip-link:focus {
	top: 0.75rem;
}

.wrap {
	width: min(var(--wide), calc(100% - 2rem));
	margin-inline: auto;
}

.prose {
	width: min(var(--max), 100%);
}

.site-header,
.site-footer {
	border-color: var(--rule);
	border-style: solid;
}

.site-header {
	border-width: 0 0 1px;
	padding-block: 0.9rem;
}

.site-header .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}

.wordmark {
	color: var(--ink);
	font-weight: 650;
	letter-spacing: -0.02em;
	text-decoration: none;
	font-size: 1.15rem;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1rem;
}

.site-nav a {
	color: var(--muted);
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: var(--ink);
}

.site-nav a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.site-nav a.nav-cta {
	color: var(--accent);
	font-weight: 600;
}

main {
	padding-block: 2.25rem 3.5rem;
}

.eyebrow {
	margin: 0 0 0.6rem;
	color: var(--status);
	font-size: 0.85rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

h1,
h2,
h3 {
	line-height: 1.2;
	letter-spacing: -0.03em;
	font-weight: 650;
}

h1 {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 5vw, 2.8rem);
	max-width: 16ch;
}

h1.wide {
	max-width: 22ch;
}

h2 {
	margin: 2.4rem 0 0.7rem;
	font-size: 1.35rem;
}

h3 {
	margin: 1.5rem 0 0.4rem;
	font-size: 1.05rem;
}

p,
li {
	color: var(--ink);
}

.lede,
.subhead {
	font-size: 1.12rem;
	color: var(--ink);
}

.muted,
.hint {
	color: var(--muted);
}

code,
.mono {
	font-family: var(--mono);
	font-size: 0.92em;
}

code {
	padding: 0.05em 0.28em;
	background: var(--code-bg);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin: 1.6rem 0 0;
}

.button,
button.button {
	display: inline-block;
	padding: 0.55rem 0.95rem;
	border: 2px solid var(--accent);
	border-radius: 2px;
	background: var(--accent);
	color: var(--accent-ink);
	font: inherit;
	font-weight: 650;
	text-decoration: none;
	cursor: pointer;
}

.button:hover,
button.button:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.button-secondary {
	background: transparent;
	color: var(--accent);
}

.button-secondary:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.beliefs {
	display: grid;
	gap: 1.1rem;
	margin: 2.4rem 0 0;
	padding: 0;
	list-style: none;
}

.beliefs > li {
	padding-left: 0.95rem;
	border-left: 3px solid var(--accent);
}

.beliefs h2 {
	margin: 0 0 0.3rem;
	font-size: 1.05rem;
}

.beliefs p {
	margin: 0;
}

.scene {
	margin: 2.4rem 0 0;
	padding: 1.1rem 1.15rem;
	border: 1px solid var(--rule);
}

.scene-example {
	margin: 1rem 0 0;
}

.scene-example summary {
	cursor: pointer;
	width: fit-content;
	font-weight: 650;
	color: var(--accent);
}

.scene-example summary:hover {
	color: var(--ink);
}

.scene-example[open] summary {
	margin-bottom: 0.75rem;
}

.scene-example p:last-child {
	margin-bottom: 0;
}

.steps {
	margin: 1rem 0 0;
	padding-left: 1.2rem;
}

.steps li + li {
	margin-top: 0.55rem;
}

.points dt {
	margin-top: 1.2rem;
	font-weight: 650;
}

.points dd {
	margin: 0.25rem 0 0;
}

.diagram {
	margin: 1.5rem 0;
	padding: 1rem 1.1rem;
	border: 1px solid var(--rule);
	background: #f8f5ee;
	overflow-x: auto;
}

.diagram img,
.diagram svg {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 48rem) {
	.diagram {
		width: min(var(--wide), calc(100vw - 2rem));
		margin-left: calc((min(var(--max), 100%) - min(var(--wide), calc(100vw - 2rem))) / 2);
	}
}

.diagram-alt {
	margin: 1rem 0 0;
}

.links {
	padding-left: 1.2rem;
}

.site-footer {
	border-width: 1px 0 0;
	padding-block: 1.2rem 2rem;
	color: var(--muted);
	font-size: 0.92rem;
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.2rem;
}

.form {
	display: grid;
	gap: 1.1rem;
	margin-top: 1.5rem;
}

.field {
	display: grid;
	gap: 0.3rem;
}

.field label,
.field .legend {
	font-weight: 650;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	max-width: 36rem;
	padding: 0.45rem 0.55rem;
	border: 1px solid #8d887b;
	border-radius: 2px;
	background: #fffdf8;
	color: var(--ink);
	font: inherit;
}

.field textarea {
	min-height: 7rem;
	resize: vertical;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
	border-color: var(--danger);
}

.field-error {
	color: var(--danger);
	font-size: 0.92rem;
}

.checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	max-width: 36rem;
}

.checkbox input {
	width: auto;
	margin-top: 0.3rem;
}

.warning {
	margin: 1.2rem 0 0;
	padding: 0.85rem 1rem;
	border-left: 3px solid var(--status);
	background: #efe4d6;
}

.honeypot {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-status[data-state="success"] {
	margin-top: 1rem;
	padding: 0.85rem 1rem;
	border-left: 3px solid var(--accent);
}

.form-status[data-state="error"] {
	margin-top: 1rem;
	padding: 0.85rem 1rem;
	border-left: 3px solid var(--danger);
}

@media (min-width: 48rem) {
	.beliefs {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.4rem;
	}

	.beliefs > li {
		padding: 0 0 0 0.95rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
