:root {
  color-scheme: light dark;
  --text: light-dark(#191919, #ffffff);
  --muted: light-dark(#596063, #979a9b);
  --background: light-dark(#f8f1e3, #202020);
  --accent: light-dark(#fa6863, #ff9890);
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--background);
  margin: 0;
  padding: 3rem 1rem;
}

main {
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-size: 1.5rem;
  margin: 0.5rem 0 0;
}

output {
  display: block;
  font-size: 6rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

button {
  font: inherit;
  font-size: 1.25rem;
  min-width: 3.5rem;
  padding: 0.5rem 1rem;
  color: var(--text);
  background: none;
  border: 2px solid var(--text);
  border-radius: 0.5rem;
  cursor: pointer;
}

button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.note {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: left;
}

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