html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-width: 20rem;
  overflow-x: hidden;
  background-color: #fbfcfe;
  background-image:
    linear-gradient(rgba(11, 31, 58, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 58, 0.025) 1px, transparent 1px);
  background-size: 3rem 3rem;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

h1,
h2,
h3 {
  color: var(--color-navy-950);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 8.25vw, 5.1rem);
  font-weight: 580;
  line-height: 1.02;
}

h2 {
  font-size: clamp(2.4rem, 8vw, 5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

p {
  text-wrap: pretty;
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--color-blue-100);
  color: var(--color-navy-950);
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  outline: 0;
  background: rgba(255, 255, 255, 0.07);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

select option {
  color: var(--color-ink);
}
