:root {font-family: 'Atkinson Hyperlegible Next', 'PingFang SC', 'Microsoft YaHei', sans-serif; color:#183e49; background:#edf4f3; color-scheme:light}
* {box-sizing:border-box}
body {margin:0; min-height:100vh}
main {max-width:1120px; margin:auto; padding:var(--space-section) clamp(16px,4vw,44px) 36px}
nav {display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr)); gap:var(--space-section)}
.tool {position:relative; display:grid; grid-template-columns:minmax(0, 1fr); grid-template-rows:minmax(0, 1fr) auto; width:100%; max-width:380px; aspect-ratio:1; text-decoration:none; color:#fff; background:#183e49; border-radius:18px; overflow:hidden; box-shadow:0 5px 0 #c2d6d5; transition:transform .14s ease}
.usage {position:absolute; top:10px; right:10px; padding:4px 9px; border-radius:999px; background:#183e49; color:#fff; font-size:.8rem; line-height:1.4; font-variant-numeric:tabular-nums}
.tool img {display:block; width:100%; height:100%; min-height:0; object-fit:cover; object-position:center 54%}
.tool-copy {min-width:0; padding:var(--space-section); display:grid; gap:var(--space-item)}
.tool-copy h2 {min-width:0; margin:0; font-size:1.25rem; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.tool-copy p {margin:0; font-size:.9375rem; line-height:1.5; height:3em; color:#dbeae7; overflow:hidden; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2}
.credit {margin-inline-start:auto; text-align:right; font-size:clamp(.72rem, 3vw, .875rem); line-height:1.5; color:#47626a}
.tool:focus-visible {outline:4px solid #246876; outline-offset:5px}
@media(hover:hover) {.tool:hover {transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce) {.tool {transition:none}}
