@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap");

:root {
  color-scheme: light;
  --ink: #232a25;
  --muted: #858b82;
  --paper: #f5f4f0;
  --green: #526d53;
  --line: #e9e8e1;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 2% 5%, rgba(233, 231, 220, 0.6), transparent 30rem),
    var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  width: min(100% - 48px, 720px);
  margin: 0 auto;
}

.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(35, 42, 37, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.7px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 21px;
  font-style: italic;
}

.topbar-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #777e74;
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #91a778;
  box-shadow: 0 0 0 3px rgba(145, 167, 120, 0.15);
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #e8e5da;
  border-radius: 50%;
  background: #ebe8de;
  color: #66745e;
  font-size: 12px;
  font-weight: 700;
}

.welcome {
  padding: 48px 0 27px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: #858b7d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.65px;
}

.welcome h1 {
  margin: 13px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 5vw, 43px);
  font-weight: 500;
  letter-spacing: -1.4px;
  line-height: 1.18;
}

.welcome h1 em {
  color: var(--green);
  font-weight: 500;
}

.welcome-copy {
  margin: 0;
  color: #7d827a;
  font-size: 13px;
  line-height: 1.7;
}

.focus-card {
  position: relative;
  display: flex;
  min-height: 156px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 25px 31px;
  border: 1px solid #e6e5dc;
  border-radius: 15px;
  background: linear-gradient(110deg, #edeee5 0%, #eff0e9 56%, #e8ebdf 100%);
}

.focus-copy {
  position: relative;
  z-index: 1;
  width: min(300px, 65%);
}

.focus-label {
  color: #6a7962;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.55px;
}

.focus-label span {
  margin-right: 5px;
  color: #a38f5b;
  font-size: 12px;
}

.focus-copy p {
  margin: 11px 0 10px;
  color: #7b8177;
  font-size: 12px;
}

.focus-copy p strong {
  color: #374638;
  font-size: 15px;
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 10px;
  background: #d9ddd0;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #6f8765;
  transition: width 240ms ease;
}

.focus-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 41%;
  overflow: hidden;
}

.sun {
  position: absolute;
  top: 21px;
  right: 46px;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  background: #ddc98e;
  opacity: 0.78;
}

.hill {
  position: absolute;
  right: -25px;
  bottom: -59px;
  width: 260px;
  height: 125px;
  border-radius: 50% 50% 0 0;
  transform: rotate(-9deg);
}

.hill-back {
  right: 50px;
  bottom: -76px;
  background: #d7ddcb;
  transform: rotate(12deg);
}

.hill-front {
  background: #aebca4;
  opacity: 0.78;
}

.art-spark {
  position: absolute;
  color: #a79a70;
  font-size: 15px;
}

.spark-one {
  top: 28px;
  right: 117px;
}

.spark-two {
  top: 55px;
  right: 25px;
  font-size: 19px;
}

.tasks-section {
  padding-top: 37px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 17px;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px 0 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.55px;
}

.section-heading h2 span {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding: 0 5px;
  border-radius: 7px;
  background: #eaeae2;
  color: #778071;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.clear-button {
  padding: 5px 0;
  border: 0;
  background: none;
  color: #82867d;
  cursor: pointer;
  font-size: 11px;
}

.clear-button:hover {
  color: var(--green);
}

.add-form {
  display: flex;
  height: 51px;
  align-items: center;
  gap: 11px;
  padding: 5px 6px 5px 15px;
  border: 1px solid #e7e6df;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.add-form:focus-within {
  border-color: #9baa91;
  box-shadow: 0 0 0 3px rgba(110, 135, 101, 0.11);
}

.add-icon {
  color: #8d9982;
  font-size: 21px;
}

.add-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.add-form input::placeholder {
  color: #a0a39c;
}

.add-form button {
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease;
}

.add-form button:hover {
  transform: translateY(-1px);
  background: #435d45;
}

.add-form button span {
  margin-left: 5px;
  color: #d8e0d1;
}

.task-toolbar {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
}

.filters {
  display: flex;
  gap: 5px;
}

.filter-button {
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8a8e86;
  cursor: pointer;
  font-size: 11px;
  transition: background 150ms ease, color 150ms ease;
}

.filter-button:hover {
  color: #526d53;
}

.filter-button.is-active {
  background: #e8ebe3;
  color: #526d53;
  font-weight: 600;
}

.task-hint {
  color: #a0a39b;
  font-size: 10px;
}

.task-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-item {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid #eae9e3;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.67);
  animation: appear 180ms ease both;
}

.task-toggle {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  padding: 0;
  border: 1.5px solid #d5d8ce;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.task-toggle:hover {
  transform: scale(1.09);
  border-color: #82947a;
}

.task-toggle[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.task-toggle svg {
  width: 11px;
  height: 11px;
}

.task-text {
  min-width: 0;
  flex: 1;
  color: #454b43;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.task-item.is-complete .task-text {
  color: #a1a49d;
  text-decoration: line-through;
  text-decoration-color: #b7bcb1;
}

.delete-task {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a1a49d;
  cursor: pointer;
  font-size: 17px;
  opacity: 0;
  transition: background 150ms ease, color 150ms ease, opacity 150ms ease;
}

.task-item:hover .delete-task,
.delete-task:focus-visible {
  opacity: 1;
}

.delete-task:hover {
  background: #f4e9e5;
  color: #a15f52;
}

.empty-state {
  padding: 26px 15px;
  border: 1px dashed #dedfd6;
  border-radius: 9px;
  color: #858b82;
  font-size: 12px;
  text-align: center;
}

.footer-note {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 35px 0 28px;
  color: #a0a298;
  font-size: 10px;
}

.footer-note span {
  color: #9da789;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

[hidden] {
  display: none !important;
}

@keyframes appear {
  from {
    transform: translateY(3px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: min(100% - 32px, 720px);
  }

  .topbar {
    height: 70px;
  }

  .topbar-note {
    font-size: 11px;
  }

  .welcome {
    padding: 38px 0 22px;
  }

  .welcome-copy {
    max-width: 330px;
    margin: 0 auto;
    font-size: 12px;
  }

  .focus-card {
    min-height: 145px;
    padding: 22px;
  }

  .focus-art {
    width: 43%;
    opacity: 0.8;
  }

  .tasks-section {
    padding-top: 31px;
  }

  .task-hint {
    display: none;
  }

  .delete-task {
    opacity: 1;
  }
}

@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;
  }
}
