:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1c1f26;
  --muted: #5b6270;
  --accent: #2557d6;
  --line: #e3e6eb;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --card: #1b1e25;
    --text: #e8eaee;
    --muted: #a0a7b4;
    --accent: #7ea2ff;
    --line: #2b2f38;
    --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.top, main, .foot { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.top { padding-top: 48px; padding-bottom: 28px; }
.top h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
.top p { margin: 0; color: var(--muted); max-width: 60ch; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.shot {
  display: block; aspect-ratio: 16 / 10;
  background: var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.noshot {
  display: flex; height: 100%; align-items: center; justify-content: center;
  color: var(--muted); font-size: .9rem;
}
.body { padding: 14px 16px 18px; }
.body h2 { margin: 0 0 6px; font-size: 1.05rem; word-break: break-word; }
.body h2 a { color: var(--accent); text-decoration: none; }
.body h2 a:hover { text-decoration: underline; }
.body h2 a::after { content: " ↗"; font-size: .85em; opacity: .7; }
.body p { margin: 0; color: var(--muted); font-size: .93rem; }

.foot { padding-top: 40px; padding-bottom: 40px; color: var(--muted); font-size: .85rem; }

.dl {
  display: inline-block; margin-top: 14px; padding: 8px 16px;
  background: var(--accent); color: #fff; border-radius: 8px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
}
.dl:hover { filter: brightness(1.1); }

@media print {
  :root { --bg:#fff; --card:#fff; --text:#111; --muted:#444; --accent:#1a47b8; --line:#ccc; --shadow:none; }
  @page { size: A4; margin: 12mm; }
  body { font-size: 11px; }
  .dl, .foot { display: none; }
  .top { padding: 0 0 10px; }
  .top h1 { font-size: 22px; }
  .top, main { max-width: none; padding-left: 0; padding-right: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { break-inside: avoid; box-shadow: none; transition: none; }
  .body { padding: 8px 10px 10px; }
  .body h2 { font-size: 12px; }
  .body p { font-size: 10px; }
  .body h2 a::after { content: ""; }
}
