/* Reset and element defaults. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--at-header-h) + var(--at-space-5));
}

body {
  margin: 0;
  background-color: var(--at-color-bg);
  color: var(--at-color-fg);
  font-family: var(--at-font-sans);
  font-size: var(--at-text-body);
  font-weight: var(--at-font-weight-body);
  line-height: var(--at-leading-normal);
  -webkit-font-smoothing: auto;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--at-color-fg-strong);
  font-weight: var(--at-font-weight-heading);
  line-height: var(--at-leading-tight);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--at-transition), opacity var(--at-transition);
}

a:hover {
  color: var(--at-color-primary);
}

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

button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--at-color-primary);
  outline-offset: 3px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}

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

.at-skip-link {
  position: absolute;
  top: -100px;
  left: var(--at-space-4);
  z-index: calc(var(--at-z-drawer) + 1);
  padding: var(--at-space-3) var(--at-space-5);
  border-radius: var(--at-radius);
  background-color: var(--at-color-primary);
  color: var(--at-color-fg-inverse);
}

.at-skip-link:focus {
  top: var(--at-space-4);
  color: var(--at-color-fg-inverse);
}
