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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--akc-header-height);
}

body.ui-shell {
  margin: 0;
  color: var(--akc-color-text);
  background: var(--akc-color-surface);
  font-family: var(--akc-font-sans);
  font-size: var(--akc-font-size-md);
  line-height: var(--akc-line-height-normal);
  text-rendering: optimizeLegibility;
}

body.ui-shell :is(h1, h2, h3, h4) {
  color: var(--akc-color-heading);
  font-family: var(--akc-font-heading);
  line-height: var(--akc-line-height-tight);
  text-wrap: balance;
}

body.ui-shell :is(img, svg, video, iframe) {
  max-width: 100%;
}

body.ui-shell :is(button, input, select, textarea) {
  font: inherit;
}

body.ui-shell :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--akc-color-focus);
  outline-offset: 2px;
  box-shadow: var(--akc-shadow-focus);
}

body.ui-shell a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

.ui-skip-link {
  position: fixed;
  z-index: var(--akc-layer-overlay);
  top: var(--akc-space-3);
  left: var(--akc-space-3);
  padding: var(--akc-space-3) var(--akc-space-4);
  border-radius: var(--akc-radius-sm);
  color: #fff;
  background: var(--akc-color-brand-950);
  transform: translateY(-180%);
}

.ui-skip-link:focus {
  transform: translateY(0);
}

[id="main-content"] {
  scroll-margin-top: var(--akc-header-height);
}

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

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