:root {
  --dm-bg: #e8dfcf;
  --dm-surface: #f7f0e2;
  --dm-text: #2f2922;
  --dm-text-muted: #766957;
  --dm-accent: #a6422b;
  --dm-danger: #9e3028;
  --dm-success: #3e6849;
  --dm-font: "Courier New", monospace;
  --dm-font-size: 14px;
  --dm-space-md: 16px;
  --dm-radius: 0px;
  --dm-scanlines: 0;
  --dm-texture: 1;
  --dm-max-width: 800px;
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; color: var(--dm-text); background: var(--dm-bg); font-family: var(--dm-font); }
.shell { width: min(800px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 30px; }
header { border-bottom: 3px double var(--dm-accent); padding-bottom: 24px; }
.eyebrow { margin: 0 0 14px; color: var(--dm-accent); font-size: 12px; letter-spacing: .18em; }
h1 { max-width: 680px; margin: 0; color: var(--dm-accent); font-size: clamp(32px, 7vw, 58px); line-height: 1; text-shadow: 2px 2px 0 #cbbba2; }
.intro { max-width: 560px; margin: 18px 0 0; color: var(--dm-text-muted); line-height: 1.55; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.stats div, .card { border: 1px solid #a99678; background: var(--dm-surface); box-shadow: 4px 4px 0 #a99678; }
.stats div { padding: 14px 18px; }
.stats strong { display: block; color: var(--dm-accent); font-size: 30px; }
.stats span, .list-heading span { color: var(--dm-text-muted); font-size: 12px; }
.card { padding: 22px; }
h2 { margin: 0 0 18px; color: var(--dm-accent); font-size: 18px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: var(--dm-text-muted); font-size: 12px; }
input, select { width: 100%; padding: 12px; border: 1px solid #a99678; border-radius: 0; color: var(--dm-text); background: #fffaf0; font: inherit; }
input:focus, select:focus { outline: 2px solid var(--dm-accent); outline-offset: 2px; }
button { border-radius: 0; font: inherit; }
form button, #install { border: 2px solid var(--dm-accent); padding: 12px 16px; color: #fffaf0; background: var(--dm-accent); cursor: pointer; font-weight: bold; box-shadow: 3px 3px 0 #70402f; }
form button:active, #install:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #70402f; }
form button:hover, #install:hover { color: var(--dm-accent); background: #fffaf0; }
.error { color: var(--dm-danger); }
.list { margin-top: 38px; }
.list-heading { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid #a99678; padding-bottom: 12px; }
.task { display: flex; align-items: center; gap: 12px; min-height: 66px; border-bottom: 1px solid #c9bba5; }
.task-copy { display: grid; flex: 1; gap: 5px; }
.task-copy strong { color: var(--dm-text); }
.task-copy span { color: var(--dm-text-muted); font-size: 11px; }
.is-done .task-copy strong { color: var(--dm-text-muted); text-decoration: line-through; }
.check, .delete { padding: 4px 8px; border: 1px solid #a99678; color: var(--dm-accent); background: transparent; cursor: pointer; font-size: 22px; line-height: 1; }
.delete { color: var(--dm-text-muted); }
.check:hover, .delete:hover { border-color: var(--dm-accent); color: var(--dm-accent); }
.empty { padding: 42px 20px; color: var(--dm-text-muted); text-align: center; }
.empty span { display: block; color: var(--dm-accent); font-size: 25px; }
.empty p { line-height: 1.55; }
footer { margin-top: 46px; color: var(--dm-text-muted); font-size: 11px; text-align: center; }
#install { margin-left: 8px; padding: 6px 9px; font-size: 11px; }
@media (max-width: 520px) { .shell { width: min(100% - 22px, 800px); padding-top: 28px; } .card { padding: 16px; } .stats div { padding: 12px; } }
