:root {
  color-scheme: light;
  --ink: #202521;
  --muted: #717971;
  --paper: #f4f1e9;
  --card: #fffdf8;
  --line: #dcd7cb;
  --green: #225747;
  --green-soft: #dce9e1;
  --orange: #c86737;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 5%, rgba(200, 103, 55, .09), transparent 32%),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
}

a { color: inherit; }

.shell {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0 100px;
}

.hero { margin-bottom: 64px; }

.eyebrow,
.section-number {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 500;
  letter-spacing: -.035em;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.panel,
.task-group {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, .82);
  box-shadow: 0 18px 60px rgba(43, 47, 41, .06);
}

.panel { padding: 34px; }

.section-heading {
  display: flex;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.section-number { margin-bottom: 6px; }

.section-line {
  height: 1px;
  flex: 1;
  margin-bottom: 6px;
  background: var(--line);
}

.date-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--green);
  color: white;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.date-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(34, 87, 71, .22);
}

.date-card small {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .65);
  font-size: 10px;
  letter-spacing: .14em;
}

.date-card strong { font-size: 20px; }
.arrow { font-size: 25px; }

.task-shell { padding-top: 48px; }

.breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: 50px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a { text-underline-offset: 4px; }

.task-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.progress-wrap { width: min(240px, 35vw); }

.progress-text {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width .25s ease;
}

.task-group {
  overflow: hidden;
  margin-bottom: 22px;
}

.task-group h2 {
  margin: 0;
  padding: 23px 26px 18px;
  color: var(--green);
  font-size: 17px;
}

.task-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 13px 26px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.task-item { border-top: 1px solid var(--line); }
.task-item .task-row { border-top: 0; }

.task-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkmark {
  width: 22px;
  height: 22px;
  border: 1.5px solid #adb3ab;
  border-radius: 7px;
  transition: .15s ease;
}

.task-row input:focus-visible + .checkmark {
  outline: 3px solid rgba(200, 103, 55, .3);
  outline-offset: 3px;
}

.task-row input:checked + .checkmark {
  border-color: var(--green);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.task-copy {
  font-size: 14px;
  line-height: 1.6;
}

.status {
  color: var(--muted);
  font-size: 11px;
}

.task-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.memo-toggle,
.delete-task {
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.memo-toggle:hover { background: var(--green-soft); }
.delete-task { color: #9a5141; }
.delete-task:hover { background: #f5e5e0; }

.memo-panel {
  padding: 0 26px 18px 64px;
  background: rgba(220, 233, 225, .2);
}

.memo-panel[hidden] { display: none; }

.memo-panel textarea {
  display: block;
  width: 100%;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
}

.memo-panel textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 87, 71, .1);
}

.add-task {
  display: flex;
  gap: 10px;
  padding: 18px 26px 22px;
  border-top: 1px solid var(--line);
}

.add-task input {
  min-width: 0;
  flex: 1;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.add-task input:focus { border-color: var(--green); }

.add-task button {
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.task-row:has(input:checked) { background: rgba(220, 233, 225, .35); }

.task-row:has(input:checked) .task-copy {
  color: #90968f;
  text-decoration: line-through;
}

.task-row:has(input:checked) .status {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 600px) {
  .shell { padding-top: 56px; }
  .panel { padding: 24px; }
  .task-header { align-items: start; flex-direction: column; }
  .progress-wrap { width: 100%; }
  .progress-text { text-align: left; }
  .task-row { grid-template-columns: 24px 1fr; padding: 14px 20px; }
  .task-actions { grid-column: 2; justify-content: start; margin-top: -5px; }
  .memo-panel { padding: 0 20px 16px; }
  .add-task { padding: 16px 20px 20px; }
}
