/* Fonty i style bazowe. Zmienne (:root) generuje inc/tokens.php z ustawień motywu. */

@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 200 600;
	font-display: swap;
	src: url('../fonts/archivo-200-600-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 200 600;
	font-display: swap;
	src: url('../fonts/archivo-200-600-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/barlow-condensed-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/barlow-condensed-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/barlow-condensed-500-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/barlow-condensed-500-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/barlow-condensed-600-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/barlow-condensed-600-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Ruch – wspólne czasy i krzywe dla całego motywu:
 * --dur-fast (hover, kolory), --dur (rozwijanie, zmiana treści), --dur-slow (szuflady, wjazdy).
 * Wejścia: --ease-out (szybki start, miękkie hamowanie), wyjścia: --ease-in-out.
 * "Ogranicz ruch" w systemie skraca wszystko do ~0 (transitionend nadal działa).
 */
:root {
	--dur-fast: 0.2s;
	--dur: 0.35s;
	--dur-slow: 0.5s;
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	/* Odstęp przy przewijaniu do kotwic: nagłówek + pasek admina + oddech nad sekcją. */
	--scroll-offset: calc(4.5rem + var(--wp-admin--admin-bar--height, 0px) + 1.5rem);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--scroll-offset);
	scrollbar-gutter: stable; /* Brak przeskoku strony, gdy szuflada blokuje przewijanie. */
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--dur-fast: 0.01ms;
		--dur: 0.01ms;
		--dur-slow: 0.01ms;
	}

	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-text);
	font: 300 var(--fs-base)/1.5 var(--font-body);
}

h1, h2, h3, h4, .t-display, .t-h1, .t-h2, .t-title {
	margin: 0;
	color: var(--color-text);
	line-height: normal;
}

.t-display { font: 600 var(--fs-display)/normal var(--font-heading); }
.t-h1 { font: 500 var(--fs-h1)/normal var(--font-heading); }

/* Globalny H1: wyśrodkowany, 32px mobile / 64px desktop, odstęp od treści pod spodem. */
h1 {
	font: 500 2rem/1.1 var(--font-heading);
	text-align: center;
	margin-block-end: 2rem;
}

@media (min-width: 64rem) {
	h1 {
		font-size: 4rem;
		margin-block-end: 3rem;
	}
}
h2, .t-h2 { font: 400 var(--fs-h2)/normal var(--font-heading); }
h3, h4, .t-title { font: 200 var(--fs-title)/normal var(--font-body); }

.t-lead { font: 400 var(--fs-lead)/2rem var(--font-body); }
.t-lg { font: 500 var(--fs-lg)/1.5 var(--font-body); }
.t-label { font: 500 var(--fs-lg)/1.5 var(--font-heading); letter-spacing: 0.03em; }
.t-nav { font: 400 var(--fs-base)/1.5 var(--font-body); letter-spacing: 0.02em; }
.t-sm { font: 300 var(--fs-sm)/1.5 var(--font-body); }
.t-xs { font: 200 var(--fs-xs)/1.5 var(--font-body); }

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