/*
 * Base: reset, typography, buttons, utilities. Mobile-first.
 */

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

html {
	background: var(--bs-bg);
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 90px; /* anchors land below the sticky header */
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bs-bg);
	color: var(--bs-text);
	font-family: var(--bs-font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.site-main {
	flex: 1 0 auto;
}

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

a {
	color: var(--bs-accent);
	text-decoration: none;
	transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

a:hover {
	color: var(--bs-text);
}

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

::selection {
	background: var(--bs-accent);
	color: var(--bs-on-accent);
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--bs-font-display);
	font-weight: 900;
	letter-spacing: var(--bs-track-tight);
	line-height: 1;
	color: var(--bs-text);
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

address {
	font-style: normal;
}

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

::placeholder {
	color: rgba(251, 221, 223, 0.35);
}

/* Layout container – max 1360px as in the design */
.container {
	width: 100%;
	max-width: var(--bs-container);
	margin-inline: auto;
	padding-inline: var(--bs-gutter);
}

/* Small pink uppercase label above headings ("Kalendarz", "Eventy"…) */
.eyebrow {
	display: block;
	margin-bottom: 12px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: var(--bs-track-eyebrow);
	text-transform: uppercase;
	color: var(--bs-accent);
}

/* Section heading ("CO SIĘ DZIEJE W PAŹDZIERNIKU", "NAJBLIŻSZE EVENTY"…) */
.section-title {
	font-size: clamp(32px, 4vw, 56px);
	font-weight: 900;
	letter-spacing: var(--bs-track-tight);
	line-height: 0.95;
	text-transform: uppercase;
}

/* Vertical rhythm between home page sections */
.section {
	padding-top: var(--bs-section-space);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: 0;
	font-family: var(--bs-font-body);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: var(--bs-track-label);
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.btn--primary {
	background: var(--bs-accent);
	color: var(--bs-on-accent);
}

.btn--primary:hover {
	background: var(--bs-text);
	color: var(--bs-on-accent);
}

.btn--outline {
	background: transparent;
	border-color: var(--bs-line-strong);
	color: var(--bs-text);
}

.btn--outline:hover {
	border-color: var(--bs-accent);
	color: var(--bs-accent);
}

.btn--lg {
	padding: 17px 30px;
	font-size: 14px;
}

.btn--block {
	width: 100%;
}

/* Accessibility helpers (class names used by WordPress core) */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip: auto;
	background: var(--bs-accent);
	color: var(--bs-on-accent);
	font-weight: 800;
}

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