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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: visible;
  max-width: 100vw;
  scrollbar-color: var(--sp-color-text-muted) var(--sp-color-bg);
  scrollbar-width: thin;
}

body {
  font-family: var(--sp-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sp-color-text);
  background-color: var(--sp-color-bg);
  overflow-x: hidden;
  overflow-y: visible;
  max-width: 100vw;
}

body.menu-open {
  overflow: hidden;
}

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

svg {
  max-width: 100%;
}

table {
  max-width: 100%;
}

pre {
  max-width: 100%;
  overflow-x: auto;
}

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

a:hover {
  text-decoration: none;
}

::selection {
  background: var(--sp-orange-600);
  color: var(--sp-color-text-on-primary);
}

.container {
  width: 100%;
  max-width: var(--sp-container-max);
  margin: 0 auto;
  padding: 0 var(--sp-space-6);
}

main {
  padding-top: var(--sp-header-height);
  overflow-x: hidden;
  overflow-y: visible;
}

@media (max-width: 768px) {
  :root {
    --sp-header-height: 64px;
  }

  .container {
    padding: 0 var(--sp-space-4);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-space-3);
  }
}

@media (pointer: coarse) {
  nav a, nav button,
  .site-footer a,
  button, [role="button"],
  input, select, textarea {
    min-height: 44px;
  }

  .breadcrumb a,
  .breadcrumb span {
    min-height: unset;
  }
}

@media (hover: none) {
  .guide-content .code-copy-button {
    opacity: 1;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  :root {
    --sp-header-height: 52px;
  }
}

@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;
  }
}
