/*
 * Design system: zmienne, reset, typografia.
 * Wartosci kolorow i typografii pochodza z zatwierdzonej koncepcji.
 */

:root {
	/* Kolory */
	--s113-bg: #29292b;
	--s113-bg-alt: #212123;
	--s113-surface: #2f2f32;
	--s113-surface-hover: #353538;
	--s113-line: #3a3a3d;
	--s113-light: #f3f1ec;
	--s113-text: #efece6;
	--s113-text-muted: #b9b5ad;
	--s113-text-dim: #8f8b84;
	--s113-accent: #c9a35f;
	--s113-accent-hover: #dcbb7c;
	--s113-ink: #1f1f21;
	--s113-ink-muted: #5a5752;

	/* Typografia */
	--s113-font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--s113-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Odstepy */
	--s113-space-1: 4px;
	--s113-space-2: 8px;
	--s113-space-3: 12px;
	--s113-space-4: 16px;
	--s113-space-5: 24px;
	--s113-space-6: 32px;
	--s113-space-7: 48px;
	--s113-space-8: 64px;
	--s113-space-9: 96px;

	/* Uklad */
	--s113-container: 1296px;
	--s113-radius: 2px;
	--s113-transition: 200ms ease;
}

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

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

body {
	margin: 0;
	background-color: var(--s113-bg);
	color: var(--s113-text);
	font-family: var(--s113-font-body);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: clip;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--s113-accent);
	text-decoration: none;
}

a:hover {
	color: var(--s113-accent-hover);
}

h1,
h2,
h3,
h4 {
	margin: 0 0 var(--s113-space-3);
	font-family: var(--s113-font-heading);
	font-weight: 600;
	line-height: 1.1;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.25rem, 4.5vw, 4rem);
}

h2 {
	font-size: clamp(1.75rem, 3vw, 2.75rem);
}

h3 {
	font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
	margin: 0 0 var(--s113-space-4);
	text-wrap: pretty;
}

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

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

/*
 * Tekst tylko dla czytnikow ekranu. Uzywany m.in. w ikonie telefonu
 * w naglowku mobilnym, zeby numer byl w DOM (czytnik ekranu i skrypt
 * konwersji polaczen Google Ads), ale niewidoczny na ekranie.
 */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--s113-surface);
	clip-path: none;
	color: var(--s113-accent);
	display: block;
	font-size: 14px;
	height: auto;
	left: 16px;
	line-height: normal;
	padding: 12px 20px;
	text-decoration: none;
	top: 16px;
	width: auto;
	z-index: 100000;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
