/* Pinned to a light scheme on purpose: with "light dark" the UA gives buttons light text in dark
   mode, and any control without an explicit colour goes invisible. */
:root { color-scheme: light; --line: #d9d4cd; --accent: #2f6f5e; --ink: #1b1a18; }
* { box-sizing: border-box; }
body { margin: 0; background: #f7f5f2; color: var(--ink); font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, sans-serif; }
.board { max-width: 520px; margin: 48px auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px 26px 18px; }
h1 { font-size: 21px; margin: 0 0 16px; letter-spacing: -0.01em; }
form { display: flex; gap: 8px; margin-bottom: 14px; }
input[type=text], #title { flex: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
button { font: inherit; padding: 8px 13px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 6px; cursor: pointer; }
form button { background: var(--accent); color: #fff; border-color: var(--accent); }
.filters { display: flex; gap: 6px; margin-bottom: 12px; }
.filters button { padding: 5px 12px; font-size: 13px; }
.filters button.on { border-color: var(--accent); color: var(--accent); }
ul { list-style: none; margin: 0; padding: 0; }
li { display: flex; align-items: center; gap: 11px; padding: 10px 2px; border-top: 1px solid var(--line); }
li.done span { text-decoration: line-through; opacity: .55; }
li span { flex: 1; }
li button { border: 0; background: none; font-size: 18px; color: #a09a92; padding: 0 4px; }
li button:hover { color: #c0392b; }
footer { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 11px; font-size: 13px; color: #6d675f; }
