/* Modern CSS Reset */
*,
*::before,
*::after {
	box-sizing: border-box;
	/* outline: 1px solid red; */
}

/* ── Motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

html {
	block-size: 100%;
	scroll-behavior: smooth;
	scrollbar-gutter: stable;
	text-size-adjust: none;
	-webkit-text-size-adjust: none;
}

body {
	min-block-size: 100%;
	font-size: var(--font-16);
	font-family: var(--font-body);
	line-height: 1.5;
	text-rendering: optimizeSpeed;
	-webkit-font-smoothing: antialiased;
}

/* Remove global margins */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure,
pre,
dl,
dd,
ul,
ol {
	margin: 0;
}

img,
video,
canvas,
svg {
	display: block;
	block-size: auto;
	max-inline-size: 100%;
}

img,
svg,
button {
	user-select: none;
	-webkit-user-select: none;
}

input,
textarea,
select {
	color: inherit;
}

input,
textarea,
button,
select {
	font: inherit;
	letter-spacing: inherit;
}

select,
button {
	appearance: none;
}

button,
dialog,
fieldset,
iframe {
	border: none;
}

button {
	background: none;
	cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-variant-numeric: lining-nums;
	text-wrap: balance;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
	hyphens: none;
}

p,
figcaption {
	max-inline-size: 75ch;
	font-variant-numeric: proportional-nums;
	text-wrap: pretty;
}

p,
blockquote,
q,
figcaption,
li {
	hanging-punctuation: first allow-end last;
}

strong {
	font-weight: 600;
}

ul,
ol {
	padding: 0;
	list-style-position: outside;
}

blockquote {
	hanging-punctuation: first last;
}

code {
	font-variant-numeric: slashed-zero;
}

table {
	border-collapse: collapse;
}

abbr {
	font-variant-caps: all-small-caps;
	text-decoration: none;

	&[title] {
		cursor: help;
		text-decoration: underline dotted;
	}
}

sup,
sub {
	line-height: 0;
}

/* Unified focus states for accessibility */
:is(button, a, input, select, textarea, summary, dialog):focus-visible {
	outline: 1.5px solid var(--color-focus, var(--brand-500));
	outline-offset: 2px;
}

a:not([class*="link"]) {
	text-decoration: none;
}

svg[class*="icon"] {
	aspect-ratio: 1;
	pointer-events: none;
}
