@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

:root {
  --paper: #faf7f2;
  --ink: #1f1a17;
  --accent: #ff2f2d;
  color-scheme: light;
}

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

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

body {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

.wordmark {
  margin: 0;
  font-size: clamp(4.5rem, 13vw, 8.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
  /* Descenders pull the word low; lift it to the optical centre. */
  translate: 0 -0.08em;
  user-select: none;
  animation: focus 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dot {
  color: var(--accent);
}

.is-loading .wordmark {
  opacity: 0;
  animation: none;
}

@keyframes focus {
  from {
    opacity: 0;
    filter: blur(0.16em);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark {
    animation: fade 0.6s ease-out both;
  }
}
