:root {
  --ink: #14532d;
  --ink-strong: #052e16;
  --muted: #3f6212;
  --muted2: #4d7c0f;
  --card: rgba(255, 255, 255, 0.9);
  --border: rgba(134, 239, 172, 0.55);
  --primary: #15803d;
  --primary-ink: #fff;
  --soft: #dcfce7;
  --shadow: 0 16px 40px rgba(20, 83, 45, 0.08);
  --radius: 20px;
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink-strong);
  background: #f7fee7;
  line-height: 1.5;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 10% -5%, #bbf7d0 0%, transparent 55%),
    radial-gradient(700px 400px at 100% 0%, #fef08a 0%, transparent 50%),
    linear-gradient(180deg, #ecfccb, #f7fee7 45%, #fafaf9);
}

.wrap {
  width: min(740px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.4rem 0 3.5rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
h1 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: clamp(2.3rem, 7vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}
.lede {
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 40ch;
}

.progress-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem 1.15rem;
  margin-bottom: 1.2rem;
  position: sticky;
  top: 0.6rem;
  z-index: 5;
  backdrop-filter: blur(12px);
}
.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.progress-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted2);
}
.progress-text {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
}

.bar {
  height: 12px;
  background: #ecfccb;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #bbf7d0;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #15803d);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn.ghost {
  background: #fff;
  border: 1px solid #86efac;
  color: var(--ink-strong);
}
.btn.ghost:hover { background: var(--soft); }

.sections { display: grid; gap: 1rem; }

.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem 0.55rem;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
}
.section-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted2);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0 0.55rem 0.7rem;
}
.list li {
  border-top: 1px solid #dcfce7;
}
.list label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.5rem;
  cursor: pointer;
  border-radius: 12px;
}
.list label:hover { background: rgba(220, 252, 231, 0.55); }
.list input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--primary);
  cursor: pointer;
}
.item-title {
  margin: 0;
  font-weight: 600;
  color: var(--ink-strong);
}
.item-note {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
label.done .item-title {
  text-decoration: line-through;
  color: var(--muted2);
  opacity: 0.85;
}
label.done .item-note { opacity: 0.7; }

.foot {
  margin-top: 2.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot p { margin: 0.2rem 0; }
.foot-note { font-size: 0.8rem; max-width: 48ch; margin-inline: auto !important; }

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.mode-btn {
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.mode-btn:hover { background: rgba(220, 252, 231, 0.7); color: var(--ink-strong); }
.mode-btn.active {
  background: #fff;
  color: var(--ink-strong);
  box-shadow: 0 4px 14px rgba(20, 83, 45, 0.12);
  border: 1px solid #86efac;
}
