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

:root {
  --bg: #e4e0ca;
  --fg: #000;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 24px;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  font-size: 20px;
  letter-spacing: 0.01em;
}

footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 640px) {
  body {
    padding: 44px 16px 40px;
  }

  h1 {
    font-size: 40px;
    max-width: 8ch;
    margin: 0 auto;
  }

  main {
    font-size: 18px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
