/* createahead v1 — Base reset, typography, focus, accessibility helpers */

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

html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--page-x-mobile);
  z-index: 100;
  padding: 0.75rem 1rem;
  background-color: var(--text);
  color: var(--bg);
  border-radius: var(--radius-control);
  font-weight: 500;
  transition: top 180ms var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

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

  .orbital__orb,
  .orbital__path,
  .orbital__node,
  .orbital__scene {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

html.reduce-motion {
  scroll-behavior: auto;
}

html.reduce-motion .orbital__orb,
html.reduce-motion .orbital__path,
html.reduce-motion .orbital__node,
html.reduce-motion .orbital__scene {
  animation: none !important;
  transition-duration: 0.01ms !important;
}
