*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
}

html {
	scroll-behavior: smooth;
	overflow-x: clip;
	max-width: 100%;
}

html.is-scroll-locked,
html.is-scroll-locked body {
	overflow: hidden;
	overscroll-behavior: none;
}

html.is-scroll-locked body {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
}

.offcanvas__nav,
.mini-cart__list,
.catalog-filters__body,
.series-science-popup__content,
.seminar-modal__dialog,
.preorder-notice__dialog,
.checkout-manager__dialog,
.seminar-invite__dialog {
	overscroll-behavior: contain;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

body {
	font-family: var(--font-ui);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--ink);
	background: var(--cream);
	min-height: 100vh;
	max-width: 100%;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	margin: 0 0 0 0.35rem;
	background: center / 12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2521' stroke-width='2'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke-linecap='round'/%3E%3C/svg%3E");
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ink);
}

h1 {
	font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
	font-size: clamp(2rem, 3.5vw, 3.25rem);
}

h3 {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
}

h4,
h5,
h6 {
	font-family: var(--font-ui);
	font-weight: 500;
	line-height: 1.3;
}

p {
	color: var(--ink-soft);
}

.accent,
.accent-italic {
	font-family: var(--font-display);
	font-style: normal;
	font-weight: 400;
	color: var(--gold-deep);
}

.container {
	width: 100%;
	max-width: 100%;
	padding-inline: var(--gutter);
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	z-index: 1000;
	padding: 0.6rem 1.1rem;
	background: var(--ink);
	color: var(--cream);
	border-radius: var(--r-pill);
}

.skip-link:focus {
	top: 1rem;
}

:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid var(--gold-deep);
	outline-offset: 3px;
}

.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;
}
