:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #172029;
  background: #f4f6f7;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header,
main,
footer {
  width: min(920px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  min-height: 150px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0 24px;
  border-bottom: 1px solid #cbd2d6;
}

.eyebrow {
  margin: 0 0 7px;
  color: #59646d;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
}

.status {
  flex: none;
  padding: 6px 9px;
  border: 1px solid #93b7a3;
  border-radius: 4px;
  color: #22623f;
  background: #ecf6ef;
  font-size: 13px;
  font-weight: 700;
}

main {
  padding: 34px 0 52px;
}

.tool-list {
  display: grid;
  gap: 12px;
}

.tool {
  min-height: 112px;
  display: grid;
  grid-template-columns: 64px 1fr 24px;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid #c9d0d4;
  border-left: 5px solid #2d7f8d;
  border-radius: 6px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.tool:hover,
.tool:focus-visible {
  border-color: #75828a;
  box-shadow: 0 5px 18px rgba(24, 34, 41, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.tool-piano {
  border-left-color: #d6674f;
}

.tool-hanzi {
  border-left-color: #3c8757;
}

.tool strong,
.tool small {
  display: block;
}

.tool strong {
  margin-bottom: 6px;
  font-size: 20px;
}

.tool small {
  color: #647079;
  font-size: 14px;
  line-height: 1.45;
}

.tool b {
  color: #68747c;
  font-size: 30px;
  font-weight: 400;
}

.tool-mark {
  width: 58px;
  height: 58px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 9px;
  border-radius: 6px;
  background: #e8f2f4;
}

.tool-mark i {
  display: block;
  border: 2px solid #2d7f8d;
  border-radius: 2px;
}

.piano-mark {
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 8px 7px;
  background: #f9ece8;
}

.piano-mark i {
  border: 1px solid #9b4c3a;
  background: #fff;
}

.piano-mark i:nth-child(even) {
  height: 31px;
  background: #263039;
}

.hanzi-mark {
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #3c8757;
  color: #2d7045;
  background: #ebf5ee;
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 30px;
  font-weight: 700;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 28px;
  border-top: 1px solid #d7dcdf;
  color: #68747c;
  font-size: 12px;
}

@media (max-width: 560px) {
  .site-header {
    min-height: 122px;
    padding-top: 26px;
  }

  h1 {
    font-size: 28px;
  }

  main {
    padding-top: 22px;
  }

  .tool {
    min-height: 100px;
    grid-template-columns: 50px 1fr 18px;
    gap: 13px;
    padding: 17px 14px;
  }

  .tool-mark {
    width: 48px;
    height: 48px;
  }

  .tool strong {
    font-size: 17px;
  }

  footer {
    flex-direction: column;
    gap: 5px;
  }
}

footer a { color: inherit; }
