:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.site-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid currentColor;
}

h1 {
  margin: 0;
  font-size: 1.25rem;
}

h2 {
  font-size: 1.125rem;
}

h3 {
  font-size: 1rem;
}

main {
  max-width: 32rem;
  margin: 0 auto;
  padding: 1rem;
}

section {
  margin-block: 1rem;
}

form {
  display: grid;
  gap: 0.5rem;
}

label,
dt {
  font-weight: 600;
}

input,
select,
button {
  font: inherit;
  padding: 0.4rem 0.6rem;
}

button {
  justify-self: start;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 3px solid Highlight;
  outline-offset: 2px;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
}

dl > div {
  display: contents;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hint {
  margin: 0;
  font-size: 0.875rem;
}

[role="alert"]:empty,
[role="status"]:empty {
  display: none;
}
