:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --text: #16191d;
  --muted: #5b6470;
  --line: #e3e7ec;
  --accent: #1a73e8;
  --accent-ink: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --surface: #1c1f23;
    --text: #eceff2;
    --muted: #9aa3ad;
    --line: #2b3036;
    --accent: #8ab4f8;
    --accent-ink: #0b1a2e;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
nav { display: flex; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }

.hero { padding: 48px 20px 28px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15; margin: 0 0 12px; max-width: 18em; }
.hero p { color: var(--muted); max-width: 40em; margin: 0 0 18px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}

.tools { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 20px; }
#q {
  width: 100%; max-width: 420px; padding: 10px 14px; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 14px; color: var(--text); cursor: pointer;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
}
.chip span { color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip[aria-pressed="true"] span { color: inherit; opacity: .8; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px;
}
.app a {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center;
  padding: 14px; border-radius: 14px; background: var(--surface);
  color: var(--text); text-decoration: none; height: 100%;
}
.app a:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.app img { grid-row: span 2; width: 56px; height: 56px; border-radius: 12px; }
.app .name { font-weight: 600; line-height: 1.3; }
.app .meta { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); }

.contact { padding: 40px 20px 8px; }
.contact h2 { margin: 0 0 8px; }

.foot { margin-top: 40px; padding: 24px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 4px 0; }
.foot .small { font-size: 12.5px; }

.prose { max-width: 760px; padding-top: 32px; }
.prose h2 { font-size: 20px; margin-top: 28px; }
.prose p, .prose li { color: var(--text); }

@media (max-width: 520px) {
  nav { gap: 12px; }
  .hero { padding-top: 32px; }
  .grid { grid-template-columns: 1fr; }
}
