:root {
  --bg: #f6f4ee; --ink: #1d1d1b; --muted: #66645c; --card: #fff; --line: #dedbd0; --focus: #2f6fdb;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161614; --ink: #f1efe8; --muted: #a9a69c; --card: #20201d; --line: #34332e; --focus: #7aa7ff; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
header, main, footer { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header { padding-top: 48px; padding-bottom: 24px; }
.brand { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 4px 0 8px; font-size: clamp(32px, 6vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
.lede { margin: 0; color: var(--muted); max-width: 40em; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--muted); transform: translateY(-2px); }
.card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.body strong { font-size: 19px; }
.body span { color: var(--muted); font-size: 15px; }
footer { padding-top: 40px; padding-bottom: 48px; color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
