html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  color:       var(--color--aaa-text);
  font-family: var(--font-family--body);
  font-size:   var(--font-size--body);
  font-weight: var(--font-weight--normal);
  line-height: var(--line-height--base);
}

:where(h1, h2, h3, h4, strong) {
  font-weight: var(--font-weight--bold);
}

:where(h1, h2, h3, h4, h5, h6) {
  /* color: var(--color--aaa-high-contrast-text) */
}

h1 {
  text-wrap: balance;
  text-wrap: pretty;
}

h1, .as-h1 {
  font-size: 1.75rem;
}

h2, .as-h2 {
  font-size: 1.5rem;
}

h3, .as-h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

h4, .as-h4 {
  font-size: 1rem;
}

h5, .as-h5 {
  font-size: 0.875rem;
  font-weight: var(--font-weight--medium);
}

h6, .as-h6 {
  font-size: 0.65rem;
  font-weight: var(--font-weight--medium);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

a {
  color: var(--color--link);
  
  &:hover {
    color: var(--color--link-hover);
  }
}

ul {
  padding-inline-start: 1.5rem;
}
ol {
  padding-inline-start: 1.56rem;
}

/* ----------------------------------------------------------------
 * ! FORMS */

label {
  font-size: var(--font-size--ui);
  /* font-weight: var(--font-weight--medium); */
  text-align: left;
}

input {
  font-size: var(--font-size--body);
}

legend {
  font-size: var(--font-size--body);
  font-weight: var(--font-weight--bold);
}

/* ----------------------------------------------------------------
 * ! CODE */

kbd {
  padding: 0.2rem 0.3rem;
  width: fit-content;
  border-radius: 4px;
  font-size: 14px;
  font-weight: var(--font-weight--light);
  line-height: 1;
  text-decoration: none !important;
  color: var(--color--aa-text);
  opacity: 0.8;
  border: 1px solid var(--color--border-low-contrast);
  
  &.physical {
    /* background-color: var(--color--bg-1); */
    box-shadow: 0 3px 0 var(--color--border-low-contrast);
  }
}

code,
kbd,
.mono {
  font-family: var(--font-family--mono);
}

.inspect {
  font-size: 0.66rem;
  font-family: var(--font-family--mono);
  color: var(--color--aa-text);
  background-color: transparent
}

kbd.glyphs {
  font-family: system-ui, ui-monospace, Menlo, monospace !important;
}

p code,
li code {
  color: var(--color--aaa-high-contrast-text);
  font-size: var(--font-size--ui);
  font-weight: var(--font-weight--normal);
  background-color: var(--color--bg-2);
}

code, pre {
  background-color: var(--color--bg-1);
  font-size: var(--font-size--ui);
}


/* ----------------------------------------------------------------
 * ! MISC */
 
 hr {
   border: none;
   border-bottom: var(--border--light);
   width: 100%;
   margin-top: 1rem;
   margin-bottom: 1rem;
 }