:root {
	--paper: #fbfaf7;
	--panel: #f3f1ec;
	--ink: #1b1d21;
	--muted: #5b616c;
	--rule: #e4e0d8;
	--accent: #1d6f5a;
	--accent-ink: #ffffff;
	--accent-soft: #e2efe9;
	--code-bg: #ece9e2;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--wide: 68rem;
	--measure: 42rem;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #111315;
		--panel: #181b1e;
		--ink: #ebe9e4;
		--muted: #a0a6ae;
		--rule: #2a2e33;
		--accent: #62c9a8;
		--accent-ink: #0c1d17;
		--accent-soft: #15302a;
		--code-bg: #1f2327;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 17px/1.6 var(--font);
	text-rendering: optimizeLegibility;
}

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

a:hover {
	text-decoration-thickness: 2px;
}

a[href^="tel:"] {
	white-space: nowrap;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.skip {
	position: absolute;
	left: -999px;
}

.skip:focus {
	left: 1rem;
	top: 1rem;
	z-index: 10;
	padding: 0.5rem 0.75rem;
	background: var(--paper);
}

.wrap {
	max-width: var(--wide);
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Header and footer */

.site-header {
	border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--ink);
	font-size: 1.1rem;
	font-weight: 650;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.mark {
	width: 28px;
	height: 28px;
}

.mark rect {
	fill: var(--accent);
}

.mark path {
	fill: none;
	stroke: var(--paper);
	stroke-width: 3.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nav ul {
	display: flex;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav a {
	color: var(--muted);
	font-size: 0.95rem;
	text-decoration: none;
}

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

main {
	padding: 3.5rem 0 4.5rem;
}

.site-footer {
	padding: 2rem 0 3rem;
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-size: 0.9rem;
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
}

.site-footer p {
	margin: 0;
}

.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a {
	color: var(--muted);
}

/* Type */

h1,
h2,
h3 {
	line-height: 1.2;
	letter-spacing: -0.02em;
}

h1 {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
	font-weight: 700;
}

h2 {
	margin: 2.75rem 0 0.75rem;
	font-size: 1.45rem;
}

h3 {
	margin: 1.75rem 0 0.4rem;
	font-size: 1.08rem;
}

h2[id],
h3[id] {
	scroll-margin-top: 1.5rem;
}

p,
ul,
ol,
dl {
	margin: 0 0 1rem;
}

li {
	margin-bottom: 0.4rem;
}

code {
	padding: 0.1em 0.35em;
	border-radius: 4px;
	background: var(--code-bg);
	font-family: var(--mono);
	font-size: 0.88em;
}

.eyebrow {
	margin-bottom: 0.75rem;
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lead {
	max-width: 38rem;
	color: var(--muted);
	font-size: 1.2rem;
}

.prose {
	max-width: var(--measure);
}

/* Home */

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.button {
	display: inline-block;
	padding: 0.65rem 1.1rem;
	border: 1px solid var(--accent);
	border-radius: 8px;
	font-size: 0.98rem;
	font-weight: 600;
	text-decoration: none;
}

.button-primary {
	background: var(--accent);
	color: var(--accent-ink);
}

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

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1rem;
	margin-top: 3.5rem;
}

.card {
	display: flex;
	flex-direction: column;
	padding: 1.4rem 1.4rem 1.2rem;
	border: 1px solid var(--rule);
	border-radius: 10px;
	background: var(--panel);
}

.card h2 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
}

.card p {
	flex: 1;
	color: var(--muted);
	font-size: 0.97rem;
}

.card .more {
	font-weight: 600;
	text-decoration: none;
}

/* Support */

.contact {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.6rem 1.5rem;
	max-width: var(--measure);
	margin: 2rem 0 0;
	padding: 1.4rem;
	border: 1px solid var(--rule);
	border-radius: 10px;
	background: var(--panel);
}

.contact dt {
	color: var(--muted);
}

.contact dd {
	margin: 0;
	font-weight: 600;
}

.contact dd a {
	text-decoration: none;
}

/* Docs */

.crumbs {
	margin-bottom: 1rem;
	color: var(--muted);
	font-size: 0.9rem;
}

.crumbs a {
	color: var(--muted);
}

.docs {
	display: grid;
	gap: 2rem;
}

.doc-body > h2:first-child {
	margin-top: 0;
}

.toc {
	font-size: 0.92rem;
}

.toc p {
	margin-bottom: 0.5rem;
	font-weight: 650;
}

.toc ul {
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--rule);
	list-style: none;
}

.toc li {
	margin: 0;
}

.toc a {
	display: block;
	padding: 0.25rem 0 0.25rem 0.9rem;
	color: var(--muted);
	text-decoration: none;
}

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

/* Narrow screens read title, contents, body in DOM order; wide screens
   put the contents in a sticky column beside the title and body. */
@media (min-width: 62rem) {
	.docs {
		grid-template-columns: 13rem minmax(0, 1fr);
		grid-template-areas:
			"toc head"
			"toc body";
		column-gap: 3.5rem;
		row-gap: 1rem;
	}

	.doc-head {
		grid-area: head;
	}

	.doc-body {
		grid-area: body;
	}

	.toc {
		grid-area: toc;
		position: sticky;
		top: 1.5rem;
		align-self: start;
	}
}

.steps {
	padding: 0;
	counter-reset: step;
	list-style: none;
}

.steps li {
	position: relative;
	margin-bottom: 0.8rem;
	padding-left: 2.4rem;
	counter-increment: step;
}

.steps li::before {
	content: counter(step);
	position: absolute;
	top: 0.1rem;
	left: 0;
	display: grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 0.85rem;
	font-weight: 700;
}

.note {
	padding: 0.85rem 1rem;
	border-radius: 8px;
	background: var(--accent-soft);
	font-size: 0.96rem;
}

.doclist {
	display: grid;
	gap: 1.25rem;
	max-width: var(--measure);
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.doclist .title {
	font-size: 1.1rem;
	font-weight: 650;
	text-decoration: none;
}

.doclist p {
	margin: 0.25rem 0 0;
	color: var(--muted);
}
