/*
Theme Name: Site Foundation
Author: Site Foundation contributors
Description: A neutral, lightweight foundation for native WordPress sites.
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.2
Version: 0.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: site-foundation
Tags: full-site-editing, block-patterns, wide-blocks, translation-ready
*/

/* Global resilience and focus only. Design tokens and block styles: theme.json. */
:where(.wp-site-blocks, .editor-styles-wrapper) {
	overflow-wrap: anywhere;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.wp-block-search__input:focus-visible {
	outline: 2px solid var(--wp--preset--color--foreground);
	outline-offset: 3px;
	box-shadow: 0 0 0 3px var(--wp--preset--color--background);
}

:where(input, select, textarea, button) {
	font: inherit;
}

:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
	max-inline-size: 100%;
	box-sizing: border-box;
}

:where(a) {
	text-underline-offset: 0.15em;
}

:where(.wp-block-details > summary) {
	cursor: pointer;
	font-weight: 600;
}

/* Keep intrinsic minimums from pushing native columns and search outside the viewport. */
:where(.wp-block-column, .wp-block-search, .wp-block-search__inside-wrapper) {
	min-inline-size: 0;
}
