/* ==========================================================================
   base.css — minimalny reset, typografia bazowa. @font-face jest w tokens.css
   (lokalne WOFF2, SIL OFL 1.1, assets/fonts/OFL-*.txt). Zero hostów zewnętrznych.
   ========================================================================== */

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

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

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--sb-color-bg);
	color: var(--sb-color-text);
	font-family: var(--sb-font-body);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sb-font-heading);
	line-height: 1.2;
	margin-block: 0 0.6em;
}

p {
	margin-block: 0 1em;
}

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

a {
	color: inherit;
}

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

[hidden] {
	display: none !important;
}

/* ---- Dostępność ----------------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	background: var(--sb-color-bg);
	clip: auto;
	clip-path: none;
	color: var(--sb-color-text);
	display: block;
	font-weight: 700;
	height: auto;
	left: 0.5rem;
	margin: 0;
	padding: 0.75rem 1rem;
	text-decoration: none;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
