:root {
	font-family: Supreme-Variable, Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
	color-scheme: light;
	color: gray;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-text-size-adjust: 100%;

	--color-bgs-light: white;
	--color-bgs-light-subtle: #eaeff8;
	--color-bgs-dark: #121212;
	--color-bgs-selected: #f9fafc;
	--color-header-dark: black;
	--color-header-light: white;
	--color-section-title: #e36756;
	--color-section-bgs-light: #ebf8f4;
	--color-p-light-subtle: #a1a1a1;
	--color-p-light-bright: white;
	--color-p-dark-subtle: #554c75;
	--color-p-dark-dark: black;
	--color-highlights-main: #5f33ff;
	--color-highlights-hover: #646cff;
	--color-highlights-disabled: lightgray;
	--color-strokes-and-outlines: #dde5f0;
	/* Alert/error colors. I have added this just for the storybook. Then component uses it own */
	--color-alert: #c52913;
	/* Success/positive — same green StatusIcon and FeedbackResultIcon use as their default. */
	--color-success: #56d763;

	--width-mobile: 700px;

	/* Tabs animation variables*/
	--tab-active-bg: var(--color-highlights-main);
	--tab-inactive-bg: var(--color-highlights-disabled);
	--animation-duration: 10s;

	/* Blog-specific variables */
	--blog-card-gap: 2rem;
	--blog-card-radius: 8px;
	--blog-card-padding: 1.5rem;
	--blog-transition-duration: 0.3s;
	--blog-transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
	scroll-behavior: smooth;
}

@font-face {
	font-family: ClashDisplay-Variable;
	src: url('/fonts/ClashDisplay-Variable.woff2');
}

@font-face {
	font-family: Supreme-Variable;
	src: url('/fonts/Supreme-Variable.woff2');
}

@font-face {
	font-family: NotoColorEmoji-Regular;
	src: url('/fonts/NotoColorEmoji-Regular.ttf');
}

@font-face {
	font-family: Noto-Variable;
	src: url('/fonts/NotoSans-VariableFont_wdth,wght.ttf');
}

@font-face {
	font-family: Noto-Italic-Variable;
	src: url('/fonts/NotoSans-Italic-VariableFont_wdth,wght.ttf');
}

.test-box {
	background-color: magenta;
	width: auto;
}

body {
	/* Remove default margin */
	margin: 0;
	height: 100dvh;
	overflow-x: hidden;
}

.bg-dark {
	background-color: var(--color-bgs-dark);
}

.bg-light-subtle {
	background-color: var(--color-bgs-light-subtle);
}

section {
	height: auto;
	padding: 120px 0px;
}

section.extra-top-padding {
	padding-top: 240px;
}

section.no-overflow {
	overflow: clip;
}

section.no-x-overflow {
	overflow-x: clip;
}

section.hide-x-overflow {
	overflow-x: hidden;
}

section .page-width {
	width: clamp(600px, 75%, 1400px);
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 600px) {
	section {
		padding: 64px 24px;
	}

	section .page-width {
		width: auto;
	}

	section.extra-top-padding {
		padding-top: 120px;
	}
}

.bottom-padded-large {
	margin-bottom: 100px;
}

.bottom-padded-mid {
	margin-bottom: 80px;
}

.bottom-padded-small {
	margin-bottom: 60px;
}

.bottom-padded-xsmall {
	margin-bottom: 48px;
}

@media (max-width: 600px) {
	.bottom-padded-xsmall {
		margin-bottom: 25px;
	}
}

.no-bottom-padding {
	padding-bottom: 0px;
}

.no-top-padding {
	padding-top: 0px;
}

.negative-bottom-padded-large {
	margin-bottom: -100px;
}

@media (max-width: 600px) {
	.bottom-padded-mid {
		margin-bottom: 64px;
	}

	.bottom-padded-large {
		margin-bottom: 48px;
	}

	.negative-bottom-padded-large {
		margin-bottom: -80px;
	}
}

.vertical {
	display: flex;
	flex-direction: column;
}

.horizontal {
	display: flex;
	flex-direction: row;
}

.right-edge {
	margin-left: auto;
	margin-right: 0px;
}

.fill-available {
	flex: auto;
}

.overlay-children {
	display: grid;
}

.overlayed-child {
	grid-column-start: 1;
	grid-row-start: 1;
}

.full-parent-size {
	width: 100%;
	height: 100%;
}

.full-parent-width {
	width: 100%;
	height: auto;
}

.full-parent-height {
	width: auto;
	height: 100%;
}

.center-children-vertically {
	align-items: center;
}

.center-children-horizontally {
	justify-content: center;
}

.move-children-right {
	justify-content: right;
}

.move-children-down {
	justify-content: end;
}

