/**
 * Global visual system for Piso 2.
 */

:root {
	--piso2-content-width: 1254px;
	--piso2-reading-width: 1038px;
	--piso2-page-gutter: 24px;
	--piso2-black: #1b1b1b;
	--piso2-ink: #202020;
	--piso2-muted: #555555;
	--piso2-gray: #f5f5f5;
	--piso2-cyan: #00ece6;
	--piso2-yellow: #ffff10;
	--piso2-white: #ffffff;
	--piso2-gradient: linear-gradient( 90deg, var(--piso2-yellow) 0%, var(--piso2-cyan) 100% );
	--piso2-font: "Montserrat", Arial, sans-serif;
	--piso2-transition: 180ms ease;
	--piso2-desktop-layout-unit: 1px;
	--piso2-desktop-type-unit: 1px;
}

@media (min-width: 1024px) {
	:root {
		--piso2-desktop-layout-unit: clamp(0.78px, calc(0.4px + 0.03125vw), 1px);
		--piso2-desktop-type-unit: clamp(0.82px, calc(0.52px + 0.025vw), 1px);
	}
}

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

html {
	overflow-x: clip;
	scroll-behavior: smooth;
}

body.piso2-child-theme {
	margin: 0;
	overflow-x: clip;
	background: var(--piso2-white);
	color: var(--piso2-ink);
	font-family: var(--piso2-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.piso2-menu-open {
	overflow: hidden;
}

body.piso2-child-theme :where(h1, h2, h3, h4, h5, h6, p, ul, ol) {
	margin-top: 0;
}

body.piso2-child-theme :where(h1, h2, h3, h4, h5, h6) {
	color: inherit;
	font-family: var(--piso2-font);
	font-weight: 700;
	line-height: 1.08;
}

body.piso2-child-theme h1 {
	font-size: clamp(2.25rem, 4vw, 4.5rem);
}

body.piso2-child-theme h2 {
	font-size: clamp(1.75rem, 2.6vw, 3rem);
}

body.piso2-child-theme h3 {
	font-size: clamp(1.25rem, 1.8vw, 2rem);
}

:where(body.piso2-child-theme a) {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

:where(body.piso2-child-theme a:hover) {
	color: var(--piso2-cyan);
}

body.piso2-child-theme main a:not(.piso2-button) {
	color: inherit;
}

body.piso2-child-theme main a:not(.piso2-button):hover {
	color: var(--piso2-cyan);
}

body.piso2-child-theme :focus-visible {
	outline: 2px solid var(--piso2-cyan);
	outline-offset: 4px;
}

body.piso2-child-theme img {
	max-width: 100%;
}

.piso2-container {
	width: min(100% - (2 * var(--piso2-page-gutter)), var(--piso2-content-width));
	margin-inline: auto;
}

.piso2-main {
	min-height: 50vh;
}

.piso2-honeypot {
	position: absolute;
	left: -9999px;
}

body.piso2-child-theme :where(input, textarea, select, button) {
	border-radius: 0;
	font: inherit;
}

body.piso2-child-theme :where(input, textarea, select) {
	width: 100%;
	border: 1px solid var(--piso2-ink);
	background: transparent;
	color: inherit;
	padding: 0.7rem 0.8rem;
}

body.piso2-child-theme :where(button:not(.piso2-menu-toggle, .piso2-mobile-drawer__close)),
.piso2-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	border: 1px solid var(--piso2-black);
	background: var(--piso2-black);
	color: var(--piso2-white);
	font-family: var(--piso2-font);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 0.75rem 1rem;
	text-decoration: none;
	transition: background-color var(--piso2-transition), border-color var(--piso2-transition), color var(--piso2-transition);
}

body.piso2-child-theme :where(button:not(.piso2-menu-toggle, .piso2-mobile-drawer__close)):hover,
.piso2-button:hover {
	border-color: var(--piso2-cyan);
	background: var(--piso2-cyan);
	color: var(--piso2-black);
}

.piso2-button--outline {
	border-color: var(--piso2-yellow);
	background: transparent;
	color: var(--piso2-white);
}
