@font-face {
  font-family: JetBrains Mono;
  src: url('../fonts/JetBrainsMono-Regular.woff2');
}

:root {
  --background: #fff;
  --background-footer: #e4e7eb;
  --font-main: JetBrains Mono, monospace;
  --foreground: #000;
  --foreground-link: #000;
  --foreground-link-hover: #a43dff;
}

html {
  font-size: 62.5%;
}

body {
  background: var(--background);
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  font: 1.4rem var(--font-main);
  min-height: 100vh;
  text-align: center;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.background {
  height: 100%;
  inset: 0;
  pointer-events: none;
  position: fixed;
  width: 100%;
  z-index: -1;
}

main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  padding: 3.2rem 3.2rem 6.4rem;
}

main p {
  line-height: 1.5;
}

.hero {
  font-size: 9.6rem;
}

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

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

[class^='link-']::before {
  background-size: cover;
  content: '';
  display: inline-block;
  height: 1.6rem;
  margin-right: 0.6rem;
  vertical-align: sub;
  width: 1.6rem;
}

.link-github::before {
  background-image: url('../images/mark-github-24.svg');
}

.link-x::before {
  background-image: url('../images/x.svg');
}

footer {
  background: var(--background-footer);
  bottom: 0;
  line-height: 2.2857142857;
  position: fixed;
  width: 100%;
}
