:root {
  --paper: #faf9f5;
  --card: #ffffff;
  --ink: #201f1c;
  --muted: #8b887e;
  --rule: #ebe8df;
  --accent: #3e6259;
  --accent-soft: #e4ede9;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px);
  background-size: 100% 2.1rem;
  background-attachment: local;
}

body {
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  display: flex;
  justify-content: center;
  padding: 6vh 1.25rem 4rem;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.sheet {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(32,31,28,0.03), 0 12px 32px -20px rgba(32,31,28,0.25);
  padding: 2rem 1.75rem 1.5rem;
}

.sheet__head { margin-bottom: 1.25rem; }

.eyebrow {
  margin: 0 0 0.15rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.date {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.sub {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* 5-dot rotation indicator — this really is a sequence, so dots encode it */
.cycle {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: 1.35rem 0 1.1rem;
}

.cycle__dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--rule);
  transition: background 0.2s ease;
}

.cycle__dot.is-active {
  background: var(--accent);
}

.progress { margin-bottom: 1.4rem; }

.progress__track {
  height: 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.35s cubic-bezier(.4,0,.2,1);
}

.progress__label {
  margin: 0.5rem 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item {
  border-bottom: 1px solid var(--rule);
}

.item:last-child { border-bottom: none; }

.item__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  cursor: pointer;
  user-select: none;
}

.item__box {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.item.is-checked .item__box {
  border-color: var(--accent);
  background: var(--accent);
}

.item__box svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.item.is-checked .item__box svg { opacity: 1; transform: scale(1); }

.item__text {
  position: relative;
  flex: 1;
  min-width: 0;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.item.is-checked .item__text { color: var(--muted); }

/* hand-drawn pen stroke, drawn on check like crossing off paper */
.item__strike {
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 10px;
  overflow: visible;
  pointer-events: none;
}

.item__strike path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  transition: stroke-dashoffset 0.28s ease;
}

.item.is-checked .item__strike path { stroke-dashoffset: 0; }

.item__timerBtn {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

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

.item__time {
  flex: none;
  min-width: 3.6rem;
  text-align: right;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  color: var(--muted);
}

.item__time.is-running { color: var(--accent); }
.item__time.is-done { color: var(--accent); font-weight: 500; }

.item.is-checked .item__timerBtn,
.item.is-checked .item__time { opacity: 0.45; }

.notes {
  margin-top: 1.4rem;
}

.notes__label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.notes__field {
  width: 100%;
  resize: vertical;
  min-height: 4.2rem;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.9rem;
  padding: 0.65rem 0.75rem;
  line-height: 1.5;
}

.notes__field:focus {
  outline: none;
  border-color: var(--accent);
}

.allDone {
  text-align: center;
  font-family: "Fraunces", serif;
  font-size: 1rem;
  color: var(--accent);
  margin: 1.4rem 0 0.2rem;
}

.sheet__foot {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
  position: relative;
}

.dayPicker {
  border: none;
  background: none;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.dayPicker:hover { color: var(--ink); }

.dayPicker__options {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.dayPicker__options button {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.dayPicker__options button.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.offline {
  max-width: 440px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.9rem;
}
