/* ========================================================================
 * BASE — reset, tipografia, globals
 * Depende: variables.css
 * ===================================================================== */

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.6;
	color: var(--fg-page);
	background: var(--bg-page);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 var(--space-4) 0;
	text-transform: uppercase;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { margin: 0 0 var(--space-4) 0; }

a {
	color: var(--fg-accent);
	text-decoration: none;
	transition: opacity var(--dur-fast) var(--ease);
}
a:hover { opacity: 0.7; }

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

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
	color: inherit;
}

/* Screen-reader only (skip-link, etc) */
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px; width: 1px;
	overflow: hidden;
}
.screen-reader-text:focus {
	clip: auto;
	height: auto; width: auto;
	background: var(--c-white);
	color: var(--c-ink);
	padding: var(--space-2) var(--space-4);
	z-index: 100;
}

/* Layout wrapper */
.gl-wrap {
	max-width: var(--wrap-max);
	margin: 0 auto;
	padding: 0 var(--wrap-pad);
}

/* Scroll reveal (activated by main.js) */
.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.in {
	opacity: 1;
	transform: none;
}
