:root {
  --bg-top: #f2efe8;
  --bg-bottom: #f6d8a8;
  --panel: rgba(255, 252, 245, 0.82);
  --panel-border: rgba(122, 84, 31, 0.14);
  --text: #2e241b;
  --muted: #6b5c4e;
  --accent: #d96c3f;
  --accent-deep: #9d3f1e;
  --success: #2d8b57;
  --shadow: 0 18px 60px rgba(107, 71, 24, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 28%),
    radial-gradient(circle at bottom right, rgba(217, 108, 63, 0.2), transparent 22%),
    linear-gradient(135deg, var(--bg-top), var(--bg-bottom));
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.clock-card,
.panel {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 32px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "ZCOOL KuaiLe", cursive;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.hero-text {
  max-width: 42rem;
  margin: 18px 0 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
}

.clock-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.clock-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -24px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(217, 108, 63, 0.14);
}

.clock-card p,
.clock-card span {
  margin: 0;
  color: var(--muted);
}

.clock-card strong {
  margin: 12px 0 6px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.dashboard {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.panel {
  padding: 28px;
}

.panel-title h2,
.panel-title p {
  margin: 0;
}

.panel-title p {
  margin-top: 8px;
  color: var(--muted);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-form {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.task-form input {
  flex: 1;
  border: 1px solid rgba(122, 84, 31, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: rgba(255, 255, 255, 0.75);
}

.task-form button,
.ghost-button {
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  min-height: 50px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.task-form button {
  background: var(--accent);
  color: #fffaf5;
}

.ghost-button {
  background: rgba(217, 108, 63, 0.1);
  color: var(--accent-deep);
}

.task-form button:hover,
.ghost-button:hover,
.task-toggle:hover,
.delete-button:hover {
  transform: translateY(-1px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.stat-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(122, 84, 31, 0.11);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.8rem;
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.task-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(122, 84, 31, 0.11);
  animation: rise-in 0.28s ease;
}

.task-item form {
  margin: 0;
}

.task-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  cursor: pointer;
}

.task-toggle,
.delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.task-item.done .task-toggle {
  background: var(--success);
  border-color: var(--success);
  box-shadow: inset 0 0 0 4px #effaf3;
}

.task-text {
  line-height: 1.5;
}

.task-item.done .task-text {
  color: #837468;
  text-decoration: line-through;
}

.delete-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.empty-state {
  margin: 18px 0 0;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 840px) {
  .hero,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .task-form,
  .row {
    flex-direction: column;
    align-items: stretch;
  }

  .task-form button,
  .ghost-button {
    width: 100%;
  }
}
