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

body {
  margin: 0 auto;
  max-width: 72rem;
  padding: 1rem;
}

[hidden] {
  display: none !important;
}

.langs {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
}

.langs [aria-pressed='true'] {
  font-weight: 700;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  list-style: none;
  padding: 0;
}

.card {
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  padding: 1rem;
}

.card[data-state='taken'] {
  opacity: 0.6;
}

.error {
  color: #b00020;
  min-height: 1.5em;
}

.toast {
  background: #222;
  border-radius: 0.5rem;
  bottom: 1rem;
  color: #fff;
  left: 50%;
  opacity: 0;
  padding: 0.75rem 1rem;
  position: fixed;
  transform: translateX(-50%);
  transition: opacity 0.2s;
}

.toast.visible {
  opacity: 1;
}
