:root {
  color-scheme: dark;
}

html {
  background: #08090f;
}

body {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}

.font-display {
  font-family: Cinzel, Georgia, serif;
}

.page-grid,
.hero-grid {
  background-image: linear-gradient(rgba(226, 177, 91, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(226, 177, 91, .055) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.hero-frame::before,
.hero-frame::after {
  content: '';
  position: absolute;
  z-index: 10;
  width: 54px;
  height: 54px;
  pointer-events: none;
  border-color: rgba(231, 190, 111, .72);
}

.hero-frame::before {
  top: 22px;
  left: 22px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.hero-frame::after {
  right: 22px;
  bottom: 22px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.text-glow {
  text-shadow: 0 0 32px rgba(240, 194, 100, .16);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #fcd34d;
  outline-offset: 4px;
}

.ember {
  animation: drift 7s ease-in-out infinite;
}

.ember:nth-of-type(2) {
  animation-delay: -2.5s;
}

.ember:nth-of-type(3) {
  animation-delay: -5s;
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0);
    opacity: .22;
  }

  50% {
    transform: translate3d(10px, -18px, 0);
    opacity: .7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
