@font-face {
  font-family: "Cal Sans";
  src: url("assets/fonts/CalSansVF.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 4rem 1.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-family: system-ui, sans-serif;
  color: #dce2ed;
  background-color: #0c0e13;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 16px;
  font-weight: normal;
  padding-bottom: 16px;
  color: #9fadc6;
}

h1 {
  font-size: 32px;
}

p {
  color: #a0acc1;
}

a {
  color: #8ba8d8;
  text-decoration: none;
  position: relative;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

a:hover::after,
a:focus-visible::after {
  transform: scaleX(1);
}

a:focus-visible {
  outline: 1px dotted currentColor;
  border-radius: 16px;
  outline-offset: 4px;
}

header {
  margin-bottom: 64px;
}

section {
  margin-bottom: 48px;
}

ul {
  list-style: none;

  padding-left: 0;
}

@media (prefers-reduced-motion: reduce) {
  a::after {
    transition: none;
  }
}
