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

html {
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-synthesis: none;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
}

main,
header,
footer,
section,
article,
nav,
form,
fieldset,
div {
  min-width: 0;
}

h1,
h2,
h3,
h4,
p {
  margin-block-start: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  text-wrap: balance;
}

h1 {
  margin-block-end: 0;
  font-size: clamp(2.45rem, 5vw, 5.3rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  max-width: 100%;
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

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

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

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}
