:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

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

h1,
h2,
h3,
h4,
p {
  margin-block-start: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--text-strong);
  line-height: var(--leading-tight);
}

h1 {
  margin-block-end: var(--space-4);
  font-size: var(--text-2xl);
}

h2 {
  margin-block-end: var(--space-3);
  font-size: var(--text-xl);
}

h3,
h4 {
  margin-block-end: var(--space-2);
  font-size: var(--text-lg);
}

p {
  margin-block-end: var(--space-4);
}

a {
  color: var(--accent-hover);
  text-underline-offset: var(--space-1);
}

code {
  padding: 0.125rem var(--space-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--raised);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
