:root {
  --bg: #f6f4ef;
  --ink: #1c1b19;
  --muted: #6b675f;
  --line: #e4dfd4;
  --card: #fffdf8;
  --accent: #0f6e56;
  --accent-ink: #fff;
  --pin: #edf7f3;
  --err: #8a2b2b;
  --shadow: 0 10px 30px rgba(28, 27, 25, 0.06);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100%; }
a { color: var(--accent); text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.home { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: flex-end; padding: 16px 22px; }
.admin-link { color: var(--muted); font-size: 13px; }
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 80px; }
.mark { display: flex; align-items: center; gap: 10px; font-size: 42px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.mark--sm { font-size: 22px; }
.mark-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); display: inline-block; }
.tagline { color: var(--muted); margin: 8px 0 28px; }
.search-form { width: min(680px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.search-form--bar { flex-direction: row; width: min(720px, 100%); }
.search-shell { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; box-shadow: var(--shadow); }
.search-shell input { border: 0; outline: none; width: 100%; font-size: 16px; background: transparent; color: var(--ink); }
.search-ico { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.btn { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 10px 22px; font-size: 15px; cursor: pointer; }
.hints { display: flex; gap: 10px; list-style: none; padding: 18px 0 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.hints a { background: #efebe3; color: var(--ink); padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.foot { display: flex; justify-content: space-between; padding: 16px 22px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.serp-head { display: flex; align-items: center; gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #faf8f3; flex-wrap: wrap; }
.serp-main { width: min(740px, calc(100% - 32px)); margin: 24px auto 60px; }
.meta { color: var(--muted); font-size: 13px; }
.hits { list-style: none; padding: 0; margin: 0; }
.hit { padding: 16px 0; border-bottom: 1px solid var(--line); }
.hit--pin { background: var(--pin); margin: 0 -12px; padding: 16px 12px; border-radius: 12px; border-bottom: 0; }
.hit-src { display: flex; align-items: center; gap: 8px; }
.fav { width: 16px; height: 16px; border-radius: 4px; }
.hit-host { font-size: 13px; color: #3f3c37; }
.hit-path { display: block; color: var(--muted); font-size: 12px; }
.hit-title { display: inline-block; margin: 4px 0; font-size: 20px; color: var(--accent); font-weight: 600; }
.hit-title:hover { text-decoration: underline; }
.hit-snip { margin: 4px 0 0; color: #3f3c37; line-height: 1.45; }
.hit-meta { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.state { padding: 40px 0; }
.state h1 { font-size: 22px; }
.state--error h1 { color: var(--err); }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.pager .here { font-weight: 700; }
@media (max-width: 700px) {
  .mark { font-size: 34px; }
  .search-form--bar { flex-direction: column; }
}
