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

html {
  font-family: var(--font-mono);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-size: var(--text);
  line-height: var(--leading);
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-size: inherit;
  font-weight: 400;
}

p {
  max-inline-size: var(--measure-text);
}

a {
  color: inherit;
  text-decoration-thickness: var(--rule-thin);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

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

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}
