@font-face {
  font-family: "Libre Baskerville";
  src: url("/assets/fonts/libre-baskerville-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  background: #fafafa;
  color: #000;
  font-family: "Libre Baskerville", Baskerville, "Iowan Old Style", Georgia, serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #fafafa;
}

.hero {
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}

.typewriter {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: clamp(2.25rem, 6.2vw, 7.5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.typewriter__measure {
  visibility: hidden;
}

.typewriter__line {
  position: absolute;
  inset: 0 auto auto 0;
}

.caret {
  display: inline-block;
  width: 0.045em;
  height: 0.86em;
  margin-left: 0.075em;
  background: currentColor;
  transform: translateY(0.06em);
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
  0%,
  46% {
    opacity: 1;
  }

  47%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 420px) {
  .typewriter {
    font-size: clamp(1.95rem, 9.6vw, 2.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .caret {
    animation-duration: 1.8s;
  }
}
