:root {
  color-scheme: light;
  --bg-top: #f5efe4;
  --bg-bottom: #d8e7d3;
  --panel: rgba(255, 252, 246, 0.88);
  --text: #233127;
  --button: #446b50;
  --button-hover: #385744;
  --button-shadow: rgba(35, 49, 39, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 32%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.page {
  width: min(100%, 28rem);
  margin: 0 auto;
  padding: 4rem 1.25rem 2rem;
}

.page-header {
  margin-bottom: 1.25rem;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
}

.screen-shell {
  overflow: hidden;
}

.screen-track {
  display: flex;
  width: 400%;
  transition: transform 240ms ease;
}

.screen {
  width: 100%;
  flex: 0 0 100%;
}

.screen-panel {
  min-height: 24rem;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid rgba(68, 107, 80, 0.16);
  border-radius: 20px;
  box-shadow: 0 18px 48px var(--button-shadow);
}

.screen-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  font: inherit;
  font-size: 1.05rem;
  color: #fffdf7;
  background: var(--button);
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}

.back-button {
  margin-bottom: 1rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  background: rgba(68, 107, 80, 0.14);
  color: var(--text);
}

.back-button:hover {
  background: rgba(68, 107, 80, 0.22);
}

button:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 3px solid rgba(68, 107, 80, 0.28);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .page {
    padding-top: 2.5rem;
  }

  .screen-panel {
    min-height: 20rem;
    padding: 1rem;
  }
}
