html {
  font-size: var(--theme-text-md);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--theme-font-sans);
  font-size: var(--theme-text-md);
  line-height: var(--theme-leading-normal);
  color: var(--theme-color-text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font: inherit;
  line-height: var(--theme-leading-tight);
}

strong,
b {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

small {
  font-size: var(--theme-text-sm);
}

code,
kbd,
samp,
pre {
  font-family: var(--theme-font-mono);
}

h1,
h2,
h3,
p,
label,
legend,
button,
select,
input {
  overflow-wrap: anywhere;
}

a {
  color: var(--theme-color-link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition:
    color var(--theme-motion-fast) var(--theme-motion-ease-standard),
    text-decoration-color var(--theme-motion-fast)
      var(--theme-motion-ease-standard);
}

a:visited {
  color: var(--theme-color-link-visited);
}

a:hover,
a:focus-visible {
  color: var(--theme-color-link-hover);
}
