/* Predictable browser baseline; Bootstrap remains the layout foundation. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--gem-header-height) + 20px);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--gem-white);
  color: var(--gem-body);
  font-family: var(--gem-font-body);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--gem-primary);
  font-family: var(--gem-font-heading);
  font-weight: 700;
  line-height: 1.2;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

img {
  height: auto;
}

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

button,
[role="button"] {
  cursor: pointer;
}

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

a:hover {
  color: inherit;
}

:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--gem-yellow);
  outline-offset: 3px;
}

::selection {
  background: var(--gem-purple);
  color: var(--gem-white);
}

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

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