/*
Theme Name: salty-and-clever-portfolio-system
Text Domain: salty-and-clever-portfolio-system
Description: Semantic non-block, appetite-led Salty and Clever theme with kitchen systems, operating-plan templates, controlled fields, accessible states, print support, and rollback metadata.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* This file holds the WordPress theme header plus a few truly global rules
 * (overflow guard, focus ring, consent-banner containment). Everything else:
 *
 * - colour, surfaces, type floors: assets/css/salt-notes.css (printed last)
 * - layout: assets/css/layout-system.css + assets/css/layout-contract.css
 * - chrome: assets/css/chrome.css, assets/hybrid-header.css
 * - v2 surfaces: assets/v2/*.css, enqueued per template
 * - fonts: enqueued from functions.php (loaded non-blocking by inc/v2/50-performance.php)
 */

html {
	scroll-behavior: smooth;
	max-width: 100%;
	overflow-x: clip;
}

body {
	max-width: 100%;
	overflow-x: clip;
}

/* Keep late-loading banners, optimized images, and translated UI inside the viewport. */
:where(img, video, iframe, svg) {
	max-width: 100%;
}

#wpconsent-banner-holder,
.wpconsent-banner-holder,
.wpconsent-banner {
	box-sizing: border-box !important;
	max-width: 100% !important;
}

#wpconsent-banner-holder,
.wpconsent-banner-holder {
	inset-inline: 0 !important;
	width: auto !important;
	animation: none !important;
	transition: none !important;
}

@supports not (overflow: clip) {
	html,
	body {
		overflow-x: hidden;
	}
}

/* Global keyboard focus contract across homepage, hubs, posts, tools, and legal pages. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--sn-brass);
	outline-offset: 4px;
	box-shadow: 0 0 0 2px var(--sn-linen);
}

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