:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1e2c3d;
  background: #f4f6f9;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #2869bd; outline-offset: 3px; }
.wrap { max-width: 1040px; width: calc(100% - 64px); margin-inline: auto; }
.masthead { background: #fff; border-bottom: 1px solid #dbe1e9; }
.masthead-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #192e48; font-size: 1.25rem; font-weight: 650; }
.official { display: inline-flex; align-items: center; min-height: 44px; color: #435973; font-size: .9375rem; }
.official:hover, footer a:hover { color: #225bb1; text-decoration: underline; text-underline-offset: 3px; }
main { padding: 38px 0 25px; }
h1 { margin: 0 0 19px; font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 650; line-height: 1.3; }
.directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.tool {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  gap: 20px;
  padding: 23px;
  border: 1px solid #d2dbe7;
  border-radius: 6px;
  background: #fff;
}
.tool:hover, .tool:focus-visible { border-color: #5088ce; background: #fafdff; }
.tool:hover strong, .tool:focus-visible strong { color: #225bb1; }
.tool-icon { display: block; flex: none; width: 42px; height: 42px; }
.ruler { display: grid; place-items: center; background: #225bb1; color: #fff; border-radius: 9px; }
.ruler svg { width: 26px; height: 26px; }
.tool-text { display: grid; gap: 7px; }
.tool strong { font-size: 1.1875rem; line-height: 1.4; font-weight: 650; color: #243b56; }
.tool-text > span { font-size: .9375rem; line-height: 1.65; color: #526176; }
footer { padding: 15px 0 20px; border-top: 1px solid #dbe1e9; color: #5c697d; font-size: .8125rem; }
footer a { display: inline-block; padding-block: 4px; }
@media (max-width: 780px) {
  .directory { grid-template-columns: 1fr; gap: 10px; }
  .tool { flex-direction: row; align-items: center; gap: 16px; padding: 18px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .masthead-inner { min-height: 56px; }
  .brand img { width: 30px; height: 30px; }
  main { padding: 26px 0 20px; }
  .tool-text { gap: 4px; }
}
