/*
Theme Name: Mirai Go
Author: FreshCommerce
Description: Block theme for Mirai Go, a booking engine for independent hotels. Every design value lives in theme.json.
Version: 0.1.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: miraigo
Tags: block-theme, full-site-editing, one-column, custom-menu
*/

/*
 * Minimal reset only. Colours, type, spacing and radii come from theme.json;
 * component styles belong in each block's own style.css.
 */

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

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

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	/* Safety net against horizontal-scroll regressions. `clip` (not `hidden`)
	   so it never creates a new scroll container of its own — this only
	   trims overflow, it does not introduce a scrollbar. desktop-nav's
	   `position: fixed` is fine under `clip`: fixed positioning escapes
	   body's box entirely, so this cannot clip it, unlike `overflow` on an
	   ancestor of a `sticky` element, which can. */
	overflow-x: clip;
}

/* Specificity 0 so blocks override without fighting the reset. */
:where(img, svg, video, canvas, iframe) {
	display: block;
	max-width: 100%;
	height: auto;
}

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

:where(figure) {
	margin: 0 !important;
}

/* Mouse/touch focus should not leave an outline behind after click. Keep
 * keyboard focus visible via :focus-visible only. */
:where(a, button, input, select, textarea, summary):focus:not(:focus-visible) {
	outline: none;
}

:where(:focus-visible) {
	outline: var(--wp--custom--focus--ring);
	outline-offset: var(--wp--custom--focus--offset);
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
