/* Base: reset, page shell, typography, accessibility helpers. */
/* No global border-box reset: the designs use the default content-box model, and their
   max-width + padding values (e.g. 1360px + 40px gutters) only add up that way. */

html {
	overflow-x: clip; /* not hidden: hidden breaks the sticky header */
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--f-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
}

/* Footer always at the bottom: flex column shell, content grows. */
.r-page {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow-x: clip;
}

.r-body {
	flex: 1 0 auto;
}

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

img {
	height: auto;
}

a {
	color: var(--c-ink);
}

a:hover {
	color: var(--c-olive);
}

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

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 400;
}

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

/* Containers focused by script (e.g. WooCommerce notices) aren't controls: no ring. */
[tabindex="-1"]:focus {
	outline: none;
}

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

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	clip: auto;
	background: var(--c-bg);
	border: 1px solid var(--c-ink);
	font-size: 14px;
	text-decoration: none;
}

.r-container {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* Visibility helpers from the design (.r-hide-m / .r-show-m). */
.r-show-m {
	display: none !important;
}

@media (max-width: 860px) {
	.r-hide-m {
		display: none !important;
	}

	.r-show-m {
		display: grid !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}

/* Scroll lock while a modal drawer is open. */
.r-locked {
	overflow: hidden;
}

/* Honeypot (spam trap on forms) — off screen for people, still filled in by bots. */
.r-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
