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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bb-color-canvas);
	color: var(--bb-color-ink);
	font-family: var(--bb-font-body);
	font-size: var(--bb-text-base);
	line-height: var(--bb-leading-body);
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--bb-color-primary); text-underline-offset: 0.2em; }
a:hover { color: var(--bb-color-primary-hover); }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--bb-color-focus);
	outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
	margin-block: 0 0.6em;
	font-family: var(--bb-font-display);
	font-weight: 600;
	line-height: var(--bb-leading-heading);
}
h1 { font-size: var(--bb-text-3xl); }
h2 { font-size: var(--bb-text-2xl); }
h3 { font-size: var(--bb-text-xl); }
p { margin-block: 0 1em; }

.bb-container { width: min(calc(100% - (2 * var(--bb-gutter))), var(--bb-width-content)); margin-inline: auto; }
.site-main { min-height: 45vh; padding-block: var(--bb-space-12) var(--bb-space-16); }
.bb-entry { max-width: var(--bb-width-prose); }
.bb-entry__title { overflow-wrap: anywhere; }
.bb-skip-link { position: fixed; top: var(--bb-space-2); left: var(--bb-space-2); z-index: 9999; padding: var(--bb-space-3) var(--bb-space-4); background: var(--bb-color-ink); color: var(--bb-color-surface); transform: translateY(-150%); }
.bb-skip-link:focus { transform: translateY(0); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@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; }
}
