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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--mshp-text-body);
  background:
    linear-gradient(135deg, rgba(0, 160, 223, 0.05) 0 2px, transparent 2px) 0 0 / 28px 28px,
    var(--color-bg);
  background-attachment: fixed;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  color: var(--mshp-text);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 var(--space-4);
}

h1 {
  font-size: clamp(26px, 3vw, 32px);
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--mshp-sky-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--mshp-sky);
}

:focus-visible {
  outline: 2px solid var(--mshp-sky);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -40px;
  z-index: 100;
  background: var(--mshp-paper);
  color: var(--mshp-text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}

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

.muted {
  color: var(--mshp-muted);
  margin: var(--space-2) 0 0;
}

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

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

@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px;
  }
}

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