html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--c-primary);
}

h1 {
  font-size: var(--fs-3xl);
}

h2 {
  font-size: var(--fs-2xl);
}

h3 {
  font-size: var(--fs-xl);
}

p {
  color: var(--c-text);
}

a:hover {
  color: var(--c-secondary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.htmx-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: var(--z-progress);
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity var(--ease);
}

.htmx-indicator.is-active,
.htmx-request .htmx-indicator {
  opacity: 1;
  background: linear-gradient(
    90deg,
    transparent,
    var(--c-secondary),
    var(--c-primary),
    transparent
  );
  background-size: 200% 100%;
  animation: htmx-progress 0.9s linear infinite;
}

@keyframes htmx-progress {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
