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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0C0D0C;
  color: #F6F4F0;
  line-height: 1.6;
  min-height: 100vh;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 13, 12, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #1A1C1A;
}

nav {
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-title {
  font-size: 13px;
  font-weight: 600;
  color: #8C8A83;
  letter-spacing: 0.3px;
}

.nav-progress {
  font-size: 12px;
  font-weight: 500;
  color: #2ABFAD;
  font-variant-numeric: tabular-nums;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 80px;
}


/* intro */

.intro {
  padding: 52px 0 48px;
  border-bottom: 1px solid #1A1C1A;
  margin-bottom: 40px;
}

.intro h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: #F6F4F0;
  margin-bottom: 20px;
}

.intro p {
  font-size: 15px;
  line-height: 1.7;
  color: #A8A49C;
  margin-bottom: 12px;
}

.intro p:last-of-type {
  margin-bottom: 0;
}

.intro-meta {
  margin-top: 24px;
}

.reset-link {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #6A6A62;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.reset-link:hover {
  color: #8C8A83;
}


/* groups */

.group {
  margin-bottom: 36px;
}

.group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.group-label h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #F6F4F0;
  margin-bottom: 4px;
}

.group-label p {
  font-size: 13px;
  line-height: 1.6;
  color: #8C8A83;
}

.tally {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: #6A6A62;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  transition: color 0.2s;
}

.tally.done {
  color: #2ABFAD;
}


/* rejection notes */

.rejection-note {
  font-size: 13px;
  line-height: 1.65;
  color: #8C8A83;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-left: 2px solid #262A26;
  font-style: italic;
}


/* items */

.items {
  list-style: none;
  counter-reset: item;
}

.items li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 9px 0;
  font-size: 14px;
  line-height: 1.55;
  color: #C1BDB6;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
  border-bottom: 1px solid rgba(50, 54, 50, 0.3);
}

.items li:last-child {
  border-bottom: none;
}

.items li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid #323632;
  border-radius: 4px;
  transition: all 0.15s;
}

.items li:hover::before {
  border-color: #4A4A44;
}

.items li.checked {
  color: #4A4A44;
}

.items li.checked::before {
  background: #2ABFAD;
  border-color: #2ABFAD;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230C0D0C' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.items li code {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 12px;
  background: #1A1C1A;
  color: #2ABFAD;
  padding: 1px 5px;
  border-radius: 3px;
}

.items li strong {
  font-weight: 600;
  color: #F6F4F0;
}

.items li.checked strong {
  color: #4A4A44;
}


/* footer */

footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 48px;
  border-top: 1px solid #1A1C1A;
  padding-top: 32px;
}

footer p {
  font-size: 12px;
  color: #4A4A44;
  line-height: 1.6;
}

footer p + p {
  margin-top: 6px;
}

footer a {
  color: #5A5A54;
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: #2ABFAD;
}


/* responsive */

@media (max-width: 640px) {
  nav { padding: 12px 16px; }
  main { padding: 0 16px 60px; }
  .intro { padding: 36px 0 36px; }
  .intro h1 { font-size: 21px; }
  footer { padding: 0 16px 36px; padding-top: 24px; }
}
