:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #182033;
  background: #f4f5fa;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, #ebe7ff 0, transparent 32rem),
    #f4f5fa;
}

button,
input {
  font: inherit;
}

button {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  color: #ffffff;
  background: #5b3fd1;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #4930b7;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:focus-visible,
input:focus-visible,
.build-link:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.app-shell {
  width: min(100% - 2rem, 75rem);
  margin: 0 auto;
  padding: 3rem 0;
}

.page-header {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #5b3fd1;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.intro {
  margin-bottom: 0;
  color: #596177;
  font-size: 1.05rem;
  line-height: 1.6;
}

.build-link-row {
  margin: 1rem 0 0;
}

.build-link {
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.task-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 1.25rem;
  border: 1px solid #dcdfea;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 0.75rem 2rem rgb(28 34 52 / 8%);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 750;
}

.field input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #aeb4c5;
  border-radius: 0.7rem;
  color: #182033;
  background: #ffffff;
}

.field input:hover {
  border-color: #717a91;
}

.field-help,
.form-message,
.app-message {
  font-size: 0.9rem;
}

.field-help {
  margin-bottom: 0;
  color: #687087;
}

.form-message {
  min-height: 1.4rem;
  margin: 0.65rem 0 0;
  color: #a32929;
  font-weight: 650;
}

.app-message {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid #e0a2a2;
  border-radius: 0.75rem;
  color: #7f1d1d;
  background: #fff1f1;
  font-weight: 650;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.column {
  min-width: 0;
  min-height: 18rem;
  padding: 1rem;
  border: 1px solid #dcdfea;
  border-radius: 1rem;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 0.5rem 1.5rem rgb(28 34 52 / 6%);
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e4e6ee;
}

.column-count {
  min-width: 1.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: #4930b7;
  background: #eeeaff;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.task-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.empty-state {
  padding: 2rem 1rem;
  border: 1px dashed #c6cad7;
  border-radius: 0.75rem;
  color: #687087;
  text-align: center;
}

.task-card {
  padding: 0.9rem;
  border: 1px solid #d8dbe6;
  border-radius: 0.8rem;
  background: #ffffff;
}

.task-title {
  overflow-wrap: anywhere;
  margin-bottom: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.task-action {
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
}

.task-action--secondary {
  color: #343b50;
  background: #e8eaf1;
}

.task-action--secondary:hover {
  background: #d8dbe5;
}

.task-action--danger {
  color: #8b1e1e;
  background: #fde8e8;
}

.task-action--danger:hover {
  background: #f7d0d0;
}

@media (max-width: 48rem) {
  .app-shell {
    width: min(100% - 1.25rem, 40rem);
    padding: 2rem 0;
  }

  .task-form,
  .board {
    grid-template-columns: 1fr;
  }

  .task-form button {
    width: 100%;
  }

  .column {
    min-height: 12rem;
  }
}
.form-message--success {
  color: #25603f;
}
