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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, #fffaf2 0%, #f3ecdf 55%, #ebe3d4 100%);
  color: #3f3a34;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.tape {
  overflow: hidden;
  background: #f2c14e;
  color: #1c1915;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.45rem 0;
}

.tape-track {
  display: flex;
  width: max-content;
  animation: tape-scroll 16s linear infinite;
}

@keyframes tape-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tape-track {
    animation: none;
  }
}

.page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a8174;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #1c1915;
}

h1 {
  font-size: clamp(3.2rem, 10vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.when {
  margin: 1rem 0 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-style: italic;
  color: #1c1915;
}

.note {
  margin: 1.5rem 0 0;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.board {
  margin-top: 2.25rem;
  padding: 1.25rem 1.25rem 1.1rem;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid #e2d8c6;
  border-radius: 1rem;
}

h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board ul {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}

.board li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid #eadfcd;
  font-size: 0.98rem;
}

.done,
.pending {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.done {
  color: #2f6b45;
}

.pending {
  color: #9a5b12;
}

.meter {
  display: grid;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
  padding-top: 0.9rem;
}

.meter-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8174;
}

.meter-track {
  display: block;
  height: 0.55rem;
  background: #efe6d6;
  border-radius: 999px;
  overflow: hidden;
}

.meter-fill {
  display: block;
  width: 4%;
  height: 100%;
  background: #1c1915;
  border-radius: inherit;
}

.meter-caption {
  font-size: 0.9rem;
  color: #6d655b;
}

button {
  margin-top: 1.75rem;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #1c1915;
  color: #f6f1e7;
  font: inherit;
  font-weight: 650;
  padding: 0.8rem 1.15rem;
  cursor: pointer;
}

button:hover {
  background: #3a332b;
}

button:focus-visible {
  outline: 2px solid #1c1915;
  outline-offset: 3px;
}

.reply {
  margin: 1rem 0 0;
  min-height: 1.5rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #1c1915;
}

footer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #8a8174;
}

@media (max-width: 28rem) {
  .page {
    padding-top: 3rem;
  }

  .board li {
    flex-direction: column;
    gap: 0.2rem;
  }
}
