:root {
  --bg: #f4f1ea;
  --card: #ffffff;
  --ink: #1e2633;
  --muted: #646c78;
  --line: #e4dfd3;
  --accent: #2f6fe4;
  --shadow: 0 1px 2px rgba(30, 38, 51, .05), 0 6px 18px rgba(30, 38, 51, .07);
  --shadow-hi: 0 2px 4px rgba(30, 38, 51, .06), 0 12px 28px rgba(30, 38, 51, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
svg { display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ink); }

/* hero */
.hero { padding: 44px 0 34px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 14px; max-width: 15ch; font-weight: 850; }
.hero p { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin: 0; max-width: 54ch; }
.hero.small { padding: 28px 0 26px; }
.hero.small h1 { font-size: clamp(30px, 4.4vw, 44px); display: flex; align-items: center; gap: 14px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-head h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; font-weight: 750; }
section { margin-bottom: 44px; }

/* category tiles */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cat {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border-radius: 18px; padding: 18px; box-shadow: var(--shadow);
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.cat-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--c); color: #fff; font-weight: 850; font-size: 19px; letter-spacing: -.02em;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.hero .cat-icon { width: 54px; height: 54px; font-size: 21px; }
.cat h3 { margin: 0 0 2px; font-size: 18px; letter-spacing: -.01em; }
.cat p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.count { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--c); }

/* tool cards */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.tool {
  display: flex; flex-direction: column; background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.tool:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); }
.thumb { height: 150px; background: #f8f6f1; border-bottom: 1px solid #efebe2; display: grid; place-items: center; overflow: hidden; }
.thumb svg { width: 100%; height: 100%; }
.tool-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tool-cat { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--c); }
.tool h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.tool p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tag { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: #f1efe9; color: #4a515c; }

.soon {
  border: 2px dashed var(--line); border-radius: 18px; padding: 26px 20px; text-align: center;
  color: var(--muted); font-size: 15px; display: grid; place-items: center; min-height: 150px;
}
.soon b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

.site-foot { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 40px; font-size: 13.5px; color: var(--muted); }
