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

html {
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--color-canvas);
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--color-ink);
  background: var(--color-canvas);
  font-family: inherit;
  letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

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

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

a {
  color: var(--color-primary-hover);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #054f49;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.3;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  margin: var(--space-8) 0 var(--space-4);
  font-size: 1.125rem;
}

h3 {
  margin: var(--space-5) 0 var(--space-2);
  font-size: 1rem;
}

code,
.identifier {
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--space-2);
  left: var(--space-2);
  min-height: var(--control-height);
  padding: 10px var(--space-4);
  color: var(--color-surface);
  background: var(--color-ink);
  border-radius: var(--radius-md);
  transform: translateY(-160%);
}

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

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

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
