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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

h1, h2, h3 {
  margin: 0 0 0.5em 0;
  line-height: 1.25;
}

h1 { font-size: 1.4rem; }
h2 { font-size: 1.3rem; }

p { margin: 0 0 0.75em 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  padding: 0.1em 0.45em;
  border-radius: 4px;
}

button {
  font: inherit;
  cursor: pointer;
}

.hidden {
  display: none !important;
}
