:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #667085;
  --line: #e5e7eb;
  --surface: #ffffff;
  --surface-alt: #f7f8fa;
  --accent: #1769aa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-alt);
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--accent); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

header { padding: 64px 0 32px; }

h1 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.04em; }

.intro { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.1rem; }

.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; margin: 24px 0 28px; }

input, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.summary { margin: 0 0 14px; color: var(--muted); font-size: .92rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; padding-bottom: 64px; }

.card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 5px 18px rgba(23, 32, 42, .04); }

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

.card-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #eaf3fb; font-size: 1.45rem; }

.card h2 { margin: 0; font-size: 1.25rem; }

.card p { min-height: 3em; margin: 0 0 16px; color: var(--muted); }

.meta { min-height: 4.2em; margin-bottom: 16px; color: var(--muted); font-size: .84rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }

.tag { padding: 3px 8px; border-radius: 999px; background: #eaf3fb; color: #145a8d; font-size: .78rem; }

.links { display: flex; flex-wrap: wrap; gap: 8px 14px; }

.links a { font-weight: 650; }

.empty { padding: 32px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); background: var(--surface); }

footer { padding: 0 0 32px; color: var(--muted); font-size: .85rem; }

@media (max-width: 640px) {
  header { padding-top: 36px; }
  .toolbar { grid-template-columns: 1fr; }
}
