@use 'variables' as *;

@font-face {
	font-family: 'Mod';
	src: url('/mod/mod.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Hel';
	src: url('/satoshi/satoshi.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

body {
	font-family: 'Hel', sans-serif;
	margin: 0;
	padding: 0;
	color: $black;
	background-color: $broken-white;
}

h1,
h2,
h3,
h4,
h5,
h6,
.fraktur {
	font-family: 'Mod', cursive !important;
	font-weight: 500;
	font-style: normal;
	text-transform: lowercase;
	line-height: 1;
}

h2 {
	font-size: $fs-xxxl;
	margin-bottom: 1rem;
	color: $accent;

	> * {
		text-transform: lowercase !important;
	}

	@media (max-width: $tablet) {
		font-size: $fs-xxl;
	}

	@media (max-width: $mobile) {
		font-size: $fs-xl;
		word-break: break-word;
		hyphens: auto;
	}
}

a {
	color: $accent;
	text-decoration: none;

	&:hover {
		text-decoration: underline;
	}
}

p,
span,
a {
	text-transform: uppercase;

	&:not(.h2) {
		font-family: 'Hel', sans-serif;
		font-size: $fs-sm;
		line-height: 1.5;
	}
}

.word {
	overflow: hidden;
	padding-bottom: 10px;
	margin-bottom: -10px;
}

.line:not(:last-child) {
	margin-bottom: -2rem;

	@media (max-width: $mobile) {
		margin-bottom: -1rem;
	}
}
