/**
 * Reset y fundamentos. Mobile-first, accesible por defecto.
 */

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

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

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

body {
	margin: 0;
	background: var(--zihouse-color-bg);
	color: var(--zihouse-color-ink);
	font-family: var(--zihouse-font-body);
	font-size: var(--zihouse-text-base);
	line-height: var(--zihouse-leading-normal);
	overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--zihouse-font-display);
	font-weight: 500;
	line-height: var(--zihouse-leading-tight);
	letter-spacing: var(--zihouse-tracking-tight);
	text-wrap: balance;
	margin: 0 0 var(--zihouse-space-sm);
	color: var(--zihouse-color-ink);
}

h1 {
	font-size: var(--zihouse-text-hero);
}

h2 {
	font-size: var(--zihouse-text-3xl);
}

h3 {
	font-size: var(--zihouse-text-2xl);
}

h4 {
	font-size: var(--zihouse-text-xl);
	font-weight: 600;
}

p {
	margin: 0 0 var(--zihouse-space-sm);
	max-width: 70ch;
	text-wrap: pretty;
}

a {
	color: inherit;
	text-decoration-color: color-mix(in oklch, currentColor 35%, transparent);
	text-underline-offset: 0.2em;
}

a:hover {
	text-decoration-color: currentColor;
}

button {
	font: inherit;
	color: inherit;
}

/* Foco visible obligatorio: nunca solo color, siempre contorno perceptible. */
:focus-visible {
	outline: 2px solid var(--zihouse-color-accent);
	outline-offset: 3px;
	border-radius: var(--zihouse-radius-sm);
}

.zihouse-container {
	width: 100%;
	max-width: var(--zihouse-container-max);
	margin-inline: auto;
	padding-inline: var(--zihouse-container-pad);
}

.zihouse-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.zihouse-skip-link {
	position: absolute;
	top: -100%;
	left: var(--zihouse-space-sm);
	z-index: var(--zihouse-z-toast);
	background: var(--zihouse-color-ink);
	color: #fff;
	padding: var(--zihouse-space-xs) var(--zihouse-space-sm);
	border-radius: var(--zihouse-radius-sm);
	transition: top var(--zihouse-duration-fast) var(--zihouse-ease-out-quart);
}

.zihouse-skip-link:focus {
	top: var(--zihouse-space-sm);
}

.zihouse-eyebrow {
	font-size: var(--zihouse-text-sm);
	color: var(--zihouse-color-ink-muted);
	font-weight: 500;
}

.zihouse-lede {
	font-size: var(--zihouse-text-lg);
	color: var(--zihouse-color-ink-muted);
	max-width: 60ch;
}
