/*
 * Neutral structure and defaults. Uses tokens only; replace with the chosen design.
 * Keep form control rules out of this file: broad input selectors break the
 * Cart and Checkout block fields.
 */

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

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

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-md);
	line-height: var(--leading-body);
}

html.has-open-drawer {
	overflow: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-variation-settings: "opsz" 96;
	font-weight: 620;
	letter-spacing: -0.015em;
	line-height: var(--leading-tight);
}

h1 {
	font-size: var(--text-2xl);
}

h2 {
	font-size: var(--text-xl);
}

h3 {
	font-size: var(--text-lg);
}

a {
	color: inherit;
}

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

main:focus {
	outline: none;
}

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

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

/* Accessibility helpers */

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

.skip-link {
	position: absolute;
	top: var(--space-2);
	left: var(--space-2);
	z-index: 100;
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-pill);
	background: var(--color-accent);
	color: var(--color-accent-contrast);
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

/* Layout */

.wrap {
	width: min(100% - 2 * var(--gutter), var(--layout-wide));
	margin-inline: auto;
}

.site-main {
	display: block;
	padding-block: var(--space-top) 0;
}

.site-main--home {
	padding-block: 0;
}

.entry-content > * {
	max-width: var(--layout-content);
	margin-inline: auto;
}

.entry-content > .alignwide {
	max-width: var(--layout-wide);
}

.entry-content > .alignfull {
	max-width: none;
}

/* Buttons used by templates. Block buttons are styled through theme.json. */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--tap-target);
	padding: var(--space-2) var(--space-5);
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--color-accent);
	color: var(--color-accent-contrast);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.button:hover {
	box-shadow: inset 0 0 0 99px rgb(0 0 0 / 14%);
}

.button:disabled,
.button[aria-busy="true"] {
	opacity: 0.6;
	cursor: wait;
}

/* Header, top bar and footer: assets/css/site.css. Home sections: assets/css/home.css. */

/* Pages */

.page-entry__title {
	margin-block: 0 var(--space-head);
}
