:root {
  --page: #eef1f4;
  --surface: #ffffff;
  --ink: #171a21;
  --muted: #5f6672;
  --line: #dce1e7;
  --mark: #ffd43b;
  --due: #c92a2a;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #121418;
    --surface: #1b1e24;
    --ink: #e9ebef;
    --muted: #9097a3;
    --line: #2a2e36;
    --due: #ff8787;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.top, .bottom, main {
  max-width: 64rem;
  margin: 0 auto;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
}

.mark {
  font: 800 1.75rem/1 var(--display);
  letter-spacing: -0.04em;
  text-decoration: none;
}
.mark span { background: linear-gradient(transparent 62%, var(--mark) 62% 90%, transparent 90%); }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: var(--page);
  font-weight: 600;
  text-decoration: none;
}
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }

.hero { padding: 4.5rem 0 2.5rem; max-width: 40rem; }
.hero h1 {
  margin: 0 0 1.25rem;
  font: 800 clamp(2.75rem, 9vw, 5.25rem)/0.95 var(--display);
  letter-spacing: -0.045em;
}
.lede { margin: 0 0 2rem; font-size: 1.2rem; color: var(--muted); }

/* The one flourish: a list like the app's, whose finished items get a highlighter stroke as the page opens. */
.sample {
  max-width: 26rem;
  margin: 1rem 0 5rem;
  padding: 1.25rem 1.5rem 0.75rem;
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 32px -16px rgb(0 0 0 / 0.25);
  transform: rotate(-1.5deg);
}
.sample-name { margin: 0 0 0.5rem; font: 800 1.4rem/1.2 var(--display); }
.sample ul { margin: 0; padding: 0; list-style: none; }
.sample li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0 0.7rem 2.25rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.sample li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--muted);
  border-radius: 0.35rem;
}
.sample li.done::before { background: var(--ink); border-color: var(--ink); }
.sample small { color: var(--due); font-weight: 600; white-space: nowrap; }
.sample li.done span { position: relative; color: var(--muted); }
.sample li.done span::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 55%;
  height: 0.22em;
  background: var(--mark);
  border-radius: 2px;
  transform-origin: left;
  animation: strike 500ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.sample li.done:nth-child(1) span::after { animation-delay: 400ms; }
.sample li.done:nth-child(2) span::after { animation-delay: 750ms; }
@keyframes strike { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .sample li.done span::after { animation: none; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.facts h2 { margin: 0 0 0.4rem; font: 800 1.2rem/1.25 var(--display); }
.facts p { margin: 0; color: var(--muted); }
kbd {
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 0.3rem;
  background: var(--surface);
  font: 0.85em ui-monospace, monospace;
  color: var(--ink);
}

.note { padding: 1.5rem 0 4rem; color: var(--muted); font-size: 0.95rem; }

.bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
