/* FutureCoding 2.0 – podstawy: tło, typografia, linki, dostępność. */
body.fc-site {
	background: var(--fc-bg);
	color: var(--fc-text);
	font-family: var(--fc-font-body);
	font-size: var(--fc-text-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	/* Nadpisanie zmiennych palety Blocksy, żeby jego elementy (np. wpisy) pasowały do motywu. */
	--theme-text-color: var(--fc-text);
	--theme-headings-color: var(--fc-text);
	--theme-link-initial-color: var(--fc-primary);
	--theme-link-hover-color: var(--fc-text);
	--theme-border-color: var(--fc-border);
	--theme-palette-color-1: var(--fc-primary-strong);
	--theme-palette-color-2: var(--fc-primary-hover);
	--theme-palette-color-3: var(--fc-text);
	--theme-palette-color-4: var(--fc-text-2);
	--theme-palette-color-5: var(--fc-border);
	--theme-palette-color-6: var(--fc-bg);
	--theme-palette-color-7: var(--fc-bg);
	--theme-palette-color-8: var(--fc-surface);
	--theme-button-background-initial-color: var(--fc-primary-strong);
	--theme-button-background-hover-color: var(--fc-primary-hover);
}

body.fc-site #main-container,
body.fc-site .site-main {
	background: transparent;
}

.fc-site h1,
.fc-site h2,
.fc-site h3,
.fc-site h4 {
	font-family: var(--fc-font-display);
	color: var(--fc-text);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.1;
	text-wrap: balance;
}

.fc-site h1 { font-size: var(--fc-h1); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.fc-site h2 { font-size: var(--fc-h2); }
.fc-site h3 { font-size: var(--fc-h3); font-weight: 700; }

.fc-site p { text-wrap: pretty; }

.fc-site a {
	color: var(--fc-primary);
	text-underline-offset: 3px;
	transition: color var(--fc-duration) var(--fc-ease);
}

.fc-site a:hover { color: var(--fc-text); }

.fc-site :focus-visible {
	outline: none;
	box-shadow: var(--fc-focus);
	border-radius: 4px;
}

.fc-site ::selection { background: var(--fc-primary-strong); color: var(--fc-on-primary); }

.fc-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.fc-skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 1000;
	padding: .75rem 1rem;
	background: var(--fc-accent);
	color: var(--fc-bg) !important;
	font-weight: 600;
	border-radius: var(--fc-radius-sm);
}

.fc-skip-link:focus { top: 1rem; }

.fc-placeholder {
	color: var(--fc-text-2);
	font-family: var(--fc-font-mono);
	font-size: var(--fc-text-sm);
}

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