/* Reset and element defaults. */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}

body {
	margin: 0;
	background: var(--sr-paper);
	color: var(--sr-ink);
	font-family: var(--sr-font);
	font-size: var(--sr-step-0);
	line-height: 1.65;
	font-feature-settings: "kern", "liga";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--sr-3);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h1 { font-size: var(--sr-step-4); letter-spacing: -0.025em; }
h2 { font-size: var(--sr-step-3); }
h3 { font-size: var(--sr-step-2); }
h4 { font-size: var(--sr-step-1); }

p, ul, ol, dl, table, pre, blockquote, figure {
	margin: 0 0 var(--sr-4);
}

a {
	color: var(--sr-beacon);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--sr-motion);
}

a:hover { color: var(--sr-beacon-deep); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--sr-beacon);
	outline-offset: 2px;
	border-radius: var(--sr-radius-sm);
}

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

code, kbd, samp, pre {
	font-family: var(--sr-font-mono);
	font-size: 0.9em;
}

code {
	background: var(--sr-surface-sunk);
	padding: 0.1em 0.35em;
	border-radius: var(--sr-radius-sm);
	word-break: break-word;
}

pre {
	background: var(--sr-ink);
	color: #e6edf3;
	padding: var(--sr-4);
	border-radius: var(--sr-radius);
	overflow-x: auto;
	line-height: 1.55;
	font-size: var(--sr-step--1);
}

pre code {
	background: none;
	padding: 0;
	color: inherit;
}

blockquote {
	margin-inline: 0;
	padding: var(--sr-3) var(--sr-5);
	border-left: 3px solid var(--sr-beacon-line);
	color: var(--sr-graphite);
	background: var(--sr-beacon-soft);
	border-radius: 0 var(--sr-radius) var(--sr-radius) 0;
}

blockquote > :last-child { margin-bottom: 0; }

hr {
	border: 0;
	border-top: 1px solid var(--sr-line);
	margin: var(--sr-7) 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--sr-step--1);
}

th, td {
	text-align: left;
	padding: var(--sr-3);
	border-bottom: 1px solid var(--sr-line);
	vertical-align: top;
}

th {
	font-weight: 600;
	color: var(--sr-graphite);
	border-bottom: 1px solid var(--sr-line-strong);
	white-space: nowrap;
}

/* Wide content scrolls inside its own container; the page body never scrolls sideways. */
.sr-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sr-skip {
	position: absolute;
	left: -9999px;
	top: var(--sr-2);
	z-index: 100;
	background: var(--sr-ink);
	color: #fff;
	padding: var(--sr-2) var(--sr-4);
	border-radius: var(--sr-radius);
}

.sr-skip:focus {
	left: var(--sr-4);
}

.sr-wrap {
	width: min(100% - 2.5rem, var(--sr-width));
	margin-inline: auto;
}

.sr-wrap--narrow {
	width: min(100% - 2.5rem, var(--sr-width-narrow));
	margin-inline: auto;
}

.sr-prose > * + * { margin-top: var(--sr-4); }
.sr-prose p, .sr-prose li { max-width: var(--sr-measure); }
.sr-prose h2 { margin-top: var(--sr-7); scroll-margin-top: 6rem; }
.sr-prose h3 { margin-top: var(--sr-6); scroll-margin-top: 6rem; }
.sr-prose h2 + p, .sr-prose h3 + p { margin-top: var(--sr-3); }
.sr-prose ul, .sr-prose ol { padding-left: 1.35rem; }
.sr-prose li + li { margin-top: var(--sr-2); }
.sr-prose table { margin-block: var(--sr-5); }
.sr-prose img { border-radius: var(--sr-radius); border: 1px solid var(--sr-line); }
