/**
 * Bannatyne Digital — Reset
 *
 * Modern CSS reset. Strips browser defaults to a consistent baseline
 * while preserving accessibility features (focus outlines, reduced
 * motion, etc.).
 */

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

/* ── Remove default margins & padding ────────────────────── */
*  {
	margin: 0;
	padding: 0;
}

/* ── Document ────────────────────────────────────────────── */
html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Respect user motion preferences */
@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;
		scroll-behavior: auto !important;
	}
}

/* ── Body ────────────────────────────────────────────────── */
body {
	min-height: 100vh;
	line-height: var(--leading-normal);
	font-family: var(--font-primary);
	font-weight: var(--fw-regular);
	font-size: var(--text-base);
	color: var(--color-text);
	background-color: var(--color-bg);
	overflow-x: hidden;
}

/* ── Typography resets ───────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
	font-size: inherit;
	font-weight: inherit;
	line-height: var(--leading-tight);
	overflow-wrap: break-word;
}

p {
	overflow-wrap: break-word;
}

/* ── Lists ───────────────────────────────────────────────── */
ul, ol {
	list-style: none;
}

/* ── Links ───────────────────────────────────────────────── */
a {
	color: inherit;
	text-decoration: none;
}

/* ── Media ───────────────────────────────────────────────── */
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

/* ── Forms ────────────────────────────────────────────────── */
input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
	background: none;
	border: none;
	outline: none;
}

button {
	cursor: pointer;
}

textarea {
	resize: vertical;
}

/* ── Tables ──────────────────────────────────────────────── */
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ── Accessibility ───────────────────────────────────────── */
:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Screen-reader only utility */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}
