/* Reset + base typography + layout helpers. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--color-text);
	background: var(--color-bg);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.01em;
}

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

a {
	color: inherit;
}

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

/* Accessibility helpers (same class names WordPress/WooCommerce use). */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 16px;
	clip: auto;
	clip-path: none;
	background: var(--color-white);
	color: var(--color-text);
	font-weight: 600;
	text-decoration: none;
	outline: 2px solid var(--color-primary);
}

/* ─── Page titles ────────────────────────────────────────────────────────
   Pages that render a title (Cart, Checkout, About Us, posts) centre it with
   space above and below, so it reads as a page heading rather than a caption
   stuck to the content. */

.entry-title,
.woocommerce-products-header__title,
.site-main .page-title {
	margin-block: var(--page-title-gap);
	font-family: var(--font-display);
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.1;
	text-align: center;
	text-transform: uppercase;
}
