/* ==========================================================================
   9WEB STARTER THEME — RESET
   Minimal, modern CSS reset. Base normalization only.
   No component styles, no animation rules, no layout rules here —
   see layout.css / components.css / animations.css (later phases).
   ========================================================================== */

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

* {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	/* line-height is intentionally NOT set here — theme.json
	   (styles.typography.lineHeight) is the single source of truth for
	   it. See docs/DECISIONS.md #5. */
	min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

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

button {
	background: none;
	border: none;
	cursor: pointer;
}

a {
	/* Color is deliberately NOT set here. theme.json (styles.elements.link)
	   owns link color via a low-specificity :where() rule so it can be
	   overridden predictably by component CSS or per-client style
	   variations — an element-selector `color` rule here would fight
	   that. See docs/DECISIONS.md #5. */
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Respect the user's OS-level motion preference at the base level.
   The full 9Web animation engine (Phase 3) builds on top of this. */
@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;
	}
}
