/* =========================================================
   BASE
   ASHELO LANDINGS 08 · CUIDADOS
   ========================================================= */

/* =========================================================
   FONT FACE
   ========================================================= */

@font-face {
	font-family: 'Fraunces';
	src: url('../assets/fonts/Fraunces_72pt-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Fraunces';
	src: url('../assets/fonts/Fraunces_72pt-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Fraunces';
	src: url('../assets/fonts/Fraunces_72pt-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('../assets/fonts/Manrope-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('../assets/fonts/Manrope-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('../assets/fonts/Manrope-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('../assets/fonts/Manrope-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* =========================================================
   RESET
   ========================================================= */

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

html {
	margin: 0;
	padding: 0;
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: var(--weight-regular);
	line-height: var(--leading-normal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
	font-family: var(--font-body);
}

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

img {
	height: auto;
}

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

button {
	border: 0;
	cursor: pointer;
}

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

p,
h1,
h2,
h3,
h4,
h5,
h6,
figure {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2 {
	font-family: var(--font-display);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	color: var(--color-dark);
}

h3,
h4,
h5,
h6 {
	font-family: var(--font-body);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-snug);
	letter-spacing: -0.015em;
	color: var(--color-dark);
}

h1 {
	font-size: clamp(48px, 6vw, var(--heading-xl));
}

h2 {
	font-size: clamp(36px, 4.5vw, var(--heading-lg));
}

h3 {
	font-size: var(--heading-sm);
}

p {
	color: var(--color-text);
}

strong {
	font-weight: var(--weight-bold);
}

/* =========================================================
   LINKS
   ========================================================= */

a {
	transition:
		color var(--transition-fast),
		background-color var(--transition-fast),
		border-color var(--transition-fast),
		opacity var(--transition-fast);
}

/* =========================================================
   FORM ELEMENTS
   ========================================================= */

button,
input,
textarea,
select {
	margin: 0;
}

input,
textarea,
select {
	color: var(--color-text);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
}

input,
select {
	min-height: 48px;
	padding: 0 14px;
}

textarea {
	padding: 14px;
	resize: vertical;
}

button,
input,
textarea,
select {
	outline: none;
}

/* =========================================================
   FOCUS
   ========================================================= */

:focus-visible {
	outline: 2px solid var(--color-accent-dark);
	outline-offset: 4px;
}

/* =========================================================
   TEXT SELECTION
   ========================================================= */

::selection {
	background: var(--color-accent);
	color: var(--color-dark);
}

/* =========================================================
   HORIZONTAL RULE
   ========================================================= */

hr {
	margin: 0;
	border: 0;
	border-top: 1px solid var(--color-border);
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

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

/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
