*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-color-scheme: light) {  
  :root {
    --foreground-color: black;
    --background-color: white;
    --link-color: blue;
    --link-visited-color: purple;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --foreground-color: white;
    --background-color: #222;
    --link-color: lightskyblue;
    --link-visited-color: plum;
  }
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  color-scheme: light dark;
  color: var(--foreground-color);
  background-color: var(--background-color);
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  line-height: 1.5;
}

header {
  opacity: 0.5;
  text-align: center;
}

main > *:not(.full-bleed):not(h1),
footer > *:not(.full-bleed) {
  position: relative;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

main,
footer {
  min-height: 100vh;
}

footer {
  background-color: rgba(255, 255, 255, 0.05);
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

h1 {
  text-align: center;
  font-size: 6vw;
  line-height: 1.1;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes h1-animate-in {
    0% {
      filter: opacity(0);
      transform: translateY(.2em);
    }
    100% {
      filter: opacity(1);
      transform: translateY(0);
    }
  }
  
  h1 {
    animation: .75s ease-in-out 0s 1 h1-animate-in;
  }
}

