:root {
  --bg: #f6f5f2; --card: #fff; --fg: #1b1b1f; --muted: #6b6b75; --line: #e4e2dc;
  --accent: #2f5bea; --private: #b4471d;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111114; --card: #1b1b20; --fg: #ececf1; --muted: #9a9aa6; --line: #2b2b33; --accent: #7c9cff; --private: #f08a5d; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, sans-serif; }
main { max-width: 1080px; margin: 0 auto; padding: 48px 16px; }
header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
header p { margin: 4px 0 0; color: var(--muted); }
a { color: var(--accent); }
.muted { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
.card:hover, .card:focus-visible { transform: translateY(-2px); border-color: var(--accent); }
.shot { aspect-ratio: 16 / 10; background: var(--line); display: grid; place-items: center; font-size: 40px; font-weight: 700; color: var(--muted); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.body { padding: 14px 16px 16px; }
.body h2 { margin: 0; font-size: 17px; display: flex; gap: 8px; align-items: center; }
.body p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.short { margin-top: 10px; font: 13px ui-monospace, monospace; color: var(--accent); }
.tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--private); border: 1px solid currentColor; border-radius: 99px; padding: 1px 8px; }

button, input, textarea { font: inherit; color: inherit; }
button { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
button.ghost { background: none; color: var(--fg); border: 1px solid var(--line); }
input[type=text], input[type=url], input[type=password], textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
label { display: block; font-size: 13px; color: var(--muted); }
