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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: clip;
  background: var(--color-midnight);
  color: var(--color-pearl);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  border-radius: 0;
  color: inherit;
  font: inherit;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-color: currentColor;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: var(--color-copper-light);
}

h1,
h2,
h3,
p,
figure,
blockquote,
ol,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: inherit;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-wrap: balance;
}

p {
  max-width: 65ch;
}

::selection {
  background: var(--color-copper);
  color: var(--color-pearl);
}

:focus-visible {
  outline: 2px solid var(--color-copper-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: var(--layer-skip);
  inset: 1rem auto auto 1rem;
  transform: translateY(-200%);
  background: var(--color-pearl);
  color: var(--color-ink);
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

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

[hidden] {
  display: none !important;
}
