:root {
  color-scheme: light dark;
}

body {
  font-family: system-ui, sans-serif;
  max-width: 32rem;
  margin: 3rem auto;
  padding: 0 1rem;
}

h1 {
  margin-bottom: 0.25rem;
}

.subtitle {
  color: #6b7280;
  margin-top: 0;
  font-size: 0.9rem;
}

#task-form {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

#task-title {
  flex: 1;
  padding: 0.5rem;
}

button {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

#task-list {
  list-style: none;
  padding: 0;
}

#task-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

button.delete {
  background: none;
  border: 1px solid #d1d5db;
  font-size: 0.8rem;
}
