:root {
  --bg-1-dark: #0a0a0a;
  --fg-1-dark: #fff;
  --fg-2-dark: #ffffff88;
  --fg-3-dark: #ffffff44;
  --fg-4-dark: #ffffff11;

  --bg-1-light: #fff;
  --fg-1-light: #000;
  --fg-2-light: #00000099;
  --fg-3-light: #00000044;
  --fg-4-light: #00000011;

  --bg-1: var(--bg-1-light);
  --fg-1: var(--fg-1-light);
  --fg-2: var(--fg-2-light);
  --fg-3: var(--fg-3-light);
  --fg-4: var(--fg-4-light);
  @media (prefers-color-scheme: dark) {
    --bg-1: var(--bg-1-dark);
    --fg-1: var(--fg-1-dark);
    --fg-2: var(--fg-2-dark);
    --fg-3: var(--fg-3-dark);
    --fg-4: var(--fg-4-dark);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

html,
body {
  background-color: var(--bg-1);
  color: var(--fg-1);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
  font-size: 1em;
  font-weight: 400;
  letter-spacing: -0.32px;
}

p::selection,
a::selection,
h3::selection {
  color: #008cff !important;
  background-color: #d8ecfc !important;
}

main {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 4em;
  animation: fadeIn 800ms cubic-bezier(0.23, 1, 0.32, 1);
  animation-delay: 0;
  animation-fill-mode: backwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
section {
  display: flex;
  padding: 3em 0;
  max-width: 54em;
}
h3 {
  width: 14em;
  flex: none;
  margin-bottom: 2em;
  color: var(--fg-2);
}
p {
  width: 100%;
  line-height: 1.6em;
  color: var(--fg-2);
}

ol {
  width: 100%;
  padding: none;
  margin: none;
}

li {
  list-style-type: none;
  padding-bottom: 0.75em;
}

a {
  color: var(--fg-1);
  transition: 150ms color, 150ms text-decoration-color;
  text-decoration: underline;
  text-decoration-line: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.1em;
  text-decoration-color: var(--fg-2);
}

a:hover {
  color: var(--fg-2);
  text-decoration-color: var(--fg-2);
}

hr {
  border: none;
  height: 1px;
  background-color: var(--fg-4);
  display: none;
}

@media screen and (max-width: 600px) {
  h3 {
    color: var(--fg-1);
  }
  main {
    gap: 1em;
    padding: 2em;
  }
  section {
    flex-direction: column;
  }
  hr {
    display: block;
  }
}

@media (prefers-color-scheme: dark) {
  p::selection,
  a::selection,
  h3::selection {
    color: #44abff !important;
    background-color: #142b3d !important;
  }
}
