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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--str-font-sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .11;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(36,87,255,.08) 1px, transparent 0);
  background-size: 18px 18px;
}

a {
  color: inherit;
  text-decoration-color: rgba(36,87,255,.42);
  text-underline-offset: .18em;
  transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

a:hover {
  color: var(--accent-soft);
}

img,
svg {
  max-width: 100%;
  height: auto;
}

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

button {
  color: inherit;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 16px;
  color: var(--text);
  font-family: var(--str-font-sans);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: 56px;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 26px;
  font-weight: 500;
}

p {
  margin: 0 0 18px;
}

ul,
ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

li + li {
  margin-top: 8px;
}

code,
kbd,
pre,
.mono {
  font-family: var(--str-font-mono);
}

table {
  border-collapse: collapse;
}

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  padding: 8px 12px;
  color: #FFFFFF;
  background: var(--accent-soft);
  border-radius: 6px;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }
}
