:root {
  --ink: #202629;
  --muted: #778080;
  --paper: #f5f6f0;
  --surface: #ffffff;
  --line: #dfe4df;
  --accent: #f06a4f;
  --accent-dark: #ca5038;
  --mint: #dceee4;
  --yellow: #f7c94d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: radial-gradient(circle at 85% 0%, #fff5d3 0, transparent 28%), var(--paper);
  font-family: "DM Sans", sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1040px, calc(100% - 48px)); margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 30px 0 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 9px; align-items: center; font-family: "Space Grotesk", sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.brand-mark { color: var(--accent); font-size: 26px; line-height: 1; }
.date-stamp { color: var(--muted); font-size: 13px; }
.intro { padding: 76px 0 56px; }
.eyebrow { margin: 0 0 18px; color: var(--accent-dark); font-size: 11px; font-weight: 700; letter-spacing: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 650px; margin-bottom: 18px; font-family: "Space Grotesk", sans-serif; font-size: clamp(46px, 7vw, 82px); line-height: .98; letter-spacing: -4px; }
h1 em { color: var(--accent); font-style: normal; }
.lede { color: var(--muted); font-size: 17px; }
.workspace { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 50px rgba(43, 52, 45, .08); }
.toolbar { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px 20px; border-bottom: 1px solid var(--line); }
.list-heading { display: flex; align-items: center; gap: 10px; }
.heading-dot { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }
h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 20px; }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; color: #63706c; background: var(--mint); border-radius: 12px; font-size: 12px; font-weight: 700; }
.filters { display: flex; gap: 4px; }
.filter { padding: 7px 12px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; font-size: 13px; }
.filter:hover, .filter.active { color: var(--ink); background: #f0f2ed; }
.add-form { display: flex; gap: 12px; padding: 22px 28px; background: #fbfcf9; border-bottom: 1px solid var(--line); }
.add-form input { min-width: 0; flex: 1; padding: 13px 15px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 4px; outline: none; }
.add-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 106, 79, .12); }
.add-button { padding: 0 18px; color: white; background: var(--accent); border: 0; border-radius: 4px; font-weight: 700; }
.add-button:hover { background: var(--accent-dark); }
.add-button span { margin-right: 5px; font-size: 20px; vertical-align: -1px; }
.task-list { padding: 6px 28px 10px; }
.task { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center; min-height: 68px; border-bottom: 1px solid #edf0ec; animation: rise .25s ease-out both; }
.task:last-child { border-bottom: 0; }
.check { display: grid; place-items: center; width: 22px; height: 22px; color: white; background: transparent; border: 1.5px solid #bbc5bf; border-radius: 50%; }
.check:hover { border-color: var(--accent); }
.task.completed .check { background: var(--accent); border-color: var(--accent); }
.check::after { content: "✓"; font-size: 13px; opacity: 0; }
.task.completed .check::after { opacity: 1; }
.task-title { margin: 0; font-size: 15px; line-height: 1.45; }
.task.completed .task-title { color: #9aa39f; text-decoration: line-through; }
.task-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.task:hover .task-actions, .task:focus-within .task-actions { opacity: 1; }
.icon-button { width: 30px; height: 30px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; }
.icon-button:hover { color: var(--ink); background: #f0f2ed; }
.edit-input { width: 100%; padding: 6px 8px; border: 1px solid var(--accent); border-radius: 3px; outline: none; }
.empty-state { padding: 52px 20px 62px; color: var(--muted); text-align: center; }
.empty-icon { margin-bottom: 10px; color: var(--yellow); font-size: 44px; }
.empty-state h3 { margin-bottom: 7px; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 18px; }
.empty-state p { margin: 0; font-size: 14px; }
footer { display: flex; align-items: center; gap: 8px; padding: 20px 0 45px; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; background: #61ad78; border-radius: 50%; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1040px); }
  .topbar { padding-top: 20px; }
  .intro { padding: 56px 0 38px; }
  h1 { font-size: 50px; letter-spacing: -2.5px; }
  .toolbar { align-items: flex-start; flex-direction: column; gap: 18px; padding: 20px; }
  .add-form { padding: 16px 20px; }
  .add-button { padding: 0 12px; font-size: 13px; }
  .task-list { padding: 4px 20px 8px; }
  .task-actions { opacity: 1; }
  .date-stamp { font-size: 11px; }
}
