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

* {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --neutral: #808080;
  --accent: #ff5733;

  --dark: #111111;
  --light: #eeeeee;

  --border: 1px solid var(--dark);

  --space-xs: 0.25rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-xl: 6rem;

  font-family:
    InterVariable,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;

  font-feature-settings:
    "liga" 1,
    "calt" 1; /* fix for Chrome */
}

@supports (font-variation-settings: normal) {
  :root {
    font-family:
      InterVariable,
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Roboto,
      Oxygen,
      Ubuntu,
      Cantarell,
      "Open Sans",
      "Helvetica Neue",
      sans-serif;
  }
}

body {
  background: var(--dark);
  color: var(--light);

  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

main {
  max-width: 40rem;
  width: 100%;
  margin: auto;

  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h1,
h2,
h3,
p,
a {
  margin: 0;
  padding: 0;
  font-size: 1.125rem;
  line-height: 1.5;
  word-break: break-word;
  font-weight: 400;
}

span {
  color: var(--neutral);
}

a {
  color: var(--neutral);
  text-decoration: underline;
  text-underline-offset: 0.25rem;

  &:hover {
    text-decoration: none;
  }
}

.external {
  &:after {
    content: " ↗︎";
  }
}

@media (max-width: 48rem) {
  body {
    padding: 1rem;
  }
}
