:root {
  color-scheme: light;
  --paper: #eeeee6;
  --ink: #101713;
  --acid: #c8ff36;
  --mist: rgba(137, 154, 143, 0.2);
}

* {
  box-sizing: border-box;
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 250, 0.86), transparent 36rem),
    var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(2rem, 6vw, 6rem);
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 54rem);
  transform: translateY(-1.25rem);
  text-align: center;
}

.mark {
  width: clamp(4.9rem, 8.4vw, 7.25rem);
  height: auto;
  margin-bottom: clamp(1.75rem, 4vw, 3.25rem);
  overflow: visible;
}

.mark__line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 208;
  stroke-dashoffset: 208;
  animation: draw-mark 1.35s cubic-bezier(0.66, 0, 0.22, 1) 0.15s forwards;
}

.mark__point {
  fill: var(--acid);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: reveal-point 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 1.22s forwards;
}

.wordmark {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  font-size: clamp(4.75rem, 13.5vw, 10rem);
  font-weight: 500;
  letter-spacing: -0.092em;
  line-height: 0.82;
  opacity: 0;
  transform: translateY(1.2rem);
  animation: rise-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.62s forwards;
}

.slogan {
  margin: clamp(2rem, 4vw, 3.1rem) 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(0.8rem);
  animation: rise-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.92s forwards;
}

.atmosphere,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.atmosphere {
  overflow: hidden;
}

.field {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.72;
}

.field--one {
  top: -23vmax;
  right: -18vmax;
  width: 54vmax;
  height: 54vmax;
  border: 1px solid rgba(16, 23, 19, 0.08);
  background: radial-gradient(circle at 38% 62%, var(--mist), transparent 63%);
  animation: drift-one 18s ease-in-out infinite alternate;
}

.field--two {
  bottom: -34vmax;
  left: -24vmax;
  width: 68vmax;
  height: 68vmax;
  border: 1px solid rgba(16, 23, 19, 0.05);
  background: radial-gradient(circle at 62% 34%, rgba(200, 255, 54, 0.1), transparent 58%);
  animation: drift-two 22s ease-in-out infinite alternate;
}

.grain {
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

@keyframes draw-mark {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes reveal-point {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  70% {
    opacity: 1;
    transform: scale(1.25);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-one {
  to {
    transform: translate(-3vmax, 4vmax) scale(1.05);
  }
}

@keyframes drift-two {
  to {
    transform: translate(5vmax, -3vmax) scale(0.96);
  }
}

@media (max-width: 36rem) {
  .identity {
    transform: translateY(-0.6rem);
  }

  .wordmark {
    font-size: clamp(4.5rem, 23vw, 7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }

  .mark__line {
    stroke-dashoffset: 0;
  }

  .mark__point,
  .wordmark,
  .slogan {
    opacity: 1;
    transform: none;
  }
}
