/* ============================================================
   Soleo — Base styles (reset + @font-face + body typography)
   Migrated from D:/laragon/www/soleo-dev/src/scss/base/ (plain CSS).
   ============================================================ */

/* === @font-face: Luckiest Guy (display) === */
@font-face {
	font-family: "Luckiest Guy";
	src: url("../fonts/luckiest-guy-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* === @font-face: Montserrat (body) === */
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-800.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* === Reset === */
@layer reset {
	*, *::before, *::after { box-sizing: border-box; }
	* { margin: 0; }

	html {
		-moz-text-size-adjust: none;
		-webkit-text-size-adjust: none;
		text-size-adjust: none;
		color-scheme: light;
	}

	body {
		min-height: 100dvh;
		font-family: var(--font-body);
		font-size: var(--fs-body);
		line-height: var(--lh-normal);
		color: var(--color-text);
		background-color: var(--color-surface);
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	h1, h2, h3, h4, button, input, label { line-height: var(--lh-tight); }
	h1, h2, h3, h4 { text-wrap: balance; color: var(--color-ink); }
	p, li, figcaption { text-wrap: pretty; }

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

	input, button, textarea, select { font: inherit; color: inherit; }
	button { background: none; border: 0; cursor: pointer; padding: 0; }
	a { color: inherit; text-decoration-skip-ink: auto; }
	ul, ol { list-style: none; padding: 0; }

	:target { scroll-margin-block: 5rlh; }

	:focus-visible {
		outline: 2px solid var(--color-brand-blue);
		outline-offset: 2px;
		border-radius: var(--radius-sm);
	}
}

/* === Base typography (fallback poza .text-styles container) === */
@layer base {
	main p,
	main li {
		font-family: var(--font-body);
		font-size: var(--fs-text);
		font-weight: var(--fw-medium);
		line-height: var(--lh-normal);
		color: var(--color-text);
	}
}

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

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