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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background: var(--genesis-night);
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

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

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

button {
  border: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--genesis-night);
  color: var(--genesis-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 {
  font-size: var(--font-size-display);
  font-weight: 760;
}

h2 {
  font-size: var(--font-size-section-title);
  font-weight: 730;
}

h3 {
  font-size: var(--font-size-card-title);
  font-weight: 710;
}

p {
  text-wrap: pretty;
}

code {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 3px solid var(--genesis-focus);
  outline-offset: 4px;
}

::selection {
  background: var(--genesis-cyan);
  color: var(--genesis-navy-ink);
}
