@font-face {
	font-family: "Sprat";
  src: url("sprat-variable.woff2");
}

html, body {
  height: 100vh;
  min-height: 100vh;
  height:  -webkit-fill-available;
  min-height: -webkit-fill-available;
}

body {
	font-family: Sprat;
	font-size: 40px;
  font-variation-settings: "wght" 100, "wdth" 10;
	line-height: 1.25;
	
	background-color: #333333;
	color: #ffffff;
  
  display: flex;
}

main {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid white;
  margin: 48px;
}

header, footer {
  padding: 32px;
}

footer {  
  display: flex;
  flex-direction: column;
  border-top: 1px solid white;
}

a {
  color: white;
  text-decoration: none;
  transition: font-variation-settings 0.5s;
}

a:before {
  box-sizing: border-box;
  content:  "";
  display: inline-block;
  background-color: white;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  margin: 0 0.4em 0 0;
  border: 2px solid white;
  transition: background-color 0.2s;
}

a:hover {
  font-variation-settings: "wght" 140, "wdth" 10;
}

a:hover::before {
  background: transparent;
}

canvas {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vmax;
  height: 100vmax;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 580px) {
  body {
    font-size: 24px;
  }
  
  main {
    margin: 32px;
  }
}