/**
 * Cypros Core — Foundation
 *
 * Global document defaults. Layout primitives are owned by
 * design-system.css so the theme has one source of truth.
 *
 * @package Cypros_Core
 */

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

html {
	font-size: 16px;
	scroll-behavior: smooth;
	max-width: 100%;
	overflow-x: clip;
}

body {
	margin: 0;
	font-family: var(--cypros-font-family);
	font-size: var(--cypros-font-size-base);
	font-weight: var(--cypros-font-weight-regular);
	line-height: var(--cypros-line-height-body);
	color: var(--cypros-color-text);
	background: var(--cypros-color-background);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	max-width: 100%;
}

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

iframe {
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

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

button {
	cursor: pointer;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin-block: 0;
	min-width: 0;
	max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: var(--cypros-font-weight-black);
	line-height: var(--cypros-line-height-heading);
	letter-spacing: var(--cypros-letter-spacing-tight);
	color: var(--cypros-color-heading);
}

section {
	position: relative;
}

.site-main,
.site-header,
.site-footer {
	min-width: 0;
	max-width: 100%;
}

@supports not (overflow-x: clip) {
	html {
		overflow-x: hidden;
	}
}