.child-gap-small {
	gap: 16px;
}

.child-gap-mid {
	gap: 24px;
}

.child-gap-xlarge {
	gap: 64px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: ClashDisplay-Variable, serif;
	font-variation-settings: 'wght' 500;
	letter-spacing: 0.015em;
	margin-top: 0px;
	margin-bottom: 0px;
	color: var(--color-header-dark);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
	color: var(--color-header-light);
}

h1 {
	font-size: clamp(3rem, 5vw, 72px);
	line-height: 1em;
}

h2 {
	font-size: clamp(2.3rem, 3.8vw, 56px);
	line-height: 1.1em;
}

h3 {
	font-size: clamp(1.7rem, 2.75vw, 40px);
	line-height: 1.1em;
}

h3.enlarged {
	font-size: clamp(2.6rem, 4.45vw, 64px);
	line-height: 1em;
}

h3.reduced {
	font-size: clamp(1.33rem, 2.25vw, 32px);
	line-height: 1.25em;
}

h4 {
	font-size: clamp(1rem, 1.7vw, 24px);
	line-height: 1.33em;
}

h5 {
	font-size: clamp(0.75rem, 1.25vw, 18px);
	line-height: 1.33em;
}

h2.section-title {
	font-family: 'Supreme-Variable', sans-serif;
	font-variation-settings: 'wght' 600;
	font-size: 14px;
	line-height: 16px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-section-title);
}

h4.alt {
	font-family: 'Supreme-Variable', sans-serif;
	font-variation-settings: 'wght' 600;
}

p,
a {
	font-family: 'Supreme-Variable', sans-serif;
	font-variation-settings: 'wght' 400;
	margin-top: 0px;
	margin-bottom: 0px;
	font-size: clamp(1rem, 1.4vw, 20px);
	line-height: 1.6em;
	letter-spacing: -0.015em;
}

a:hover {
	color: var(--color-highlights-hover);
}

p.emphasis,
a.emphasis {
	font-family: 'Supreme-Variable', sans-serif;
	font-variation-settings: 'wght' 500;
}

p.reduced {
	font-size: 16px;
	line-height: 24px;
}

p.subtitle,
a.subtitle {
	font-size: 18px;
	line-height: 24px;
}

p.subtitle.enlarged {
	font-size: clamp(1.2rem, 1.65vw, 24px);
	line-height: 32px;
}

p.light-subtle {
	color: var(--color-p-light-subtle);
}

p.light-bright {
	color: var(--color-p-light-bright);
}

p.dark-subtle {
	color: var(--color-p-dark-subtle);
}

p.dark-dark {
	color: var(--color-p-dark-dark);
}

.underlined {
	text-decoration: underline;
	cursor: pointer;
}

h1.underlined,
h2.underlined,
h3.underlined,
h4.underlined {
	text-decoration-thickness: 4px;
	text-underline-offset: 16px;

	display: inline-flex;
	align-items: center;
}

button:focus:not(button.no-background),
button:focus-visible {
	outline: 4px auto -webkit-focus-ring-color;
}

button.main-button {
	border-radius: 4px;
	width: fit-content;
	border: 0px;
	padding: 0px;
	transition: background-color 0.25s;
}

button.main-button:not(:disabled) {
	cursor: pointer;
	background-color: var(--color-highlights-main);
}

button.main-button:hover:not(:disabled) {
	background-color: var(--color-highlights-hover);
}

button.main-button:disabled {
	background-color: var(--color-highlights-disabled);
}

button.main-button p {
	font-family: 'Supreme-Variable', sans-serif;
	font-variation-settings: 'wght' 500;
	font-size: 18px;
	line-height: 20px;
	color: var(--color-p-light-bright);
}

button.main-button > .x-mark-icon {
	width: 25px;
	height: 25px;
	margin: 16px;
}

@media (max-width: 600px) {
	button.main-button > .x-mark-icon {
		margin: 8px;
	}
}

button.no-background {
	background: none;
	border: none;
	padding: 0px;
	margin: 0px;
	cursor: pointer;

	&.hover-react:not(:disabled) {
		transition: all 0.2s;

		&:hover,
		&:focus-visible {
			text-decoration: underline;
			text-decoration-thickness: 1px;
		}

		&:active {
			text-decoration-thickness: 2px;
		}
	}
}

button:disabled {
	cursor: not-allowed;
}

.sticky {
	position: -webkit-sticky;
	/* Safari */
	position: sticky;
	top: 40%;
}

.no-margin {
	margin: 0;
}

footer {
	/* Pushes the footer to the bottom */
	margin-bottom: 0;
	/* Ensures footer stretches across the full width if not already set */
	width: 100%;
}

/* Unicode auto-directionality */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
	unicode-bidi: plaintext;
}
