:root {
  color-scheme: light;
  --paper: #f2f5ef;
  --ink: #202b25;
  --muted: #78827b;
  --line: #d7ded6;
  --green: #2f654e;
  --green-dark: #244e3c;
  --orange: #e87651;
  --white: #fbfcf9;
  --mono: 'Consolas', 'Courier New', monospace;
  --sans: 'Trebuchet MS', 'Segoe UI', sans-serif;
  --serif: 'Book Antiqua', Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(47, 101, 78, 0.035) 32px);
  font-family: var(--sans);
}

button,
textarea {
  font: inherit;
}

.page-shell {
  width: min(100% - 48px, 840px);
  margin: 0 auto;
  animation: arrive 500ms ease-out both;
}

.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 25px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-family: var(--serif);
  font-size: 15px;
}

.topbar-note,
.eyebrow,
.stamp-label,
.list-date-label,
.page-footer {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.topbar-note,
.eyebrow,
.stamp-label,
.list-date-label,
.page-footer,
.form-hint {
  color: var(--muted);
}

.intro {
  display: flex;
  min-height: 285px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0 42px;
}

.eyebrow {
  margin: 0 0 15px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 500;
  line-height: 1.04;
}

.intro-note {
  margin-bottom: 0;
  color: #647068;
  font-size: 14px;
}

.today-stamp {
  width: 104px;
  min-width: 104px;
  display: grid;
  gap: 8px;
  padding: 14px 0 14px 17px;
  border-left: 2px solid var(--orange);
}

.stamp-date {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.35;
}

.composer {
  padding: 25px 28px 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  background: rgba(251, 252, 249, 0.84);
}

.section-heading,
.composer-footer,
.list-heading,
.list-title-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-heading {
  margin-bottom: 17px;
}

.section-heading .eyebrow {
  margin-bottom: 6px;
}

h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.step-mark,
.list-index {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
}

textarea {
  display: block;
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  color: var(--ink);
  background: var(--white);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea::placeholder {
  color: #9aa39c;
}

textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 101, 78, 0.1);
}

.composer-footer {
  gap: 16px;
  padding-top: 13px;
}

.form-hint {
  margin: 0;
  font-size: 12px;
}

button[type='submit'] {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 14px 0 17px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 150ms ease, transform 150ms ease;
}

button[type='submit']:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

button[type='submit']:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.button-arrow {
  font-size: 16px;
}

.form-message {
  min-height: 16px;
  margin: 6px 0 0;
  color: #a33b2c;
  font-size: 12px;
}

.list-section {
  margin-top: 38px;
}

.list-heading {
  padding: 0 2px 13px;
  border-bottom: 1px solid var(--line);
}

.list-title-group {
  justify-content: flex-start;
  gap: 12px;
}

.list-title-group h2 {
  font-size: 22px;
}

.task-count {
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: #dfe9df;
  font-family: var(--mono);
  font-size: 10px;
}

.task-list {
  min-height: 72px;
}

.empty-state {
  margin: 0;
  padding: 24px 2px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
}

.task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 24px;
  align-items: center;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
  animation: reveal 240ms ease-out both;
}

.task-text {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.task-time {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}

.page-footer {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 25px 0 33px;
  font-size: 9px;
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--orange);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 32px, 840px);
  }

  .topbar {
    height: 62px;
  }

  .topbar-note,
  .list-date-label {
    font-size: 8px;
  }

  .intro {
    min-height: 245px;
    align-items: flex-start;
    padding: 36px 0 28px;
  }

  h1 {
    font-size: 44px;
  }

  .intro-note {
    max-width: 220px;
    font-size: 13px;
    line-height: 1.5;
  }

  .today-stamp {
    width: 78px;
    min-width: 78px;
    padding-left: 11px;
  }

  .stamp-date {
    font-size: 14px;
  }

  .composer {
    padding: 21px 17px 14px;
  }

  .composer-footer {
    align-items: flex-end;
  }

  .form-hint {
    max-width: 150px;
    line-height: 1.45;
  }

  button[type='submit'] {
    gap: 10px;
    padding: 0 11px;
    font-size: 12px;
  }

  .task-row {
    grid-template-columns: minmax(0, 1fr) 98px;
    gap: 12px;
  }

  .task-time {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}