.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#todo-home,
#new-task-form {
  width: min(36rem, 100%);
  margin: 0 auto;
}

#task-box-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#task-box-top #search-bar {
  flex: 1 1 10rem;
  min-width: 0;
}

.neo-input,
.neo-textarea {
  width: 100%;
  padding: 11px;
  background: var(--paper);
  color: var(--ink);
  border: var(--border-thin) solid var(--ink);
  border-radius: var(--radius-md);
  font-size: 16px;
  appearance: none;
}

.neo-textarea {
  font-family: inherit;
  resize: vertical;
}

.neo-input:focus,
.neo-textarea:focus {
  outline: none;
  border-color: var(--purple-deep);
  box-shadow: inset 0 0 0 1px var(--purple-deep);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.empty-state {
  text-align: center;
  background: var(--purple);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.8125rem;
}

.task-container {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.task {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  text-align: left;
  background: var(--card);
  border: var(--border-thin) solid var(--ink);
  border-radius: var(--radius-md);
  transition: box-shadow 90ms ease-out;
}

@media (hover: hover) {
  .task:hover {
    box-shadow: 0 0 0 2px var(--ink);
  }
}

.task:active {
  box-shadow: none;
}

.task-title {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.9375rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-description {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delete-button {
  flex: 0 0 auto;
  min-width: var(--tap);
  padding: 8px;
  font-size: 1.125rem;
  background: var(--card);
  border: var(--border-thin) solid var(--ink);
  border-radius: var(--radius-md);
  transition: background-color 90ms ease-out;
}

@media (hover: hover) {
  .delete-button:hover {
    background: var(--purple);
  }
}
