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

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

/* iPhone Safari zooms the page into a field whose text is under 16px as soon as it's tapped, so on
   phones every field reads at 16px, whatever its own size elsewhere. The one place this stylesheet
   overrides the components' own rules. */
@media (max-width: 767px) {
  input:not([type="checkbox"], [type="radio"], [type="range"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

body {
  margin: 0;
  background: var(--surface-1);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

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

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

.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glyph {
  position: relative;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glyph__dots {
  stroke-width: 6;
}

.chip-mark {
  flex: none;
  fill: none;
  stroke: var(--win);
  stroke-width: 2.5;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
