:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color-scheme: light;
  --page: #f6f7f3;
  --surface: #fff;
  --surface-soft: #f3f5f0;
  --ink: #182321;
  --muted: #68746e;
  --line: #e3e8e1;
  --accent: #1c705d;
  --accent-deep: #155847;
  --accent-soft: #e1f1e9;
  --shadow: 0 18px 50px rgba(32, 56, 43, .055);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #101917;
  --surface: #192522;
  --surface-soft: #22312c;
  --ink: #ecf4ee;
  --muted: #abbcb2;
  --line: #30413a;
  --accent: #8ad8b4;
  --accent-deep: #9ee6c2;
  --accent-soft: #243f35;
  --shadow: 0 18px 50px rgba(0, 0, 0, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.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; }

.site-shell { max-width: 1280px; margin: 0 auto; padding: 0 42px; }
.site-header { height: 94px; display: flex; align-items: center; gap: 48px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--accent); color: var(--page); font-family: Georgia, serif; font-weight: 700; font-size: 24px; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 16px; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.site-nav { display: flex; align-items: center; gap: 29px; margin-left: auto; font-size: 13px; color: var(--muted); }
.site-nav a:hover { color: var(--accent); }
.theme-button { flex: none; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); padding: 10px 15px; font-size: 12px; font-weight: 650; }
.theme-button:hover, .secondary-button:hover { border-color: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(310px, .7fr); align-items: center; gap: 60px; padding: 88px 26px 92px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); vertical-align: 1px; margin-right: 4px; box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { margin: 19px 0 21px; font-size: clamp(48px, 5.4vw, 78px); line-height: 1.15; letter-spacing: -.065em; font-weight: 750; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 510px; margin: 0 0 30px; color: var(--muted); line-height: 1.85; font-size: 15px; }
.primary-link { display: inline-flex; align-items: center; gap: 20px; padding: 14px 19px; border-radius: 11px; background: var(--accent); color: var(--page); font-size: 13px; font-weight: 750; }
.primary-link:hover, .primary-button:hover { filter: brightness(.92); }
.primary-link span { font-size: 18px; line-height: 1; }

.today-card { padding: 29px; border: 1px solid var(--line); border-radius: 25px; background: var(--surface); box-shadow: var(--shadow); transform: rotate(1deg); }
.today-card-top, .today-summary, .card-heading, .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.today-card-top { color: var(--muted); font-size: 12px; font-weight: 650; }
.today-pill { padding: 5px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.today-date { margin-top: 36px; color: var(--muted); font-size: 14px; }
.today-clock { margin: 2px 0 30px; font-size: clamp(56px, 6vw, 84px); font-weight: 700; letter-spacing: -.075em; font-variant-numeric: tabular-nums; }
.today-divider { height: 1px; background: var(--line); margin-bottom: 24px; }
.today-summary { font-size: 13px; color: var(--muted); }
.today-summary strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.progress-track { height: 7px; margin: 11px 0 22px; background: var(--surface-soft); border-radius: 99px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .25s ease; }
.today-card p { margin: 0; color: var(--muted); font-size: 12px; }

.tools-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 4px 0 25px; padding: 0 2px; }
.tools-heading h2 { margin: 10px 0 0; font-size: clamp(27px, 3vw, 37px); letter-spacing: -.045em; }
.tools-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool-card { min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 25px; }
.tasks-card { grid-row: span 2; }
.card-index { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.card-heading h3 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.04em; }
.card-symbol { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); font-size: 22px; font-weight: 600; }
.card-description { margin: 13px 0 25px; color: var(--muted); line-height: 1.7; font-size: 13px; }
.task-form { display: flex; gap: 8px; }
.task-form input, .notes-card textarea { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--ink); outline: 0; }
.task-form input { flex: 1; padding: 12px 13px; font-size: 13px; }
.task-form input:focus, .notes-card textarea:focus { border-color: var(--accent); }
.task-form input::placeholder, .notes-card textarea::placeholder { color: var(--muted); opacity: .72; }
.task-form button, .primary-button { border: 0; border-radius: 10px; padding: 11px 17px; background: var(--accent); color: var(--page); font-size: 13px; font-weight: 750; }
.task-list { list-style: none; padding: 0; margin: 20px 0 0; min-height: 175px; }
.task-item { display: flex; align-items: center; gap: 10px; padding: 12px 1px; border-bottom: 1px solid var(--line); }
.task-item:last-child { border-bottom: 0; }
.task-item input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.task-item span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.task-item.is-done span { color: var(--muted); text-decoration: line-through; }
.delete-button { border: 0; background: transparent; color: var(--muted); padding: 4px 5px; font-size: 12px; }
.delete-button:hover, .text-button:hover { color: var(--accent); }
.empty-list { color: var(--muted); font-size: 13px; line-height: 1.6; padding: 16px 0; }
.card-footer { min-height: 22px; margin-top: 17px; color: var(--muted); font-size: 11px; }
.text-button { border: 0; background: transparent; color: var(--muted); padding: 3px 0; font-size: 11px; }

.focus-card .card-description { margin-bottom: 12px; }
.timer-display { margin: 5px 0 13px; font-size: clamp(51px, 6vw, 74px); line-height: 1.1; font-weight: 700; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.timer-presets, .timer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.preset { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; background: var(--surface); color: var(--muted); font-size: 11px; }
.preset.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.timer-actions { margin-top: 20px; }
.secondary-button { border: 1px solid var(--line); border-radius: 10px; padding: 11px 17px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; }
.timer-status { margin: 13px 0 0; min-height: 18px; color: var(--muted); font-size: 11px; }
.notes-card textarea { display: block; width: 100%; resize: vertical; padding: 13px; line-height: 1.75; font-size: 13px; }
.privacy-note { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0 63px; padding: 17px 19px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-deep); }
.privacy-note > span { font-size: 17px; line-height: 1.2; }
.privacy-note p { margin: 0; font-size: 12px; line-height: 1.7; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 22px 2px 36px; color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .site-shell { padding: 0 25px; }
  .hero { gap: 28px; padding: 68px 0 70px; }
  .tool-card { padding: 24px; }
}
@media (max-width: 690px) {
  .site-shell { padding: 0 19px; }
  .site-header { height: 73px; gap: 15px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 11px; font-size: 21px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 10px; }
  .site-nav { display: none; }
  .theme-button { margin-left: auto; padding: 8px 11px; font-size: 11px; }
  .hero { display: block; padding: 56px 0 55px; }
  .hero h1 { font-size: clamp(48px, 12vw, 67px); }
  .hero-description { max-width: 450px; }
  .today-card { margin-top: 39px; transform: none; }
  .today-date { margin-top: 24px; }
  .today-clock { margin-bottom: 21px; }
  .tools-heading { align-items: start; }
  .tools-heading > p { display: none; }
  .tool-grid { grid-template-columns: 1fr; gap: 14px; }
  .tasks-card { grid-row: auto; }
  .task-list { min-height: 0; }
  .site-footer { flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-track span { transition: none; }
}
