
:root{
  --bg:#f8fafc;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --brand:#ef4444;   /* primary accent */
  --accent:#0ea5e9;  /* secondary accent */
  --ring:rgba(14,165,233,.25);
  --radius:1.25rem;
  --shadow:0 10px 20px rgba(2,8,23,.05), 0 2px 6px rgba(2,8,23,.04);
  --shadow-hover:0 16px 30px rgba(2,8,23,.08), 0 4px 10px rgba(2,8,23,.06);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
a:focus-visible, button:focus-visible, [role="link"]:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:2px;
}

/* Layout */
.container{margin-inline:auto;padding:24px}
header.site{
  background:#fff;
  border-bottom:1px solid #e2e8f0;
  position:sticky; top:0; z-index:10;
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px;
}
.brand .dot{width:12px;height:12px;border-radius:50%;background:var(--brand);display:inline-block}
.nav a.link{padding:10px 12px;border-radius:10px}
.nav a.link:hover{background:#f1f5f9}
.cta{
  background:var(--brand); color:#fff; padding:10px 14px; border-radius:999px; font-weight:600;
  box-shadow:var(--shadow);
}
.cta:hover{filter:brightness(.95)}

/* Hero */
.hero{padding:48px 0 16px}
.hero h1{font-size:clamp(28px, 4vw, 40px); line-height:1.2; margin:0 0 10px}
.hero p{color:var(--muted); margin:0 0 20px; max-width:65ch}
.filters{display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 0}
.chip{
  display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px;
  background:#fff; border:1px solid #e2e8f0; color:#0f172a; font-weight:600;
}
.chip[aria-current="true"]{border-color:var(--accent); box-shadow:0 0 0 4px var(--ring)}

/* Grid of tools */
.grid{
  display:grid; gap:18px;
  grid-template-columns:repeat(12, 1fr);
}
.card{
  grid-column: span 12;
  background:var(--card); border:1px solid #e2e8f0; border-radius:var(--radius);
  padding:18px; box-shadow:var(--shadow); transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  display:flex; gap:16px; align-items:flex-start;
}
.card:hover{box-shadow:var(--shadow-hover); transform:translateY(-1px); border-color:#e5e7eb}
.icon{
  flex:0 0 44px; height:44px; border-radius:12px; display:grid; place-items:center;
  background:#fef2f2; border:1px solid #fee2e2;
}
.icon svg{width:22px;height:22px}
.card h3{margin:4px 0 6px; font-size:18px}
.card p{margin:0; color:var(--muted)}
.card .meta{margin-top:10px; font-size:14px; color:#64748b}
.card a.more{margin-top:12px; display:inline-block; font-weight:600; color:var(--accent)}
.sr-only{position:absolute !important; height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* Responsive columns */
@media (min-width:640px){
  .card{grid-column: span 6;}
}
@media (min-width:960px){
  .card{grid-column: span 3;}
}

/* Footer */
footer.site{
  margin-top:40px; padding:40px 0; background:#0b1220; color:#e2e8f0;
}
.footgrid{
  display:grid; gap:24px; grid-template-columns:repeat(12,1fr);
}
.footcol{grid-column: span 12;}
.footcol h4{margin:0 0 10px}
.footcol ul{list-style:none; padding:0; margin:0}
.footcol li + li{margin-top:8px}
.footnote{margin-top:24px; font-size:14px; color:#94a3b8}
@media (min-width:960px){
  .footcol{grid-column: span 4;}
}
