
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f7f5fb;
  color: #292536;
  font-family: Arial, sans-serif;
}

.app {
  width: min(100%, 560px);
  padding: 36px;
  background: white;
  border: 1px solid #ebe6f2;
  border-radius: 22px;
  box-shadow: 0 18px 55px #3020500d;
}

.eyebrow {
  color: #7965a7;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
}

h1 {
  margin: 12px 0 0;
  font-size: clamp(36px, 8vw, 54px);
  letter-spacing: -2px;
}

h1 span {
  color: #8d75bd;
}

.subtitle {
  color: #797483;
  margin-bottom: 28px;
}

form {
  display: flex;
  gap: 10px;
}

input {
  min-width: 0;
  flex: 1;
  padding: 14px;
  border: 1px solid #e5dfed;
  border-radius: 10px;
  font-size: 14px;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  background: #7965a7;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: #65518f;
}

.summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  color: #777181;
  font-size: 13px;
}

.text-button {
  padding: 6px;
  background: transparent;
  color: #7965a7;
}

.text-button:hover {
  background: #f3eff9;
}

ul {
  padding: 0;
  margin: 16px 0;
  list-style: none;
}

li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #eeeaf3;
  overflow-wrap: anywhere;
}

li input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: #7965a7;
}

li span {
  flex: 1;
}

li.completed span {
  color: #9993a2;
  text-decoration: line-through;
}

.delete-button {
  padding: 7px 10px;
  background: #f5f1f8;
  color: #6a567f;
}

.delete-button:hover {
  background: #e9dff2;
}

#empty-state {
  padding: 18px 0;
  color: #8a8493;
  font-size: 14px;
  text-align: center;
}

.footer-note {
  margin-top: 30px;
  color: #9993a2;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 480px) {
  .app {
    padding: 22px;
  }

  form {
    flex-direction: column;
  }
}
