html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background-color: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--typeface-sans);
  font-size: var(--text-16);
  font-weight: 400;
  line-height: var(--leading-body);
  text-align: start;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body > main {
  flex-grow: 1;
}

:is(h1, h2, h3, h4, h5, h6) {
  margin: 0;
  color: inherit;
  font-weight: 600;
  line-height: var(--leading-heading);
  letter-spacing: normal;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-32);
  letter-spacing: var(--tracking-heading);
}

h2 {
  font-size: var(--text-20);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--text-18);
}

:is(h4, h5, h6) {
  font-size: var(--text-16);
}

:is(p, dl, dd, ol, ul, figure, blockquote, pre) {
  margin: 0;
}

:is(ol, ul) {
  padding-inline-start: var(--space-24);
}

dt {
  font-weight: 600;
}

:is(b, strong) {
  font-weight: 600;
}

small {
  font-size: 0.875em;
}

a {
  color: var(--color-accent-ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:is(:hover, :focus) {
  color: var(--color-accent-ink);
  text-decoration-thickness: 2px;
}

:is(code, kbd, samp, pre) {
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-family: var(--typeface-mono);
  font-size: var(--mono-scale);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

:is(button, input, select, textarea) {
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

:is(img, svg, video, canvas) {
  vertical-align: middle;
}

:is(img, video) {
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
}

caption {
  padding: 0;
  caption-side: top;
  color: inherit;
  text-align: start;
}

th {
  text-align: start;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
}

hr {
  height: 2px;
  margin: 0;
  border: 0;
  box-shadow: var(--groove);
  color: inherit;
  opacity: 1;
}

[hidden]:not([hidden="until-found"]) {
  display: none !important;
}

:focus-visible {
  outline: var(--focus-width) solid var(--color-accent-ink);
  outline-offset: var(--focus-offset);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
