@font-face { /* title */
  font-family: "Digital geometric";
  src: url("./digital-geometric.otf");
}

/* -------------------------------------------------------------------------- */
/*                                    RESET                                   */
/* -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  color: inherit;
  vertical-align: baseline;
  line-height: inherit;
  appearance: none;
}

html {
  font-family: system-ui, sans-serif;
  font-size: 1.1em;
  line-height: 1.3;
}

ol, ul {
  list-style: none;
}

textarea {
  resize: none;
}

a {
  color: unset;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  font-style: italic;
}

/* -------------------------------------------------------------------------- */
/*                                   GENERAL                                  */
/* -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: Digital geometric;
}

.h1 {
  font-size: 2em;
}
.h2 {
  font-size: 1.4em;
}

a {
  font-weight: 600;
  transition: transform 200ms ease-out;
  display: flex;
  align-items: center;
  gap: 0.2em;
}
a:hover {
  transform: scale(1.1);
}

a::after {
  content: "🔗";
  font-size: 0.6em;
}

/* ------------------------------- BACKGROUND ------------------------------- */
body {
  display: flex;
  flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	min-width: 100%;
  color: #efefef;
}

.bg {
	overflow: hidden;
	height: 100%;
	height: 100%;
	&::before {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		width: max(100vw, 100vh, 100%);
		height: max(100vw, 100vh, 100%);
		z-index: -1;
		background: linear-gradient(45deg, #c1292e, #350363, #118dd0);
		background-size: 400% 400%;
		animation: gradient 30s linear infinite;
	}
}

@keyframes gradient {
	/* background animation */
	0% {
		transform: rotate(0deg) scale(3);
		background-position: 0% 20%;
	}
	50% {
		transform: rotate(180deg) scale(3);
		background-position: 100% 50%;
	}
	100% {
		transform: rotate(360deg) scale(3);
		background-position: 0% 20%;
	}
}

/* -------------------------------------------------------------------------- */
/*                                  SPECIFIC                                  */
/* -------------------------------------------------------------------------- */
.header {
  display: grid;
  justify-content: center;
  text-align: center;
  gap: 1em;
  margin-top: 3em;
}

.projects-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1em;
  margin: 2em;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 2em 1em;
  margin-top: auto;
  position: relative;
}

.cp {
  position: absolute;
  font-size: 0.8rem;
  bottom: 0.5em;
  left: 50%;
  transform: translateX(-50%);
}