:root {
  --bg: #f6f1e8;
  --bg-card: #fffcf7;
  --ink: #1c1917;
  --ink-muted: #57534e;
  --accent: #1a3c34;
  --accent-soft: #2d5a4e;
  --gold: #c4783a;
  --line: #e7e0d4;
  --check: #1a3c34;
  --shadow: 0 8px 30px rgba(28, 25, 23, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 2rem;
}

.wide { width: min(1100px, 100% - 2rem); margin-inline: auto; }

/* —— Page head —— */
.page-head { padding: 2.5rem 0 1.5rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.page-head h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.page-head p { color: var(--ink-muted); font-size: 0.98rem; }

/* —— Toolbar —— */
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.progress {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  background: #e6efe9;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.btn-ghost {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* —— Cards —— */
.list-groups { display: grid; gap: 0.85rem; }

@media (min-width: 760px) {
  .list-groups { display: block; column-count: 2; column-gap: 0.85rem; }
  .list-card { break-inside: avoid; margin-bottom: 0.85rem; }
}

@media (min-width: 1080px) {
  .list-groups { column-count: 3; }
}

.list-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.list-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.85rem 1rem 0.35rem;
}

/* —— Checkboxes —— */
.check-list { list-style: none; }
.check-list li { border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: none; }

.check-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  user-select: none;
}

.check-list input { position: absolute; opacity: 0; pointer-events: none; }

.box {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  margin-top: 1px;
  border: 2px solid #c4bbb0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  transition: 0.15s ease;
  background: #fff;
}

.box svg {
  width: 14px; height: 14px;
  stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.6);
  transition: 0.15s ease;
}

.check-list input:checked + .box { background: var(--check); border-color: var(--check); }
.check-list input:checked + .box svg { opacity: 1; transform: scale(1); }

.check-list input:checked ~ .item-text {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: #b5aea4;
}

.check-list input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 2px; }

.item-text {
  flex: 1;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.35;
  transition: 0.15s ease;
}

.item-text small {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 0.15rem;
  text-decoration: none !important;
}

/* —— Footer —— */
footer {
  text-align: center;
  padding: 1.75rem 1rem 0.5rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
}
