:root {
	--font-family-heading: Archivo, Arial, sans-serif;
	--font-family-body: Archivo, Arial, sans-serif;
	--accent: #000;
	--text-color: #10100e;
	--scrollbar-bg-color: #b9b9b9;
	--bg: #fff;

	/* Base font size that scales fluidly while respecting user zoom preferences */
	font-size: clamp(30%, calc(0.15vw + 35%), 62.5%);

	/* Line heights */
	--leading-tight: 1.1;
	--leading-normal: 1.3;
}

* {
	scrollbar-width: thin;
	scrollbar-color: var(--accent) var(--scrollbar-bg-color);

	transition: scrollbar-color 0.3s ease-in-out;
}

*::-webkit-scrollbar {
	width: 5px;
}

*::-webkit-scrollbar-track {
	background-color: var(--scrollbar-bg-color);
}

*::-webkit-scrollbar-thumb {
	background-color: var(--accent);

	transition: scrollbar-color 0.3s ease-in-out;
}

html.lenis {
	height: auto;
}
.lenis.lenis-smooth {
	scroll-behavior: auto;
}
.lenis.lenis-smooth[data-lenis-prevent] {
	overscroll-behavior: contain;
}
.lenis.lenis-stopped {
	overflow: hidden;
}

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

::selection {
	color: var(--bg);
	background: var(--accent);
	opacity: 1;
}

.inverted-bg *::selection {
	color: var(--text-color);
	background: var(--bg);
}

.inverted-bg *::-moz-selection {
	color: var(--text-color);
	background: var(--bg);
}

a,
button {
	cursor: pointer;
	color: var(--text-color);
}

a {
	text-decoration: none;
	color: var(--text-color);
	transition: color 0.2s ease-in-out;
}

.button {
	padding: 1rem 3rem;
	color: var(--text-color);
	background-color: transparent;
	text-align: center;
	height: fit-content;
	border-radius: 3rem;
	font-size: 2rem;
	border: 1px solid var(--accent);
	transition:
		color 0.2s ease-in-out,
		border 0.3s ease-in-out,
		background 0.3s ease-in-out;
}

.button:hover {
	background-color: var(--accent);
	color: var(--bg);
}

.button-wide {
	width: 20rem;
	min-width: max-content;
	padding-left: 5rem;
	padding-right: 5rem;
}

html {
	background-color: var(--white);
	font-family: var(--font-family-body);
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	overflow-x: hidden;
	width: 100svw;
	margin: 0;
	background-color: var(--bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
	margin: 0;
	font-family: var(--font-family-heading);
	font-weight: 500;
	line-height: var(--leading-tight);
}

p,
.p {
	margin: 0;
	line-height: var(--leading-normal);
	font-size: 2rem;
	opacity: 0.8;
}

h1,
.h1 {
	font-size: 7.2rem;
}

h2,
.h2 {
	font-size: 4rem;
}

h3,
.h3 {
	font-size: 2.6rem;
}

h4,
.h4 {
	font-size: 2.2rem;
}

h5,
.h5 {
	font-size: var(--text-l);
}

h6,
.h6 {
	font-size: var(--text-m);
}

.underline-anim.isActive .text:after {
	content: '';
	transform: scaleX(1);
	transform-origin: bottom left;
	animation: fade-in 0.7s ease-out;
}

@keyframes fade-in {
	0% {
		opacity: 0;
		transform: scaleX(0);
		filter: blur(0.6rem);
	}
	40% {
		filter: blur(0px);
	}
	100% {
		transform: scaleX(1);
		opacity: 1;
	}
}

.showIcon {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.underline-anim {
	color: var(--text);
	font-size: 2rem;
	opacity: 1;
	text-decoration: none;
	transition:
		opacity 0.25s ease-out,
		transform 0.65s ease-out;
}

.underline-anim.invert {
	color: var(--bg) !important;
}

.underline-anim .text {
	pointer-events: none;
	display: inline-block;
	position: relative;
}

.underline-anim .text:after {
	content: '';
	position: absolute;
	width: 100%;
	transform: scaleX(0);
	height: 1px;
	bottom: 0;
	left: 0;
	background-color: var(--accent);
	transform-origin: bottom right;
	transition: transform 0.25s ease-out;
}

.underline-anim:hover > .text:after {
	transform: scaleX(1);
	transform-origin: bottom left;
}

.underline-anim:hover {
	opacity: 0.7;
}

.inverted-bg .underline-anim .text:after {
	background-color: var(--bg);
}

.isButton .text {
	position: relative;
}

.isEmail img::before,
.isEmail img::after,
.isButton .text::before,
.isButton .text::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 0.1rem;
	background-color: currentColor;
	transition: transform 0.3s ease;
}

.isEmail img::before,
.isEmail img::after,
.isButton.large .text::before,
.isButton.large .text::after {
	height: 0.3rem;
	bottom: -0.2rem;
}

.isEmail img::before,
.isButton .text::before {
	transform: scaleX(1);
	transform-origin: right;
}

.isEmail img::after,
.isButton .text::after {
	transform: scaleX(0);
	transform-origin: left;
	transition-delay: 0.15s;
}

.isEmail:hover img::before,
.isButton:hover .text::before {
	transform: scaleX(0);
}

.isEmail:hover img::after,
.isButton:hover .text::after {
	transform: scaleX(1);
}

.alt-action-link,
.alt-action-link a {
	font-size: 1.8rem;
}
