/* ============================================================
   SWITALSKI.LAW — base: reset, document defaults, container,
   accessibility helpers. Loaded globally (inc/enqueue.php).
   ============================================================ */

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

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

/* Smooth anchor scrolling — motion preference gets the instant jump */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--bg-1);
	color: var(--fg-1);
	font-family: var(--font-body);
	font-size: var(--t-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Scroll lock while the mobile drawer is open (JS toggles the class) */
body.sl-no-scroll {
	overflow: hidden;
}

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

a {
	color: inherit;
}

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

/* Layout container */
.sl-container {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--s-6);
}

.sl-page {
	padding-block: var(--s-8);
}

/* Shared brand logo (header + footer) — inline SVG, fills via
   currentColor so it inherits the surrounding text colour. */
.sl-logo {
	color: var(--paper);
	display: inline-flex;
	align-items: center;
}

.sl-logo svg {
	height: var(--fs-26);
	width: auto;
	display: block;
}

/* Accessibility: WP-standard visually-hidden text */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

/* Honeypot — hidden from sight AND from the a11y tree (wrapper is
   aria-hidden, input is tabindex="-1"). Same clip technique as
   .screen-reader-text above, fully tokenized. Global (Faza 6.8): the
   CF7 brief forms AND the footer newsletter form both use it, and the
   footer renders on every template, so this can't live in a
   conditionally-loaded stylesheet like contact.css. */
.sl-hp {
	position: absolute;
	width: var(--sp-1);
	height: var(--sp-1);
	margin: calc(-1 * var(--sp-1));
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

/* Skip link — hidden until focused */
.sl-skip-link {
	position: absolute;
	top: calc(-1 * var(--s-9));
	left: var(--s-4);
	z-index: 100;
	padding: var(--s-3) var(--s-4);
	background: var(--gold);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-14);
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--r-1);
	transition: top .15s ease;
}

.sl-skip-link:focus {
	top: var(--s-4);
}

/* Reduced motion — global kill switch. The !important here is NOT a
   prototype artifact (those don't pass): a zero-specificity * rule
   cannot beat component transition shorthands without it. */
@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;
	}
}
