:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #17393d;
  background: #f3efe6;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgb(20 70 75 / 4%) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgb(20 70 75 / 4%) 1px, transparent 1px) 0 0 / 32px 32px,
    #f3efe6;
}

.tool-header,
.tool-groups,
.site-footer {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.tool-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 64px 0 34px;
  border-bottom: 2px solid #174b50;
}

.tool-kicker,
.section-heading p {
  margin: 0;
  color: #b45a35;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 7px 0 12px;
  color: #103d42;
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.tool-heading > p:last-child {
  max-width: 590px;
  margin: 0;
  color: #527074;
  font-size: 1rem;
  line-height: 1.75;
}

.desk-note {
  flex: 0 0 auto;
  padding: 10px 14px;
  transform: rotate(-2deg);
  border: 1px solid #d7b459;
  background: #f4d978;
  box-shadow: 3px 4px 0 rgb(16 61 66 / 14%);
  color: #5c4919;
  font-family: ui-serif, "Kaiti SC", serif;
  font-size: .9rem;
}

.tool-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 52px;
  padding: 44px 0 58px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.section-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #174b50;
  color: #f8f4ea;
  font-size: .73rem;
  font-weight: 800;
}

.section-heading h2 {
  margin: 1px 0 0;
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-size: 1.45rem;
}

.tool-grid { display: grid; gap: 10px; }

.tool-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid #c9d1c8;
  border-radius: 13px;
  background: rgb(255 253 247 / 88%);
  box-shadow: 0 8px 22px rgb(16 61 66 / 5%);
  color: inherit;
  text-decoration: none;
}

.tool-card[aria-disabled="true"] { color: #64777a; }

.tool-card.is-ready {
  border-color: #1e686e;
  background: #fffefa;
  box-shadow: 0 10px 26px rgb(16 61 66 / 12%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tool-card.is-ready:hover,
.tool-card.is-ready:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgb(16 61 66 / 17%);
  outline: 3px solid rgb(180 90 53 / 25%);
  outline-offset: 2px;
}

.card-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 11px;
  background: #e4e8df;
  color: #47666a;
  font-family: ui-serif, "Songti SC", serif;
  font-weight: 800;
}

.is-ready .card-mark { background: #174b50; color: #fff9e9; }
.card-copy { display: grid; gap: 5px; }
.card-copy strong { color: #17393d; font-size: 1rem; }
.card-copy small { color: #708084; line-height: 1.45; }

.card-state {
  padding: 5px 8px;
  border-radius: 999px;
  background: #ecebe4;
  color: #7a8584;
  font-size: .72rem;
  white-space: nowrap;
}

.is-ready .card-state { background: #dceee5; color: #1b654b; font-weight: 750; }

.site-footer {
  padding: 24px 0 36px;
  border-top: 1px solid #c7cec5;
  color: #697b7d;
  font-size: .8rem;
  line-height: 1.7;
  text-align: center;
}

.site-footer p { margin: 2px 0; }
.site-footer a { color: #315e63; text-underline-offset: 3px; }

@media (max-width: 780px) {
  .tool-header { align-items: flex-start; flex-direction: column; padding-top: 42px; }
  .desk-note { align-self: flex-end; margin-top: -10px; }
  .tool-groups { grid-template-columns: 1fr; gap: 36px; padding-top: 34px; }
}

@media (max-width: 480px) {
  .tool-header, .tool-groups, .site-footer { width: min(100% - 24px, 1120px); }
  .tool-card { grid-template-columns: 42px minmax(0, 1fr); padding: 13px; }
  .card-mark { width: 42px; height: 42px; }
  .card-state { grid-column: 2; justify-self: start; margin-top: -2px; }
}
