/*
 * Hand-written, unlike tokens.css (generated, do not edit). Shared component
 * styles that build on the token variables — buttons, badges, form controls,
 * matching design-components.json's neubrutalist-pastel spec: 2px borders,
 * flat 3px offset shadows, pill radius on interactive elements.
 */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.6rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--color-border);
  transition: transform 0.1s ease;
}
.button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--color-border);
}
.button--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}
.button--secondary {
  background: var(--color-background);
  color: var(--color-ink);
}
.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.badge {
  display: inline-block;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  padding: 0.15rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.field {
  display: block;
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-background);
  color: var(--color-ink);
  box-sizing: border-box;
}
.field textarea {
  min-height: 6rem;
  resize: vertical;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.3rem 0.9rem;
  cursor: pointer;
  background: var(--color-background);
  font-size: 0.9rem;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip:has(input:checked) {
  background: var(--color-ink);
  color: var(--color-on-ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  margin-bottom: 1rem;
}
.form-status--error {
  background: var(--color-blush);
}
.form-status--success {
  background: var(--color-minze);
}
