html {
	box-sizing: border-box;
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--font-size-body);
	color: var(--color-text);
	background: var(--color-surface);
	line-height: var(--line-height-body);
	text-rendering: optimizeLegibility;
}

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

a {
	color: inherit;
	text-decoration-color: rgba(227, 136, 54, 0.5);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

a:hover,
a:focus-visible {
	color: var(--color-accent-deep);
	text-decoration-color: var(--color-accent);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: var(--line-height-heading);
	letter-spacing: -0.02em;
	color: var(--color-text-strong);
}

p,
ul,
ol,
figure,
blockquote {
	margin: 0;
}

ul,
ol {
	padding-left: 1.2em;
}

input,
textarea,
select {
	border: 1px solid var(--color-border);
	background: var(--color-surface);
}

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

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

::selection {
	background: rgba(227, 136, 54, 0.22);
	color: var(--color-text-strong);
}
