@import url('fonts/ClanPro/index.css');

@import url('space.css');
@import url('shadow.css');
@import url('radius.css');
@import url('theme/light.css');
@import url('theme/dark.css');
@import url('markdown.css');
@import url('heading.css');
@import url('print.css');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	line-height: 1.75;
	outline: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 1rem;
}

body {
	background: var(--color-background);
	color: var(--color-text-normal);
	font-family: 'Roboto', sans-serif;
}

body {
	overflow: overlay;
	font-size: 0.875rem;
}

button {
	font-family: inherit;
	cursor: pointer;
}

ol,
ul {
	list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	/* font-family: 'Montserrat', sans-serif; */
	font-family: 'Clan Pro', sans-serif;
	/* font-weight: 250; */
	font-weight: 500;
	/* text-align: center; */
    line-height: 100%;
}

h1 {
	font-size: var(--heading-4xl);
}

h2 {
	font-size: var(--heading-3xl);
}

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

h4 {
	font-size: var(--heading-1xl);
}

h5 {
	font-size: var(--heading-l);
}

h6 {
	font-size: var(--heading-m);
}

a {
	text-decoration: none;
	color: var(--color-link-default);
}

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

a:active {
	color: var(--color-link-active);
}



::is(h1, h2, h3, h4, h5, h6) a:has(i) {
	display: inline-block;
	position: relative;
}

:is(h1, h2, h3, h4, h5, h6) a i {
	position: absolute;
	right: 100%;
	display: none;
}

:is(h1, h2, h3, h4, h5, h6):hover a i {
	display: inline-block;
}

:is(h1, h2, h3, h4, h5, h6) a i:before {
	transform: scale(0.7);
}


a:has(> img[data-hash]) {
	display: inline-flex;
	opacity: 0;
	position: relative;
	transition: opacity 0.3s;
	padding-left: var(--space-m);
}

/* a > img[data-hash] {
	position: absolute;
	top: 1rem;
} */

:hover> a:has(> img[data-hash]) {
	opacity: 1;
}

/* :hover > a > img[data-hash] {
	top: 0;
} */




@media (prefers-reduced-motion) {
	:root {
		--no-transition: none;
	}
}