:root {
  color-scheme: light;
  font-family:
    Inter, "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f4f7fb;
  --ink: #172033;
  --muted: #667085;
  --panel: #ffffff;
  --line: #d9e1ea;
  --teal: #0f766e;
  --coral: #e85d75;
  --gold: #d88a14;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(232, 93, 117, 0.12), transparent 30%),
    var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

button:hover,
.link-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
}

button:active,
.link-button:active {
  transform: translateY(0);
}

.link-button {
  width: fit-content;
  padding: 0 18px;
  text-decoration: none;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: stretch;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 9em;
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.hero-text {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.photo-strip {
  min-height: 240px;
}

.photo-strip img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  margin-top: 20px;
}

.feature-photo {
  grid-column: 1 / -1;
  overflow: hidden;
  min-height: 360px;
  padding: 0;
}

.feature-photo img {
  display: block;
  width: 100%;
  height: clamp(360px, 54vw, 620px);
  object-fit: cover;
  object-position: center 36%;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.07);
}

.task-panel,
.timer-panel,
.note-panel {
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.counter {
  min-width: 58px;
  border-radius: 999px;
  background: rgba(216, 138, 20, 0.13);
  color: #8a570c;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 32px;
  text-align: center;
}

.task-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
  margin-bottom: 16px;
}

.task-form input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fbfcfe;
  color: var(--ink);
  outline: none;
}

.task-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.task-list {
  display: grid;
  gap: 10px;
  min-height: 222px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 10px 10px 14px;
  background: #ffffff;
}

.task-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.task-item span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.task-item.done span {
  color: var(--muted);
  text-decoration: line-through;
}

.delete-task {
  width: 34px;
  min-height: 34px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 1.25rem;
  line-height: 1;
}

.delete-task:hover {
  border-color: rgba(232, 93, 117, 0.28);
  background: rgba(232, 93, 117, 0.09);
  color: var(--coral);
  box-shadow: none;
}

.side-stack {
  display: grid;
  gap: 20px;
  align-content: start;
}

.timer-face {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(100%, 260px);
  margin: 4px auto 18px;
  border: 8px solid rgba(15, 118, 110, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 58%, rgba(15, 118, 110, 0.08) 59%),
    conic-gradient(var(--teal), var(--gold), var(--coral), var(--teal));
  color: var(--ink);
  font-size: clamp(2.35rem, 9vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.timer-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.secondary:hover {
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.1);
}

.note-panel {
  border-left: 5px solid var(--gold);
}

blockquote {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

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

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 24px, 640px);
    padding: 18px 0;
  }

  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 28px;
  }

  .photo-strip,
  .photo-strip img {
    min-height: 170px;
  }

  .workspace {
    gap: 14px;
    margin-top: 14px;
  }
}

@media (max-width: 460px) {
  .task-form,
  .timer-controls {
    grid-template-columns: 1fr;
  }

  .task-panel,
  .timer-panel,
  .note-panel {
    padding: 18px;
  }
}
