html {
  background: #fff;
  color: #111;
  color-scheme: light;
}

html[data-theme="dark"] {
  background: #1c1c1c;
  color: #fafafa;
  color-scheme: dark;
}

html[data-theme="dark"] a {
  color: #9ec1ff;
}

body {
  margin: 2rem;
  line-height: 1.5;
}

nav {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

nav a[aria-current="page"] {
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

label {
  display: block;
}

input,
button {
  font: inherit;
  display: block;
  margin: 0.25rem 0 0.75rem;
}

input[type="radio"] {
  display: inline-block;
  margin: 0 0.4rem 0 0;
}

form[data-theme-form] {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

form[data-theme-form] label {
  display: inline-flex;
  align-items: center;
}

table {
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.15rem 1.25rem 0.15rem 0;
  font-weight: normal;
}

article {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: currentColor;
}
