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

html,
body {
  height: 100%;
}

body {
  background-color: #0f0f0f;
  color: #f5f5f0;
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 2rem;
  text-align: center;
}

h1 {
  font-family: ui-monospace, "Cascadia Code", "Courier New", Courier, monospace;
  font-size: clamp(1.25rem, 4vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  border-right: 0.1em solid currentColor;
  animation:
    typing 2s steps(24, end) forwards,
    caret 1.2s step-end infinite;
}

@keyframes typing {
  to {
    width: 24ch;
  }
}

@keyframes caret {
  50% {
    border-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter {
    width: auto;
    border-right: none;
    animation: none;
  }
}

.contact {
  margin-top: 2rem;
  color: #a8a8a0;
  font-family: ui-monospace, "Cascadia Code", "Courier New", Courier, monospace;
  font-size: clamp(0.8rem, 2.5vw, 1rem);
}

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

.contact a:hover {
  color: #f5f5f0;
  text-decoration: underline;
}
