/* Reset */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
	margin: 0;
}

ul[class],
ol[class] {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration: none;
}

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

.skip-link:focus {
	position: fixed;
	top: var(--space-4);
	left: var(--space-4);
	z-index: 999;
	width: auto;
	height: auto;
	padding: var(--space-3) var(--space-4);
	clip: auto;
	background: var(--color-bg);
	color: var(--color-text);
}

/*
 * Cross-axis stretch guard.
 *
 * Flex/grid containers stretch their children by default, so an intrinsically
 * sized pill dropped into a flex COLUMN silently becomes full width. Scope this
 * to pills only — never img/svg, which top-aligns centred icons.
 *
 * `width: fit-content` rather than `align-self: flex-start`: an explicit
 * cross-size opts the item out of stretching while leaving `align-self: auto`,
 * so a parent that says `align-items: center` still gets to centre it. Setting
 * `align-self` would beat that parent regardless of specificity.
 */
:where(.btn, .label, .icon-btn) { width: fit-content; }
