:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1b1f24;
  --muted: #5d6673;
  --border: #dde1e6;
  --accent: #1f4e8c;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-hover: 0 8px 24px rgba(16, 24, 40, .12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --surface: #1a1f25;
    --text: #e6e9ed;
    --muted: #9aa4b1;
    --border: #2b323b;
    --accent: #7fb0f0;
    --shadow: none;
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }

.intro { padding: 40px 0 24px; }
.intro h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.15; }
.intro p { margin: 0; color: var(--muted); max-width: 60ch; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
#filter {
  flex: 1 1 260px; max-width: 360px;
  padding: 9px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
#filter:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.count { color: var(--muted); font-size: .9rem; }

.grid {
  list-style: none; margin: 0 0 48px; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.tile[hidden] { display: none; }
.tile a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; color: inherit; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.tile a:hover, .tile a:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.tile a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shot { aspect-ratio: 16 / 10; background: var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.placeholder { display: grid; place-items: center; height: 100%; font-size: 3rem; font-weight: 700; color: var(--muted); }
.body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.body h2 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.host { margin: 2px 0 0; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.desc { margin: 10px 0 14px; font-size: .95rem; }
.visit { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--accent); }
.empty { color: var(--muted); padding: 24px 0 64px; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.site-footer .wrap { padding-top: 18px; padding-bottom: 18px; }
