/* Element defaults. No rounded corners anywhere (SPEC §9.2). */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  color-scheme: light dark;
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: var(--line-height);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: var(--space-3) 0 var(--space-2);
  line-height: 1.25;
}

h1 {
  font-size: var(--font-size-large);
}

h2 {
  font-size: 16px;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: var(--color-background);
  border: var(--border-width) solid var(--color-border-strong);
  padding: var(--space-1) var(--space-2);
  border-radius: 0;
}

textarea {
  width: 100%;
  resize: vertical;
}

:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: 1px;
  border-radius: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-1) var(--space-2);
  border-bottom: var(--border-width) solid var(--color-border);
}

th {
  color: var(--color-text-muted);
  font-weight: 600;
}

[hidden] {
  display: none !important;
}
