:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: #2d2d2d;
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 42px 90px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: -0.8px;
}
blockquote {
  margin: 29px 0 16px;
  padding: 3px 0 3px 23px;
  border-left: 4px solid #343434;
  font-size: 18px;
  line-height: 1.7;
}
.date-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-bottom: 43px;
  font-size: 12px;
  color: #919191;
}
section {
  margin: 0 0 43px;
}
h2 {
  margin: 0 0 19px;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
}
.task {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: fit-content;
  max-width: 100%;
  padding: 5px 0;
  font-size: 18px;
  line-height: 1.7;
  cursor: pointer;
}
.task input {
  appearance: none;
  -webkit-appearance: none;
  margin: 6px 0 0 3px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 2px solid #535353;
  border-radius: 2px;
  background: #fff;
  flex: 0 0 20px;
  cursor: pointer;
  position: relative;
}
.task input:checked {
  border-color: #2e85e6;
  background: #2e85e6;
}
.task input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.task input:checked + span {
  color: #878787;
  text-decoration: line-through;
  text-decoration-color: #b1b1b1;
  text-decoration-thickness: 1.5px;
}
.task span {
  overflow-wrap: anywhere;
}
.task input:disabled {
  opacity: 0.55;
  cursor: wait;
}
input,
button {
  font: inherit;
}
input {
  min-width: 0;
}
button {
  cursor: pointer;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  padding: 8px 14px;
  background: #fafafa;
  color: #626262;
  font-size: 13px;
  white-space: nowrap;
}
button:hover {
  background: #f1f1f1;
  color: #333;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
:focus-visible {
  outline: 2px solid #2e85e6;
  outline-offset: 4px;
}
.add-task {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-left: 36px;
  max-width: 610px;
  align-items: center;
}
.add-task input,
.new-category input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #ededed;
  border-radius: 0;
  font-size: 14px;
  color: #444;
}
input::placeholder {
  color: #b4b4b4;
}
.add-task button {
  font-size: 12px;
  padding: 6px 12px;
}
.new-category {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 575px;
  margin: 14px 0 0;
  padding-top: 15px;
  border-top: 1px solid #ededed;
}
.new-category input {
  font-size: 16px;
}
.quiet {
  background: transparent;
  border: 0;
  padding: 6px 0;
  color: #969696;
  font-size: 12px;
}
.quiet:hover {
  background: transparent;
  color: #555;
}
.login {
  max-width: 380px;
  margin-top: 36px;
}
.login label {
  display: block;
  font-size: 16px;
  margin-bottom: 16px;
  color: #666;
}
.input-row {
  display: flex;
  gap: 10px;
}
.login input {
  width: 100%;
  flex: 1;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
}
#loading {
  margin-top: 36px;
  color: #888;
}
#status {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 30px);
  padding: 11px 18px;
  color: #555;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 3px 12px #00000008;
  font-size: 13px;
  line-height: 1.5;
  z-index: 2;
}
#status.error {
  color: #a04035;
  border-color: #e6c5bf;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 640px) {
  main {
    padding: 30px 22px 65px;
  }
  h1 {
    font-size: 34px;
  }
  blockquote {
    margin-top: 23px;
    padding-left: 16px;
    font-size: 15px;
  }
  .date-line {
    font-size: 10px;
    gap: 6px 14px;
    margin-bottom: 34px;
  }
  h2 {
    font-size: 24px;
    margin-bottom: 14px;
  }
  section {
    margin-bottom: 35px;
  }
  .task {
    font-size: 16px;
    gap: 11px;
    padding: 7px 0;
  }
  .task input {
    margin-top: 4px;
  }
  .add-task {
    padding-left: 34px;
    gap: 9px;
  }
  .add-task input,
  .new-category input {
    font-size: 16px;
  }
  .new-category {
    gap: 10px;
  }
}
