:root {
  --fg: #111;
  --muted: #999;
  --bg: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #eee;
    --muted: #666;
    --bg: #111;
  }
}

body {
  font: 14px/1.5 system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
}

h1 {
  font-size: inherit;
  font-weight: 600;
  margin: 0;
}

button {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button[aria-pressed="true"],
th[aria-sort] button {
  color: var(--fg);
}

.muted,
#status {
  color: var(--muted);
}

nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: .35rem 0;
  text-align: right;
  font-weight: 400;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  padding-bottom: .75rem;
}

footer {
  color: var(--muted);
  margin-top: 4rem;
}

footer a {
  color: inherit;
}
