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

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

:root {
  --neutral: #808080;
  --accent: #0072f5;

  --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: Inter, sans-serif;
  font-feature-settings:
    "liga" 1,
    "calt" 1; /* fix for Chrome */
}

@supports (font-variation-settings: normal) {
  :root {
    font-family: InterVariable, sans-serif;
  }
}

@font-face {
  font-family: KV;
  src: url("../fonts/KyivTypeTitling-Regular3.otf");
}

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;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

h1,
h2,
h3,
p,
a {
  margin: 0;
  padding: 0;
  word-break: break-word;
  font-weight: 400;
  width: 100%;
}

h1 {
  font-family: KV, Georgia, "Times New Roman", Times, serif;
  /* font-size: 6rem; */
  font-size: clamp(3rem, 5vw + 1.073rem, 6rem) !important;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  margin-bottom: 1rem;
}

h2,
h3,
h4,
p,
a {
  font-size: 1.125rem;
  line-height: 1.5;
  font-family: InterVariable, sans-serif;
}

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

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

  &:hover {
    text-decoration: none;
  }
}
.external {
  &:after {
    content: " ↗︎";
  }
}

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