@font-face {
  font-family: "MinervaModern";
  src: url("font/MinervaModern.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Replace this image; update the image preload in index.html to match. */
  --unveiling-image: url("assets/unveiling.png");
  color-scheme: light;
  background: #fff;
}

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

body {
  margin: 0;
  background: #2E251D;
  cursor:pointer
}

.unveiling {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 3vh 5vw;
  overflow-x: clip;
}

.unveiling__title {
  margin: 0;
  width: 100%;
  font-family: "MinervaModern", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1rem, 20vw, 20rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.065em;
  text-align: center;
  color: #7a4e2e;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .unveiling__title {
    /* One image on the whole heading keeps both lines in the same scene. */
    background-image: var(--unveiling-image);
    background-repeat: no-repeat;
    background-size: 110% auto;
    background-position: 45% 50%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: unveiling-drift 24s ease-in-out infinite alternate;
  }
}

@keyframes unveiling-drift {
  from {
    background-size: 110% auto;
    background-position: 45% 50%;
  }
  to {
    background-size: 122% auto;
    background-position: 55% 56%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .unveiling__title {
    animation: none;
  }
}
