html {
  background: var(--color-black);
  scroll-behavior: smooth;
}

body {
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-200);
  font-weight: 400;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
  max-width: 65ch;
}

a {
  transition: color 0.25s var(--ease-out-expo);
}

/* Words containing descenders (y g j p q) in italic/display type need clearance
   so the descender doesn't clip against the line below. */
.italic-clear {
  font-style: italic;
  line-height: 1.1;
  padding-bottom: 0.25em;
}

:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: var(--z-skiplink);
  background: var(--color-yellow);
  color: var(--color-black);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease-out-expo);
}

.skip-link:focus-visible {
  top: var(--space-2);
}

.eyebrow {
  font-size: var(--fs-100);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-yellow);
  font-weight: 600;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  border-radius: var(--radius-btn);
  padding: var(--space-2) var(--space-4);
  font-weight: 600;
  font-size: var(--fs-200);
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out-expo), background-color 0.2s var(--ease-out-expo);
}

.btn:active {
  transform: scale(0.98);
}

/* Neon edge: a thin gradient line fades in along the top/bottom edge on hover.
   Only visible on btn-secondary (transparent bg); on btn-primary's solid
   yellow fill a yellow line would be invisible, which is fine. */
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-yellow), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
  pointer-events: none;
}

.btn::before {
  top: 0;
}

.btn::after {
  bottom: 0;
}

.btn:hover::before,
.btn:hover::after,
.btn:focus-visible::before,
.btn:focus-visible::after {
  opacity: 1;
}

.btn-primary {
  background: var(--color-yellow);
  color: var(--color-black);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ffd24d;
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white-muted);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
