* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-main);
  background: var(--paper);
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: inherit;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 4rem);
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

p {
  color: var(--muted);
}

section[id] {
  scroll-margin-top: 112px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.clean-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.skip-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

::selection {
  color: #ffffff;
  background: var(--cyan);
}
