:root {
  --bg-color: #e2e9ef;
  --heading-color: #123;
  /* --highlight-color: #299bff; */
  --highlight-color: rgba(17, 34, 51, 0.15);
  --text-color: #123;
  --link-color: #123;
  --link-bg-color: rgba(17, 34, 51, 0.05);
}

@media (prefers-color-scheme: dark) {
  /* For when this is supported */
  :root {
    --bg-color: black;
    --heading-color: white;
    --highlight-color: rgba(255, 255, 255, 0.2);
    --text-color: rgba(255, 255, 255, 0.7);
    --link-color: rgba(255, 255, 255, 0.8);
    --link-bg-color: rgba(255, 255, 255, 0.1);
  }
}

* {
  margin: 0;
  padding: 0;
}

body,
html {
  height: 100%;
  font-size: 24px;
  letter-spacing: -0.013rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  transform: translateZ(0);
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  text-align: center;
}

footer {
  padding-top: 2em;
  font-size: 0.65rem;
  opacity: 0.5;
}

a {
  color: var(--link-color);
  background: var(--link-bg-color);
  border-radius: 100px;
  padding: 1em 1.4em;
  position: relative;
  transition: all 100ms ease-in-out;
  display: block;
  text-align: left;
  text-decoration: none;
}

a span {
  margin-right: 0.5em;
  flex: 0;
}

a:hover,
a:focus {
  color: var(--link-color);
  background: var(--highlight-color);
  border-color: transparent;
  transition: all 100ms linear;
  outline: 0;
  box-sizing: border-box;
}

a:active {
  position: relative;
  top: 2px;
  transform: scale(0.95);
  transition: all 50ms ease-in-out;
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.016em;
  color: var(--heading-color);
}

.avatar {
  border-radius: 50%;
  margin-bottom: 1em;
  width: 2em;
  height: 2em;
  font-size: 2em;
}

.links {
  font-size: 0.75rem;
  letter-spacing: -0.008rem;
  margin-top: 1.5em;
}

.links {
  list-style-type: none;
  display: flex;
  flex-direction: column;
}

.links li {
  margin-top: 1em;
}

.links li:first-child {
  margin-top: 0;
}

@media screen and (max-width: 450px) {
  footer {
    padding-bottom: 1rem;
  }

  .links {
    flex-direction: column;
  }

  .links li {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}
