:root {
  --sage: #9dbf9e;
  --cream: #fffaf0;
  --accent: #7aa884;
  --muted: #7b7b7b;
  --card: rgba(255, 255, 255, 0.85);
  --glass: rgba(255, 255, 255, 0.6);
  --shadow: 0 10px 30px rgba(20, 20, 20, 0.08);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--cream), #f6f9f6 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: #20323a;
}

.wrap {
  width: 100%;
  max-width: 760px;
  background: linear-gradient(
    135deg,
    rgba(157, 191, 158, 0.12),
    rgba(122, 168, 132, 0.06)
  );
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px) saturate(120%);
  border: 1px solid rgba(160, 180, 160, 0.12);
}

header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sage), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 26px;
  box-shadow: 0 6px 18px rgba(60, 90, 60, 0.12);
}

h1 {
  font-size: 20px;
  margin: 0;
}
p.lead {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card {
  margin-top: 12px;
  background: var(--card);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(30, 40, 30, 0.04);
  border: 1px solid rgba(120, 140, 120, 0.06);
}

ul.tasks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
li.task {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
li.task:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(30, 40, 30, 0.06);
}

/* faux checkbox */
.checkbox {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid rgba(110, 140, 110, 0.08);
}

.checkbox .box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(120, 120, 120, 0.18);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--accent);
}

.content {
  flex: 1;
  min-width: 0;
}
.title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.meta {
  font-size: 13px;
  color: var(--muted);
}

/* done/undone styles */
li.task.done .box {
  background: var(--accent);
  border-color: transparent;
  color: white;
}
li.task.done .title {
  color: #40544a;
  text-decoration: line-through;
  opacity: 0.85;
}
li.task.done .meta {
  opacity: 0.8;
}

.tag {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(120, 140, 120, 0.09);
  color: #3b5a48;
  margin-left: 10px;
}

footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stats {
  color: var(--muted);
  font-size: 13px;
}
.add-btn {
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--sage), var(--accent));
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* responsive */
@media (max-width: 520px) {
  .logo {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }
  .checkbox {
    width: 36px;
    height: 36px;
  }
}
