@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap");
:root {
  --ink: #283a2a;
  --muted: #68745f;
  --line: #e2e7d9;
  --green: #35533b;
  --paper: #fafbf6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f2f4e9;
  color: var(--ink);
  font:
    14px/1.6 "DM Sans",
    sans-serif;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
}
a {
  color: inherit;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #b95e38;
  outline-offset: 3px;
}
input {
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.board {
  max-width: 650px;
  margin: 70px auto;
  background: var(--paper);
  padding: 40px 45px;
  border: 1px solid #e1e5d5;
  border-radius: 10px;
  box-shadow: 0 20px 50px -25px #253c2025;
}
.board-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
  font-size: 10px;
  color: var(--muted);
}
.back-link {
  text-underline-offset: 3px;
}
.demo-label {
  font-size: 9px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 13px;
}
h1 {
  font:
    600 36px/1.2 "Manrope",
    sans-serif;
  letter-spacing: -1.7px;
  margin: 0;
  position: relative;
}
h1 span {
  color: #ad613d;
  margin-left: 10px;
  font-size: 27px;
  vertical-align: top;
}
.subheading {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 27px;
}
.board-stats {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
  color: var(--muted);
}
#task-form {
  display: flex;
  border: 1px solid #cdd6bd;
  background: white;
  border-radius: 5px;
  padding: 5px;
  margin: 0 0 20px;
}
#task-input {
  border: 0;
  background: transparent;
  min-width: 0;
  flex: 1;
  padding: 9px 11px;
  font-size: 12px;
}
#task-input::placeholder {
  color: #76816d;
}
#task-form > button {
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-size: 21px;
  line-height: 1;
  width: 37px;
  flex-shrink: 0;
}
.filter-row {
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}
.filter-row button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10px;
  padding: 4px 0;
}
.filter-row button[aria-pressed="true"] {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 7px;
}
#task-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.task {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.task-check {
  flex-shrink: 0;
  border: 1px solid #a8b798;
  background: transparent;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0;
}
.task.done .task-check {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.task-text {
  flex: 1;
  font-size: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.task.done .task-text {
  text-decoration: line-through;
  color: #65745c;
}
.task-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}
.task-actions button {
  font-size: 13px;
  border: 0;
  background: transparent;
  color: #7a876d;
  width: 27px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}
.task-actions button:hover {
  background: #e9eddf;
}
.task-actions .priority[aria-pressed="true"] {
  color: #986720;
}
.task-actions .edit {
  font-size: 12px;
}
.task.priority-task {
  background: #f0f3e5;
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
}
.board-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  color: var(--muted);
  padding-top: 22px;
}
.storage-note {
  font-size: 9px;
  color: var(--muted);
  margin: 20px 0 0;
}
.board-footer span:last-child span {
  margin-left: 6px;
}
#empty-state {
  padding: 30px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
dialog {
  border: 1px solid #ccd5bf;
  border-radius: 8px;
  max-width: 430px;
  width: calc(100% - 32px);
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #25392466;
  backdrop-filter: blur(2px);
}
dialog h2 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  margin: 0 0 22px;
}
dialog label {
  font-size: 12px;
  display: block;
  margin-bottom: 6px;
}
dialog input {
  width: 100%;
  font-size: 14px;
  border: 1px solid #bdc8ad;
  border-radius: 4px;
  background: white;
  padding: 10px;
}
dialog p {
  overflow-wrap: anywhere;
  font-size: 13px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.dialog-actions button {
  border: 1px solid #b8c4a8;
  border-radius: 4px;
  background: transparent;
  padding: 9px 15px;
  font-size: 12px;
}
.dialog-actions .primary {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
body.embed {
  background: var(--paper);
  font-size: 12px;
}
.embed .board {
  margin: 0;
  max-width: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 24px 25px 18px;
}
.embed .board-topline {
  display: none;
}
.embed .eyebrow {
  font-size: 7px;
  letter-spacing: 1px;
  margin-bottom: 9px;
}
.embed h1 {
  font-size: 25px;
  letter-spacing: -1px;
}
.embed h1 span {
  font-size: 20px;
  margin-left: 7px;
}
.embed .subheading {
  font-size: 9px;
  margin: 9px 0 19px;
}
.embed .board-stats {
  font-size: 8px;
  margin-bottom: 10px;
}
.embed #task-form {
  margin-bottom: 12px;
  padding: 3px;
}
.embed #task-input {
  font-size: 10px;
  padding: 7px 9px;
}
.embed #task-form > button {
  width: 29px;
  font-size: 18px;
}
.embed .filter-row {
  gap: 14px;
  padding-bottom: 7px;
}
.embed .filter-row button {
  font-size: 8px;
}
.embed .task {
  padding: 11px 0;
  gap: 9px;
}
.embed .task.priority-task {
  padding-left: 7px;
  padding-right: 7px;
  margin-left: -7px;
  margin-right: -7px;
}
.embed .task-check {
  width: 17px;
  height: 17px;
  font-size: 9px;
}
.embed .task-text {
  font-size: 10px;
}
.embed .task-actions {
  gap: 0;
}
.embed .task-actions button {
  height: 24px;
  width: 22px;
  font-size: 11px;
}
.embed .task-actions .edit,
.embed .task-actions .delete {
  display: none;
}
.embed .board-footer {
  padding-top: 15px;
  font-size: 7px;
}
.embed .storage-note {
  display: none;
}
.embed #empty-state {
  font-size: 10px;
  padding: 15px 4px;
}
@media (max-width: 600px) {
  .board {
    margin: 20px 15px;
    padding: 28px 23px;
  }
  .board-topline {
    margin-bottom: 30px;
    font-size: 9px;
  }
  .demo-label {
    font-size: 8px;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -1.3px;
  }
  h1 span {
    font-size: 23px;
  }
  .subheading {
    font-size: 11px;
  }
  .task-text {
    font-size: 12px;
  }
  .task-actions button {
    width: 28px;
    height: 34px;
  }
  .task {
    gap: 9px;
  }
  .storage-note {
    font-size: 9px;
  }
  .embed .board {
    padding: 22px 20px 16px;
  }
  .embed h1 {
    font-size: 23px;
  }
  .embed .task-text {
    font-size: 9px;
  }
  .embed .task-actions button {
    width: 20px;
  }
  .embed .board-footer {
    font-size: 7px;
  }
}
